diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-01-21 15:41:47 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-01-21 15:41:47 +0000 |
commit | 599b862f9810b6f6f7224517b088c97ea1a2a109 (patch) | |
tree | f1e7cce200be20e033f5c34842ecdc32f27de766 /gdk/gdk.c | |
parent | 13d48a3b854da769bdc212441d0d02dff01c7ed6 (diff) | |
download | gdk-pixbuf-599b862f9810b6f6f7224517b088c97ea1a2a109.tar.gz |
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.
Diffstat (limited to 'gdk/gdk.c')
-rw-r--r-- | gdk/gdk.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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 }, |