Re: Saving window position
- From: Gorshkov <listsubscriptions oghma on ca>
- 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 05:28:38 -0500
John Franklin wrote:
Can someone please tell me how to save and restore the window position and size of a GTK app? Searching on
the web has pointed me in the direction of GnomeClient which I don't really understand. It seems very complicated
for what I'm trying to do. Is there any sample code available?
John
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
to get the window position/size:
gtk_window_get_position(window, &x, &y);
gtk_window_get_size(window, &width, &height);
to set the window position/size:
gtk_window_move(window, x, y);
gtk_window_set_default_size(window, width, height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]