[gtk+/gdk-backend: 28/91] Add a vfunc for gdk_window_set_composited
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gdk-backend: 28/91] Add a vfunc for gdk_window_set_composited
- Date: Sat, 18 Dec 2010 01:08:10 +0000 (UTC)
commit 17593ea0de1dccc3d50c3cf8e502e33367f8309c
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 93e4039..1f539e1 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -7436,14 +7436,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 f0094ba..24b59d2 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -2912,11 +2912,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 f2f27b5..0500cf1 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -3150,11 +3150,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]