summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-08-08 17:05:25 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-08-08 17:05:25 +0000
commitd1d269ea6b7e1a47277b0f9f47e859b32087caf2 (patch)
tree1a5c2c40388fab2427a49f79da0b0e400fd3868c
parent3d807f4b001ca21aa131cfc505637bfb799ea0dd (diff)
parentf8060b859d7aac3e1f679c0ce3776309fee3857f (diff)
downloadgtk+-d1d269ea6b7e1a47277b0f9f47e859b32087caf2.tar.gz
Merge branch 'patch-1' into 'master'
Correct typos in gtktextbtree.c See merge request GNOME/gtk!2413
-rw-r--r--gtk/gtktextbtree.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c
index 662acb3c5e..3714b6a7e3 100644
--- a/gtk/gtktextbtree.c
+++ b/gtk/gtktextbtree.c
@@ -1674,7 +1674,7 @@ _gtk_text_btree_get_view_size (GtkTextBTree *tree,
typedef struct {
GtkTextIter *iters;
guint count;
- guint alloced;
+ guint allocated;
} IterStack;
static IterStack*
@@ -1684,7 +1684,7 @@ iter_stack_new (void)
stack = g_slice_new (IterStack);
stack->iters = NULL;
stack->count = 0;
- stack->alloced = 0;
+ stack->allocated = 0;
return stack;
}
@@ -1693,11 +1693,11 @@ iter_stack_push (IterStack *stack,
const GtkTextIter *iter)
{
stack->count += 1;
- if (stack->count > stack->alloced)
+ if (stack->count > stack->allocated)
{
- stack->alloced = stack->count*2;
+ stack->allocated = stack->count*2;
stack->iters = g_realloc (stack->iters,
- stack->alloced * sizeof (GtkTextIter));
+ stack->allocated * sizeof (GtkTextIter));
}
stack->iters[stack->count-1] = *iter;
}