Adding more comments.
result is a TreeIter.
I'm trying this inside the callback function
if ( obj != null ) {
TreeIter item = (TreeIter)obj;
System.out.println("Value : " + _treeStore.getValue(item,
_dataName));
}
But I'm getting a classcast exception.
On Thu, 2005-03-31 at 07:29 -0500, Manuel Ledesma wrote:
> I finally got the callback working, But now If I try to use the
> handlers the program is quitting. I read that the
> GObject.getGObjectFromHandle is for internal use but How can I get the
> row that just expanded.
>
> example.
>
> // Callback definition ...
> _treeView.addEventHandler("test-expand-row", "testExpandRow", this,
> result);
>
>
> // Callback function
> public boolean testExpandRow(Handle widget, Handle data, Object obj) {
> GObject test = GObject.getGObjectFromHandle(widget);
>
> return true;
> }
>
>
> On Wed, 2005-03-30 at 23:07 -0500, Manuel Ledesma wrote:
>
> > I'm trying to catch the "test-expand-row" signal. I cannot find an
> > example for Java.
> >
> > Can someone illustrate me ?
|