GNOME Bugzilla – Bug 625104
Don't try and use the child of a GtkSeparatorMenuItem
Last modified: 2010-08-08 04:19:16 UTC
Created attachment 166432 [details] [review] Don't try and use the child of a GtkSeparatorMenuItem Patch attached to prevent crashes when using a GtkComboBox with a popup menu.
Created attachment 166437 [details] [review] Do not use the child if Its not a GtkCellLayout More complete patch that fix this an other similar issues
What are the similar issues? The second patch looks very similar to the first one, with some differences in intendation.
(In reply to comment #2) > What are the similar issues? The second patch looks very similar to the first > one, with some differences in intendation. Javier's patch would be better in the case that there are other GtkMenuItem subclasses which don't have any children but do have a submenu, since in that case mine fails to recurse to the submenu.
Sorry, seems that I didnt see the complete patch. the second patch resolves the same isues. I simply use the same aproach that exist before the commit that introduce the bug ( commit 4427760bcc330f60ec5778be04274f9f8073a84d )
Comment on attachment 166437 [details] [review] Do not use the child if Its not a GtkCellLayout Looks good, please commit. To 2.22 as well, if it applies there.
Comment on attachment 166437 [details] [review] Do not use the child if Its not a GtkCellLayout comitted in master (this bug doesnt affect gtk-2-22 branch) in commit dec067f25a4d451e147db2161fdd6d41b824a863
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.