SF.net SVN: geany:[3682] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Fri Apr 3 14:48:20 UTC 2009


Revision: 3682
          http://geany.svn.sourceforge.net/geany/?rev=3682&view=rev
Author:   eht16
Date:     2009-04-03 14:48:20 +0000 (Fri, 03 Apr 2009)

Log Message:
-----------
Remove checks for the .pdf or .dvi files when viewing a LaTeX file (as we did for all other files in SVN r3382).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/build.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-04-03 14:23:45 UTC (rev 3681)
+++ trunk/ChangeLog	2009-04-03 14:48:20 UTC (rev 3682)
@@ -1,3 +1,10 @@
+2009-04-03  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
+
+ * src/build.c:
+   Remove checks for the .pdf or .dvi files when viewing a LaTeX file
+   (as we did for all other files in SVN r3382).
+
+
 2009-04-03  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>
 
  * src/filetypes.c, doc/geany.txt:

Modified: trunk/src/build.c
===================================================================
--- trunk/src/build.c	2009-04-03 14:23:45 UTC (rev 3681)
+++ trunk/src/build.c	2009-04-03 14:48:20 UTC (rev 3682)
@@ -173,7 +173,6 @@
 	gchar  *working_dir;
 	gint	term_argv_len, i;
 	GError *error = NULL;
-	struct stat st;
 
 	if (doc == NULL || doc->file_name == NULL)
 		return (GPid) 1;
@@ -183,18 +182,9 @@
 	executable = utils_remove_ext_from_filename(doc->file_name);
 	view_file = g_strconcat(executable, (mode == LATEX_CMD_VIEW_DVI) ? ".dvi" : ".pdf", NULL);
 
-	/* try convert in locale for stat() */
+	/* try convert in locale */
 	locale_filename = utils_get_locale_from_utf8(view_file);
 
-	/* check whether view_file exists */
-	if (g_stat(locale_filename, &st) != 0)
-	{
-		ui_set_statusbar(TRUE, _("Failed to view %s (make sure it is already compiled)"), view_file);
-		utils_free_pointers(3, executable, view_file, locale_filename, NULL);
-
-		return (GPid) 1;
-	}
-
 	/* replace %f and %e in the run_cmd string */
 	cmd_string = g_strdup((mode == LATEX_CMD_VIEW_DVI) ?
 										g_strdup(doc->file_type->programs->run_cmd) :


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list