[gtk+/wip/baedert/drawing: 230/371] entry: get_layout_location coords are already content relative
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 230/371] entry: get_layout_location coords are already content relative
- Date: Sun, 16 Jul 2017 15:41:09 +0000 (UTC)
commit bd7b09593aef24bcf2fd0627954e7d1a8ecb7308
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]