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.
This commit is contained in:
Owen W. Taylor 2010-08-12 20:12:00 -04:00
parent 26c9453b3a
commit cac0848316

View File

@ -265,9 +265,7 @@ na_tray_child_new (GdkScreen *screen,
new_colormap = FALSE; new_colormap = FALSE;
if (visual == gdk_screen_get_rgb_visual (screen)) if (visual == gdk_screen_get_rgba_visual (screen))
colormap = gdk_screen_get_rgb_colormap (screen);
else if (visual == gdk_screen_get_rgba_visual (screen))
colormap = gdk_screen_get_rgba_colormap (screen); colormap = gdk_screen_get_rgba_colormap (screen);
else if (visual == gdk_screen_get_system_visual (screen)) else if (visual == gdk_screen_get_system_visual (screen))
colormap = gdk_screen_get_system_colormap (screen); colormap = gdk_screen_get_system_colormap (screen);