[Glade-users] Libglade save/restore root window size?



Does anyone have an idea of how to have a libglade application save the
window size and then use the save settings the next time the application
runs?  The user should not be prevented from being able to manually
resize the window smaller or larger, but the user saved sizes should be
recalled the next time the application is started.

I converted a GTK+ glade project to libglade.  The application used to
be able to save and set the root window size using get_window_coord(),
gtk_window_move(), and gtk_window_set_default_size ().

Since converting the project to use libglade, restoring the window size
on application start no longer works, but rather the default size
defined in the glade file is always used.

Perhaps this has something to do with the fact that the window is
rendered upon loading the XML file, and this is now done prior to using
the gtk_window_set_default_size() function.

Kevin Bulgrien




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]