Author: post
Date: 2010-06-28 22:21:33 +0200 (Mon, 28 Jun 2010)
New Revision: 3450

Modified:
   trunk/src/rs-preview-widget.c
Log:
Change to "Fit to View", when selecting Crop.

Modified: trunk/src/rs-preview-widget.c
===================================================================
--- trunk/src/rs-preview-widget.c       2010-06-28 20:04:06 UTC (rev 3449)
+++ trunk/src/rs-preview-widget.c       2010-06-28 20:21:33 UTC (rev 3450)
@@ -558,6 +558,8 @@
 
        rs_preview_widget_quick_start(preview, FALSE);
        preview->zoom_to_fit = zoom_to_fit;
+       GtkToggleAction *fit_action = 
GTK_TOGGLE_ACTION(rs_core_action_group_get_action("ZommToFit"));
+       gtk_toggle_action_set_active(fit_action, zoom_to_fit);
 }
 
 /**
@@ -1121,6 +1123,9 @@
        }
        else
                preview->state = CROP_START;
+
+       if (!preview->zoom_to_fit)
+               rs_preview_widget_set_zoom_to_fit(preview, TRUE);
 }
 
 /**


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to