summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2011-01-10 02:21:06 +0100
committerCarlos Garnacho <carlosg@gnome.org>2011-01-10 03:49:59 +0100
commitf506fc3e93df6d701fe141dda39a55b5f2954a83 (patch)
tree061fc6678126477ef21bf6a0aee12af2bc35b20c
parente94b515171bd4700a826e9f5d82c31abb34d2667 (diff)
downloadgtk+-f506fc3e93df6d701fe141dda39a55b5f2954a83.tar.gz
Remove recent GtkStyle usage in GtkWindow
GtkStyleContext API is used instead.
-rw-r--r--gtk/gtkwindow.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index b92627a679..371e69cca8 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;