Re: [gnome-db] Problems with mainpagetable.c



On Thu, 2003-01-23 at 09:31, Vivien Malerba wrote:
> On Thu, Jan 23, 2003 at 12:02:36AM +0100, Rodrigo Moya wrote:
> > On Wed, 2003-01-22 at 23:47, Vivien Malerba wrote:
> > > Hi!
> > > 
> > > I've noticed than there are some problems with the MainPageTable widget
> > > when the connection is closed. BTW, I really like the GnomeDbGrid widget and its
> > > data model.
> > > 
> > > I've updated a bit the code because normally every row in the model has
> > > a Row_Data pointer which must not be null. I think there is a problem
> > > somewhere, maybe in the GdaDataModel code because if you uncomment line
> > > 591 then when the next table is removed, the assertion line 588 will not
> > > be true whereas it should be.
> > > 
> > yes, there is somewhere a problem, although I couldn't track it down,
> > and then I left it for later. Do you have any idea what might be
> > happening?
> > 
> 
> >From what I saw yesterday, the problem _would_ come from the
> GdaDataModel or from GnomeDbGrid, but I'm really not sure. I'll try to
> investigate this tomorrow.
> 
ok, I fixed it. It was just not updating the indexes for the row data,
so if you removed a row, its associated data was still being stored, and
the index-based data of the other rows was not updated.

It should work now.

cheers




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