]> Pileus Git - ~andy/gtk/commitdiff
Use gdk_threads_add_timeout to popup the selection window
authorCarlos Garnacho <carlos@lanedo.com>
Fri, 18 Jan 2013 16:55:04 +0000 (17:55 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 5 Mar 2013 21:47:59 +0000 (16:47 -0500)
Second granularity may bite us back there

gtk/gtkentry.c
gtk/gtktextview.c

index a24b344cc6fd35599142f8eccd5014c4934030c8..a1a5387d5f12756f4419be0ded0732d596316dbf 100644 (file)
@@ -9352,8 +9352,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
index ed3d98bb361c6645acd892d300e1a98ab19e704f..6986d0b981e41269e9221558a0385c9fdcde7d9a 100644 (file)
@@ -8837,8 +8837,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 */