Re: GtkComboBoxEntry vs. GtkCombo



On Wed, 2004-02-25 at 23:46, Evan Martin wrote:
> I'm trying to migrate some code to GTK 2.4.  It appears the only way to
> make a GtkComboBox that behaves more or less like a GTK 2.2 GtkCombo is
> to copy the behavior of gtk_combo_box_new_text() (creating the list
> store, cell renderer, etc.) but replace the call to
> gtk_combo_box_new_with_model to gtk_combo_box_entry_new_with_model.
> 
> Does a function like that belong in the GtkComboBoxEntry API?
> It feels like there's a hole there---I'm not doing anything fancy with
> the treemodel, yet I still had to read the gtk_combo_box_new_text source
> to figure out how to make a simple GtkCombo equivalent.

I agree that gtk_combo_box_entry_new_text() should be added.
Users could then use gtk_combo_box_append_text() etc. to add text items.

I've added a bug and patch here:
  http://bugzilla.gnome.org/show_bug.cgi?id=135495

Damon





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