diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2012-08-23 13:35:09 +0200 |
---|---|---|
committer | Sebastien Bacher <seb128@ubuntu.com> | 2012-08-23 13:35:09 +0200 |
commit | f070076dd2d20dc90bdd9507acd751ec83070ae2 (patch) | |
tree | 943f591fa597ebb684ba79882727cc99dccde41b /src/app-section.c | |
parent | da454128c64f7228d1263c3d7395187daf90debc (diff) | |
parent | 95aa2195c3e7e5873a1508e77b8305cf92e2215b (diff) | |
download | ayatana-indicator-messages-f070076dd2d20dc90bdd9507acd751ec83070ae2.tar.gz ayatana-indicator-messages-f070076dd2d20dc90bdd9507acd751ec83070ae2.tar.bz2 ayatana-indicator-messages-f070076dd2d20dc90bdd9507acd751ec83070ae2.zip |
Backported fixes from trunk up to r284, some of those are needed for the
bindings to work
Diffstat (limited to 'src/app-section.c')
-rw-r--r-- | src/app-section.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/app-section.c b/src/app-section.c index 70bf21e..1574892 100644 --- a/src/app-section.c +++ b/src/app-section.c @@ -233,6 +233,8 @@ app_section_dispose (GObject *object) g_clear_object (&priv->source_actions); } + g_clear_object (&priv->muxer); + g_clear_object (&priv->source_menu); g_clear_object (&priv->ids); g_clear_object (&priv->appinfo); @@ -350,6 +352,7 @@ app_section_set_app_info (AppSection *self, action = g_simple_action_new (nicks[i], NULL); g_signal_connect(action, "activate", G_CALLBACK (nick_activate_cb), self); g_simple_action_group_insert (priv->static_shortcuts, G_ACTION (action)); + g_object_unref (action); g_menu_append (priv->menu, name, nicks[i]); @@ -384,8 +387,10 @@ activate_cb (GSimpleAction *action, GError *error = NULL; if (!g_app_info_launch (G_APP_INFO (priv->appinfo), NULL, NULL, &error)) { - g_warning("Unable to execute application for desktop file '%s'", - g_desktop_app_info_get_filename (priv->appinfo)); + g_warning("Unable to execute application for desktop file '%s': %s", + g_desktop_app_info_get_filename (priv->appinfo), + error->message); + g_error_free (error); } } |