Update GtkToolPalette to GtkStyleContext.

This commit is contained in:
Carlos Garnacho 2011-01-03 23:21:46 +01:00
parent badbef33ab
commit 804e8a0572

View File

@ -757,9 +757,8 @@ gtk_tool_palette_realize (GtkWidget *widget)
gtk_widget_set_window (widget, window); gtk_widget_set_window (widget, window);
gdk_window_set_user_data (window, widget); gdk_window_set_user_data (window, widget);
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), window);
window, GTK_STATE_NORMAL);
gtk_container_forall (GTK_CONTAINER (widget), gtk_container_forall (GTK_CONTAINER (widget),
(GtkCallback) gtk_widget_set_parent_window, (GtkCallback) gtk_widget_set_parent_window,