mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
modules: get the profile of the widget's toplevel
so we are in sync with GimpWindow::monitor-changed().
This commit is contained in:
parent
f01b838c5e
commit
cbb82ae5da
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue