[gimp] modules: get the profile of the widget's toplevel
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gimp] modules: get the profile of the widget's toplevel
- Date: Thu,  7 May 2015 22:50:44 +0000 (UTC)
commit cbb82ae5da1a83b129b6baf44a3763bc51b4c0e4
Author: Michael Natterer <mitch gimp org>
Date:   Fri May 8 00:48:47 2015 +0200
    modules: get the profile of the widget's toplevel
    
    so we are in sync with GimpWindow::monitor-changed().
 modules/display-filter-lcms.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/display-filter-lcms.c b/modules/display-filter-lcms.c
index ea0c317..5fce780 100644
--- a/modules/display-filter-lcms.c
+++ b/modules/display-filter-lcms.c
@@ -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);
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]