begin the parameter elipsis (...) after the first argument name. this

Mon Aug 24 02:36:53 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkarg.h:
        * gtk/gtkarg.c:
        * gtk/gtkwidget.h:
        * gtk/gtkwidget.c:
        * gtk/gtkobject.h:
        * gtk/gtkobject.c:
        * gtk/gtkcontainer.h:
        * gtk/gtkcontainer.c:
        (gtk_object_new):
        (gtk_object_set):
        (gtk_widget_new):
        (gtk_widget_set):
        (gtk_container_add_with_args):
        (gtk_container_child_set):
        begin the parameter elipsis (...) after the first argument name. this
        change is source compatible, since it was always required, even as NULL.
        (gtk_args_collect):
        (gtk_object_args_collect):
        (gtk_container_child_args_collect):
        changed prototypes to pass first_arg_name, also, pass va_list variable
        by value (portability concerns). callers changed.

        * gtk/gtkargcollector.c: implemented gtk_arg_collect_value() as
        a huge macro GTK_ARG_COLLECT_VALUE() <shrug>. this is needed because we
        can't pass va_list variables by reference for portability reasons.
This commit is contained in:
Tim Janik
1998-08-24 05:27:29 +00:00
committed by Tim Janik
parent db10ace6c8
commit 02a871bc31
18 changed files with 403 additions and 176 deletions

View File

@ -360,9 +360,10 @@ struct _GtkWidgetShapeInfo
GtkType gtk_widget_get_type (void);
GtkWidget* gtk_widget_new (guint type,
GtkWidget* gtk_widget_new (GtkType type,
const gchar *first_arg_name,
...);
GtkWidget* gtk_widget_newv (guint type,
GtkWidget* gtk_widget_newv (GtkType type,
guint nargs,
GtkArg *args);
void gtk_widget_ref (GtkWidget *widget);
@ -376,6 +377,7 @@ void gtk_widget_getv (GtkWidget *widget,
guint nargs,
GtkArg *args);
void gtk_widget_set (GtkWidget *widget,
const gchar *first_arg_name,
...);
void gtk_widget_setv (GtkWidget *widget,
guint nargs,