Commit cbb82ae5 authored by Michael Natterer's avatar Michael Natterer 😴

modules: get the profile of the widget's toplevel

so we are in sync with GimpWindow::monitor-changed().
parent f01b838c
......@@ -282,7 +282,7 @@ cdisplay_lcms_changed (GimpColorDisplay *display)
/* fallthru */
src_profile = cdisplay_lcms_get_rgb_profile (lcms);
src_profile = cdisplay_lcms_get_rgb_profile (lcms);
dest_profile = cdisplay_lcms_get_display_profile (lcms);
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment