aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);