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);
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to