From 9493341cc91ac34a9f96752f781760d6b4745fd5 Mon Sep 17 00:00:00 2001 From: Jody Goldberg Date: Tue, 31 Aug 2004 18:05:35 +0000 Subject: [PATCH] tracked the long running irrtation about 'expecting int received float'. 2004-08-31 Jody Goldberg * 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. --- ChangeLog | 8 ++++++++ capplets/common/gconf-property-editor.c | 9 +++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5cee369dd..caa89a1e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-08-31 Jody Goldberg + + * 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 * configure.in: post release bump. diff --git a/capplets/common/gconf-property-editor.c b/capplets/common/gconf-property-editor.c index db4939775..7962434c8 100644 --- a/capplets/common/gconf-property-editor.c +++ b/capplets/common/gconf-property-editor.c @@ -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);