# HG changeset patch # User Jan Dj¸«£rv # Date 1177654876 0 # Node ID 1962a74982ce7cee0e0a06603cf8d8d98a15bbf9 # Parent bf14ac338d390da40341501a3202444532378f41 (xg_update_menubar, create_menus): Create empty submenu for menu bar items. diff -r bf14ac338d39 -r 1962a74982ce src/gtkutil.c --- a/src/gtkutil.c Fri Apr 27 01:18:33 2007 +0000 +++ b/src/gtkutil.c Fri Apr 27 06:21:16 2007 +0000 @@ -2192,7 +2192,9 @@ cl_data, &group); - if (item->contents) + /* Create a possibly empty submenu for menu bar items, since some + themes don't highlight items correctly without it. */ + if (item->contents || menu_bar_p) { GtkWidget *submenu = create_menus (item->contents, f, @@ -2479,8 +2481,14 @@ cl_data, &group); + /* Create a possibly empty submenu for menu bar items, since some + themes don't highlight items correctly without it. */ + GtkWidget *submenu = create_menus (NULL, f, + select_cb, NULL, highlight_cb, + 0, 0, 0, 0, cl_data, 0); gtk_widget_set_name (w, MENU_ITEM_NAME); gtk_menu_shell_insert (GTK_MENU_SHELL (menubar), w, pos); + gtk_menu_item_set_submenu (GTK_MENU_ITEM (w), submenu); g_list_free (*list); *list = iter = gtk_container_get_children (GTK_CONTAINER (menubar));