aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-01-19 11:48:32 -0600
committerTed Gould <ted@gould.cx>2012-01-19 11:48:32 -0600
commite14c0872345cc6761b4b81adedf1aad8d694872a (patch)
tree32be58507f5ff3a5111fcec50b9f09083c60d21e /tools
parentf2f9c5b63cfc8e9c9b8dfb77d2f8f9aed687720e (diff)
downloadlibayatana-indicator-e14c0872345cc6761b4b81adedf1aad8d694872a.tar.gz
libayatana-indicator-e14c0872345cc6761b4b81adedf1aad8d694872a.tar.bz2
libayatana-indicator-e14c0872345cc6761b4b81adedf1aad8d694872a.zip
Adding a warning for entries that do not set their parent_object
Diffstat (limited to 'tools')
-rw-r--r--tools/indicator-loader.c4
1 files changed, 4 insertions, 0 deletions
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);