[Java-gnome-developer] problem with GtkTree signals
Brought to you by:
afcowie
|
From: Damien <da...@ca...> - 2001-09-14 20:31:08
|
Me again ... :)
I've got a problem with the tree signal "select-child". It passes a
GtkWidget has an argument to the callback function. If I print the
widget.getName(), I get a GtkTreeItem, wich is good, but when I try cast
the GtkWidget to a GtkTreeItem, nothings happen ...
For example:
mytree.signalConnect("select-child", "onChildSelected", this)
public void onChildSelected( GtkWidget wgt )
{
System.err.println("1");
GtkTreeItem myitem = (GtkTreeItem) wgt;
System.err.println("2");
}
I only get "1" has output. everything after the line GtkTreeItem myitem
... seems to not happen. If I do a System.err.println( wgt ), I get
something like GtkWidget @152136 ...
Don't know if this is a bug or if it is my fault ...
See you,
Dam
|