Yes, I ran java-gnome tests and they passed fine. But I didn't find usage
of sendClick method...
This code should to press button "TEST". After that clicked[0] should be
true. But it is false...
Window window;
final boolean[] clicked = new boolean[]{false};
final Button button;
Gtk.init(new String[]{});
window = new Window();
Box box = new Box(Orientation.HORIZONTAL, 3);
button = new Button("TEST");
box.add(button);
button.connect(new Clicked() {
@Override
public void onClicked(Button source) {
clicked[0] = true;
}
});
window.add(box);
window.showAll();
Glib.idleAdd(new Handler() {
@Override
public boolean run() {
org.gnome.gtk.Test.sendClick(button, MouseButton.LEFT,
ModifierType.NONE);
System.out.println(clicked[0]);
return false;
}
});
Gtk.main();
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
java-gnome-developer mailing list
java-gnome-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/java-gnome-developer