gdk: Rewrite background handling
Now the window background is a cairo_pattern_t. The backends will try to set this as good as they can on the windowing system, but no guarantees are made on wether the windowing system supports the pattern. Also gets rid of GDK_NO_BG as undefined behavior is not a good idea to support, and GDK_NO_BG effectively made the window's contents undefined. It wasn't effectively used in GTK anyway.
This commit is contained in:
@ -678,6 +678,8 @@ void gdk_window_set_background (GdkWindow *window,
|
||||
void gdk_window_set_back_pixmap (GdkWindow *window,
|
||||
GdkPixmap *pixmap,
|
||||
gboolean parent_relative);
|
||||
void gdk_window_set_background_pattern (GdkWindow *window,
|
||||
cairo_pattern_t *pattern);
|
||||
cairo_pattern_t *gdk_window_get_background_pattern (GdkWindow *window);
|
||||
|
||||
void gdk_window_set_cursor (GdkWindow *window,
|
||||
|
||||
Reference in New Issue
Block a user