Re: retrieve all entries from a GtkComboBox?



> > You should be able to get the model (gtk_combo_box_get_model())
> > and iterate over that (gtk_tree_model_foreach())
>
> Yes, but how does that give access to the lines of text that  where
> previously appended/inserted/etc. to the model?

gchar* cell_string;
gtk_tree_model_get (model, iter, 0, &cell_string, -1)
g_free( cell_string );

Jan-Marek



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