GNOME Bugzilla – Bug 724799
gtk_menu_tool_button_set_menu () broken in gtk3-3.11.6+
Last modified: 2014-02-22 02:42:10 UTC
gtk_menu_tool_button_set_menu does not work anymore in gtk3-3.11.6+, specifically the arrow button stays insensitive. See sample program below. Happens with: gtk3-3.11.6-1.fc21 gtk3-3.11.7-1.fc21 Last working version is: gtk3-3.11.6-5.fc21 Sample program: ---------------------------------------------- #include <gtk/gtk.h> int main (int argc, char *argv[]) { GtkWidget *window; GtkWidget *menuitem; GtkWidget *menu; GtkToolItem *toolmenubutton; GtkWidget *toolbar; gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window), "Window"); menuitem = gtk_menu_item_new_with_label ("Menu Item"); menu = gtk_menu_new (); gtk_container_add (GTK_CONTAINER (menu), GTK_WIDGET (menuitem)); toolmenubutton = gtk_menu_tool_button_new (NULL, "Menu"); gtk_menu_tool_button_set_menu (GTK_MENU_TOOL_BUTTON(toolmenubutton), GTK_WIDGET (menu)); toolbar = gtk_toolbar_new (); gtk_container_add (GTK_CONTAINER (toolbar), GTK_WIDGET (toolmenubutton)); gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (toolbar)); g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); gtk_widget_show_all (window); gtk_widget_show_all (menu); gtk_main (); return 0; } ----------------------------------------------
Sorry typo: Last working version is: gtk3-3.11.5-1.fc21