Mercurial > geeqie
changeset 1737:a9af670f47d2
fixed unnecessary image reloads in color menu
author | nadvornik |
---|---|
date | Sun, 06 Sep 2009 14:21:19 +0000 |
parents | 8e64965c1d92 |
children | 869ef66693f3 |
files | src/layout_util.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/layout_util.c Sun Sep 06 14:01:03 2009 +0000 +++ b/src/layout_util.c Sun Sep 06 14:21:19 2009 +0000 @@ -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);