Re: [gnome-about] Title box is a hyperlink
- From: Havoc Pennington <hp redhat com>
- To: George <jirka 5z com>
- Cc: gnome-devel-list gnome org
- Subject: Re: [gnome-about] Title box is a hyperlink
- Date: 03 Jan 2000 18:04:18 -0500
George <jirka@5z.com> writes:
>
> Why not make the new somewhat deprecated, and just use the arguments. This
> should go for all gnome widgets I think.
>
I think we should always have _new() for the common cases. Arguments
require reading more documentation, aren't typesafe, and are less
convenient if you are doing something really common.
For example:
label = gtk_label_new(_("Blah"));
or:
label = gtk_widget_new(gtk_label_get_type(),
"text", _("Blah"), NULL);
the second version gets old real fast.
Of course in the GnomeAbout case the args seem like a really nice API
since you have lots of fields and many of them are optional.
We do need to _support_ arguments for all the widgets though.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]