aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-22 23:44:06 -0500
committerTed Gould <ted@canonical.com>2009-04-22 23:44:06 -0500
commitc292100a3d95aac71c7cb943cbd3df9a204c0a70 (patch)
tree27f558af3263bb288b249a6faa83758424d73baf /src
parent2f6ccdfe4ee4d5c30123edcea9fcd4c4d54d8ea7 (diff)
downloadlibayatana-indicator-c292100a3d95aac71c7cb943cbd3df9a204c0a70.tar.gz
libayatana-indicator-c292100a3d95aac71c7cb943cbd3df9a204c0a70.tar.bz2
libayatana-indicator-c292100a3d95aac71c7cb943cbd3df9a204c0a70.zip
Get the submenu set right.
Diffstat (limited to 'src')
-rw-r--r--src/applet-main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/applet-main.c b/src/applet-main.c
index 7f3a210..7c39d6d 100644
--- a/src/applet-main.c
+++ b/src/applet-main.c
@@ -120,8 +120,8 @@ load_module (const gchar * name, GtkWidget * menu)
gtk_container_add(GTK_CONTAINER(menuitem), hbox);
gtk_widget_show(hbox);
- if (menu != NULL) {
- gtk_menu_shell_append(GTK_MENU_SHELL(menuitem), GTK_WIDGET(lmenu));
+ if (lmenu != NULL) {
+ gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), GTK_WIDGET(lmenu));
}
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);