aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-01-21 14:35:13 -0600
committerTed Gould <ted@canonical.com>2009-01-21 14:35:13 -0600
commitcc97025466f6d314fd66025cfebe919195c35c1e (patch)
treeae51b68a8206ce4bfd95ec918303e6bbe23c017a
parent78320a436b60ba42a717640205a890d3ed90a960 (diff)
downloadayatana-indicator-messages-cc97025466f6d314fd66025cfebe919195c35c1e.tar.gz
ayatana-indicator-messages-cc97025466f6d314fd66025cfebe919195c35c1e.tar.bz2
ayatana-indicator-messages-cc97025466f6d314fd66025cfebe919195c35c1e.zip
Forgot to connect in the signal handler, oops.
-rw-r--r--src/indicator-messages.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/indicator-messages.c b/src/indicator-messages.c
index 166d9e5..677f1ed 100644
--- a/src/indicator-messages.c
+++ b/src/indicator-messages.c
@@ -62,7 +62,7 @@ subtype_cb (IndicateListener * listener, IndicateListenerServer * server, Indica
g_hash_table_insert(imHash, hasher, menuitem);
- gtk_menu_shell_prepend(menushell, menuitem);
+ gtk_menu_shell_prepend(GTK_MENU_SHELL(menushell), menuitem);
#if 0
} else if (!strcmp(propertydata, "mail")) {
gpointer pntr_menu_item;
@@ -112,8 +112,13 @@ get_menu_item (void)
GtkWidget * main = gtk_menu_item_new_with_label("Message Me");
-
+ GtkWidget * submenu = gtk_menu_new();
+ gtk_menu_item_set_submenu(GTK_MENU_ITEM(main), submenu);
+ gtk_widget_show(submenu);
gtk_widget_show(main);
+
+ g_signal_connect(listener, "indicator-added", G_CALLBACK(indicator_added), submenu);
+
return main;
}