diff --git a/capplets/mouse/gnome-mouse-properties.c b/capplets/mouse/gnome-mouse-properties.c index 8d11a81f8..b065326be 100644 --- a/capplets/mouse/gnome-mouse-properties.c +++ b/capplets/mouse/gnome-mouse-properties.c @@ -228,13 +228,6 @@ threshold_from_gconf (GConfPropertyEditor *peditor, return new_value; } -static GConfValue * -threshold_to_gconf (GConfPropertyEditor *peditor, - const GConfValue *value) -{ - return gconf_value_float_to_int (value); -} - static GConfValue * drag_threshold_from_gconf (GConfPropertyEditor *peditor, const GConfValue *value) @@ -248,13 +241,6 @@ drag_threshold_from_gconf (GConfPropertyEditor *peditor, return new_value; } -static GConfValue * -drag_threshold_to_gconf (GConfPropertyEditor *peditor, - const GConfValue *value) -{ - return gconf_value_float_to_int (value); -} - /* Retrieve legacy settings */ static void @@ -686,14 +672,14 @@ setup_dialog (GladeXML *dialog, GConfChangeSet *changeset) gconf_peditor_new_numeric_range (changeset, "/desktop/gnome/peripherals/mouse/motion_threshold", WID ("sensitivity_scale"), "conv-to-widget-cb", threshold_from_gconf, - "conv-from-widget-cb", threshold_to_gconf, + "conv-from-widget-cb", gconf_value_float_to_int, NULL); /* DnD threshold */ gconf_peditor_new_numeric_range (changeset, "/desktop/gnome/peripherals/mouse/drag_threshold", WID ("drag_threshold_scale"), "conv-to-widget-cb", drag_threshold_from_gconf, - "conv-from-widget-cb", drag_threshold_to_gconf, + "conv-from-widget-cb", gconf_value_float_to_int, NULL); /* listen to cursors changing */