aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);