Re: Saving window position



On 11/03/2008, John Franklin <john lesberries co uk> wrote:
Can someone please tell me how to save and restore the window position and size of a GTK app? Searching on

I save and restore window size by recording the user's preferred width
and height in a configure handler, then on window creation, setting
that preferred size with gtk_window_set_default_size().

I don't try to save and restore window position: this is usually best
left to the user's window manager, in my opinion, since it knows what
else is on the screen and where the clear parts are.

John



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