2 #include "list_dialog.h"
6 ListDialog::ListDialog(const Glib::ustring& title, std::list<uint> &l):
7 Gtk::Dialog(title, true, true)
9 list_store = Gtk::ListStore::create (columns);
10 list.set_model (list_store);
12 list.append_column ("Valor", columns.col_key);
14 std::list<uint>::iterator it = l.begin ();
15 while (it != l.end ()) {
16 Gtk::TreeModel::iterator iter = list_store->append();
17 Gtk::TreeModel::Row row = *iter;
18 row[columns.col_key] = *it;
22 get_vbox()->add (list);
24 add_button(Gtk::StockID("gtk-ok"), Gtk::RESPONSE_OK);
25 set_size_request (200, 300);