GNOME Bugzilla – Bug 624707
critical warnings when showing gnome-terminal menus on gtk master
Last modified: 2010-07-22 15:20:09 UTC
(This is with gtk 3 master as of commit a9e96106f9a54825e5a875fd3806ac3b1cd96150.) Steps to repro: build g-t (and vte) from master, start "./gnome-terminal --disable-factory --show-menubar", then either * right-click, or press the menu key, to activate the context menu * click on one of the toplevel menus, or press one of its mnemonics Result: lots of critical warnings on console: Gtk-CRITICAL **: gtk_widget_get_visible: assertion `GTK_IS_WIDGET (widget)' failed
+ Trace 222901
Created attachment 166332 [details] [review] Check if a menuitems child actually exists before using it Check seems to have gone lost during GtkBin sealing in commit 4427760b. Fixes critical warnings when opening menus containing separators for the first time. https://bugzilla.gnome.org/show_bug.cgi?id=624707
I haven't tested it with gnome-terminal but with a gtk3-patched eog where it successfully fixed these critical warnings.
Review of attachment 166332 [details] [review]: looks good. please, commit.
Created attachment 166394 [details] [review] Check if a childs actually exists before using it More complete patch
Review of attachment 166394 [details] [review]: looks good. Javier, as a nitpick - can you change all the "if (child && ...)" into "if (child != NULL && ...)"? it fits in the coding style mclasen uses
Comment on attachment 166394 [details] [review] Check if a childs actually exists before using it Sure, committed with your comments: commit c1a2ecc369b8419fdd835bb4d45b48982bfb6dab
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.