Mercurial > geeqie.yaz
changeset 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 | fe0dce2161c0 |
children | 6ca88a8380d4 |
files | src/main.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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) ) {