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);