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).
This commit is contained in:
Tim Janik 1998-07-12 14:43:03 +00:00 committed by Tim Janik
parent 34b7b5d74e
commit 8792bbbd28
8 changed files with 38 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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).
Sun Jul 12 05:59:26 1998 Tim Janik <timj@gtk.org>
* gtk/gtktypeutils.c (gtk_type_new): call the base classes'

View File

@ -1,3 +1,8 @@
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).
Sun Jul 12 05:59:26 1998 Tim Janik <timj@gtk.org>
* gtk/gtktypeutils.c (gtk_type_new): call the base classes'

View File

@ -1,3 +1,8 @@
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).
Sun Jul 12 05:59:26 1998 Tim Janik <timj@gtk.org>
* gtk/gtktypeutils.c (gtk_type_new): call the base classes'

View File

@ -1,3 +1,8 @@
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).
Sun Jul 12 05:59:26 1998 Tim Janik <timj@gtk.org>
* gtk/gtktypeutils.c (gtk_type_new): call the base classes'

View File

@ -1,3 +1,8 @@
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).
Sun Jul 12 05:59:26 1998 Tim Janik <timj@gtk.org>
* gtk/gtktypeutils.c (gtk_type_new): call the base classes'

View File

@ -1,3 +1,8 @@
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).
Sun Jul 12 05:59:26 1998 Tim Janik <timj@gtk.org>
* gtk/gtktypeutils.c (gtk_type_new): call the base classes'

View File

@ -1,3 +1,8 @@
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).
Sun Jul 12 05:59:26 1998 Tim Janik <timj@gtk.org>
* gtk/gtktypeutils.c (gtk_type_new): call the base classes'

View File

@ -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);