[gtk+/gtk-3-22] entry: get_icon_area returns in entry coordinates



commit 8a17848f02a0a641cdcd68195710f646a986dcd7
Author: Timm Bäder <mail baedert org>
Date:   Thu Aug 3 11:14:53 2017 +0200

    entry: get_icon_area returns in entry coordinates
    
    Document what the returned coordinates are relative to.

 gtk/gtkentry.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index db36f2c..3b91f04 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -9116,7 +9116,8 @@ gtk_entry_get_current_icon_drag_source (GtkEntry *entry)
  * entry in a draw callback.
  *
  * If the entry is not realized or has no icon at the given position,
- * @icon_area is filled with zeros.
+ * @icon_area is filled with zeros. Otherwise, @icon_area will be filled
+ * with the icon’s allocation, relative to @entry’s allocation.
  *
  * See also gtk_entry_get_text_area()
  *


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