[gtk+] Remove recent GtkStyle usage in GtkWindow



commit f506fc3e93df6d701fe141dda39a55b5f2954a83
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Jan 10 02:21:06 2011 +0100

    Remove recent GtkStyle usage in GtkWindow
    
    GtkStyleContext API is used instead.

 gtk/gtkwindow.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index b92627a..371e69c 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -4889,8 +4889,7 @@ gtk_window_realize (GtkWidget *widget)
       gtk_widget_set_window (widget, gdk_window);
       gdk_window_set_user_data (gdk_window, widget);
 
-      gtk_widget_style_attach (widget);
-      gtk_style_set_background (gtk_widget_get_style (widget), gdk_window, GTK_STATE_NORMAL);
+      gtk_style_context_set_background (gtk_widget_get_style_context (widget), gdk_window);
 
       gdk_window_enable_synchronized_configure (gdk_window);
       return;



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