[Glade-users] How to properly fill a combobox?

Benton Greene beezum88 at gmail.com
Wed Sep 28 11:59:51 EDT 2011


I was doing a similar thing a few months ago. Editing tree-views and
combo boxes in glade is not exactly intuitive in my opinion. In order
to get to the appropriate window, you have to right click on your
combo box and choose "Edit". Once you're in this window, you go to the
"Hierarchy" tab to add columns to your combo box (not the liststore).
Then you can pack cell renderers into the combo box column by right
clicking on a column and adding the appropriate type of cell renderer,
and *then* you can link the cell renderers to the data stored in
liststore1. If you do all that, the data in liststore1 should appear
in your combo box when you run the program.

Here's a tutorial on how tree-views work (combo boxes are pretty
similar): http://scentric.net/tutorial/treeview-tutorial.html

Hope that helps.

--Benton


On Wed, Sep 28, 2011 at 9:53 AM, Alessandro Candini <candini at meeo.it> wrote:
> In my interface I've put a Combo Box.
> In ComboBox Model I've set liststore1 and I've filled this list with one
> gchararray column.
> After that I have added the strings I want to see when clicking on the
> combobox, but nothing shows up!
>
> Are these the correct steps to create and fill a combobox?
>
> I cannot find useful examples on the web.
>
> Thanks in advance.
>
> --
> Alessandro Candini
>
> MEEO S.r.l.
> Via Saragat 9
> I-44122 Ferrara, Italy
> Tel: +39 0532 1861501
> Fax: +39 0532 1861637
> http://www.meeo.it
>
> ========================================
> "ATTENZIONE:le informazioni contenute in questo messaggio sono
> da considerarsi confidenziali ed il loro utilizzo è riservato unicamente
> al destinatario sopra indicato. Chi dovesse ricevere questo messaggio
> per errore è tenuto ad informare il mittente ed a rimuoverlo
> definitivamente da ogni supporto elettronico o cartaceo."
>
> "WARNING:This message contains confidential and/or proprietary
> information which may be subject to privilege or immunity and which
> is intended for use of its addressee only. Should you receive this
> message in error, you are kindly requested to inform the sender and
> to definitively remove it from any paper or electronic format."
>
> _______________________________________________
> Glade-users maillist  -  Glade-users at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-users
>


More information about the Glade-users mailing list