summaryrefslogtreecommitdiff
path: root/gtk/gtklayout.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2018-12-19 16:04:05 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2019-03-26 00:11:27 +0000
commit15fda18791ae6df027620a2a8a42899f632337a8 (patch)
treee6d8edb205e0d86f61f67ba9885c4753e41acd5a /gtk/gtklayout.c
parentf7856e887e8e5fffd676e0d0b0729b66fa2f193f (diff)
downloadgtk+-15fda18791ae6df027620a2a8a42899f632337a8.tar.gz
Rename the internal GtkLayoutChild type
The type is completely private to GtkLayout, so there's really no need to namespace it.
Diffstat (limited to 'gtk/gtklayout.c')
-rw-r--r--gtk/gtklayout.c22
1 files 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;