summaryrefslogtreecommitdiff
path: root/gtk/gtkoffscreenwindow.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2011-01-04 02:41:04 +0100
committerCarlos Garnacho <carlosg@gnome.org>2011-01-04 03:06:26 +0100
commitf9a5c14ac0c4077c1dc15145050b4554611cd03c (patch)
tree027a35d99d7542b23518baf5ce959f3961eb0846 /gtk/gtkoffscreenwindow.c
parent7e2dea1dffc18c0ba8ec77cd24ab3b05b6fee35e (diff)
downloadgtk+-f9a5c14ac0c4077c1dc15145050b4554611cd03c.tar.gz
Make GtkOffscreenWindow use GtkStyleContext
Diffstat (limited to 'gtk/gtkoffscreenwindow.c')
-rw-r--r--gtk/gtkoffscreenwindow.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/gtkoffscreenwindow.c b/gtk/gtkoffscreenwindow.c
index ffa0e513e6..306c3184a9 100644
--- a/gtk/gtkoffscreenwindow.c
+++ b/gtk/gtkoffscreenwindow.c
@@ -193,9 +193,8 @@ gtk_offscreen_window_realize (GtkWidget *widget)
if (child)
gtk_widget_set_parent_window (child, window);
- gtk_widget_style_attach (widget);
- gtk_style_set_background (gtk_widget_get_style (widget),
- window, GTK_STATE_NORMAL);
+ gtk_style_context_set_background (gtk_widget_get_style_context (widget),
+ window);
}
static void