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:
parent
26c9453b3a
commit
cac0848316
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user