aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-preferences.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-01-12 19:02:46 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-01-12 19:02:46 +0800
commit1f97396a517a53b2699e6def6ef399d6266e0aa8 (patch)
tree0a0e0fc96c6cbbf8636d27ef006fa6c8446e99dc /libempathy-gtk/empathy-preferences.c
parent923bbd44baad11ae987061a6bec4d572414b792e (diff)
downloadgsoc2013-empathy-1f97396a517a53b2699e6def6ef399d6266e0aa8.tar
gsoc2013-empathy-1f97396a517a53b2699e6def6ef399d6266e0aa8.tar.gz
gsoc2013-empathy-1f97396a517a53b2699e6def6ef399d6266e0aa8.tar.bz2
gsoc2013-empathy-1f97396a517a53b2699e6def6ef399d6266e0aa8.tar.lz
gsoc2013-empathy-1f97396a517a53b2699e6def6ef399d6266e0aa8.tar.xz
gsoc2013-empathy-1f97396a517a53b2699e6def6ef399d6266e0aa8.tar.zst
gsoc2013-empathy-1f97396a517a53b2699e6def6ef399d6266e0aa8.zip
Add option in preference to automatically connect at startup. Fixes bug #499885 (Carl-Anton Ingmarsson).
svn path=/trunk/; revision=539
Diffstat (limited to 'libempathy-gtk/empathy-preferences.c')
-rw-r--r--libempathy-gtk/empathy-preferences.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-preferences.c b/libempathy-gtk/empathy-preferences.c
index a8b52954d..d6e21a733 100644
--- a/libempathy-gtk/empathy-preferences.c
+++ b/libempathy-gtk/empathy-preferences.c
@@ -50,6 +50,7 @@ typedef struct {
GtkWidget *combobox_chat_theme;
GtkWidget *checkbutton_theme_chat_room;
GtkWidget *checkbutton_separate_chat_windows;
+ GtkWidget *checkbutton_autoconnect;
GtkWidget *radiobutton_contact_list_sort_by_name;
GtkWidget *radiobutton_contact_list_sort_by_state;
@@ -200,6 +201,10 @@ preferences_setup_widgets (EmpathyPreferences *preferences)
preferences_hookup_radio_button (preferences,
EMPATHY_PREFS_CONTACTS_SORT_CRITERIUM,
preferences->radiobutton_contact_list_sort_by_name);
+
+ preferences_hookup_toggle_button (preferences,
+ EMPATHY_PREFS_AUTOCONNECT,
+ preferences->checkbutton_autoconnect);
}
static void
@@ -939,6 +944,7 @@ empathy_preferences_show (GtkWindow *parent)
"combobox_chat_theme", &preferences->combobox_chat_theme,
"checkbutton_theme_chat_room", &preferences->checkbutton_theme_chat_room,
"checkbutton_separate_chat_windows", &preferences->checkbutton_separate_chat_windows,
+ "checkbutton_autoconnect", &preferences->checkbutton_autoconnect,
"radiobutton_contact_list_sort_by_name", &preferences->radiobutton_contact_list_sort_by_name,
"radiobutton_contact_list_sort_by_state", &preferences->radiobutton_contact_list_sort_by_state,
"checkbutton_sounds_for_messages", &preferences->checkbutton_sounds_for_messages,