aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-09-30 10:21:15 -0400
committerKen VanDine <ken.vandine@canonical.com>2011-09-30 10:21:15 -0400
commit7acdb5187d4a99fe01f53c8bd6fffcf7e61fd8bc (patch)
tree5ef49834234943834a32d749404cbbe403273ba8 /libdbusmenu-glib
parent1e2a29f24c3f28fd4d7e22ee6f0e873fbcf47e4a (diff)
downloadlibdbusmenu-7acdb5187d4a99fe01f53c8bd6fffcf7e61fd8bc.tar.gz
libdbusmenu-7acdb5187d4a99fe01f53c8bd6fffcf7e61fd8bc.tar.bz2
libdbusmenu-7acdb5187d4a99fe01f53c8bd6fffcf7e61fd8bc.zip
id of 0 in dbusmenu_client_send_about_to_show is valid, and used in appindicators like nm-applet (LP: #862989)
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r--libdbusmenu-glib/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c
index a7f4da5..9129db5 100644
--- a/libdbusmenu-glib/client.c
+++ b/libdbusmenu-glib/client.c
@@ -1610,7 +1610,7 @@ void
dbusmenu_client_send_about_to_show(DbusmenuClient * client, gint id, void (*cb)(gpointer data), gpointer cb_data)
{
g_return_if_fail(DBUSMENU_CLIENT(client));
- g_return_if_fail(id > 0);
+ g_return_if_fail(id >= 0);
DbusmenuClientPrivate * priv = DBUSMENU_CLIENT_GET_PRIVATE(client);
g_return_if_fail(priv != NULL);