[gnome-screensaver] slideshow: use gdk_screen_get_system_colormap



commit 4b4368d42470af612cb00608966cab75bf572433
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Sep 29 12:02:21 2010 -0400

    slideshow: use gdk_screen_get_system_colormap
    
    The code currently falls back to using get_rgb_colormap if
    get_rgba_colormap isn't available, but get_system_colormap
    is the right fallback function to call.  Historically,
    get_rgb_colormap was important if you wanted to render
    rgb data.  Now, any colormap will work, so we should use the
    preferred one for the system.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=630593

 savers/gste-slideshow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/savers/gste-slideshow.c b/savers/gste-slideshow.c
index 00f44e8..40ada01 100644
--- a/savers/gste-slideshow.c
+++ b/savers/gste-slideshow.c
@@ -916,7 +916,7 @@ set_colormap (GtkWidget *widget)
         screen = gtk_widget_get_screen (widget);
         colormap = gdk_screen_get_rgba_colormap (screen);
         if (colormap == NULL) {
-                colormap = gdk_screen_get_rgb_colormap (screen);
+                colormap = gdk_screen_get_system_colormap (screen);
         }
 
         gtk_widget_set_colormap (widget, colormap);



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