[gtk+/wip/matthiasc/touch-selection] entry: Move touch selection a little further away



commit 10e2dcdb0d6007647a54d87aeae2d1b9ef885697
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 7 21:13:16 2015 -0400

    entry: Move touch selection a little further away
    
    Otherwise, it looks cramped, and we end up under the finger.

 gtk/gtkentry.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 14328ac..756176f 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -9877,6 +9877,11 @@ bubble_targets_received (GtkClipboard     *clipboard,
       rect.width = 0;
     }
 
+  rect.x -= 5;
+  rect.y -= 5;
+  rect.width += 10;
+  rect.height += 10;
+
   gtk_popover_set_pointing_to (GTK_POPOVER (priv->selection_bubble), &rect);
   gtk_widget_show (priv->selection_bubble);
 


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