Commit 134683c9 authored by Benjamin Otte's avatar Benjamin Otte

Use gdk_window_set_background_pattern() to set parent-relative bakground

parent 20d10308
......@@ -483,7 +483,6 @@ gtk_handle_box_realize (GtkWidget *widget)
gtk_style_set_background (style, window, state);
gtk_style_set_background (style, priv->bin_window, state);
gtk_style_set_background (style, priv->float_window, state);
gdk_window_set_back_pixmap (window, NULL, TRUE);
}
static void
......
......@@ -359,8 +359,8 @@ gtk_misc_realize (GtkWidget *widget)
window = gdk_window_new (gtk_widget_get_parent_window (widget), &attributes, attributes_mask);
gtk_widget_set_window (widget, window);
gdk_window_set_user_data (window, widget);
gdk_window_set_background_pattern (window, NULL);
gtk_widget_style_attach (widget);
gdk_window_set_back_pixmap (window, NULL, TRUE);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment