entry: Make touch selection work with mouse

The buttons on the popover where stealing the focus from the text
view on click, causing the popover to be dismissed before the action
was taken. Fix this by making the buttons not take focus on click.
This commit is contained in:
Matthias Clasen 2015-06-09 15:50:30 -04:00
parent 8ad0ef27a1
commit 70f1e2306d

View File

@ -9767,6 +9767,7 @@ append_bubble_action (GtkEntry *entry,
GtkWidget *item, *image;
item = gtk_button_new ();
gtk_button_set_focus_on_click (GTK_BUTTON (item), FALSE);
image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU);
gtk_widget_show (image);
gtk_container_add (GTK_CONTAINER (item), image);