From e14c0872345cc6761b4b81adedf1aad8d694872a Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 19 Jan 2012 11:48:32 -0600 Subject: Adding a warning for entries that do not set their parent_object --- tools/indicator-loader.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools') diff --git a/tools/indicator-loader.c b/tools/indicator-loader.c index 59e90b1..10952dc 100644 --- a/tools/indicator-loader.c +++ b/tools/indicator-loader.c @@ -45,6 +45,10 @@ entry_added (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer user_d { g_debug("Signal: Entry Added"); + if (entry->parent_object == NULL) { + g_warning("Entry '%p' does not have a parent object", entry); + } + GtkWidget * menuitem = gtk_menu_item_new(); #if GTK_CHECK_VERSION(3,0,0) GtkWidget * hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 3); -- cgit v1.2.3