diff options
author | Alexander Larsson <alexl@redhat.com> | 2017-01-11 12:04:21 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2017-01-11 12:05:44 +0100 |
commit | 68a27a995160894c1075dcdc163382a1714f0db6 (patch) | |
tree | 3f58de060402bf04c0672645ba018a8a5e7c8af8 | |
parent | 6341fab985864cfa337c55cb35e06a7b13119838 (diff) | |
download | gtk+-68a27a995160894c1075dcdc163382a1714f0db6.tar.gz |
gtkcssgadget: Use private non-checking versions of gtk_widget calls
This avoids a lot of checking overhead.
-rw-r--r-- | gtk/gtkcssgadget.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkcssgadget.c b/gtk/gtkcssgadget.c index f1416a3ea5..3fb2f0af37 100644 --- a/gtk/gtkcssgadget.c +++ b/gtk/gtkcssgadget.c @@ -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; } |