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 703781 - app menu item disappears when calling gtk_widget_set_sensitive(widget, FALSE)
app menu item disappears when calling gtk_widget_set_sensitive(widget, FALSE)
Status: RESOLVED FIXED
Product: gtk-osx
Classification: Other
Component: General
unspecified
Other Mac OS
: Normal normal
: ---
Assigned To: GTK Mac Integration Maintainers
GTK Mac Integration Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-07-08 11:07 UTC by Tom Schoonjans
Modified: 2014-01-24 15:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
bug testcase (2.11 KB, text/plain)
2013-07-08 11:07 UTC, Tom Schoonjans
Details

Description Tom Schoonjans 2013-07-08 11:07:06 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)
Comment 1 John Ralls 2013-07-13 23:41:20 UTC
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.