[Rawstudio-commit] r978 - trunk/src

Anders Brander anders at brander.dk
Sat Dec 30 03:51:56 CET 2006


Author: abrander
Date: 2006-12-30 03:51:56 +0100 (Sat, 30 Dec 2006)
New Revision: 978

Modified:
   trunk/src/gtk-interface.c
Log:
Changed gui_menu_copy_callback() to use rs_settings_to_rs_settings_double().

Modified: trunk/src/gtk-interface.c
===================================================================
--- trunk/src/gtk-interface.c	2006-12-29 20:10:36 UTC (rev 977)
+++ trunk/src/gtk-interface.c	2006-12-30 02:51:56 UTC (rev 978)
@@ -1691,14 +1691,7 @@
 	{
 		if (!rs->settings_buffer)
 			rs->settings_buffer = g_malloc(sizeof(RS_SETTINGS_DOUBLE));
-
-		rs->settings_buffer->exposure = GETVAL(rs->settings[rs->photo->current_setting]->exposure);
-		rs->settings_buffer->saturation = GETVAL(rs->settings[rs->photo->current_setting]->saturation);
-		rs->settings_buffer->hue = GETVAL(rs->settings[rs->photo->current_setting]->hue);
-		rs->settings_buffer->contrast = GETVAL(rs->settings[rs->photo->current_setting]->contrast);
-		rs->settings_buffer->warmth = GETVAL(rs->settings[rs->photo->current_setting]->warmth);
-		rs->settings_buffer->tint = GETVAL(rs->settings[rs->photo->current_setting]->tint);
-
+		rs_settings_to_rs_settings_double(rs->settings[rs->photo->current_setting], rs->settings_buffer);
 		gui_status_notify(_("Copied settings"));
 	}
 	return;




More information about the Rawstudio-commit mailing list