--- dillo.c Wed Nov 3 07:48:52 2004 +++ dillon.c Wed Nov 3 07:49:15 2004 @@ -2,7 +2,7 @@ * Dillo web browser * * Copyright 1997 Raph Levien - * Copyright 1999-2003 Jorge Arellano Cid + * Copyright 1999-2004 Jorge Arellano Cid * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -212,12 +212,6 @@ gint main(int argc, char *argv[]) /* set locale */ curr_locale = g_strdup(setlocale(LC_ALL, NULL)); - gtk_set_locale(); - /* Initialize GUI and parse GTK related args */ - gtk_init(&argc, &argv); - gdk_rgb_init(); - gtk_widget_set_default_colormap (gdk_rgb_get_cmap()); - gtk_widget_set_default_visual (gdk_rgb_get_visual()); /* Handle command line options */ while ((opt_flg = Dillo_get_opt(Options, argc, argv, &opt_argv, &idx))) { @@ -256,9 +250,16 @@ gint main(int argc, char *argv[]) } } + gtk_set_locale(); /* Send a delayed locale-related message */ MSG("Setting locale to %s...\n", curr_locale); g_free(curr_locale); + /* Initialize GUI and parse GTK related args */ + gtk_init(&argc, &argv); + gdk_rgb_init(); + gtk_widget_set_default_colormap (gdk_rgb_get_cmap()); + gtk_widget_set_default_visual (gdk_rgb_get_visual()); + /* This lets threads in the file module end peacefully when aborted * todo: implement a cleaner mechanism (in file.c) */