libgimpwidgets: always ask the toplevel window for its color profile

so all a window's widgets get their profile from the same monitor.
This commit is contained in:
Michael Natterer
2016-05-31 21:57:31 +02:00
parent a5d9419aef
commit 44f918af2d

View File

@ -468,7 +468,8 @@ get_display_profile (GtkWidget *widget,
GimpColorProfile *profile = NULL;
if (config->display_profile_from_gdk)
profile = gimp_widget_get_color_profile (widget);
/* get the toplevel's profile so all a window's colors look the same */
profile = gimp_widget_get_color_profile (gtk_widget_get_toplevel (widget));
if (! profile)
profile = gimp_color_config_get_display_color_profile (config, NULL);