Revision: 1837
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1837&view=rev
Author:   nadvornik
Date:     2009-09-06 14:21:19 +0000 (Sun, 06 Sep 2009)

Log Message:
-----------
fixed unnecessary image reloads in color menu

Modified Paths:
--------------
    trunk/src/layout_util.c

Modified: trunk/src/layout_util.c
===================================================================
--- trunk/src/layout_util.c     2009-09-06 14:01:03 UTC (rev 1836)
+++ trunk/src/layout_util.c     2009-09-06 14:21:19 UTC (rev 1837)
@@ -1085,6 +1085,8 @@
 #ifdef HAVE_LCMS
        LayoutWindow *lw = data;
 
+       if (layout_image_color_profile_get_use(lw) == 
gtk_toggle_action_get_active(action)) return;
+
        layout_image_color_profile_set_use(lw, 
gtk_toggle_action_get_active(action));
        layout_util_sync_color(lw);
        layout_image_refresh(lw);
@@ -1099,6 +1101,7 @@
        gboolean use_image;
 
        if (!layout_image_color_profile_get(lw, &input, &use_image)) return;
+       if (use_image == gtk_toggle_action_get_active(action)) return;
        layout_image_color_profile_set(lw, input, 
gtk_toggle_action_get_active(action));
        layout_util_sync_color(lw);
        layout_image_refresh(lw);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to