GtkComboBox, models and views
- From: Diego Zuccato <diego otello alma unibo it>
- To: GtkList <gtk-list gnome org>
- Subject: GtkComboBox, models and views
- Date: Fri, 25 Jun 2004 11:59:44 -0400
Hello all.
I'm trying to use the new combo box w/ models to reduce screen
cluttering while porting an "old" app that used a plain treeview.
I already connected the model to the combo, but how can I replace:
// cbx is the combo box, zone1 is the model, v is the treeview
gtk_combo_box_set_model(cbx, zone1);
v=GTK_TREE_VIEW(gtk_combo_box????()); // How can I get the view?
//converted gtk_tree_view_set_model(v, zone1);
c=gtk_tree_view_column_new_with_attributes(NULL, rt, "text", ZONE_DSC,
NULL);
gtk_tree_view_append_column(v, c);
// Are these needed?
sel=gtk_tree_view_get_selection(v);
gtk_tree_selection_set_mode(sel, GTK_SELECTION_SINGLE);
Tks.
BYtE,
Diego.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]