[gtk+/rendering-cleanup: 113/141] testgtk: Check visual,	not colormap for RGBA availability
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk+/rendering-cleanup: 113/141] testgtk: Check visual,	not colormap for RGBA availability
- Date: Mon, 13 Sep 2010 23:54:24 +0000 (UTC)
commit 9d7429fde84568612a9a10a5c718939c161e5b56
Author: Benjamin Otte <otte redhat com>
Date:   Sat Aug 28 23:13:19 2010 +0200
    testgtk: Check visual, not colormap for RGBA availability
 tests/testgtk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 7552ea2..2279db1 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -147,7 +147,7 @@ on_alpha_window_expose (GtkWidget      *widget,
                                          allocation.height / 2,
 					 radius * 1.33);
 
-  if (gdk_screen_get_rgba_colormap (gtk_widget_get_screen (widget)) &&
+  if (gdk_screen_get_rgba_visual (gtk_widget_get_screen (widget)) &&
       gtk_widget_is_composited (widget))
     cairo_set_source_rgba (cr, 1.0, 1.0, 1.0, 0.0); /* transparent */
   else
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]