Re: DND in TreeView



On Sat, Mar 28, 2009 at 08:06:06PM -0400, José Alburquerque wrote:
> On Sat, 2009-03-28 at 13:38 +0800, Deng Xiyue wrote:
> > Sorry again for the delay of my reply.
> > 
> > Thanks a lot for the patch. It makes it clear that in both scenario the
> > delete signal is indeed emitted, but yields an invalid iterator, so my
> > code doesn't work. I also found I can use 'path[0]' to get an actual
> > usable index, which should be enough for my current use case, but please
> > do correct me if I'm still using a suboptimal way to achieve this.
> > Thanks again.
> 
> I don't have the time to look at your code and tell you what you should
> do.  I think you should research and do this yourself.  You will be
> greatly benefited by reading the docs and experimenting yourself.
> Please do not rely on my advice to do what you should be doing.
> 

OTOH, the docs is not quite clear about how to handle DND in TreeView,
and I supposed such operation is quite common which merits an example.
The existing DND examples in TreeView is about how to use TreeView as a
general DND source or destination, which doesn't cover the case of DND
of rows within the TreeView. I'll try to provide one for review and file
a enhancement bug against gtkmm-documentation when time permits.

Thanks for you help.

Regards,
Deng Xiyue



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