I believe we should try as hard as possible to guess the good window
sizes first, but it's nice to remember window size and position, as well
as accels.
It's still a very manual process sadly; see yelp for an example on loading the
values from .gnome2/yelp:
gchar* config_path = g_strconcat( g_get_home_dir(), YELP_CONFIG_PATH, NULL);
if( !g_key_file_load_from_file (keyfile, config_path,
G_KEY_FILE_KEEP_COMMENTS |
G_KEY_FILE_KEEP_TRANSLATIONS,
&config_error)) {
g_warning ("Failed to load config file: %s\n", config_error->message);
g_error_free (config_error);
width = YELP_CONFIG_WIDTH_DEFAULT;
height = YELP_CONFIG_HEIGHT_DEFAULT;
...
gedit does it differently, evince does it per document etc.
Another common thing to save/restore are accels; this is usually
achieved (more easily) with gtk_accel_map_load and save.
--
language selector must remember its window size
https://bugs.launchpad.net/bugs/29205
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs