Re: How can I find out the text of an entry in a ComboBox

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

 



On Mon, 2005-12-12 at 10:58 -0500, yinglcs@xxxxxxx wrote:
> How can I find out the text of an entry in a ComboBox if I only know 
> the index of that entry?

Try:
	gtk_combo_box_get_active_text ();

Or something like:

	model = gtk_combo_box_get_model (combobox);
	path = gtk_tree_path_new_from_indices (0, -1);
	gtk_tree_model_get_iter (model, &iter, path);
	gtk_tree_model_get (model, &iter, 0, &str, -1);
	gtk_tree_path_free (path);
	g_free (str);
	
-- 
Regards,
Martyn

_______________________________________________

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