[gtk+/wip/alexl/optimize-snapshot: 6/7] gtkcssgadget: Use private non-checking versions of gtk_widget calls



commit 68a27a995160894c1075dcdc163382a1714f0db6
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Jan 11 12:04:21 2017 +0100

    gtkcssgadget: Use private non-checking versions of gtk_widget calls
    
    This avoids a lot of checking overhead.

 gtk/gtkcssgadget.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcssgadget.c b/gtk/gtkcssgadget.c
index f1416a3..3fb2f0a 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;
     }


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