[emerillon] Parse options before initializing GTK+



commit 6447f04ffe169a4912bbc88902a95f078275d064
Author: Å?ukasz JernaÅ? <deejay1 srem org>
Date:   Sun May 16 18:31:22 2010 +0200

    Parse options before initializing GTK+

 emerillon/main.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/emerillon/main.c b/emerillon/main.c
index fa05e96..068f51a 100644
--- a/emerillon/main.c
+++ b/emerillon/main.c
@@ -137,13 +137,14 @@ main (int argc,
   textdomain (PACKAGE);
 
   g_thread_init (NULL);
-  gtk_init (&argc, &argv);
-  gtk_clutter_init (&argc, &argv);
 
   g_set_application_name (_("Emerillon Map Viewer"));
 
   parse_options(&argc, &argv);
 
+  gtk_init (&argc, &argv);
+  gtk_clutter_init (&argc, &argv);
+
   window = emerillon_window_dup_default ();
   g_signal_connect (window, "delete-event", gtk_main_quit, NULL);
   gtk_widget_show (window);



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