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.
This commit is contained in:
Owen Taylor 2002-01-21 15:41:47 +00:00 committed by Owen Taylor
parent 13d48a3b85
commit 599b862f98
8 changed files with 73 additions and 5 deletions

View File

@ -1,3 +1,13 @@
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

View File

@ -1,3 +1,13 @@
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

View File

@ -1,3 +1,13 @@
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

View File

@ -1,3 +1,13 @@
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

View File

@ -1,3 +1,13 @@
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

View File

@ -1,3 +1,13 @@
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

View File

@ -1,3 +1,13 @@
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

View File

@ -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 },