Gtk::TreeView
- From: "Vladimir Đokić" <v djokic gmail com>
- To: gtkmm-list gnome org
- Subject: Gtk::TreeView
- Date: Mon, 18 Dec 2006 06:17:13 +0100
Hi all,
I've created UI for an app using glade, and now have problem with treeview/treemodel - have created tree view in glade also (code is just to illustrate):
class Foo
{
public:
Foo()
{
mWindow = xml->get_widget("window", mWindow);
Gtk::TreeView* tree_view = NULL;
xml->get_widget("tree_view", tree_view);
// Standard code for creating treemodel goes here (from gtkmm book example)...
}
~Foo()
{
delete mWindow; // <-- heap error
... more delete code
}
private:
Gtk::Window* mWindow;
Glib::RefPtr<Gtk::TreeStore> mTreeStore;
class Columns : public Gtk::TreeModel::ColumnRecord
{ ... }
Columns mColumns;
}
I'm using win32/glade 2.12 and vs2005.
Thanks,
Vladimir.
--
"There's no room for ideals in this mechanical place. There has to be passion. "
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]