[empathy/wip/gbsneto/ui-refresh: 5/6] window: display all contacts in a flat list



commit 69c675c3b6fc8661fb0e5ccc0c9e6b6f216823cb
Author: Frédéric Péters <fpeters 0d be>
Date:   Fri May 1 16:32:27 2015 +0200

    window: display all contacts in a flat list

 src/empathy-roster-window.c |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/src/empathy-roster-window.c b/src/empathy-roster-window.c
index b70332d..e874fb5 100644
--- a/src/empathy-roster-window.c
+++ b/src/empathy-roster-window.c
@@ -2530,15 +2530,11 @@ empathy_roster_window_init (EmpathyRosterWindow *self)
       "most-available-presence-changed",
       G_CALLBACK (roster_window_most_available_presence_changed_cb), self);
 
-  g_settings_bind (self->priv->gsettings_ui, EMPATHY_PREFS_UI_SHOW_OFFLINE,
-      self->priv->view, "show-offline",
-      G_SETTINGS_BIND_GET);
-  tp_g_signal_connect_object (self->priv->gsettings_ui,
-      "changed::" EMPATHY_PREFS_UI_SHOW_OFFLINE,
-      G_CALLBACK (show_offline_changed_cb), self, 0);
-  g_settings_bind (self->priv->gsettings_ui, EMPATHY_PREFS_UI_SHOW_GROUPS,
-      self->priv->view, "show-groups",
-      G_SETTINGS_BIND_GET);
+  g_object_set (G_OBJECT (self->priv->view),
+                  "show-offline", TRUE,
+                  "show-groups", FALSE,
+                  NULL);
+
   g_settings_bind (self->priv->gsettings_ui, "show-balance-in-roster",
       self->priv->balance_vbox, "visible",
       G_SETTINGS_BIND_GET);


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