+2004-09-27 Matthias Clasen <mclasen@redhat.com>
+
+ Fix #153082:
+
+ * gtk/gtkmain.c (do_pre_parse_initialization): Don't call gdk_parse_args()
+ here, we don't want to parse args twice.
+ (gtk_init_with_args): Add the ugid check here as well.
+ (gtk_parse_args): Add the gdk options to the main option group as well.
+
2004-09-27 Paolo Borelli <pborelli@katamail.com>
* gtk/Makefile.am:
+2004-09-27 Matthias Clasen <mclasen@redhat.com>
+
+ Fix #153082:
+
+ * gtk/gtkmain.c (do_pre_parse_initialization): Don't call gdk_parse_args()
+ here, we don't want to parse args twice.
+ (gtk_init_with_args): Add the ugid check here as well.
+ (gtk_parse_args): Add the gdk options to the main option group as well.
+
2004-09-27 Paolo Borelli <pborelli@katamail.com>
* gtk/Makefile.am:
+2004-09-27 Matthias Clasen <mclasen@redhat.com>
+
+ Fix #153082:
+
+ * gtk/gtkmain.c (do_pre_parse_initialization): Don't call gdk_parse_args()
+ here, we don't want to parse args twice.
+ (gtk_init_with_args): Add the ugid check here as well.
+ (gtk_parse_args): Add the gdk options to the main option group as well.
+
2004-09-27 Paolo Borelli <pborelli@katamail.com>
* gtk/Makefile.am:
+2004-09-27 Matthias Clasen <mclasen@redhat.com>
+
+ Fix #153082:
+
+ * gtk/gtkmain.c (do_pre_parse_initialization): Don't call gdk_parse_args()
+ here, we don't want to parse args twice.
+ (gtk_init_with_args): Add the ugid check here as well.
+ (gtk_parse_args): Add the gdk options to the main option group as well.
+
2004-09-27 Paolo Borelli <pborelli@katamail.com>
* gtk/Makefile.am:
g_warning ("Locale not supported by C library.\n\tUsing the fallback 'C' locale.");
}
- gdk_parse_args (argc, argv);
+ gdk_pre_parse_libgtk_only ();
gdk_event_handler_set ((GdkEventFunc)gtk_main_do_event, NULL, NULL);
#ifdef G_ENABLE_DEBUG
GOptionContext *context;
GOptionGroup *gtk_group;
gboolean retval;
-
+
if (gtk_initialized)
return TRUE;
+ if (!check_setugid ())
+ return FALSE;
+
gtk_group = gtk_get_option_group (TRUE);
context = g_option_context_new (parameter_string);
if (entries)
g_option_context_add_main_entries (context, entries, translation_domain);
-
retval = g_option_context_parse (context, argc, argv, error);
g_option_context_free (context);
g_option_context_set_help_enabled (option_context, FALSE);
g_option_context_add_main_entries (option_context, gtk_args, GETTEXT_PACKAGE);
+ gdk_add_option_entries_libgtk_only (g_option_context_get_main_group (option_context));
g_option_context_parse (option_context, argc, argv, NULL);
g_option_context_free (option_context);