[gtk+] Sync default double-click time with GNOME



commit 13a94b66b6d4381554658657b1937b8f44be8b21
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Mar 7 07:48:29 2016 -0500

    Sync default double-click time with GNOME
    
    The default value for the double-click key in the
    org.gnome.settings-daemon.peripherals.mouse schema is 400.
    Use the same value as the declared default for the
    gtk-double-click-time GTK+ setting, to avoid pointless
    differences in corner cases.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720950

 gdk/wayland/gdkscreen-wayland.c |    2 +-
 gtk/gtksettings.c               |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/wayland/gdkscreen-wayland.c b/gdk/wayland/gdkscreen-wayland.c
index 674f3a6..0ee0f54 100644
--- a/gdk/wayland/gdkscreen-wayland.c
+++ b/gdk/wayland/gdkscreen-wayland.c
@@ -538,7 +538,7 @@ static TranslationEntry translations[] = {
   { "org.gnome.desktop.interface", "cursor-blink-timeout", "gtk-cursor-blink-timeout", G_TYPE_INT, { .i = 
3600 } },
   { "org.gnome.desktop.interface", "gtk-im-module", "gtk-im-module", G_TYPE_STRING, { .s = "simple" } },
   { "org.gnome.desktop.interface", "enable-animations", "gtk-enable-animations", G_TYPE_BOOLEAN, { .b = TRUE 
} },
-  { "org.gnome.settings-daemon.peripherals.mouse", "double-click", "gtk-double-click-time", G_TYPE_INT, { .i 
= 250 } },
+  { "org.gnome.settings-daemon.peripherals.mouse", "double-click", "gtk-double-click-time", G_TYPE_INT, { .i 
= 400 } },
   { "org.gnome.settings-daemon.peripherals.mouse", "drag-threshold", "gtk-dnd-drag-threshold", G_TYPE_INT, 
{.i = 8 } },
   { "org.gnome.desktop.sound", "theme-name", "gtk-sound-theme-name", G_TYPE_STRING, { .s = "freedesktop" } },
   { "org.gnome.desktop.sound", "event-sounds", "gtk-enable-event-sounds", G_TYPE_BOOLEAN, { .b = TRUE } },
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index 3be0fff..6275167 100644
--- a/gtk/gtksettings.c
+++ b/gtk/gtksettings.c
@@ -370,7 +370,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
                                              g_param_spec_int ("gtk-double-click-time",
                                                                P_("Double Click Time"),
                                                                P_("Maximum time allowed between two clicks 
for them to be considered a double click (in milliseconds)"),
-                                                               0, G_MAXINT, 250,
+                                                               0, G_MAXINT, 400,
                                                                GTK_PARAM_READWRITE),
                                              NULL);
   g_assert (result == PROP_DOUBLE_CLICK_TIME);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]