Commit 599b862f authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

Fix wrong types for command line arguments (#69124, Ryan Lovett)

Mon Jan 21 10:29:45 2002  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdk.c: Fix wrong types for command line arguments
	(#69124, Ryan Lovett)

	* gdk/gdk.c (gdk_arg_context_parse): Fix bug in parsing
	parsing '--arg VALUE'.

	* gdk/gdk.c: Remove unused variable gdk_error_trap_free_list.
parent 13d48a3b
Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c: Fix wrong types for command line arguments
(#69124, Ryan Lovett)
* gdk/gdk.c (gdk_arg_context_parse): Fix bug in parsing
parsing '--arg VALUE'.
* gdk/gdk.c: Remove unused variable gdk_error_trap_free_list.
2002-01-21 Havoc Pennington <hp@pobox.com>
* gdk/gdkwindow.c (gdk_window_add_filter): mention that window
......
Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c: Fix wrong types for command line arguments
(#69124, Ryan Lovett)
* gdk/gdk.c (gdk_arg_context_parse): Fix bug in parsing
parsing '--arg VALUE'.
* gdk/gdk.c: Remove unused variable gdk_error_trap_free_list.
2002-01-21 Havoc Pennington <hp@pobox.com>
* gdk/gdkwindow.c (gdk_window_add_filter): mention that window
......
Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c: Fix wrong types for command line arguments
(#69124, Ryan Lovett)
* gdk/gdk.c (gdk_arg_context_parse): Fix bug in parsing
parsing '--arg VALUE'.
* gdk/gdk.c: Remove unused variable gdk_error_trap_free_list.
2002-01-21 Havoc Pennington <hp@pobox.com>
* gdk/gdkwindow.c (gdk_window_add_filter): mention that window
......
Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c: Fix wrong types for command line arguments
(#69124, Ryan Lovett)
* gdk/gdk.c (gdk_arg_context_parse): Fix bug in parsing
parsing '--arg VALUE'.
* gdk/gdk.c: Remove unused variable gdk_error_trap_free_list.
2002-01-21 Havoc Pennington <hp@pobox.com>
* gdk/gdkwindow.c (gdk_window_add_filter): mention that window
......
Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c: Fix wrong types for command line arguments
(#69124, Ryan Lovett)
* gdk/gdk.c (gdk_arg_context_parse): Fix bug in parsing
parsing '--arg VALUE'.
* gdk/gdk.c: Remove unused variable gdk_error_trap_free_list.
2002-01-21 Havoc Pennington <hp@pobox.com>
* gdk/gdkwindow.c (gdk_window_add_filter): mention that window
......
Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c: Fix wrong types for command line arguments
(#69124, Ryan Lovett)
* gdk/gdk.c (gdk_arg_context_parse): Fix bug in parsing
parsing '--arg VALUE'.
* gdk/gdk.c: Remove unused variable gdk_error_trap_free_list.
2002-01-21 Havoc Pennington <hp@pobox.com>
* gdk/gdkwindow.c (gdk_window_add_filter): mention that window
......
Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c: Fix wrong types for command line arguments
(#69124, Ryan Lovett)
* gdk/gdk.c (gdk_arg_context_parse): Fix bug in parsing
parsing '--arg VALUE'.
* gdk/gdk.c: Remove unused variable gdk_error_trap_free_list.
2002-01-21 Havoc Pennington <hp@pobox.com>
* gdk/gdkwindow.c (gdk_window_add_filter): mention that window
......
......@@ -50,8 +50,6 @@ static int gdk_initialized = 0; /* 1 if the library is initialized,
* 0 otherwise.
*/
static GSList *gdk_error_trap_free_list = NULL; /* Free list */
static gchar *gdk_progclass = NULL;
#ifdef G_ENABLE_DEBUG
......@@ -128,7 +126,7 @@ gdk_arg_context_parse (GdkArgContext *context, gint *argc, gchar ***argv)
int len = strlen (table[k].name);
if (strncmp (arg, table[k].name, len) == 0 &&
(arg[len] == '=' || argc[len] == 0))
(arg[len] == '=' || arg[len] == 0))
{
char *value = NULL;
......@@ -228,8 +226,8 @@ gdk_arg_name_cb (const char *key, const char *value, gpointer user_data)
}
static GdkArgDesc gdk_args[] = {
{ "class" , GDK_ARG_STRING, NULL, gdk_arg_class_cb },
{ "name", GDK_ARG_STRING, NULL, gdk_arg_name_cb },
{ "class" , GDK_ARG_CALLBACK, NULL, gdk_arg_class_cb },
{ "name", GDK_ARG_CALLBACK, NULL, gdk_arg_name_cb },
#ifdef G_ENABLE_DEBUG
{ "gdk-debug", GDK_ARG_CALLBACK, NULL, gdk_arg_debug_cb },
{ "gdk-no-debug", GDK_ARG_CALLBACK, NULL, gdk_arg_no_debug_cb },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment