GNOME Bugzilla – Bug 312920
gtkmenutoolbutton needs to deactivate menu when it's set insensitive
Last modified: 2005-08-08 18:34:56 UTC
This code was previously in button_state_changed_cb, but that's currently #if 0'd out, and to be removed, as per bug 310589 comment 3. Attached patch does that, and fixes the problem. Ok to commit?
Created attachment 50407 [details] [review] proposed patch
Looks good, if you have tested that it works when the menubutton becomes insensitive while the arrow button is pressed (ie., the arrow doesn't stay down or anything like that).
Yes, tests/testtoolbar tests for this, works fine. Deactivating the menu sets the arrow button inactive, from menu_deactivate_cb().
2005-08-08 Christian Persch <chpe@cvs.gnome.org> * gtk/gtkmenutoolbutton.c: (gtk_menu_tool_button_state_changed), (gtk_menu_tool_button_class_init), (popup_menu_under_arrow), (gtk_menu_tool_button_init): Deactivate the menu when the button becomes insensitive, and remove dead code. Fixes bug #312920.