diff options
author | Ted Gould <ted@gould.cx> | 2010-01-20 09:47:02 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-01-20 09:47:02 -0600 |
commit | ba6eadc425796f206169d3ffd91934417f045506 (patch) | |
tree | c78d3437ab0016e652637b236fca120310e08181 /src | |
parent | 0b8b85b8c036b1cd78f62a9bd8db70458b65801d (diff) | |
parent | fe7f3dcf1257a4cba7375439ae50c250abb39a56 (diff) | |
download | libayatana-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')
-rw-r--r-- | src/indicator-application.c | 4 |
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); |