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. "
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to