[gtk+] entry: Make touch selection work with mouse



commit 70f1e2306daf2a5f79638089baff1030c6f5be48
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jun 9 15:50:30 2015 -0400

    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.

 gtk/gtkentry.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index eb83363..26d5b12 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -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);


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