diff options
author | Ted Gould <ted@gould.cx> | 2010-09-15 08:58:07 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-09-15 08:58:07 -0500 |
commit | b933e7cfa64bd777ba7dc2d13ab8fa102f5cd4b4 (patch) | |
tree | 764c8863087f2c2c26aba33687c869247aacacd9 /tools/indicator-loader.c | |
parent | f0cd0042e672c6d7c230aea322ff3fb868237ea6 (diff) | |
download | libayatana-indicator-b933e7cfa64bd777ba7dc2d13ab8fa102f5cd4b4.tar.gz libayatana-indicator-b933e7cfa64bd777ba7dc2d13ab8fa102f5cd4b4.tar.bz2 libayatana-indicator-b933e7cfa64bd777ba7dc2d13ab8fa102f5cd4b4.zip |
Putting a printout in for showing menus.
Diffstat (limited to 'tools/indicator-loader.c')
-rw-r--r-- | tools/indicator-loader.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/indicator-loader.c b/tools/indicator-loader.c index 0f4a7be..747b216 100644 --- a/tools/indicator-loader.c +++ b/tools/indicator-loader.c @@ -79,6 +79,13 @@ entry_removed (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer user return; } +static void +menu_show (IndicatorObject * io, IndicatorObjectEntry * entry, guint timestamp, gpointer user_data) +{ + g_debug("Show Menu: %s", entry->label != NULL ? gtk_label_get_text(entry->label) : "No Label"); + return; +} + static gboolean load_module (const gchar * name, GtkWidget * menu) { @@ -97,6 +104,7 @@ load_module (const gchar * name, GtkWidget * menu) /* Connect to it's signals */ g_signal_connect(G_OBJECT(io), INDICATOR_OBJECT_SIGNAL_ENTRY_ADDED, G_CALLBACK(entry_added), menu); g_signal_connect(G_OBJECT(io), INDICATOR_OBJECT_SIGNAL_ENTRY_REMOVED, G_CALLBACK(entry_removed), menu); + g_signal_connect(G_OBJECT(io), INDICATOR_OBJECT_SIGNAL_MENU_SHOW, G_CALLBACK(menu_show), NULL); /* Work on the entries */ GList * entries = indicator_object_get_entries(io); |