summaryrefslogtreecommitdiff
path: root/src/simple-scan.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/simple-scan.vala')
-rw-r--r--src/simple-scan.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simple-scan.vala b/src/simple-scan.vala
index 813f29b..eaa8b59 100644
--- a/src/simple-scan.vala
+++ b/src/simple-scan.vala
@@ -537,8 +537,6 @@ public class SimpleScan : Gtk.Application
Intl.bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
Intl.textdomain (GETTEXT_PACKAGE);
- Gtk.init (ref args);
-
var c = new OptionContext (/* Arguments and description for --help text */
_("[DEVICE...] - Scanning utility"));
c.add_main_entries (options, GETTEXT_PACKAGE);
@@ -595,6 +593,8 @@ public class SimpleScan : Gtk.Application
debug ("Starting Simple Scan %s, PID=%i", VERSION, Posix.getpid ());
+ Gtk.init (ref args);
+
var app = new SimpleScan (device);
return app.run ();
}