GNOME Bugzilla – Bug 614510
Needed func for GTK_WIDGET_SET_FLAGS (widget, TOPLEVEL) ?
Last modified: 2010-04-26 19:20:17 UTC
This function should be substituted in GTK+ internal code Should be a public api for this? See https://bugzilla.gnome.org/show_bug.cgi?id=69872#c99 for a former discussion.
Created attachment 158498 [details] [review] Introduce _gtk_widget_set_is_toplevel() internal function
Created attachment 158499 [details] [review] Replace GTK_WIDGET_SET_FLAGS (widget, TOPLEVEL) by the new function
Looks good to me. I guess you could do this in one commit since it doesn't really make sense on its own.
Bugzilla spits obscure errors at me when I try to set the review state. Regard this as 'reviewed' anyway.
Created attachment 158714 [details] [review] Introduce _gtk_widget_set_is_toplevel() internal function.v2 Updated patch
Review of attachment 158714 [details] [review]: ::: gtk/gtkwindow.c @@ +8405,3 @@ { else + _gtk_widget_set_is_toplevel (GTK_WIDGET (window), TRUE); this should be: _gtk_widget_set_is_toplevel (GTK_WIDGET (window), FALSE); also, since we're casting twenty bazillion times in the same function, can we cast just once to GtkWidget and be done with it?
Comment on attachment 158714 [details] [review] Introduce _gtk_widget_set_is_toplevel() internal function.v2 committed with your comments commit 45257e31c721d1ffbd2cdcfb25ae637d7e1e7b29
This problem has been fixed in the development version. The fix will be available in the next major software release. Thanks for the reviews.