GtkComboBox - how to clear and repopulate in one step?

2007-12-06 Thread asdf
I am using gtk_combo_box_new_text() to setup a combo box to display a list of strings. However, the documentation states that in this case you can only use the following set of related (convenience) functions to manipulate the ComboBox: gtk_combo_box_append_text() gtk_combo_box_insert_text() gtk_

Re: Displaying a (simple) list of strings

2007-12-05 Thread asdf
I need to improve my google search skills! That's a very useful tutorial - thanks. Regards, Salman Ahmed --- Dave Howorth <[EMAIL PROTECTED]> wrote: > > Have you read this one? > > > Cheers, Dave ___

Re: Displaying a (simple) list of strings

2007-12-05 Thread asdf
--- Matí­as Alejandro Torres <[EMAIL PROTECTED]> wrote: > An example of a GtkTreeView with a couple of strings. > > About the 10 items limit I don't know how to do that. Maybe if you can > get the requested size of a row ( gtk_cell_renderer_get_size () ), > multiplying it by 10 and setting thi

Displaying a (simple) list of strings

2007-12-04 Thread asdf
Hi, I am just getting started with GTK+ programming using C. And after having spent a few hours going through the GTK+ 2.0 tutorial, I am having a hard time understanding and writing code to display a bunch of strings in a List (TreeView) widget. Could someone help me out by posting sample code