[gtk/wip/layout-manager: 42/43] Rename the internal GtkLayoutChild type



commit e63798b5a4a8f472620c4711e798950a412c1582
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Dec 19 16:04:05 2018 +0000

    Rename the internal GtkLayoutChild type
    
    The type is completely private to GtkLayout, so there's really no need
    to namespace it.

 gtk/gtklayout.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c
index 0ecc6d6666..074bdae5fc 100644
--- a/gtk/gtklayout.c
+++ b/gtk/gtklayout.c
@@ -57,7 +57,7 @@
  */
 
 
-typedef struct _GtkLayoutChild   GtkLayoutChild;
+typedef struct _LayoutChild   LayoutChild;
 
 typedef struct
 {
@@ -77,7 +77,7 @@ typedef struct
   GList *children;
 } GtkLayoutPrivate;
 
-struct _GtkLayoutChild {
+struct _LayoutChild {
   GtkWidget *widget;
   gint x;
   gint y;
@@ -298,7 +298,7 @@ gtk_layout_set_vadjustment (GtkLayout     *layout,
   g_object_notify (G_OBJECT (layout), "vadjustment");
 }
 
-static GtkLayoutChild*
+static LayoutChild *
 get_child (GtkLayout  *layout,
            GtkWidget  *widget)
 {
@@ -308,7 +308,7 @@ get_child (GtkLayout  *layout,
   children = priv->children;
   while (children)
     {
-      GtkLayoutChild *child;
+      LayoutChild *child;
 
       child = children->data;
       children = children->next;
@@ -338,12 +338,12 @@ gtk_layout_put (GtkLayout     *layout,
                gint           y)
 {
   GtkLayoutPrivate *priv = gtk_layout_get_instance_private (layout);
-  GtkLayoutChild *child;
+  LayoutChild *child;
 
   g_return_if_fail (GTK_IS_LAYOUT (layout));
   g_return_if_fail (GTK_IS_WIDGET (child_widget));
 
-  child = g_new (GtkLayoutChild, 1);
+  child = g_new (LayoutChild, 1);
 
   child->widget = child_widget;
   child->x = x;
@@ -362,7 +362,7 @@ gtk_layout_move_internal (GtkLayout       *layout,
                           gboolean         change_y,
                           gint             y)
 {
-  GtkLayoutChild *child;
+  LayoutChild *child;
 
   child = get_child (layout, widget);
 
@@ -660,7 +660,7 @@ gtk_layout_get_child_property (GtkContainer *container,
                                GValue       *value,
                                GParamSpec   *pspec)
 {
-  GtkLayoutChild *layout_child;
+  LayoutChild *layout_child;
 
   layout_child = get_child (GTK_LAYOUT (container), child);
   
@@ -729,7 +729,7 @@ gtk_layout_size_allocate (GtkWidget *widget,
 
   while (tmp_list)
     {
-      GtkLayoutChild *child = tmp_list->data;
+      LayoutChild *child = tmp_list->data;
       GtkAllocation allocation;
       GtkRequisition requisition;
 
@@ -765,7 +765,7 @@ gtk_layout_remove (GtkContainer *container,
   GtkLayout *layout = GTK_LAYOUT (container);
   GtkLayoutPrivate *priv = gtk_layout_get_instance_private (layout);
   GList *tmp_list;
-  GtkLayoutChild *child = NULL;
+  LayoutChild *child = NULL;
 
   tmp_list = priv->children;
   while (tmp_list)
@@ -793,7 +793,7 @@ gtk_layout_forall (GtkContainer *container,
 {
   GtkLayout *layout = GTK_LAYOUT (container);
   GtkLayoutPrivate *priv = gtk_layout_get_instance_private (layout);
-  GtkLayoutChild *child;
+  LayoutChild *child;
   GList *tmp_list;
 
   tmp_list = priv->children;


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