Commit 8792bbbd authored by Tim Janik's avatar Tim Janik Committed by Tim Janik

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).
parent 34b7b5d7
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'
......
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'
......
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'
......
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'
......
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'
......
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'
......
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'
......
......@@ -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);
......
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