Re: Gtk::TreeView



Vladimir,

Could you be a tad bit more specific on the problem you're having?

Paul

On 12/17/06, Vladimir Đokić <v djokic gmail com> wrote:

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
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list





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