Re: Getting main window position
- From: Havoc Pennington <hp redhat com>
- To: sgop users sourceforge net
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Getting main window position
- Date: 26 Jan 2001 23:21:12 -0500
Markus Lausser <sgop users sourceforge net> writes:
On exit i write some geometry information to disk. I get the position of the
main
window with:
if (global_win->window) {
gdk_window_get_origin (global_win->window, &x, &y);
}
But this does not work, if i close the application via the windowmanager
(the X button), then the global_win->window == NULL.
Is there any way to get the window position if widget->window == NULL ?
If widget->window == NULL then there is no window to get the position
of. ;-)
</smartass>
As someone else said, just connect to delete_event and save then.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]