diff src/main.c @ 1089:822d98c18062

Do a gtk_init before the parsing of command line arguments to allow gtk specific options. (See http://library.gnome.org/devel/gtk/2.14/gtk-running.html). Patch by Klaus Ethgen.
author zas_
date Tue, 04 Nov 2008 17:11:53 +0000
parents 156a58224c85
children 3a7af6a8cd5f
line wrap: on
line diff
--- a/src/main.c	Mon Oct 27 13:31:39 2008 +0000
+++ b/src/main.c	Tue Nov 04 17:11:53 2008 +0000
@@ -707,11 +707,11 @@
 	setup_default_options(options);
 	load_options(options);
 
-	parse_command_line(argc, argv, &cmd_path, &cmd_file, &cmd_list, &collection_list, &geometry);
-
 	gtkrc_load();
 	gtk_init(&argc, &argv);
 
+	parse_command_line(argc, argv, &cmd_path, &cmd_file, &cmd_list, &collection_list, &geometry);
+
 	if (gtk_major_version < GTK_MAJOR_VERSION ||
 	    (gtk_major_version == GTK_MAJOR_VERSION && gtk_minor_version < GTK_MINOR_VERSION) )
 		{