[gtk] widget: Avoid a few type checks



commit 509b781079e2a6d1d07ed028c225200b004db0eb
Author: Timm Bäder <mail baedert org>
Date:   Wed Aug 7 19:32:58 2019 +0200

    widget: Avoid a few type checks

 gtk/gtkwidget.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index f36a9f0f3d..ddb29e7080 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -8190,9 +8190,9 @@ gtk_widget_real_unmap (GtkWidget *widget)
       GtkWidget *child;
       priv->mapped = FALSE;
 
-      for (child = gtk_widget_get_first_child (widget);
+      for (child = _gtk_widget_get_first_child (widget);
            child != NULL;
-           child = gtk_widget_get_next_sibling (child))
+           child = _gtk_widget_get_next_sibling (child))
         {
           gtk_widget_unmap (child);
         }
@@ -13095,10 +13095,10 @@ gtk_widget_forall (GtkWidget   *widget,
   GtkWidget *child;
   g_return_if_fail (GTK_IS_WIDGET (widget));
 
-  child = gtk_widget_get_first_child (widget);
+  child = _gtk_widget_get_first_child (widget);
   while (child)
     {
-      GtkWidget *next = gtk_widget_get_next_sibling (child);
+      GtkWidget *next = _gtk_widget_get_next_sibling (child);
 
       callback(child, user_data);
 


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