Adjust the default values of key-repeat options.

Also make "auto-hide-delay" type integer rather than double.
This commit is contained in:
Daiki Ueno
2011-08-16 13:07:23 +09:00
parent b6beeedc26
commit 984813b154
2 changed files with 9 additions and 9 deletions

View File

@ -623,10 +623,10 @@ focus_message_filter (GDBusConnection *connection,
eekboard_context_show_keyboard (client->context, NULL);
} else if (g_settings_get_boolean (client->settings, "auto-hide") &&
g_strcmp0 (member, "FocusOut") == 0) {
gdouble delay = g_settings_get_double (client->settings,
"auto-hide-delay");
gint delay = g_settings_get_int (client->settings,
"auto-hide-delay");
client->hide_keyboard_timeout_id =
g_timeout_add ((guint)(delay * 1000),
g_timeout_add (delay,
(GSourceFunc)on_hide_keyboard_timeout,
client);
}