From cac0848316cd3327c37b401cb527eb7a313f71a6 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Thu, 12 Aug 2010 20:12:00 -0400 Subject: [PATCH] Remove usage of gdk_screen_get_rgb_colormap() gdk_screen_get_rgb_colormap() has been removed from GTK+; there's no longer a special visual that is used for drawing true-color images distinct from the system visual. So, we don't need to check for it; if the visual isn't the system visual, we just fall through to the case where we create a new GdkColormap. --- src/tray/na-tray-child.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/tray/na-tray-child.c b/src/tray/na-tray-child.c index 978880c79..067c0bf75 100644 --- a/src/tray/na-tray-child.c +++ b/src/tray/na-tray-child.c @@ -265,9 +265,7 @@ na_tray_child_new (GdkScreen *screen, new_colormap = FALSE; - if (visual == gdk_screen_get_rgb_visual (screen)) - colormap = gdk_screen_get_rgb_colormap (screen); - else if (visual == gdk_screen_get_rgba_visual (screen)) + if (visual == gdk_screen_get_rgba_visual (screen)) colormap = gdk_screen_get_rgba_colormap (screen); else if (visual == gdk_screen_get_system_visual (screen)) colormap = gdk_screen_get_system_colormap (screen);