Make GtkWin32EmbedWidget use GtkStyleContext

This commit is contained in:
Carlos Garnacho 2011-01-04 02:13:01 +01:00
parent 665a94e0f3
commit 41389cb435

View File

@ -245,8 +245,8 @@ gtk_win32_embed_widget_realize (GtkWidget *widget)
styles = GetWindowLongPtr(GDK_WINDOW_HWND (gdk_window), GWL_STYLE); styles = GetWindowLongPtr(GDK_WINDOW_HWND (gdk_window), GWL_STYLE);
SetWindowLongPtrW(GDK_WINDOW_HWND (gdk_window), GWL_STYLE, styles | WS_TABSTOP); SetWindowLongPtrW(GDK_WINDOW_HWND (gdk_window), GWL_STYLE, styles | WS_TABSTOP);
gtk_widget_style_attach (widget); gtk_style_context_set_background (gtk_widget_get_style_context (widget),
gtk_style_set_background (gtk_widget_get_style (widget), gdk_window, GTK_STATE_NORMAL); gdk_window);
} }
static void static void