From c30e0f78adf7b4836d010c718f521a60e126722b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 31 Dec 2019 08:25:45 +0100 Subject: [PATCH] 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,