summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/notebook.c6
-rw-r--r--src/tree.c4
-rw-r--r--src/tree.h12
3 files changed, 11 insertions, 11 deletions
diff --git a/src/notebook.c b/src/notebook.c
index 274a486..2aac350 100644
--- a/src/notebook.c
+++ b/src/notebook.c
@@ -352,7 +352,7 @@ mq_notebook_insert_top(MqNotebook *notebook, const gchar *uri,
{
MqTabTree *node;
- node = MQ_TAB_TREE(mq_tree_insert_child_allocated(
+ node = MQ_TAB_TREE(mq_tree_append_child_allocated(
MQ_TREE(g_new0(MqTabTree, 1)),
MQ_TREE(notebook->tree),
NULL));
@@ -377,7 +377,7 @@ mq_notebook_insert_sibling(MqNotebook *notebook, const gchar *uri,
g_assert(sibling);
find_node(notebook, sibling);
- node = MQ_TAB_TREE(mq_tree_insert_sibling_allocated(
+ node = MQ_TAB_TREE(mq_tree_append_sibling_allocated(
MQ_TREE(g_new0(MqTabTree, 1)),
MQ_TREE(notebook->found_node),
NULL));
@@ -402,7 +402,7 @@ mq_notebook_insert_child(MqNotebook *notebook, const gchar *uri,
g_assert(child);
find_node(notebook, child);
- node = MQ_TAB_TREE(mq_tree_insert_child_allocated(
+ node = MQ_TAB_TREE(mq_tree_append_child_allocated(
MQ_TREE(g_new0(MqTabTree, 1)),
MQ_TREE(notebook->found_node),
NULL));
diff --git a/src/tree.c b/src/tree.c
index 2db3449..592a34d 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -118,7 +118,7 @@ update_positions(MqTree *node, gint step)
}
MqTree *
-mq_tree_insert_child_allocated(MqTree *node, MqTree *parent, gpointer data)
+mq_tree_append_child_allocated(MqTree *node, MqTree *parent, gpointer data)
{
/* Copy ancestor pointers. */
node->root = parent->root;
@@ -150,7 +150,7 @@ mq_tree_insert_child_allocated(MqTree *node, MqTree *parent, gpointer data)
}
MqTree *
-mq_tree_insert_sibling_allocated(MqTree *node, MqTree *sibling, gpointer data)
+mq_tree_append_sibling_allocated(MqTree *node, MqTree *sibling, gpointer data)
{
/* Copy ancestor pointers. */
node->root = sibling->root;
diff --git a/src/tree.h b/src/tree.h
index 1ae0871..d31b489 100644
--- a/src/tree.h
+++ b/src/tree.h
@@ -49,17 +49,17 @@ MqTree *
mq_tree_insert_root_allocated(MqTree *node, gpointer data);
MqTree *
-mq_tree_insert_child_allocated(MqTree *node, MqTree *parent, gpointer data);
+mq_tree_append_child_allocated(MqTree *node, MqTree *parent, gpointer data);
MqTree *
-mq_tree_insert_sibling_allocated(MqTree *node, MqTree *sibling, gpointer data);
+mq_tree_append_sibling_allocated(MqTree *node, MqTree *sibling, gpointer data);
#define mq_tree_insert_root(data) \
mq_tree_insert_root_allocated(g_new0(MqTree, 1), data)
-#define mq_tree_insert_child(parent, data) \
- mq_tree_insert_child_allocated(g_new0(MqTree, 1), parent, data)
-#define mq_tree_insert_sibling(sibling, data) \
- mq_tree_insert_sibling_allocated(g_new0(MqTree, 1), sibling, data)
+#define mq_tree_append_child(parent, data) \
+ mq_tree_append_child_allocated(g_new0(MqTree, 1), parent, data)
+#define mq_tree_append_sibling(sibling, data) \
+ mq_tree_append_sibling_allocated(g_new0(MqTree, 1), sibling, data)
void
mq_tree_remove(MqTree *node);