Use gdk_threads_add_timeout to popup the selection window
Second granularity may bite us back there
This commit is contained in:
parent
9f41970832
commit
0ba92bc26d
@ -9352,8 +9352,7 @@ gtk_entry_selection_bubble_popup_set (GtkEntry *entry)
|
|||||||
g_source_remove (priv->selection_bubble_timeout_id);
|
g_source_remove (priv->selection_bubble_timeout_id);
|
||||||
|
|
||||||
priv->selection_bubble_timeout_id =
|
priv->selection_bubble_timeout_id =
|
||||||
gdk_threads_add_timeout_seconds (1, gtk_entry_selection_bubble_popup_cb,
|
gdk_threads_add_timeout (1000, gtk_entry_selection_bubble_popup_cb, entry);
|
||||||
entry);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -8837,7 +8837,7 @@ gtk_text_view_selection_bubble_popup_set (GtkTextView *text_view)
|
|||||||
g_source_remove (priv->selection_bubble_timeout_id);
|
g_source_remove (priv->selection_bubble_timeout_id);
|
||||||
|
|
||||||
priv->selection_bubble_timeout_id =
|
priv->selection_bubble_timeout_id =
|
||||||
gdk_threads_add_timeout_seconds (1, gtk_text_view_selection_bubble_popup_cb,
|
gdk_threads_add_timeout (1000, gtk_text_view_selection_bubble_popup_cb,
|
||||||
text_view);
|
text_view);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user