diff options
author | Ted Gould <ted@canonical.com> | 2009-11-13 12:04:58 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-11-13 12:04:58 -0600 |
commit | 54a9ab9d12ec6750da50629099d11dfa559d51ca (patch) | |
tree | 475ba65d63e87b2a977f1e1d68e2d435afbaf0fc | |
parent | 088c421863751188f5702cd0703b343cb07a2dea (diff) | |
download | libdbusmenu-54a9ab9d12ec6750da50629099d11dfa559d51ca.tar.gz libdbusmenu-54a9ab9d12ec6750da50629099d11dfa559d51ca.tar.bz2 libdbusmenu-54a9ab9d12ec6750da50629099d11dfa559d51ca.zip |
Making the 'type' property a #define
-rw-r--r-- | libdbusmenu-glib/client.c | 3 | ||||
-rw-r--r-- | libdbusmenu-glib/menuitem.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index ab307bd..c0ea0d7 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -34,6 +34,7 @@ License version 3 and version 2.1 along with this program. If not, see #include <libxml/tree.h> #include "client.h" +#include "menuitem.h" #include "dbusmenu-client.h" #include "server-marshal.h" @@ -606,7 +607,7 @@ menuitem_get_properties_new_cb (DBusGProxy * proxy, GHashTable * properties, GEr const gchar * type; DbusmenuClientTypeHandler newfunc = NULL; - type = dbusmenu_menuitem_property_get(propdata->item, "type"); + type = dbusmenu_menuitem_property_get(propdata->item, DBUSMENU_MENUITEM_PROP_TYPE); if (type != NULL) { newfunc = g_hash_table_lookup(priv->type_handlers, type); } else { diff --git a/libdbusmenu-glib/menuitem.h b/libdbusmenu-glib/menuitem.h index da969d6..27a86a2 100644 --- a/libdbusmenu-glib/menuitem.h +++ b/libdbusmenu-glib/menuitem.h @@ -50,6 +50,7 @@ G_BEGIN_DECLS #define DBUSMENU_MENUITEM_SIGNAL_REALIZED "realized" #define DBUSMENU_MENUITEM_SIGNAL_REALIZED_ID (g_signal_lookup(DBUSMENU_MENUITEM_SIGNAL_REALIZED, DBUSMENU_TYPE_MENUITEM)) +#define DBUSMENU_MENUITEM_PROP_TYPE "type" #define DBUSMENU_MENUITEM_PROP_VISIBLE "visible" #define DBUSMENU_MENUITEM_PROP_SENSITIVE "sensitive" #define DBUSMENU_MENUITEM_PROP_LABEL "label" |