Commit 1403ebb0 authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

settings: Add gtk-long-press-time setting

This setting determines the duration of a button/touch press to
be considered a long press.
parent 61e88c25
......@@ -219,7 +219,8 @@ enum {
PROP_DECORATION_LAYOUT,
PROP_DIALOGS_USE_HEADER,
PROP_ENABLE_PRIMARY_PASTE,
PROP_RECENT_FILES_ENABLED
PROP_RECENT_FILES_ENABLED,
PROP_LONG_PRESS_TIME
};
/* --- prototypes --- */
......@@ -1635,6 +1636,22 @@ gtk_settings_class_init (GtkSettingsClass *class)
GTK_PARAM_READWRITE),
NULL);
g_assert (result == PROP_RECENT_FILES_ENABLED);
/**
* GtkSettings:gtk-long-press-time:
*
* The time for a button or touch press to be considered a "long press".
*
* Since: 3.14
*/
result = settings_install_property_parser (class,
g_param_spec_uint ("gtk-long-press-time",
P_("Long press time"),
P_("Time for a button/touch press to be considered a long press (in milliseconds)"),
0, G_MAXINT, 500,
GTK_PARAM_READWRITE),
NULL);
g_assert (result == PROP_LONG_PRESS_TIME);
}
static void
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment