From 0da0c7ca5c43d4a77604894886918ad236fab7ee Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Sat, 7 May 2016 15:32:09 +0300 Subject: [PATCH] Fixes #114: pdflatex -> latexmk. --- po/de/laview-desktop.po | 2 +- po/laview-desktop.pot | 2 +- po/ru/laview-desktop.po | 4 ++-- src/PreferencesWindow.vala | 10 +++++----- ui/glade/laview-desktop.glade | 6 +++--- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/po/de/laview-desktop.po b/po/de/laview-desktop.po index 5ec87ec..9d5762a 100644 --- a/po/de/laview-desktop.po +++ b/po/de/laview-desktop.po @@ -151,7 +151,7 @@ msgid "LyX path on Windows" msgstr "" #: ui/glade/laview-desktop.glade.h:10 -msgid "pdfLaTeX path on Windows" +msgid "LaTeXmk path on Windows" msgstr "" #: ui/glade/laview-desktop.glade.h:11 diff --git a/po/laview-desktop.pot b/po/laview-desktop.pot index db06a00..968aba3 100644 --- a/po/laview-desktop.pot +++ b/po/laview-desktop.pot @@ -151,7 +151,7 @@ msgid "LyX path on Windows" msgstr "" #: ui/glade/laview-desktop.glade.h:10 -msgid "pdfLaTeX path on Windows" +msgid "LaTeXmk path on Windows" msgstr "" #: ui/glade/laview-desktop.glade.h:11 diff --git a/po/ru/laview-desktop.po b/po/ru/laview-desktop.po index 4c1f900..d10e218 100644 --- a/po/ru/laview-desktop.po +++ b/po/ru/laview-desktop.po @@ -152,8 +152,8 @@ msgid "LyX path on Windows" msgstr "Путь к LyX под Windows" #: ui/glade/laview-desktop.glade.h:10 -msgid "pdfLaTeX path on Windows" -msgstr "Путь к pdfLaTeX под Windows" +msgid "LaTeXmk path on Windows" +msgstr "Путь к LaTeXmk под Windows" #: ui/glade/laview-desktop.glade.h:11 msgid "Common" diff --git a/src/PreferencesWindow.vala b/src/PreferencesWindow.vala index 43bd19a..691cd49 100644 --- a/src/PreferencesWindow.vala +++ b/src/PreferencesWindow.vala @@ -10,7 +10,7 @@ namespace LAview.Desktop { Gtk.ListStore liststore_data; Gtk.ListStore liststore_objects; FileChooserButton filechooserbutton_lyx; - FileChooserButton filechooserbutton_pdflatex; + FileChooserButton filechooserbutton_latexmk; public PreferencesDialog (Gtk.Application application, Window parent) throws Error { var builder = new Builder (); @@ -25,13 +25,13 @@ namespace LAview.Desktop { liststore_data = builder.get_object ("liststore_data") as Gtk.ListStore; liststore_objects = builder.get_object ("liststore_protocol_objects") as Gtk.ListStore; filechooserbutton_lyx = builder.get_object ("filechooserbutton_lyx") as FileChooserButton; - filechooserbutton_pdflatex = builder.get_object ("filechooserbutton_pdflatex") as FileChooserButton; + filechooserbutton_latexmk = builder.get_object ("filechooserbutton_latexmk") as FileChooserButton; fill_liststore_data (); fill_liststore_objects (); filechooserbutton_lyx.set_filename (AppCore.core.lyx_path); - filechooserbutton_pdflatex.set_filename (AppCore.core.pdflatex_path); + filechooserbutton_latexmk.set_filename (AppCore.core.latexmk_path); } void fill_liststore_data () { @@ -67,8 +67,8 @@ namespace LAview.Desktop { } [CCode (instance_pos = -1)] - public void pdflatex_file_set (FileChooserButton chooser) { - AppCore.core.pdflatex_path = chooser.get_filename (); + public void latexmk_file_set (FileChooserButton chooser) { + AppCore.core.latexmk_path = chooser.get_filename (); } } } diff --git a/ui/glade/laview-desktop.glade b/ui/glade/laview-desktop.glade index 938225e..e4b5f3b 100644 --- a/ui/glade/laview-desktop.glade +++ b/ui/glade/laview-desktop.glade @@ -231,7 +231,7 @@ True False - pdfLaTeX path on Windows + LaTeXmk path on Windows 0 @@ -252,11 +252,11 @@ - + True False True - + 1