modules: get the profile of the widget's toplevel

so we are in sync with GimpWindow::monitor-changed().
This commit is contained in:
Michael Natterer 2015-05-08 00:48:47 +02:00
parent f01b838c5e
commit cbb82ae5da

View file

@ -282,7 +282,7 @@ cdisplay_lcms_changed (GimpColorDisplay *display)
/* fallthru */
case GIMP_COLOR_MANAGEMENT_DISPLAY:
src_profile = cdisplay_lcms_get_rgb_profile (lcms);
src_profile = cdisplay_lcms_get_rgb_profile (lcms);
dest_profile = cdisplay_lcms_get_display_profile (lcms);
break;
}
@ -398,7 +398,7 @@ cdisplay_lcms_get_display_profile (CdisplayLcms *lcms)
managed = gimp_color_display_get_managed (GIMP_COLOR_DISPLAY (lcms));
if (GTK_IS_WIDGET (managed))
widget = GTK_WIDGET (managed);
widget = gtk_widget_get_toplevel (GTK_WIDGET (managed));
profile = gimp_widget_get_color_profile (widget);