entry: Fix icon areas

Do the same thing we already do in gtk_entry_get_text_area.
This commit is contained in:
Timm Bäder 2016-01-31 16:17:03 +01:00
parent 033c6c82d0
commit 6e2c551896

View File

@ -9119,7 +9119,11 @@ gtk_entry_get_icon_area (GtkEntry *entry,
if (icon_info)
{
GtkAllocation widget_allocation;
gtk_widget_get_allocation (GTK_WIDGET (entry), &widget_allocation);
gtk_css_gadget_get_border_allocation (icon_info->gadget, icon_area, NULL);
icon_area->x -= widget_allocation.x;
icon_area->y -= widget_allocation.y;
}
else
{