aboutsummaryrefslogtreecommitdiff
path: root/src/launcher-menu-item.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-02-10 17:44:16 +0100
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-02-10 17:44:16 +0100
commit07a19cb993cacaf3a1185f1268334a6f6d3e744f (patch)
tree053f608ca6e1736da5a852734b539f54cb742893 /src/launcher-menu-item.c
parent981c01a3442a6a0a459ac313e29486b67aa1aac7 (diff)
parent1f045f4255da09068f5fbbdf89f178631211f2ee (diff)
downloadayatana-indicator-messages-07a19cb993cacaf3a1185f1268334a6f6d3e744f.tar.gz
ayatana-indicator-messages-07a19cb993cacaf3a1185f1268334a6f6d3e744f.tar.bz2
ayatana-indicator-messages-07a19cb993cacaf3a1185f1268334a6f6d3e744f.zip
Merge trunk
Diffstat (limited to 'src/launcher-menu-item.c')
-rw-r--r--src/launcher-menu-item.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/launcher-menu-item.c b/src/launcher-menu-item.c
index e01806e..91cbbb8 100644
--- a/src/launcher-menu-item.c
+++ b/src/launcher-menu-item.c
@@ -211,7 +211,10 @@ launcher_menu_item_new (const gchar * desktop_file)
dbusmenu_menuitem_property_set(mi, DBUSMENU_MENUITEM_PROP_TYPE, APPLICATION_MENUITEM_TYPE);
g_object_set_data(G_OBJECT(mi), NICK_DATA, (gpointer)nicks[i]);
- dbusmenu_menuitem_property_set(mi, DBUSMENU_MENUITEM_PROP_LABEL, indicator_desktop_shortcuts_nick_get_name(priv->ids, nicks[i]));
+ gchar *name = indicator_desktop_shortcuts_nick_get_name(priv->ids, nicks[i]);
+ dbusmenu_menuitem_property_set(mi, DBUSMENU_MENUITEM_PROP_LABEL, name);
+ g_free(name);
+
g_signal_connect(G_OBJECT(mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(nick_activate_cb), self);
priv->shortcuts = g_list_append(priv->shortcuts, mi);