summaryrefslogtreecommitdiff
path: root/gtk/gtkwin32embedwidget.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2011-01-04 02:13:01 +0100
committerCarlos Garnacho <carlosg@gnome.org>2011-01-04 03:06:17 +0100
commit41389cb4355666bcff7f52eb069b7c9e106675a7 (patch)
treec3cd20c672333cc983084c77d784cfd36e34797d /gtk/gtkwin32embedwidget.c
parent665a94e0f31106d9b85510a552fa2ddaa6dbdff1 (diff)
downloadgtk+-41389cb4355666bcff7f52eb069b7c9e106675a7.tar.gz
Make GtkWin32EmbedWidget use GtkStyleContext
Diffstat (limited to 'gtk/gtkwin32embedwidget.c')
-rw-r--r--gtk/gtkwin32embedwidget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkwin32embedwidget.c b/gtk/gtkwin32embedwidget.c
index 059be6623c..623e8d9b38 100644
--- a/gtk/gtkwin32embedwidget.c
+++ b/gtk/gtkwin32embedwidget.c
@@ -245,8 +245,8 @@ gtk_win32_embed_widget_realize (GtkWidget *widget)
styles = GetWindowLongPtr(GDK_WINDOW_HWND (gdk_window), GWL_STYLE);
SetWindowLongPtrW(GDK_WINDOW_HWND (gdk_window), GWL_STYLE, styles | WS_TABSTOP);
- 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);
}
static void