evince r3580 - in trunk: . previewer



Author: carlosgc
Date: Wed Apr  8 13:10:39 2009
New Revision: 3580
URL: http://svn.gnome.org/viewvc/evince?rev=3580&view=rev

Log:
2009-04-08  Carlos Garcia Campos  <carlosgc gnome org>

	* previewer/ev-previewer.c: (ev_previewer_unlink_tempfile),
	(main):

	Delete the print settings file.

Modified:
   trunk/ChangeLog
   trunk/previewer/ev-previewer.c

Modified: trunk/previewer/ev-previewer.c
==============================================================================
--- trunk/previewer/ev-previewer.c	(original)
+++ trunk/previewer/ev-previewer.c	Wed Apr  8 13:10:39 2009
@@ -43,9 +43,6 @@
 ev_previewer_unlink_tempfile (const gchar *filename)
 {
 	GFile *file, *tempdir;
-	
-	if (!unlink_temp_file)
-		return;
 
 	file = g_file_new_for_path (filename);
 	tempdir = g_file_new_for_path (g_get_tmp_dir ());
@@ -158,7 +155,10 @@
 	
 	gtk_main ();
 
-	ev_previewer_unlink_tempfile (filename);
+	if (unlink_temp_file)
+		ev_previewer_unlink_tempfile (filename);
+	if (print_settings)
+		ev_previewer_unlink_tempfile (print_settings);
 
 	ev_shutdown ();
 	ev_stock_icons_shutdown ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]