diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-02-14 05:52:22 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-02-14 05:52:22 +0800 |
commit | a49772a4086be1676f5e7b74537017a902784670 (patch) | |
tree | e5bcfcc6dd8ae0cbdebadf4df77f3dac986002c3 | |
parent | e598971b8c3e02c0f2266c5fb8f3b6a69cdc633f (diff) | |
download | gsoc2013-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-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/egg/eggstatusicon.c | 3 |
2 files changed, 10 insertions, 0 deletions
@@ -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); |