Handle --get-defaults (do_restore_from_defaults): Implement
2001-05-03 Bradford Hovinen <hovinen@ximian.com> * capplets/*/main.c (main): Handle --get-defaults (do_restore_from_defaults): Implement * capplets/*/preferences.c (preferences_init): Load default values
This commit is contained in:
parent
fc7487ef4f
commit
a7fa858b61
13 changed files with 171 additions and 14 deletions
|
@ -149,6 +149,14 @@ do_set_xml (gboolean apply_settings)
|
|||
return;
|
||||
}
|
||||
|
||||
static void
|
||||
do_restore_from_defaults (void)
|
||||
{
|
||||
prefs = PREFERENCES (preferences_new ());
|
||||
preferences_save (prefs);
|
||||
preferences_apply_now (prefs);
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
|
@ -176,6 +184,10 @@ main (int argc, char **argv)
|
|||
do_set_xml (TRUE);
|
||||
return 0;
|
||||
}
|
||||
else if (res == 5) {
|
||||
do_restore_from_defaults ();
|
||||
return 0;
|
||||
}
|
||||
|
||||
client = gnome_master_client ();
|
||||
flags = gnome_client_get_flags (client);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue