Re: Evolving ComboBox API

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().
> Nooooooo.....
> 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...
> Thanks,
> -Jonathan
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org

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