aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-10-14 12:20:29 -0500
committerTed Gould <ted@gould.cx>2010-10-14 12:20:29 -0500
commit9b7061a33a014f2b83d970698b31ff5e0e33e129 (patch)
treede0116d6c1760a6b3490032dc397659d33f0afbb /libdbusmenu-glib
parent53eee1c44b504a06ca72c0f7e3d21d2b69bc6905 (diff)
downloadlibdbusmenu-9b7061a33a014f2b83d970698b31ff5e0e33e129.tar.gz
libdbusmenu-9b7061a33a014f2b83d970698b31ff5e0e33e129.tar.bz2
libdbusmenu-9b7061a33a014f2b83d970698b31ff5e0e33e129.zip
Moving the interface name into a define
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r--libdbusmenu-glib/server.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c
index d7ccaf8..aabad9a 100644
--- a/libdbusmenu-glib/server.c
+++ b/libdbusmenu-glib/server.c
@@ -52,7 +52,8 @@ static void _gvalue_array_append_hashtable(GValueArray *array, GHashTable * dict
static void layout_update_signal (DbusmenuServer * server);
-#define DBUSMENU_VERSION_NUMBER 2
+#define DBUSMENU_VERSION_NUMBER 2
+#define DBUSMENU_INTERFACE "org.ayatana.dbusmenu"
/* Privates, I'll show you mine... */
struct _DbusmenuServerPrivate
@@ -264,10 +265,10 @@ dbusmenu_server_class_init (DbusmenuServerClass *class)
}
if (dbusmenu_interface_info == NULL) {
- dbusmenu_interface_info = g_dbus_node_info_lookup_interface(dbusmenu_node_info, "org.ayatana.dbusmenu");
+ dbusmenu_interface_info = g_dbus_node_info_lookup_interface(dbusmenu_node_info, DBUSMENU_INTERFACE);
if (dbusmenu_interface_info == NULL) {
- g_error("Unable to find interface 'org.ayatana.dbusmenu'");
+ g_error("Unable to find interface '" DBUSMENU_INTERFACE "'");
}
}