aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-04 20:45:14 -0800
committerTed Gould <ted@gould.cx>2010-02-04 20:45:14 -0800
commitf53b4c6d5d510948d17ffb8cd164b8429aaec552 (patch)
tree91314684752b8aaa7257501093c9df0cf22db8e2
parentac26a4454690ed124e9efa5f5be6b4c3ac05c1b2 (diff)
downloadlibdbusmenu-f53b4c6d5d510948d17ffb8cd164b8429aaec552.tar.gz
libdbusmenu-f53b4c6d5d510948d17ffb8cd164b8429aaec552.tar.bz2
libdbusmenu-f53b4c6d5d510948d17ffb8cd164b8429aaec552.zip
Better error value now that we're on gint
-rw-r--r--libdbusmenu-glib/menuitem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdbusmenu-glib/menuitem.c b/libdbusmenu-glib/menuitem.c
index a6f0e40..243b07e 100644
--- a/libdbusmenu-glib/menuitem.c
+++ b/libdbusmenu-glib/menuitem.c
@@ -398,7 +398,7 @@ dbusmenu_menuitem_new_with_id (gint id)
gint
dbusmenu_menuitem_get_id (DbusmenuMenuitem * mi)
{
- g_return_val_if_fail(DBUSMENU_IS_MENUITEM(mi), 0);
+ g_return_val_if_fail(DBUSMENU_IS_MENUITEM(mi), -1);
GValue retval = {0};
g_value_init(&retval, G_TYPE_INT);