[gtk+/rendering-cleanup: 18/113] tests: Use gdk_screen_get_default_colormap()



commit f8dab33f2bd57175215412656277ff25c2fa03cf
Author: Benjamin Otte <otte redhat com>
Date:   Tue Jul 13 02:38:21 2010 +0200

    tests: Use gdk_screen_get_default_colormap()
    
    We don't need the RGB colormap here.

 tests/testgtk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index e046808..7dfa9c1 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -324,7 +324,7 @@ on_alpha_screen_changed (GtkWidget *widget,
 
   if (!colormap)
     {
-      colormap = gdk_screen_get_rgb_colormap (screen);
+      colormap = gdk_screen_get_default_colormap (screen);
       gtk_label_set_markup (GTK_LABEL (label), "<b>Screen doesn't support alpha</b>");
     }
   else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]