forked from AuroraMiddleware/gtk
widget: Unset window-unfocused in gtk_widget_unparent()
Widgets without a parent aren't inside a toplevel window so we must remove window-unfocused as it doesn't make sense outside a toplevel. https://bugzilla.gnome.org/show_bug.cgi?id=661428
This commit is contained in:
parent
807a449f29
commit
7a6babfd02
@ -3784,6 +3784,9 @@ gtk_widget_unparent (GtkWidget *widget)
|
||||
gtk_widget_queue_compute_expand (old_parent);
|
||||
}
|
||||
|
||||
/* Unset window-unfocused since we are no longer inside a toplevel window */
|
||||
gtk_widget_unset_state_flags (widget, GTK_STATE_FLAG_WINDOW_UNFOCUSED);
|
||||
|
||||
g_signal_emit (widget, widget_signals[PARENT_SET], 0, old_parent);
|
||||
if (toplevel)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user