[Rawstudio-commit] r1238 - trunk/src

Anders Kvist anders at kvistmail.dk
Fri May 18 21:24:53 CEST 2007


Author: akv
Date: 2007-05-18 21:24:52 +0200 (Fri, 18 May 2007)
New Revision: 1238

Modified:
   trunk/src/gtk-interface.c
   trunk/src/gtk-save-dialog.c
Log:
Fixed ".."-error in filename when export and quick-exporting.

Modified: trunk/src/gtk-interface.c
===================================================================
--- trunk/src/gtk-interface.c	2007-05-17 23:54:26 UTC (rev 1237)
+++ trunk/src/gtk-interface.c	2007-05-18 19:24:52 UTC (rev 1238)
@@ -1789,7 +1789,7 @@
 	if (dirname[strlen(dirname)-1] != G_DIR_SEPARATOR)
 		g_string_append(save, G_DIR_SEPARATOR_S);
 	g_string_append(save, conf_export_filename);
-	g_string_append(save, ".");
+	//g_string_append(save, ".");
 
 	g_string_append(save, filetype->ext);
 

Modified: trunk/src/gtk-save-dialog.c
===================================================================
--- trunk/src/gtk-save-dialog.c	2007-05-17 23:54:26 UTC (rev 1237)
+++ trunk/src/gtk-save-dialog.c	2007-05-18 19:24:52 UTC (rev 1238)
@@ -61,7 +61,7 @@
 		if (lastdot != 0)
 			filename[lastdot] = '\0';
 
-		newfilename = g_strconcat(filename, ".", filetype->ext, NULL);
+		newfilename = g_strconcat(filename, filetype->ext, NULL);
 		gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (fc), newfilename);
 
 		g_free(filename);
@@ -319,7 +319,7 @@
 	msgid = gui_status_push(_("Exporting file ..."));
 
 	name = g_string_new(basename);
-	g_string_append(name, ".");
+	//g_string_append(name, ".");
 	g_string_append(name, filetype->ext);
 
 	gtk_dialog_set_default_response(GTK_DIALOG(fc), GTK_RESPONSE_ACCEPT);




More information about the Rawstudio-commit mailing list