aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-application.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-01-20 09:47:02 -0600
committerTed Gould <ted@gould.cx>2010-01-20 09:47:02 -0600
commitba6eadc425796f206169d3ffd91934417f045506 (patch)
treec78d3437ab0016e652637b236fca120310e08181 /src/indicator-application.c
parent0b8b85b8c036b1cd78f62a9bd8db70458b65801d (diff)
parentfe7f3dcf1257a4cba7375439ae50c250abb39a56 (diff)
downloadlibayatana-appindicator-ba6eadc425796f206169d3ffd91934417f045506.tar.gz
libayatana-appindicator-ba6eadc425796f206169d3ffd91934417f045506.tar.bz2
libayatana-appindicator-ba6eadc425796f206169d3ffd91934417f045506.zip
Ref'ing the image and menu so that when we remove them we don't get warnings.
Diffstat (limited to 'src/indicator-application.c')
-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);