Re: gtk_object_setv()

Tim Janik <timj gtk org> writes:

> looking at libgnomeui, the only functions that actually expose GtkArg are:
> /* Same as above, with parsed args */
> GnomeCanvasItem *gnome_canvas_item_newv (GnomeCanvasGroup *parent, GtkType type,
>                                          guint nargs, GtkArg *args);
> void gnome_canvas_item_constructv (GnomeCanvasItem *item, GnomeCanvasGroup *parent,
>                                    guint nargs, GtkArg *args);
> /* Same as above, with parsed args */
> void gnome_canvas_item_setv (GnomeCanvasItem *item, guint nargs, GtkArg *args);
> all of which have regular ellipsis variants that should use g_object_new_valist()
> (i.e. like g_object_new() is implemented).
> these functions should simply vanish, they provide no added functionality over
> the g_object_* creation functions.

Ok, done.

> gnome_canvas_item_construct* was never a real constructor in the first place,
> since you could always create constructed canvas items with gtk_object_new,
> and later add that to their parents, so gnome_canvas_item_construct* should
> fully go away, just add a GnomeCanvasItem::parent argument (not a CONSTRUCT
> though, because it really isn't a construction argument).

Ok, I'll add this.

Do we still need to namespace properties with GParam - I mean, should they be
called "GnomeCanvasItem::param" etc. or can I just call them "parent" ?

Btw. is there any way to get a list of all properties in a class, I only see
g_object_class_find_property() but this needs the name of a property as
argument ... ?

Martin Baulig
martin gnome org (private)
baulig suse de (work)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]