Ruby-gnome/gtk and Positioning?

M

Marc Heiler

Not sure if this is the proper place to ask for a ruby-gtk/gnome
question, but in case its not you'd surely tell me so. :)

The question I have is, that aside from the constants like POS_NONE
(Example Code: main_window.set_window_position(Gtk::Window::pOS_NONE) )
is there any other way to specify the precise location of a GTK app?
Specifically I'd like to place it at "top left" corner upon startup
of the ruby application, but I cant seem to be able to do
exactly that.

For quick reference, only 5 constants seem to be possible at:
http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk::Window#Position

Thanks for any help-pointer in advance.
 
L

Logan Capaldo

Not sure if this is the proper place to ask for a ruby-gtk/gnome
question, but in case its not you'd surely tell me so. :)

The question I have is, that aside from the constants like POS_NONE
(Example Code: main_window.set_window_position(Gtk::Window::pOS_NONE) )
is there any other way to specify the precise location of a GTK app?
Specifically I'd like to place it at "top left" corner upon startup
of the ruby application, but I cant seem to be able to do
exactly that.
You are asking the wrong layer. The window manager has the final say in
any and all window placement. You can suggest, you can cajole, but you
can never demand, unless you have a way of talking to the WM directly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top