Re: [gtkmm] TreeView Model, SEGV on append



Erik,

try 

       Gtk::TreeModel::iterator iter = pMoldListModel->append ();
       Gtk::TreeModel::Row row = *iter;

For a full-blown example, see 

     http://home.comcast.net/~3rdshift/gtkmm/index.html

The code snippet you would be interested in is in MainWindow_ui.cpp,
somewhere around line 329.

hope this helps,
Vlad

On Tue, Nov 11, 2003 at 02:46:44PM -0500, Ohrnberger, Erik wrote:
> Fredrick,
> 	Yes, in the CTOR:
> 
> 	// create model
> 	pCols = new MoldListCols();
> 	pMoldListModel = ListStore::create( *pCols );
> 	tvMoldList.set_model( pMoldListModel );
> 
> In the Add method:
> 	TreeModel::Row		row;
> 	row = *( pMoldListModel->append() );	<<=== SEGV!
> 
> 	Cheers,
> 		Erik.
> 

-- 
______________________________________________________
Vladislav Grinchenko    e-mail (w): vgrinche integ com
Software Engineer            (h): 3rdshift comcast net
Integral Systems, Inc.

   Focus on quality, and productivity will follow.
______________________________________________________



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