diff --git a/capplets/keyboard/ChangeLog b/capplets/keyboard/ChangeLog index 76146ae26..df5101918 100644 --- a/capplets/keyboard/ChangeLog +++ b/capplets/keyboard/ChangeLog @@ -1,3 +1,8 @@ +Mon May 13 17:32:25 2002 Jonathan Blandford + + * gnome-keyboard-properties.c (delay_to_widget): hook up widget + correctly. + 2002-05-09 Jody Goldberg * gnome-keyboard-properties.c (dialog_response) : support help. diff --git a/capplets/keyboard/gnome-keyboard-properties.c b/capplets/keyboard/gnome-keyboard-properties.c index f829da4fa..5f1a7c5f0 100644 --- a/capplets/keyboard/gnome-keyboard-properties.c +++ b/capplets/keyboard/gnome-keyboard-properties.c @@ -101,13 +101,13 @@ delay_to_widget (GConfPropertyEditor *peditor, const GConfValue *value) new_value = gconf_value_new (GCONF_VALUE_INT); if (delay >= (1000 + 700) / 2) - gconf_value_set_int (new_value, 0); - else if (delay >= (700 + 300) / 2) - gconf_value_set_int (new_value, 1); - else if (delay >= (300) / 2) - gconf_value_set_int (new_value, 2); - else gconf_value_set_int (new_value, 3); + else if (delay >= (700 + 300) / 2) + gconf_value_set_int (new_value, 2); + else if (delay >= (300 + 150) / 2) + gconf_value_set_int (new_value, 1); + else + gconf_value_set_int (new_value, 0); return new_value; } @@ -116,7 +116,7 @@ static GConfValue * delay_from_widget (GConfPropertyEditor *peditor, GConfValue *value) { static int delays[] = { - 1000, 700, 300, 0 + 150, 300, 700, 1000 }; GConfValue *new_value; diff --git a/capplets/keyboard/gnome-keyboard-properties.glade b/capplets/keyboard/gnome-keyboard-properties.glade index 89a5b5be4..e6657adb7 100644 --- a/capplets/keyboard/gnome-keyboard-properties.glade +++ b/capplets/keyboard/gnome-keyboard-properties.glade @@ -5,7 +5,7 @@ - Keyboard Properties + Keyboard Preferences GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False @@ -81,8 +81,8 @@ True - Repeat Rate 0 + 0.5 GTK_SHADOW_ETCHED_IN @@ -166,6 +166,7 @@ 0.5 0 0 + repeat_delay_omenu 0 @@ -190,6 +191,7 @@ 0.5 0 0 + repeat_speed_omenu 0 @@ -205,7 +207,7 @@ True True - -1 + 0 @@ -214,61 +216,33 @@ True - - - Very long - 0.0 - convertwidget2 - yes - yes - - - + Very Short + True + True - - - Long - 0.0 - convertwidget3 - yes - yes - - - + Short + True + True - - - Medium - 0.0 - convertwidget4 - yes - yes - - - + Medium + True + True - - - Short - 0.0 - convertwidget5 - yes - yes - - - + Long + True + @@ -286,7 +260,7 @@ True True - -1 + 0 @@ -295,60 +269,32 @@ True - - - Very fast - 0.0 - convertwidget11 - yes - yes - - + Very Fast + True True - - - Fast - 0.0 - convertwidget12 - yes - yes - - + Fast + True True - - - Medium - 0.0 - convertwidget13 - yes - yes - - + Medium + True True - - - Slow - 0.0 - convertwidget14 - yes - yes - - + Slow + True @@ -379,6 +325,25 @@ + + + + True + Repeat Rate + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + label_item + + 0 @@ -390,8 +355,8 @@ True - Cursor 0 + 0.5 GTK_SHADOW_ETCHED_IN @@ -604,6 +569,25 @@ + + + + True + Cursor + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + label_item + + 0 @@ -615,8 +599,8 @@ True - Accessibility 0 + 0.5 GTK_SHADOW_ETCHED_IN @@ -690,6 +674,25 @@ + + + + True + Accessibility + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + label_item + + 0 @@ -707,8 +710,8 @@ True - _Keyboard - True + Keyboard + False False GTK_JUSTIFY_CENTER False @@ -733,8 +736,8 @@ True - Keyclick Volume 0 + 0.5 GTK_SHADOW_ETCHED_IN @@ -935,6 +938,25 @@ + + + + True + Keyclick Volume + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + label_item + + 0 @@ -946,8 +968,8 @@ True - Keyboard Bell 0 + 0.5 GTK_SHADOW_ETCHED_IN @@ -1131,6 +1153,25 @@ + + + + True + Keyboard Bell + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + label_item + + 0 @@ -1148,8 +1189,8 @@ True - _Sound - True + Sound + False False GTK_JUSTIFY_CENTER False