Re: Evolving ComboBox API
- From: Kristian Rietveld <kris gtk org>
- To: Jonathan Blandford <jrb redhat com>
- Cc: Owen Taylor <otaylor redhat com>, GTK Development list <gtk-devel-list gnome org>
- Subject: Re: Evolving ComboBox API
- Date: 24 Apr 2003 01:28:23 +0200
On Thu, 2003-04-24 at 00:52, Jonathan Blandford wrote:
> Owen Taylor <otaylor redhat com> writes:
> > I wonder if we should add:
> > GtkEntry *egg_combo_box_entry_get_entry(EggComboBoxEntry *combo_box_entry);
> > to keep from having to continually point people to gtk_bin_get_child().
> Lets add a comment in the header. An example in the docs. Anything at
> all but this method.
> Though, come to think of it, given that there are no methods on
> GtkComboBoxEntry, what is the difference going to be between it and:
> combo = gtk_combo_box_new ();
> gtk_container_add (GTK_CONTAINER (combo), gtk_entry_new ());
You will need another line to set the text_column. And some code to add
a cell renderer, because adding another child only overrides the
auto-preview for the active item. Basically there is a bunch of special
internal stuff needed for the text combo.
And of course once the completion API is there we might have an idea of
some convenience functions to add, as Owen mentioned.
> ...other than it's a registered GType yadda yadda...
> gtk-devel-list mailing list
> gtk-devel-list gnome org
] [Thread Prev