[gtk+/touch-selections] Use gdk_threads_add_timeout to popup the selection window



commit dccfb10b1f831e617e52a57eb9fa9281ca829d50
Author: Carlos Garnacho <carlos lanedo com>
Date:   Fri Jan 18 17:55:04 2013 +0100

    Use gdk_threads_add_timeout to popup the selection window
    
    Second granularity may bite us back there

 gtk/gtkentry.c    |    3 +--
 gtk/gtktextview.c |    4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 58965dc..94f2cbe 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -9347,8 +9347,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_seconds (1, gtk_entry_selection_bubble_popup_cb,
-                                     entry);
+    gdk_threads_add_timeout (1000, gtk_entry_selection_bubble_popup_cb, entry);
 }
 
 static void
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 64b0d45..2a4f602 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -8817,8 +8817,8 @@ 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_seconds (1, gtk_text_view_selection_bubble_popup_cb,
-                                     text_view);
+    gdk_threads_add_timeout (1000, gtk_text_view_selection_bubble_popup_cb,
+                             text_view);
 }
 
 /* Child GdkWindows */



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