aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-26 20:06:09 -0500
committerTed Gould <ted@canonical.com>2009-08-26 20:06:09 -0500
commit96d5cadae1492a0d4db6e38f606be309e76ab0aa (patch)
tree8ce1cbea6d3f1f87c89e3afd43447739b56cd55e /src
parentbb8dfce7d1a137eeff3792862b3f9a27416f3836 (diff)
downloadayatana-indicator-messages-96d5cadae1492a0d4db6e38f606be309e76ab0aa.tar.gz
ayatana-indicator-messages-96d5cadae1492a0d4db6e38f606be309e76ab0aa.tar.bz2
ayatana-indicator-messages-96d5cadae1492a0d4db6e38f606be309e76ab0aa.zip
Pulling the type and the properties into the shared DBus header.
Diffstat (limited to 'src')
-rw-r--r--src/dbus-data.h4
-rw-r--r--src/indicator-messages.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/dbus-data.h b/src/dbus-data.h
index e7d4d26..db59003 100644
--- a/src/dbus-data.h
+++ b/src/dbus-data.h
@@ -8,4 +8,8 @@
#define INDICATOR_MESSAGES_DBUS_SERVICE_OBJECT "/org/ayatana/indicator/messages/service"
#define INDICATOR_MESSAGES_DBUS_SERVICE_INTERFACE "org.ayatana.indicator.messages.service"
+#define LAUNCHER_MENUITEM_TYPE "launcher-item"
+#define LAUNCHER_MENUITEM_PROP_APP_NAME "application-name"
+#define LAUNCHER_MENUITEM_PROP_APP_DESC "application-description"
+
#endif /* __DBUS_DATA_H__ */
diff --git a/src/indicator-messages.c b/src/indicator-messages.c
index 2aec8e9..8762593 100644
--- a/src/indicator-messages.c
+++ b/src/indicator-messages.c
@@ -185,7 +185,7 @@ get_menu (void)
DbusmenuGtkMenu * menu = dbusmenu_gtkmenu_new(INDICATOR_MESSAGES_DBUS_NAME, INDICATOR_MESSAGES_DBUS_OBJECT);
DbusmenuGtkClient * client = dbusmenu_gtkmenu_get_client(menu);
- dbusmenu_client_add_type_handler(DBUSMENU_CLIENT(client), "launcher-item", new_launcher_item);
+ dbusmenu_client_add_type_handler(DBUSMENU_CLIENT(client), LAUNCHER_MENUITEM_TYPE, new_launcher_item);
return GTK_MENU(menu);
}