forked from AuroraMiddleware/gtk
Use gdk_window_set_background_pattern() to set parent-relative bakground
This commit is contained in:
parent
20d1030823
commit
134683c9be
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user