[empathy] preferences: add UI to show/hide groups



commit 52189008475461e67cc43d9fb6eef7eeea5d3529
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Jun 13 09:57:43 2012 +0200

    preferences: add UI to show/hide groups
    
    I'm about to change the default to not show groups, so users should have an
    easy way to get them back.
    I just removed a bunch of options from the preferences dialog so at the end it
    will still be simpler than it used to be.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677949

 src/empathy-preferences.c  |    2 ++
 src/empathy-preferences.ui |   16 ++++++++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-preferences.c b/src/empathy-preferences.c
index 923bef0..4291ffc 100644
--- a/src/empathy-preferences.c
+++ b/src/empathy-preferences.c
@@ -179,6 +179,8 @@ preferences_setup_widgets (EmpathyPreferences *preferences,
 
 	BIND_ACTIVE (ui, UI_SHOW_OFFLINE,
 		     "checkbutton_show_offline");
+	BIND_ACTIVE (ui, UI_SHOW_GROUPS,
+		     "checkbutton_show_groups");
 	BIND_ACTIVE (ui, UI_SEPARATE_CHAT_WINDOWS,
 		     "radiobutton_chats_new_windows");
 	BIND_ACTIVE (ui, UI_EVENTS_NOTIFY_AREA,
diff --git a/src/empathy-preferences.ui b/src/empathy-preferences.ui
index 4b80b0f..a54dcd2 100644
--- a/src/empathy-preferences.ui
+++ b/src/empathy-preferences.ui
@@ -45,6 +45,22 @@
                       </packing>
                     </child>
                     <child>
+                      <object class="GtkCheckButton" id="checkbutton_show_groups">
+                        <property name="label" translatable="yes">Show groups</property>
+                        <property name="visible">True</property>
+                        <property name="can_focus">True</property>
+                        <property name="receives_default">False</property>
+                        <property name="use_action_appearance">False</property>
+                        <property name="xalign">0</property>
+                        <property name="draw_indicator">True</property>
+                      </object>
+                      <packing>
+                        <property name="expand">False</property>
+                        <property name="fill">True</property>
+                        <property name="position">2</property>
+                      </packing>
+                    </child>
+                    <child>
                       <object class="GtkCheckButton" id="checkbutton_show_balances">
                         <property name="label" translatable="yes">Show account balances</property>
                         <property name="visible">True</property>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]