Re: ComboBox using multi columns TreeModel



Thanks,



for the record, I replaced:


   combo = gtk_combo_box_entry_new_with_model (GTK_TREE_MODEL(model),

         NAME_COLUMN);

by:

   text_renderer = gtk_cell_renderer_text_new ();
   gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combo), text_renderer, TRUE);
   gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (combo), text_renderer,
                                                    "text", NAME_COLUMN, NULL);



Christophe





On 9/24/06, David Nečas (Yeti) <yeti physics muni cz> wrote:
On Sun, Sep 24, 2006 at 03:36:31PM +0200, Christophe Dehais wrote:
>
> So, is this possible ? I can't see anything equivalent to the
>
> gtk_combo_box_entry_set_text_column () function for a simple
> gtk_combo_box widget.

It is possible, you just have to use GtkCellLayout methods
like you would do with GtkTreeViewColumn, not the simple
API.

Yeti


--
Anonyms eat their boogers.
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list



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