[Rawstudio-commit] r1674 - trunk/src

Anders Brander anders at brander.dk
Thu Mar 20 15:20:59 CET 2008


Author: abrander
Date: 2008-03-20 15:20:59 +0100 (Thu, 20 Mar 2008)
New Revision: 1674

Modified:
   trunk/src/rs-actions.c
Log:
Now updates sensivity on uncrop/unstraighten.

Modified: trunk/src/rs-actions.c
===================================================================
--- trunk/src/rs-actions.c	2008-03-20 14:17:58 UTC (rev 1673)
+++ trunk/src/rs-actions.c	2008-03-20 14:20:59 UTC (rev 1674)
@@ -85,9 +85,9 @@
 	rs_core_action_group_set_sensivity("PriorityMenu", photos_selected);
 	rs_core_action_group_set_sensivity("WhiteBalanceMenu", RS_IS_PHOTO(rs->photo));
 	rs_core_action_group_set_sensivity("Crop", RS_IS_PHOTO(rs->photo));
-	rs_core_action_group_set_sensivity("Uncrop", RS_IS_PHOTO(rs->photo));
+	rs_core_action_group_set_sensivity("Uncrop", (RS_IS_PHOTO(rs->photo) && rs->photo->crop));
 	rs_core_action_group_set_sensivity("Straighten", RS_IS_PHOTO(rs->photo));
-	rs_core_action_group_set_sensivity("Unstraighten", RS_IS_PHOTO(rs->photo));
+	rs_core_action_group_set_sensivity("Unstraighten", (RS_IS_PHOTO(rs->photo) && (rs->photo->angle != 0.0)));
 	g_list_free(selected);
 }
 




More information about the Rawstudio-commit mailing list