Remove checks for the .pdf or .dvi files when viewing a LaTeX file (as we did for all other files in SVN r3382).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3682 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
1681861fa1
commit
ee99a3e841
@ -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:
|
||||
|
12
src/build.c
12
src/build.c
@ -173,7 +173,6 @@ static GPid build_view_tex_file(GeanyDocument *doc, gint mode)
|
||||
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 @@ static GPid build_view_tex_file(GeanyDocument *doc, gint mode)
|
||||
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) :
|
||||
|
Loading…
x
Reference in New Issue
Block a user