aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-application.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-01-14 15:16:50 -0600
committerTed Gould <ted@gould.cx>2010-01-14 15:16:50 -0600
commitc30224141b8205c6cb46feda148a81fe1b51421a (patch)
treebf7eb1c33270e3c84b1749f126dbe125403ce670 /src/indicator-application.c
parent5a93b5e7a2d9f805756bdaa89d5a01f649f60da3 (diff)
parentfe7f3dcf1257a4cba7375439ae50c250abb39a56 (diff)
downloadlibayatana-appindicator-c30224141b8205c6cb46feda148a81fe1b51421a.tar.gz
libayatana-appindicator-c30224141b8205c6cb46feda148a81fe1b51421a.tar.bz2
libayatana-appindicator-c30224141b8205c6cb46feda148a81fe1b51421a.zip
Merging in the warnings branch.
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 72d3d0d..d697d96 100644
--- a/src/indicator-application.c
+++ b/src/indicator-application.c
@@ -317,6 +317,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);