[gnome-latex: 183/205] Bug fix: --new-document
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-latex: 183/205] Bug fix: --new-document
- Date: Fri, 14 Dec 2018 11:02:16 +0000 (UTC)
commit 88c6f252b5e8454e75f84582a2cf0dec4e494433
Author: Sébastien Wilmet <sebastien wilmet gmail com>
Date: Sun Jan 24 22:31:39 2010 +0100
Bug fix: --new-document
init_templates() were called after cb_new().
src/main.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 5b97607..9cf0f43 100644
--- a/src/main.c
+++ b/src/main.c
@@ -467,8 +467,10 @@ main (int argc, char *argv[])
init_log_zone (latexila.log_hpaned, log_toolbar);
- /* statusbar */
+ /* init various things */
init_statusbar (main_vbox);
+ init_templates ();
+ latex_output_filter_init ();
/* show the window */
gtk_widget_show_all (GTK_WIDGET (latexila.main_window));
@@ -499,6 +501,9 @@ main (int argc, char *argv[])
g_ptr_array_free (latexila.prefs.list_opened_docs, TRUE);
latexila.prefs.list_opened_docs = g_ptr_array_new ();
+ // go to the first file
+ gtk_notebook_set_current_page (latexila.notebook, 0);
+
/* open documents given in arguments */
for (int i = 1 ; i < argc ; i++)
{
@@ -520,10 +525,6 @@ main (int argc, char *argv[])
if (option_new_document)
cb_new ();
- /* init various things */
- init_templates ();
- latex_output_filter_init ();
-
gtk_main ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]