Enable
2001-12-18 Bradford Hovinen <hovinen@ximian.com> * keyboard-properties.c (get_legacy_settings): Enable
This commit is contained in:
parent
9cf6051537
commit
5cf9b9e178
2 changed files with 7 additions and 4 deletions
|
@ -5,6 +5,7 @@
|
|||
(create_dialog): Use gtk_image_ functions for the volume icon
|
||||
(get_int_from_changeset): Use return value of
|
||||
gconf_change_set_check_value to determine if the key is in the set
|
||||
(get_legacy_settings): Enable
|
||||
|
||||
2001-10-12 Bradford Hovinen <hovinen@ximian.com>
|
||||
|
||||
|
|
|
@ -111,10 +111,12 @@ apply_settings (void)
|
|||
static void
|
||||
get_legacy_settings (void)
|
||||
{
|
||||
gboolean val_boolean, def;
|
||||
gulong val_ulong;
|
||||
GConfClient *client;
|
||||
gboolean val_bool, def;
|
||||
gulong val_int;
|
||||
|
||||
client = gconf_client_get_default ();
|
||||
|
||||
#if 0
|
||||
COPY_FROM_LEGACY (bool, "/gnome/desktop/peripherals/keyboard/repeat", "/Desktop/Keyboard/repeat=true");
|
||||
COPY_FROM_LEGACY (bool, "/gnome/desktop/peripherals/keyboard/click", "/Desktop/Keyboard/click=true");
|
||||
COPY_FROM_LEGACY (int, "/gnome/desktop/peripherals/keyboard/rate", "/Desktop/Keyboard/rate=30");
|
||||
|
@ -123,7 +125,6 @@ get_legacy_settings (void)
|
|||
COPY_FROM_LEGACY (int, "/gnome/desktop/peripherals/keyboard/bell_volume", "/Desktop/Bell/percent=50");
|
||||
COPY_FROM_LEGACY (int, "/gnome/desktop/peripherals/keyboard/bell_pitch", "/Desktop/Bell/pitch=50");
|
||||
COPY_FROM_LEGACY (int, "/gnome/desktop/peripherals/keyboard/bell_duration", "/Desktop/Bell/duration=100");
|
||||
#endif
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -152,6 +153,7 @@ bell_cb (GtkWidget *widget, GConfChangeSet *changeset)
|
|||
XChangeKeyboardControl (GDK_DISPLAY (),
|
||||
KBBellPercent | KBBellPitch | KBBellDuration,
|
||||
&kbdcontrol);
|
||||
|
||||
XBell (GDK_DISPLAY (), 0);
|
||||
|
||||
kbdcontrol.bell_percent = backup.bell_percent;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue