forked from AuroraMiddleware/gtk
entry: Fix icon areas
Do the same thing we already do in gtk_entry_get_text_area.
This commit is contained in:
parent
033c6c82d0
commit
6e2c551896
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user