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.


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

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.


gtk-list mailing list
gtk-list gnome org

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