[gtk+/gdk-backend] Add a vfunc for gdk_window_set_composited
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gdk-backend] Add a vfunc for gdk_window_set_composited
- Date: Fri, 10 Dec 2010 17:57:36 +0000 (UTC)
commit 4cf5c3f59f41e73ca07803a0d3a794e00e91faef
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Dec 10 12:56:56 2010 -0500
Add a vfunc for gdk_window_set_composited
gdk/gdkwindow.c | 5 +++--
gdk/quartz/gdkwindow-quartz.c | 5 -----
gdk/win32/gdkwindow-win32.c | 5 -----
3 files changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 34e8597..ae07519 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -7506,14 +7506,15 @@ gdk_window_set_composited (GdkWindow *window,
display = gdk_window_get_display (window);
- if (!gdk_display_supports_composite (display) && composited)
+ impl_class = GDK_WINDOW_IMPL_GET_CLASS (window->impl);
+
+ if (composited && (!gdk_display_supports_composite (display) || !impl_class->set_composited))
{
g_warning ("gdk_window_set_composited called but "
"compositing is not supported");
return;
}
- impl_class = GDK_WINDOW_IMPL_GET_CLASS (window->impl);
impl_class->set_composited (window, composited);
recompute_visible_regions (window, TRUE, FALSE);
diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index 77dcb7e..27ae4b5 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -2934,11 +2934,6 @@ gdk_window_set_opacity (GdkWindow *window,
[impl->toplevel setAlphaValue: opacity];
}
-void
-_gdk_windowing_window_set_composited (GdkWindow *window, gboolean composited)
-{
-}
-
static cairo_region_t *
gdk_quartz_window_get_shape (GdkWindow *window)
{
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index b4b64ca..fd9b022 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -3153,11 +3153,6 @@ gdk_window_set_opacity (GdkWindow *window,
}
}
-void
-_gdk_windowing_window_set_composited (GdkWindow *window, gboolean composited)
-{
-}
-
static cairo_region_t *
gdk_win32_window_get_shape (GdkWindow *window)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]