aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-27 09:31:43 -0500
committerTed Gould <ted@canonical.com>2009-08-27 09:31:43 -0500
commit86cab293762c8b864a58f3e297c057cc05794daf (patch)
tree84cfbeb206edaf98c56e90f27eb9931e5a7fd1ee
parentdb3b38d030508339bd9ce3f45dd84808b6f24257 (diff)
downloadayatana-indicator-messages-86cab293762c8b864a58f3e297c057cc05794daf.tar.gz
ayatana-indicator-messages-86cab293762c8b864a58f3e297c057cc05794daf.tar.bz2
ayatana-indicator-messages-86cab293762c8b864a58f3e297c057cc05794daf.zip
Checking args from libdbusmenu, stealing code from there. Comments by Neil.
-rw-r--r--src/indicator-messages.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/indicator-messages.c b/src/indicator-messages.c
index 0a1002d..c410ef7 100644
--- a/src/indicator-messages.c
+++ b/src/indicator-messages.c
@@ -140,6 +140,10 @@ setup_icon_proxy (gpointer userdata)
static gboolean
new_launcher_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, DbusmenuClient * client)
{
+ g_return_val_if_fail(DBUSMENU_IS_MENUITEM(newitem), FALSE);
+ g_return_val_if_fail(DBUSMENU_IS_GTKCLIENT(client), FALSE);
+ /* Note: not checking parent, it's reasonable for it to be NULL */
+
GtkMenuItem * gmi = GTK_MENU_ITEM(gtk_menu_item_new());
GtkWidget * vbox = gtk_vbox_new(TRUE, 2);