[gtk/wip/baedert/gl-rework: 8/11] bin: Avoid some type checks



commit 0d3688b073764d21c0e6f668bdecaa53c85e07b0
Author: Timm Bäder <mail baedert org>
Date:   Tue Dec 31 08:25:45 2019 +0100

    bin: Avoid some type checks

 gtk/gtkbin.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkbin.c b/gtk/gtkbin.c
index 386ac55fd8..279ccdb466 100644
--- a/gtk/gtkbin.c
+++ b/gtk/gtkbin.c
@@ -36,6 +36,7 @@
  */
 
 #include "config.h"
+#include "gtkwidgetprivate.h"
 #include "gtkbin.h"
 
 
@@ -72,7 +73,7 @@ gtk_bin_size_allocate (GtkWidget *widget,
   GtkBin *bin = GTK_BIN (widget);
   GtkBinPrivate *priv = gtk_bin_get_instance_private (bin);
 
-  if (priv->child && gtk_widget_get_visible (priv->child))
+  if (priv->child && _gtk_widget_get_visible (priv->child))
     gtk_widget_size_allocate (priv->child,
                               &(GtkAllocation) {
                                 0, 0,
@@ -179,7 +180,7 @@ gtk_bin_measure (GtkWidget *widget,
 {
   GtkBinPrivate *priv = gtk_bin_get_instance_private (GTK_BIN (widget));
 
-  if (priv->child != NULL && gtk_widget_get_visible (priv->child))
+  if (priv->child != NULL && _gtk_widget_get_visible (priv->child))
     {
       gtk_widget_measure (priv->child,
                           orientation,


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