aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-01-14 15:14:12 -0600
committerTed Gould <ted@gould.cx>2010-01-14 15:14:12 -0600
commitfe7f3dcf1257a4cba7375439ae50c250abb39a56 (patch)
treef3aa7970d0162b9acf1caa5e0ba8ed3da4ea90ef
parentf0104e11357b5804aea2ecead13f99231b671a75 (diff)
downloadayatana-indicator-application-fe7f3dcf1257a4cba7375439ae50c250abb39a56.tar.gz
ayatana-indicator-application-fe7f3dcf1257a4cba7375439ae50c250abb39a56.tar.bz2
ayatana-indicator-application-fe7f3dcf1257a4cba7375439ae50c250abb39a56.zip
We should have kept ref's to these.
-rw-r--r--src/indicator-application.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/indicator-application.c b/src/indicator-application.c
index c330645..8e88f8e 100644
--- a/src/indicator-application.c
+++ b/src/indicator-application.c
@@ -303,6 +303,10 @@ application_added (DBusGProxy * proxy, const gchar * iconname, gint position, co
app->entry.label = NULL;
app->entry.menu = GTK_MENU(dbusmenu_gtkmenu_new((gchar *)dbusaddress, (gchar *)dbusobject));
+ /* Keep copies of these for ourself, just in case. */
+ g_object_ref(app->entry.image);
+ g_object_ref(app->entry.menu);
+
gtk_widget_show(GTK_WIDGET(app->entry.image));
priv->applications = g_list_insert(priv->applications, app, position);