After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 724799 - gtk_menu_tool_button_set_menu () broken in gtk3-3.11.6+
gtk_menu_tool_button_set_menu () broken in gtk3-3.11.6+
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
3.11.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2014-02-20 13:54 UTC by Sandro Mani
Modified: 2014-02-22 02:42 UTC
See Also:
GNOME target: 3.12
GNOME version: ---



Description Sandro Mani 2014-02-20 13:54:57 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;
}
----------------------------------------------
Comment 1 Sandro Mani 2014-02-20 13:55:37 UTC
Sorry typo:
Last working version is:
gtk3-3.11.5-1.fc21