Re: Preserved Window Placement





2012/10/28 Federico Mena Quintero <federico gnome org>
Even easier and general-purpose:

gtk_window_set_state_saving_key (window, char *key);


Not easier, if your app has multiple windows, you can just set a property on/off on your app class and have the internals of GtkApplication do what is right and even clever things like storing the relative position to each other and handle that on screen(s) resolution changes on the next application startup.
 
Call it before realization, and Magic Happens at the right time :)

  Federico
--
Cheers,
Alberto Ruiz


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