diff options
author | Ted Gould <ted@gould.cx> | 2010-10-14 12:27:33 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-10-14 12:27:33 -0500 |
commit | 1f98fff4723354444fe41fe3492b4a1681fdef14 (patch) | |
tree | c87484326518771f544d57b7cbd9bf304eef846f /libdbusmenu-glib | |
parent | 9b7061a33a014f2b83d970698b31ff5e0e33e129 (diff) | |
download | libdbusmenu-1f98fff4723354444fe41fe3492b4a1681fdef14.tar.gz libdbusmenu-1f98fff4723354444fe41fe3492b4a1681fdef14.tar.bz2 libdbusmenu-1f98fff4723354444fe41fe3492b4a1681fdef14.zip |
Fleshing out the property get function
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/server.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c index aabad9a..7a1b98e 100644 --- a/libdbusmenu-glib/server.c +++ b/libdbusmenu-glib/server.c @@ -497,8 +497,14 @@ bus_method_call (GDBusConnection * connection, const gchar * sender, const gchar static GVariant * bus_get_prop (GDBusConnection * connection, const gchar * sender, const gchar * path, const gchar * interface, const gchar * property, GError ** error, gpointer user_data) { + DbusmenuServerPrivate * priv = DBUSMENU_SERVER_GET_PRIVATE(user_data); + + /* None of these should happen */ + g_return_val_if_fail(g_strcmp0(interface, DBUSMENU_INTERFACE) == 0, NULL); + g_return_val_if_fail(g_strcmp0(path, priv->dbusobject) == 0, NULL); + g_return_val_if_fail(g_strcmp0(property, "version") == 0, NULL); - return NULL; + return g_variant_new_uint32(DBUSMENU_VERSION_NUMBER); } /* Handle actually signalling in the idle loop. This way we collect all |