Re: initial window position next to other windows?



This is the window manager, not the application controlling the position.
If you use GTK_WIN_POS_NONE, you'll let the WM decide where to place the window, and, if it's small enough, it will be placed next to other present windows.

Milosz

Am 26. Mai 2008 07:44 schrieb Rich E <reakinator gmail com>:
Hi,

This is my first week of programming with GTK+, so I'm a newbie.   I notice that alot of apps have the ability to open up next to other windows, instead of on top of them.  How is this done?  My current call puts my main winow in the center:

gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_CENTER)

Do I use this call, or is it something else that figures out where the other windows are and where to put my new window?

I like the gtk api by the way, if there are devs reading this.  Very straightforward.

regards.
Rich

_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]