diff options
author | Ted Gould <ted@gould.cx> | 2012-02-09 22:35:01 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-02-09 22:35:01 -0600 |
commit | 6a357cabcd97060ffcef856c06d406614bbfc19d (patch) | |
tree | 39af400c2584d75fd036b223d98c4553bd436b53 /src/launcher-menu-item.c | |
parent | 84a1d59e2a031e072721e976974443ad37ff4c64 (diff) | |
parent | 1f045f4255da09068f5fbbdf89f178631211f2ee (diff) | |
download | ayatana-indicator-messages-6a357cabcd97060ffcef856c06d406614bbfc19d.tar.gz ayatana-indicator-messages-6a357cabcd97060ffcef856c06d406614bbfc19d.tar.bz2 ayatana-indicator-messages-6a357cabcd97060ffcef856c06d406614bbfc19d.zip |
Import upstream version 0.5.90
Diffstat (limited to 'src/launcher-menu-item.c')
-rw-r--r-- | src/launcher-menu-item.c | 5 |
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); |