istathar / java-gnome

The java-gnome User Interface Library
http://java-gnome.sourceforge.net/
Other
47 stars 19 forks source link

Problem with org.gnome.gtk.Window setKeepAbove/setKeepBelow methods #17

Closed Jaker0 closed 7 years ago

Jaker0 commented 7 years ago

I'm trying to make somewhat of a desktop widget application using this API. I'm trying to force my org.gnome.gtk.Window instance to stay on the desktop using the setKeepAbove and setKeepBelow methods, but they seemingly have no effect. Am I doing something wrong? Is there another (or better) way to go about trying to do this?

Code:

public static void main(String[] args) {
        Gtk.init(args);

        Window window = new Window();

        window.setKeepAbove(false);
        window.setKeepBelow(true);
        window.setDefaultSize(400,600);
        window.setDecorated(false);
        window.showAll();

        Gtk.main();
}
Jaker0 commented 7 years ago

As those methods seemingly do nothing when using the C GTK on my system, this is not the fault of java-gnome.