summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/applet.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mate-panel/applet.c b/mate-panel/applet.c
index 5df797be..37cb600a 100644
--- a/mate-panel/applet.c
+++ b/mate-panel/applet.c
@@ -645,11 +645,10 @@ applet_show_menu (AppletInfo *info,
panel_widget = mate_panel_applet_get_panel_widget (info);
- if (info->menu == NULL)
+ if (info->menu == NULL) {
info->menu = mate_panel_applet_create_menu (info);
-
- if (info->menu == NULL)
- return;
+ g_return_if_fail (info->menu != NULL);
+ }
mate_panel_applet_menu_set_recurse (GTK_MENU (info->menu),
"menu_panel",