Re: ComboBox using multi columns TreeModel

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

 



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@xxxxxxxxxxxxxxx> 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@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux