gtkcssgadget: Use private non-checking versions of gtk_widget calls

This avoids a lot of checking overhead.
This commit is contained in:
Alexander Larsson 2017-01-11 12:04:21 +01:00
parent 6341fab985
commit 68a27a9951

View File

@ -30,6 +30,7 @@
#include "gtkcsswidgetnodeprivate.h"
#include "gtkrenderbackgroundprivate.h"
#include "gtkrenderborderprivate.h"
#include "gtkwidgetprivate.h"
#include "gtkdebug.h"
#include "gtkprivate.h"
@ -506,10 +507,10 @@ shift_allocation (GtkCssGadget *gadget,
{
GtkCssGadgetPrivate *priv = gtk_css_gadget_get_instance_private (gadget);
if (priv->owner && !gtk_widget_get_has_window (priv->owner))
if (priv->owner && !_gtk_widget_get_has_window (priv->owner))
{
GtkAllocation widget_alloc;
gtk_widget_get_allocation (priv->owner, &widget_alloc);
_gtk_widget_get_allocation (priv->owner, &widget_alloc);
allocation->x -= widget_alloc.x;
allocation->y -= widget_alloc.y;
}