summaryrefslogtreecommitdiff
path: root/gtk/gtkmisc.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1998-10-03 17:04:41 +0000
committerTim Janik <timj@src.gnome.org>1998-10-03 17:04:41 +0000
commitc62ab96bcc0c9817a338bc28e24c15c77b5f0890 (patch)
tree030574406603a04f02a3facdd07e1402355f75ab /gtk/gtkmisc.c
parent879683b67429e56cadc53691a2845bb329e0ea97 (diff)
downloadgdk-pixbuf-c62ab96bcc0c9817a338bc28e24c15c77b5f0890.tar.gz
for unknown foreign fundamental types, collect an argument of the type
Sat Oct 3 17:54:48 1998 Tim Janik <timj@gtk.org> * gtk/gtkargcollector.c (GTK_ARG_COLLECT_VALUE): for unknown foreign fundamental types, collect an argument of the type returned from gtk_type_get_varargs_type(). removed the first macro argument which was just the same as the fundamental type of the *arg passed to the macro. * gtk/gtkarg.c (gtk_args_collect): * gtk/gtksignal.c (gtk_signal_collect_params): changed callers. * gtk/gtktypeutils.h: * gtk/gtktypeutils.c: new functions gtk_type_set_varargs_type() and gtk_type_get_varargs_type() to set and query the varargs collect type used for a fundamental type, registered outside of Gtk. * gtk/gtkmisc.c (gtk_misc_class_init): changed object arguments GtkMisc::xalign and GtkMisc::yalign from GTK_TYPE_DOUBLE to GTK_TYPE_FLOAT. * gtk/gtkframe.c (gtk_frame_class_init): changed object arguments GtkFrame::label_xalign and GtkFrame::label_yalign from GTK_TYPE_DOUBLE to GTK_TYPE_FLOAT.
Diffstat (limited to 'gtk/gtkmisc.c')
-rw-r--r--gtk/gtkmisc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/gtkmisc.c b/gtk/gtkmisc.c
index 96f147787..0445cf854 100644
--- a/gtk/gtkmisc.c
+++ b/gtk/gtkmisc.c
@@ -73,8 +73,8 @@ gtk_misc_class_init (GtkMiscClass *class)
object_class = (GtkObjectClass*) class;
widget_class = (GtkWidgetClass*) class;
- gtk_object_add_arg_type ("GtkMisc::xalign", GTK_TYPE_DOUBLE, GTK_ARG_READWRITE, ARG_XALIGN);
- gtk_object_add_arg_type ("GtkMisc::yalign", GTK_TYPE_DOUBLE, GTK_ARG_READWRITE, ARG_YALIGN);
+ gtk_object_add_arg_type ("GtkMisc::xalign", GTK_TYPE_FLOAT, GTK_ARG_READWRITE, ARG_XALIGN);
+ gtk_object_add_arg_type ("GtkMisc::yalign", GTK_TYPE_FLOAT, GTK_ARG_READWRITE, ARG_YALIGN);
gtk_object_add_arg_type ("GtkMisc::xpad", GTK_TYPE_INT, GTK_ARG_READWRITE, ARG_XPAD);
gtk_object_add_arg_type ("GtkMisc::ypad", GTK_TYPE_INT, GTK_ARG_READWRITE, ARG_YPAD);
@@ -107,10 +107,10 @@ gtk_misc_set_arg (GtkObject *object,
switch (arg_id)
{
case ARG_XALIGN:
- gtk_misc_set_alignment (misc, GTK_VALUE_DOUBLE (*arg), misc->yalign);
+ gtk_misc_set_alignment (misc, GTK_VALUE_FLOAT (*arg), misc->yalign);
break;
case ARG_YALIGN:
- gtk_misc_set_alignment (misc, misc->xalign, GTK_VALUE_DOUBLE (*arg));
+ gtk_misc_set_alignment (misc, misc->xalign, GTK_VALUE_FLOAT (*arg));
break;
case ARG_XPAD:
gtk_misc_set_padding (misc, GTK_VALUE_INT (*arg), misc->ypad);
@@ -135,10 +135,10 @@ gtk_misc_get_arg (GtkObject *object,
switch (arg_id)
{
case ARG_XALIGN:
- GTK_VALUE_DOUBLE (*arg) = misc->xalign;
+ GTK_VALUE_FLOAT (*arg) = misc->xalign;
break;
case ARG_YALIGN:
- GTK_VALUE_DOUBLE (*arg) = misc->yalign;
+ GTK_VALUE_FLOAT (*arg) = misc->yalign;
break;
case ARG_XPAD:
GTK_VALUE_INT (*arg) = misc->xpad;