GNOME Bugzilla – Bug 703781
app menu item disappears when calling gtk_widget_set_sensitive(widget, FALSE)
Last modified: 2014-01-24 15:53:17 UTC
Created attachment 248607 [details] bug testcase Overview: Using gtk-mac-integration 2.0.1, menu items added to the app menu, disappear from the menu after gtk_widget_set_sensitive(menuItem, FALSE) has been called Steps to reproduce: 1) Create a menu item for gtk_menu_item_new_with_label 2) Insert it into the app menu with gtkosx_application_insert_app_menu_item 3) call gtk_widget_set_sensitive(menuitem, FALSE) The behavior changes when calling gtk_widget_show immediately creating the menu item: in this case the menu item doesn't disappear after the call to gtk_widget_set_sensitive, but instead remains there as if the gtk_widget_set_sensitive was ignored The attached example showcases this Actual results: menuitem disappears Expected results: menuitem should remain, but become insensitive (greyed out and become unresponsive to clicks) Test platform: Gtk 2.24.19 (built with MacPorts and with quartz support) gtk-mac-integration 2.0.1 (built with MacPorts)
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.