GtkComboBox, models and views

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

 



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.
_______________________________________________

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