Disable wallpaper in new_prefs structure, not structure passed to function
2001-01-27 Bradford Hovinen <hovinen@ximian.com> * capplets/new-background-properties/applier.c (applier_apply_prefs): Disable wallpaper in new_prefs structure, not structure passed to function 2001-01-26 Bradford Hovinen <hovinen@ximian.com> * capplets/new-background-properties/main.c (do_restore_from_defaults): Implement. Creates a preferences object with factory defaults and saves and applies those changes.
This commit is contained in:
parent
fd67dddf1a
commit
427ef6c2d6
3 changed files with 25 additions and 1 deletions
|
@ -144,6 +144,14 @@ do_set_xml (void)
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
do_restore_from_defaults (void)
|
||||
{
|
||||
prefs = PREFERENCES (preferences_new ());
|
||||
preferences_save (prefs);
|
||||
preferences_apply_now (prefs);
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
|
@ -171,6 +179,10 @@ main (int argc, char **argv)
|
|||
do_set_xml ();
|
||||
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