[gtk+/wip/matthiasc/touch-selection: 1/6] Shorten touch selection timeout
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/touch-selection: 1/6] Shorten touch selection timeout
- Date: Sun, 7 Jun 2015 17:01:07 +0000 (UTC)
commit 4a08b1da2cece7eae3092892c81aeb6a2c033798
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jun 7 12:09:59 2015 -0400
Shorten touch selection timeout
We don't want this to appear after a timeout, 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.
gtk/gtktextview.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 4158a27..803acc3 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -9251,7 +9251,7 @@ bubble_targets_received (GtkClipboard *clipboard,
}
static gboolean
-gtk_text_view_selection_bubble_popup_cb (gpointer user_data)
+gtk_text_view_selection_bubble_popup_show (gpointer user_data)
{
GtkTextView *text_view = user_data;
gtk_clipboard_request_contents (gtk_widget_get_clipboard (GTK_WIDGET (text_view),
@@ -9292,7 +9292,7 @@ gtk_text_view_selection_bubble_popup_set (GtkTextView *text_view)
g_source_remove (priv->selection_bubble_timeout_id);
priv->selection_bubble_timeout_id =
- gdk_threads_add_timeout (1000, gtk_text_view_selection_bubble_popup_cb,
+ gdk_threads_add_timeout (50, gtk_text_view_selection_bubble_popup_show,
text_view);
g_source_set_name_by_id (priv->selection_bubble_timeout_id, "[gtk+]
gtk_text_view_selection_bubble_popup_cb");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]