[gtk+/rendering-cleanup: 41/141] gdk: Remove supports_native_bg on WindowImplIface
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 41/141] gdk: Remove supports_native_bg on WindowImplIface
- Date: Mon, 13 Sep 2010 23:48:20 +0000 (UTC)
commit 53223dd5bf9b7fca6f1daebd0d60166f8ed5931b
Author: Benjamin Otte <otte redhat com>
Date: Sun Aug 15 03:27:30 2010 +0200
gdk: Remove supports_native_bg on WindowImplIface
This will not be TRUE for anything anymore, once we fix background
handling.
gdk/gdkwindow.c | 26 +-------------------------
gdk/gdkwindowimpl.h | 1 -
gdk/x11/gdkwindow-x11.c | 1 -
3 files changed, 1 insertions(+), 27 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 5ddec97..eb844aa 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -3809,28 +3809,6 @@ gdk_window_clear (GdkWindow *window)
width, height);
}
-/* TRUE if the window clears to the same pixels as a native
- window clear. This means you can use the native window
- clearing operation, and additionally it means any clearing
- done by the native window system for you will already be right */
-static gboolean
-clears_as_native (GdkWindowObject *private)
-{
- GdkWindowObject *next;
-
- next = private;
- do
- {
- private = next;
- if (gdk_window_has_impl (private))
- return TRUE;
- next = private->parent;
- }
- while (private->bg_pixmap == GDK_PARENT_RELATIVE_BG &&
- next && next->window_type != GDK_WINDOW_ROOT);
- return FALSE;
-}
-
static void
gdk_window_clear_region_internal (GdkWindow *window,
cairo_region_t *region)
@@ -4839,9 +4817,7 @@ gdk_window_invalidate_maybe_recurse_full (GdkWindow *window,
for window backgrounds */
if (private->event_mask & GDK_EXPOSURE_MASK ||
clear_bg == CLEAR_BG_ALL ||
- (clear_bg == CLEAR_BG_WINCLEARED &&
- (!clears_as_native (private) ||
- !GDK_WINDOW_IMPL_GET_IFACE (private->impl)->supports_native_bg)))
+ clear_bg == CLEAR_BG_WINCLEARED)
impl_window_add_update_area (impl_window, visible_region);
}
diff --git a/gdk/gdkwindowimpl.h b/gdk/gdkwindowimpl.h
index fcb8ba2..ac8b7ca 100644
--- a/gdk/gdkwindowimpl.h
+++ b/gdk/gdkwindowimpl.h
@@ -143,7 +143,6 @@ struct _GdkWindowImplIface
void (* destroy) (GdkWindow *window,
gboolean recursing,
gboolean foreign_destroy);
- gboolean supports_native_bg;
};
/* Interface Functions */
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index 41af53b..846030e 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -5466,7 +5466,6 @@ gdk_window_impl_iface_init (GdkWindowImplIface *iface)
iface->queue_antiexpose = _gdk_x11_window_queue_antiexpose;
iface->translate = _gdk_x11_window_translate;
iface->destroy = _gdk_x11_window_destroy;
- iface->supports_native_bg = TRUE;
}
static Bool
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]