diff options
author | Alexander Larsson <alexl@redhat.com> | 2009-11-03 15:38:35 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2009-11-05 13:58:24 +0100 |
commit | 92efb23b4b416c15c709b5ea75444bb844f9f58a (patch) | |
tree | 2968e888632921dd58f8609c8a4f2fa8d56d5ecb /gdk | |
parent | db8a34f16a8f840a6a70f56316d653cfa6e74a5b (diff) | |
download | gdk-pixbuf-92efb23b4b416c15c709b5ea75444bb844f9f58a.tar.gz |
Add supports_native_bg to GdkWindowImpl
Backends that support native window background setting (and that clears
new window areas to this color/pixmap) should set this to true.
Currently only X11 supports this.
(cherry picked from commit 39993f147f05a3711b415635c592200f28db5dcd)
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/gdkwindowimpl.h | 1 | ||||
-rw-r--r-- | gdk/x11/gdkwindow-x11.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/gdk/gdkwindowimpl.h b/gdk/gdkwindowimpl.h index 00f2f1b13..3a5029b01 100644 --- a/gdk/gdkwindowimpl.h +++ b/gdk/gdkwindowimpl.h @@ -146,6 +146,7 @@ struct _GdkWindowImplIface void (* input_window_destroy) (GdkWindow *window); void (* input_window_crossing)(GdkWindow *window, gboolean enter); + gboolean supports_native_bg; }; /* Interface Functions */ diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index a8dd83b6b..c215e8721 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -5606,6 +5606,7 @@ gdk_window_impl_iface_init (GdkWindowImplIface *iface) iface->destroy = _gdk_x11_window_destroy; iface->input_window_destroy = _gdk_input_window_destroy; iface->input_window_crossing = _gdk_input_crossing_event; + iface->supports_native_bg = TRUE; } #define __GDK_WINDOW_X11_C__ |