Fix typo in adjust-opacity part

2001-01-24  Bradford Hovinen  <hovinen@ximian.com>

	* capplets/new-background-properties/preferences.c
	(preferences_read_xml): Fix typo in adjust-opacity part

	* capplets/new-background-properties/main.c (do_set_xml): Apply
	preferences as well as saving them
This commit is contained in:
Bradford Hovinen 2001-01-25 15:25:18 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent 18b6da4d1a
commit d2d4f6c4f1
3 changed files with 13 additions and 3 deletions

View file

@ -1,3 +1,11 @@
2001-01-24 Bradford Hovinen <hovinen@ximian.com>
* capplets/new-background-properties/preferences.c
(preferences_read_xml): Fix typo in adjust-opacity part
* capplets/new-background-properties/main.c (do_set_xml): Apply
preferences as well as saving them
2001-01-24 jacob berkman <jacob@ximian.com> 2001-01-24 jacob berkman <jacob@ximian.com>
* new-control-center/*.[ch]: new (temporary) html view and bug * new-control-center/*.[ch]: new (temporary) html view and bug

View file

@ -116,10 +116,12 @@ do_set_xml (void)
prefs = preferences_read_xml (doc); prefs = preferences_read_xml (doc);
if (prefs) if (prefs) {
preferences_save (prefs); preferences_save (prefs);
else preferences_apply_now (prefs);
} else {
g_warning ("Error while reading the screensaver config file"); g_warning ("Error while reading the screensaver config file");
}
} }
int int

View file

@ -409,7 +409,7 @@ preferences_read_xml (xmlDocPtr xml_doc)
else if (!strcmp (node->name, "auto-apply")) else if (!strcmp (node->name, "auto-apply"))
prefs->auto_apply = TRUE; prefs->auto_apply = TRUE;
else if (!strcmp (node->name, "adjust-opacity")) else if (!strcmp (node->name, "adjust-opacity"))
prefs->auto_apply = TRUE; prefs->adjust_opacity = TRUE;
else if (!strcmp (node->name, "opacity")) else if (!strcmp (node->name, "opacity"))
prefs->opacity = xml_read_int (node, NULL); prefs->opacity = xml_read_int (node, NULL);
} }