[gtk+] gtkflowbox: Fix warning when realizing



commit fa6f83d89a85cad89b2e1bd3d008b946a4f37ac6
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Oct 17 15:12:58 2013 -0400

    gtkflowbox: Fix warning when realizing
    
    set_background needs the widget's window to be set.

 gtk/gtkflowbox.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index 96d57f2..e9c6367 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]