tracked the long running irrtation about 'expecting int received float'.

2004-08-31  Jody Goldberg <jody@gnome.org>

	* capplets/common/gconf-property-editor.c
	(peditor_numeric_range_widget_changed) : tracked the long running
	  irrtation about 'expecting int received float'.  Running without a
	  schema would default the value to float.  12 of 13 callers had ints
	  so I have changed the default and added a warning.
This commit is contained in:
Jody Goldberg 2004-08-31 18:05:35 +00:00 committed by Jody Goldberg
parent 86ef7cfba0
commit 9493341cc9
2 changed files with 15 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2004-08-31 Jody Goldberg <jody@gnome.org>
* capplets/common/gconf-property-editor.c
(peditor_numeric_range_widget_changed) : tracked the long running
irrtation about 'expecting int received float'. Running without a
schema would default the value to float. 12 of 13 callers had ints
so I have changed the default and added a warning.
Sun Aug 29 22:37:00 2004 Jonathan Blandford <jrb@gnome.org>
* configure.in: post release bump.

View file

@ -1116,8 +1116,13 @@ peditor_numeric_range_widget_changed (GConfPropertyEditor *peditor,
NULL);
if (default_value)
value_wid = gconf_value_new (default_value->type);
else
value_wid = gconf_value_new (GCONF_VALUE_FLOAT);
else {
g_warning ("Unable to find a default value for key for %s.\n"
"I'll assume it is an integer, but that may break things.\n"
"Please be sure that the associated schema is installed",
peditor->p->key);
value_wid = gconf_value_new (GCONF_VALUE_INT);
}
gconf_value_free (default_value);