summaryrefslogtreecommitdiff
path: root/gtk/gtkargcollector.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1998-07-12 14:43:03 +0000
committerTim Janik <timj@src.gnome.org>1998-07-12 14:43:03 +0000
commit8792bbbd28a3f770c7dc951c8d41f3f0f2cc0a56 (patch)
treee67742f9ae25d68a0e59acca9c14fe74dec8b1ee /gtk/gtkargcollector.c
parent34b7b5d74e1d9ea81f772e9b571ae256af38459a (diff)
downloadgdk-pixbuf-8792bbbd28a3f770c7dc951c8d41f3f0f2cc0a56.tar.gz
fix float argument collection (always casted to doubles upon argument
Sun Jul 12 16:40:06 1998 Tim Janik <timj@gtk.org> * gtk/gtkargcollector.c (gtk_arg_collect_value): fix float argument collection (always casted to doubles upon argument passing).
Diffstat (limited to 'gtk/gtkargcollector.c')
-rw-r--r--gtk/gtkargcollector.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkargcollector.c b/gtk/gtkargcollector.c
index 30b657d9c..33fd8ca57 100644
--- a/gtk/gtkargcollector.c
+++ b/gtk/gtkargcollector.c
@@ -33,7 +33,7 @@ gtk_arg_collect_value (GtkType fundamental_type,
error_msg = g_strdup ("invalid untyped argument");
break;
case GTK_TYPE_NONE:
- error_msg = g_strdup ("invalid argument type `void'");
+ /* error_msg = g_strdup ("invalid argument type `void'"); */
break;
case GTK_TYPE_CHAR:
GTK_VALUE_CHAR (*arg) = va_arg (*var_args, gchar);
@@ -60,7 +60,8 @@ gtk_arg_collect_value (GtkType fundamental_type,
GTK_VALUE_ULONG (*arg) = va_arg (*var_args, gulong);
break;
case GTK_TYPE_FLOAT:
- GTK_VALUE_FLOAT (*arg) = va_arg (*var_args, gfloat);
+ /* GTK_VALUE_FLOAT (*arg) = va_arg (*var_args, gfloat); */
+ GTK_VALUE_FLOAT (*arg) = va_arg (*var_args, gdouble);
break;
case GTK_TYPE_DOUBLE:
GTK_VALUE_DOUBLE (*arg) = va_arg (*var_args, gdouble);