[gtk+/wip/baedert/drawing: 28/73] entry: get_layout_location coords are already content relative



commit 77cc5b35ad1eca057569d8c2ee162cffe3593f50
Author: Timm Bäder <mail baedert org>
Date:   Thu Jun 15 10:28:58 2017 +0200

    entry: get_layout_location coords are already content relative

 gtk/gtkentry.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index a8fa3dd..13e63d0 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -7689,15 +7689,7 @@ gtk_entry_get_layout_offsets (GtkEntry *entry,
   gtk_widget_get_allocation (GTK_WIDGET (entry), &allocation);
   gtk_entry_get_text_allocation (entry, &text_allocation);
 
-  /* this gets coords relative to text area */
   get_layout_position (entry, x, y);
-
-  /* convert to widget coords */
-  if (x)
-    *x += text_allocation.x - allocation.x;
-
-  if (y)
-    *y += text_allocation.y - allocation.y;
 }
 
 


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