aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-07-14 17:19:11 +0100
committerConor Curran <conor.curran@canonical.com>2011-07-14 17:19:11 +0100
commitf4cab4f88b251b4abdf8add234c4ba04d9cce03a (patch)
treeecb618a1e0e54c40dfa6c3fdbaba70d82917594e
parentf2d458b0addfe408835366939b49f4a38c0a14cb (diff)
downloadayatana-indicator-session-f4cab4f88b251b4abdf8add234c4ba04d9cce03a.tar.gz
ayatana-indicator-session-f4cab4f88b251b4abdf8add234c4ba04d9cce03a.tar.bz2
ayatana-indicator-session-f4cab4f88b251b4abdf8add234c4ba04d9cce03a.zip
ref sink instead of ref on the images and menus
-rw-r--r--src/indicator-session.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c
index 5a5e26c..ded9218 100644
--- a/src/indicator-session.c
+++ b/src/indicator-session.c
@@ -176,10 +176,10 @@ indicator_session_init (IndicatorSession *self)
gtk_widget_show (GTK_WIDGET(self->users.image));
gtk_widget_show (GTK_WIDGET(self->users.menu));
- g_object_ref (self->users.menu);
- g_object_ref (self->users.image);
- g_object_ref (self->devices.menu);
- g_object_ref (self->devices.image);
+ g_object_ref_sink (self->users.menu);
+ g_object_ref_sink (self->users.image);
+ g_object_ref_sink (self->devices.menu);
+ g_object_ref_sink (self->devices.image);
// Setup the handlers for users
DbusmenuClient * users_client = DBUSMENU_CLIENT(dbusmenu_gtkmenu_get_client(DBUSMENU_GTKMENU(self->users.menu)));