diff options
author | Ted Gould <ted@gould.cx> | 2009-12-09 10:19:41 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2009-12-09 10:19:41 -0600 |
commit | c04823067179ec819fee4a9fb7ff382b108115e6 (patch) | |
tree | 68db94aded377b42d27c507c0bf7977b3848b2d0 | |
parent | d2a430d295bcfb1a43183920e5a21d6140c26aba (diff) | |
download | libdbusmenu-c04823067179ec819fee4a9fb7ff382b108115e6.tar.gz libdbusmenu-c04823067179ec819fee4a9fb7ff382b108115e6.tar.bz2 libdbusmenu-c04823067179ec819fee4a9fb7ff382b108115e6.zip |
Making a proper error on GroupProperties not being implemented.
-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 f1177cf..ba79f55 100644 --- a/libdbusmenu-glib/server.c +++ b/libdbusmenu-glib/server.c @@ -78,6 +78,7 @@ enum { INVALID_MENUITEM_ID, INVALID_PROPERTY_NAME, UNKNOWN_DBUS_ERROR, + NOT_IMPLEMENTED, LAST_ERROR }; @@ -451,7 +452,12 @@ _dbusmenu_server_get_properties (DbusmenuServer * server, guint id, GPtrArray * static gboolean _dbusmenu_server_get_group_properties (DbusmenuServer * server, GArray * ids, GArray * properties, GHashTable ** values, GError ** error) { - + if (error != NULL) { + g_set_error(error, + error_quark(), + NOT_IMPLEMENTED, + "The GetGroupProperties function is not implemented, sorry."); + } return FALSE; } |