[ekiga] Made the gtk+ roster view manage its conf notifiers more carefully
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Made the gtk+ roster view manage its conf notifiers more carefully
- Date: Mon, 21 Jan 2013 10:19:00 +0000 (UTC)
commit 2d874ea776fd6c3394a46b91da2304bdda69c797
Author: Julien Puydt <jpuydt free fr>
Date: Mon Jan 21 10:52:25 2013 +0100
Made the gtk+ roster view manage its conf notifiers more carefully
lib/engine/gui/gtk-frontend/roster-view-gtk.cpp | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp b/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp
index 2047c90..72836e4 100644
--- a/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp
+++ b/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp
@@ -64,6 +64,7 @@ struct _RosterViewGtkPrivate
GtkTreeView *tree_view;
GSList *folded_groups;
gboolean show_offline_contacts;
+ gpointer notifier;
};
typedef struct _StatusIconInfo {
@@ -1396,6 +1397,8 @@ roster_view_gtk_finalize (GObject *obj)
view = (RosterViewGtk *)obj;
+ gm_conf_notifier_remove (view->priv->notifier);
+
g_slist_foreach (view->priv->folded_groups, (GFunc) g_free, NULL);
g_slist_free (view->priv->folded_groups);
view->priv->folded_groups = NULL;
@@ -1526,8 +1529,9 @@ roster_view_gtk_init (G_GNUC_UNUSED RosterViewGtk* self)
G_CALLBACK (on_view_event_after), self);
/* Notifiers */
- gm_conf_notifier_add (CONTACTS_KEY "show_offline_contacts",
- show_offline_contacts_changed_nt, self);
+ self->priv->notifier =
+ gm_conf_notifier_add (CONTACTS_KEY "show_offline_contacts",
+ show_offline_contacts_changed_nt, self);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]