P
prhlava
hello,
i am trying to create a combo box where drop-down bit is a list-store
with two columns. the following code does not work:
@title = Gtk::ComboBox.new(false)
renderer = Gtk::CellRendererText.new()
@title.append_column(Gtk::TreeViewColumn.new('id', renderer, :text =>
0))
@title.append_column(Gtk::TreeViewColumn.new('name', renderer, :text =>
1))
(the append_column method does not exist).
i have searched the documentation but still cannot figure this one out
(it works with tree views).
did i miss some part of documentation?
vlad
i am trying to create a combo box where drop-down bit is a list-store
with two columns. the following code does not work:
@title = Gtk::ComboBox.new(false)
renderer = Gtk::CellRendererText.new()
@title.append_column(Gtk::TreeViewColumn.new('id', renderer, :text =>
0))
@title.append_column(Gtk::TreeViewColumn.new('name', renderer, :text =>
1))
(the append_column method does not exist).
i have searched the documentation but still cannot figure this one out
(it works with tree views).
did i miss some part of documentation?
vlad