Tweak the numbers a bit
2001-07-26 Bradford Hovinen <hovinen@ximian.com> * keyboard-properties.c (apply_settings): Tweak the numbers a bit
This commit is contained in:
parent
71942b3edf
commit
718678eaf9
2 changed files with 4 additions and 2 deletions
|
@ -4,6 +4,7 @@
|
||||||
fields of this data structure
|
fields of this data structure
|
||||||
(apply_settings): Use lookup table to get the values to put in
|
(apply_settings): Use lookup table to get the values to put in
|
||||||
kbdsettings
|
kbdsettings
|
||||||
|
(apply_settings): Tweak the numbers a bit
|
||||||
|
|
||||||
* Makefile.am (bonobo_sources): Remove bonobo-property-editor-range.[ch]
|
* Makefile.am (bonobo_sources): Remove bonobo-property-editor-range.[ch]
|
||||||
|
|
||||||
|
|
|
@ -46,10 +46,10 @@ apply_settings (Bonobo_ConfigDatabase db)
|
||||||
int bell_volume, bell_pitch, bell_duration;
|
int bell_volume, bell_pitch, bell_duration;
|
||||||
|
|
||||||
static int rates[] = {
|
static int rates[] = {
|
||||||
255, 192, 128, 64
|
255, 192, 64, 1
|
||||||
};
|
};
|
||||||
static int delays[] = {
|
static int delays[] = {
|
||||||
10000, 6000, 3000, 0
|
1000, 700, 300, 0
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef HAVE_X11_EXTENSIONS_XF86MISC_H
|
#ifdef HAVE_X11_EXTENSIONS_XF86MISC_H
|
||||||
|
@ -76,6 +76,7 @@ apply_settings (Bonobo_ConfigDatabase db)
|
||||||
{
|
{
|
||||||
kbdsettings.type = 0;
|
kbdsettings.type = 0;
|
||||||
kbdsettings.rate = rates[rate];
|
kbdsettings.rate = rates[rate];
|
||||||
|
g_message ("Setting rate to %d", kbdsettings.rate);
|
||||||
kbdsettings.delay = delays[delay];
|
kbdsettings.delay = delays[delay];
|
||||||
kbdsettings.servnumlock = False;
|
kbdsettings.servnumlock = False;
|
||||||
XF86MiscSetKbdSettings (GDK_DISPLAY (), &kbdsettings);
|
XF86MiscSetKbdSettings (GDK_DISPLAY (), &kbdsettings);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue