Re: Saving window position
- From: jcupitt gmail com
- To: "John Franklin" <john lesberries co uk>
- Cc: GTK developer list <gtk-app-devel-list gnome org>
- Subject: Re: Saving window position
- Date: Tue, 11 Mar 2008 10:28:19 +0000
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]