diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2015-06-12 13:04:45 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2015-06-12 13:04:45 +0200 |
commit | 5c38991367d0c9815060a59754813e653ca84036 (patch) | |
tree | 83655d640287023fb1d5b594f574a1ca6d1c2a34 /gtk/gtktextview.c | |
parent | c11906fcdbe12bab387ae74830703bcd919249a2 (diff) | |
download | gtk+-5c38991367d0c9815060a59754813e653ca84036.tar.gz |
textview: Set handles' mode to "none" if showing the bubble
show_or_hide_handles() tries to disable visibility when the popover is
shown, although it triggers a bit late, and lets the handles flash briefly
if both popover and handles try to show at the same time (eg. when
pressing on the selection of a previously unfocused textview, the handles
were previously hidden, so they try to show again on focus in).
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r-- | gtk/gtktextview.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 29d0648ba8..997a633685 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -5284,11 +5284,15 @@ gtk_text_view_multipress_gesture_pressed (GtkGestureMultiPress *gesture, { if (!priv->selection_bubble || !gtk_widget_get_visible (priv->selection_bubble)) - gtk_text_view_selection_bubble_popup_set (text_view); + { + gtk_text_view_selection_bubble_popup_set (text_view); + handle_mode = GTK_TEXT_HANDLE_MODE_NONE; + } else - gtk_text_view_selection_bubble_popup_unset (text_view); - - handle_mode = GTK_TEXT_HANDLE_MODE_SELECTION; + { + gtk_text_view_selection_bubble_popup_unset (text_view); + handle_mode = GTK_TEXT_HANDLE_MODE_SELECTION; + } } else { |