Re: How to get/set ... in GTK 1.2?
- From: carlos pehoe civil ist utl pt (Carlos Pereira)
- To: gtk-app-devel-list gnome org
- Subject: Re: How to get/set ... in GTK 1.2?
- Date: Wed, 21 May 2003 00:06:33 +0100 (WEST)
I see that GTK 2.0 has the functions. ;-( But I'm still maintaining my
app with GTK 1.2. Two questions:
1. How can I get / set window position?
This is what I use on Gtk 1.2:
(get original geometry)
gdk_window_get_size (window->window, &width, &height);
gdk_window_get_origin (window->window, &origin_x, &origin_y);
(go full screen)
gdk_window_move_resize (window->window, 0, 0, gdk_screen_width(), gdk_screen_height());
(go to original geometry)
gdk_window_move_resize (window->window, origin_x, origin_y, width, height);
Carlos
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]