summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-06-07 13:55:09 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-06-08 06:56:12 -0400
commit1bd10f2a7bc2164541829c48b48d338d199015f2 (patch)
treed64c928b85bed61c2bfc2dc1d9f3ecbdf8e3815b /gtk
parent0a2b1b68fabba32add0cb95f2aa5c05539f935c5 (diff)
downloadgtk+-1bd10f2a7bc2164541829c48b48d338d199015f2.tar.gz
entry: Shorten touch selection timeout
We don't want the popup to appear spontaneously, so eventually the timeout may go away altogether. For now, shorten it to 50ms, to avoid rewriting all the places where the timeout is set or unset.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkentry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index baa5a66443..8813486e51 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -9825,7 +9825,7 @@ bubble_targets_received (GtkClipboard *clipboard,
}
static gboolean
-gtk_entry_selection_bubble_popup_cb (gpointer user_data)
+gtk_entry_selection_bubble_popup_show (gpointer user_data)
{
GtkEntry *entry = user_data;
@@ -9864,7 +9864,7 @@ gtk_entry_selection_bubble_popup_set (GtkEntry *entry)
g_source_remove (priv->selection_bubble_timeout_id);
priv->selection_bubble_timeout_id =
- gdk_threads_add_timeout (1000, gtk_entry_selection_bubble_popup_cb, entry);
+ gdk_threads_add_timeout (50, gtk_entry_selection_bubble_popup_show, entry);
g_source_set_name_by_id (priv->selection_bubble_timeout_id, "[gtk+] gtk_entry_selection_bubble_popup_cb");
}