gtkflowbox: Fix warning when realizing

set_background needs the widget's window to be set.
This commit is contained in:
Jasper St. Pierre 2013-10-17 15:12:58 -04:00
parent 9bd87b37bc
commit fa6f83d89a

View File

@ -3077,9 +3077,9 @@ gtk_flow_box_realize (GtkWidget *widget)
window = gdk_window_new (gtk_widget_get_parent_window (GTK_WIDGET (box)),
&attributes, GDK_WA_X | GDK_WA_Y);
gtk_style_context_set_background (gtk_widget_get_style_context (GTK_WIDGET (box)), window);
gtk_widget_register_window (GTK_WIDGET (box), window);
gtk_widget_set_window (GTK_WIDGET (box), window);
gtk_style_context_set_background (gtk_widget_get_style_context (GTK_WIDGET (box)), window);
}
static void