[gtk+/wip/baedert/drawing: 260/306] 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: 260/306] entry: get_layout_location coords are already content relative
- Date: Fri, 23 Jun 2017 20:18:47 +0000 (UTC)
commit a279575bd1d215a5640ba614067078cb23ce711c
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]