Use gdk_visual_get_depth() instead direct access

This bumps GTK+ requirement to 2.22