[gtk+/wip/matthiasc/touch-selection: 6/6] text view: Move touch selection a little further away
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/touch-selection: 6/6] text view: Move touch selection a little further away
- Date: Sun, 7 Jun 2015 17:01:33 +0000 (UTC)
commit 8d13642090a43a0becf37d718cbaa885a3bad0c3
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jun 7 12:59:21 2015 -0400
text view: Move touch selection a little further away
Otherwise, it looks cramped, and we end up under the finger.
gtk/gtktextview.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 6475544..de7b2f9 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -9284,6 +9284,11 @@ bubble_targets_received (GtkClipboard *clipboard,
_text_window_to_widget_coords (text_view, &rect.x, &rect.y);
+ 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]