Setting absolute position of a Window in GTK - is there no top-left shortcut?

Hi guys.

I am looking at the documentation:

http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AWindow#Position

Let me copy paste here:

POS_NONE
No influence is made on placement.
POS_CENTER
Windows should be placed in the center of the screen.
POS_MOUSE
Windows should be placed at the current mouse position.
POS_CENTER_ALWAYS
Keep window centered as it changes size, etc.
POS_CENTER_ON_PARENT
Center the window on its transient parent (see
Gtk::Window#transient_for=).

Ok… I see 5 options… but where is POS_LEFT or POS_TOP? Are these not
available in Gtk? And, where could I find official documentation about
this, I mean, Gtk-documentation rather than ruby-gtk documentation?

Hi,

2013/12/5 Marc H. [email protected]:

Ok… I see 5 options… but where is POS_LEFT or POS_TOP? Are these not
available in Gtk? And, where could I find official documentation about
this, I mean, Gtk-documentation rather than ruby-gtk documentation?

One way I think that you can use Gtk::Window#move.

For example:

window = Gtk::Window.new
window.move(0, 0)

http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AWindow#move


Masafumi Y.

Thanks!

That works nicely!