aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-02-14 05:52:22 +0800
committerChristian Persch <chpe@src.gnome.org>2005-02-14 05:52:22 +0800
commita49772a4086be1676f5e7b74537017a902784670 (patch)
treee5bcfcc6dd8ae0cbdebadf4df77f3dac986002c3
parente598971b8c3e02c0f2266c5fb8f3b6a69cdc633f (diff)
downloadgsoc2013-epiphany-a49772a4086be1676f5e7b74537017a902784670.tar
gsoc2013-epiphany-a49772a4086be1676f5e7b74537017a902784670.tar.gz
gsoc2013-epiphany-a49772a4086be1676f5e7b74537017a902784670.tar.bz2
gsoc2013-epiphany-a49772a4086be1676f5e7b74537017a902784670.tar.lz
gsoc2013-epiphany-a49772a4086be1676f5e7b74537017a902784670.tar.xz
gsoc2013-epiphany-a49772a4086be1676f5e7b74537017a902784670.tar.zst
gsoc2013-epiphany-a49772a4086be1676f5e7b74537017a902784670.zip
Keep a ref on the tray icon. Should fix bug #166143.
2005-02-13 Christian Persch <chpe@cvs.gnome.org> * lib/egg/eggstatusicon.c: (egg_status_icon_init), (egg_status_icon_finalize): Keep a ref on the tray icon. Should fix bug #166143.
-rw-r--r--ChangeLog7
-rw-r--r--lib/egg/eggstatusicon.c3
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 35b28077c..1fbfc00f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-02-13 Christian Persch <chpe@cvs.gnome.org>
+
+ * lib/egg/eggstatusicon.c: (egg_status_icon_init),
+ (egg_status_icon_finalize):
+
+ Keep a ref on the tray icon. Should fix bug #166143.
+
2005-02-12 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-tabs-menu.c: (tab_added_cb), (tab_removed_cb),
diff --git a/lib/egg/eggstatusicon.c b/lib/egg/eggstatusicon.c
index 350bc3c11..d974af60c 100644
--- a/lib/egg/eggstatusicon.c
+++ b/lib/egg/eggstatusicon.c
@@ -248,6 +248,8 @@ egg_status_icon_init (EggStatusIcon *status_icon)
status_icon->priv->size = G_MAXINT;
status_icon->tray_icon = GTK_WIDGET (egg_tray_icon_new (NULL));
+ g_object_ref (status_icon->tray_icon);
+ gtk_object_sink (GTK_OBJECT (status_icon->tray_icon));
gtk_widget_add_events (GTK_WIDGET (status_icon->tray_icon),
GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);
@@ -289,6 +291,7 @@ egg_status_icon_finalize (GObject *object)
status_icon->priv->tooltips = NULL;
gtk_widget_destroy (status_icon->tray_icon);
+ g_object_unref (status_icon->tray_icon);
g_free (status_icon->priv);