[latexila] Revert "Fix files opening from command line"



commit 1d1e58b986f840b68b0408c7926fc5371bd7f1d9
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat May 25 14:21:33 2013 +0200

    Revert "Fix files opening from command line"
    
    This reverts commit a24d0929e25089696a41b800b7a119e2d1b790d6.
    
    There are still problems with other command line options (e.g.
    --new-window which opens two new windows).

 src/latexila.vala |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/src/latexila.vala b/src/latexila.vala
index b96cc1e..1df2caa 100644
--- a/src/latexila.vala
+++ b/src/latexila.vala
@@ -21,8 +21,6 @@
 
 public class Latexila : Gtk.Application
 {
-    private bool _first_activate = true;
-
     public Latexila ()
     {
         Object (application_id: "org.gnome.latexila");
@@ -39,12 +37,7 @@ public class Latexila : Gtk.Application
         activate.connect (() =>
         {
             hold ();
-
-            if (_first_activate)
-                _first_activate = false;
-            else
-                create_window ();
-
+            create_window ();
             release ();
         });
 
@@ -117,7 +110,6 @@ public class Latexila : Gtk.Application
 
         AppSettings.get_default ();
         Gtk.AccelMap.load (get_accel_filename ());
-        create_window ();
         release ();
     }
 


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