Re: PHP-style in GtkComboBox constructor
| From: | Christian Weiske | Date: | Sun, 12 Feb 2006 12:37:21 +0000 |
| Subject: | Re: PHP-style in GtkComboBox constructor | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-2402@lists.php.net to get a copy of this message | ||
Hello Jp,
> GtkComboBox() constructor to accept an optional GtkTreeModel as an
> argument, instead of using GtkComboBox::new_with_model() for this job.
I would go a step further and do the following:
- new GtkComboBox()
-> automatically create the text model from new_with_text
- new GtkComboBox($model)
-> new_with_model behavior
- new GtkComboBox(null)
-> default behavior, set no model
I think the new_with_text is the type of constructor that's used mostly,
so it should be the default one (with no parameters).
--
Regards/MfG,
Christian Weiske
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc