aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-26 20:24:07 -0500
committerTed Gould <ted@canonical.com>2009-08-26 20:24:07 -0500
commit2273a4d1f95cf44edb1aad21849eda6fca358deb (patch)
tree823c51cb9e0bb636762c8ec587dfc991513abdad
parentbab6bd250e02bb8a139ea4ad36fdee2b7b250544 (diff)
downloadayatana-indicator-messages-2273a4d1f95cf44edb1aad21849eda6fca358deb.tar.gz
ayatana-indicator-messages-2273a4d1f95cf44edb1aad21849eda6fca358deb.tar.bz2
ayatana-indicator-messages-2273a4d1f95cf44edb1aad21849eda6fca358deb.zip
Setting the type of the item and app name
-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 eb32e59..9c2dbeb 100644
--- a/src/launcher-menu-item.c
+++ b/src/launcher-menu-item.c
@@ -28,6 +28,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include <glib/gi18n.h>
#include <gio/gdesktopappinfo.h>
#include "launcher-menu-item.h"
+#include "dbus-data.h"
enum {
NAME_CHANGED,
@@ -130,7 +131,9 @@ launcher_menu_item_new (const gchar * desktop_file)
priv->desktop = g_strdup(desktop_file);
g_debug("\tName: %s", launcher_menu_item_get_name(self));
- dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(self), DBUSMENU_MENUITEM_PROP_LABEL, launcher_menu_item_get_name(self));
+ dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(self), "type", LAUNCHER_MENUITEM_TYPE);
+ dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(self), LAUNCHER_MENUITEM_PROP_APP_NAME, launcher_menu_item_get_name(self));
+ // dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(self), LAUNCHER_MENUITEM_PROP_APP_DESC, launcher_menu_item_get_name(self));
g_signal_connect(G_OBJECT(self), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(activate_cb), NULL);