gtk_text_iter_order (&start, &end);
- retval = g_string_new ("");
+ retval = g_string_new (NULL);
tree = _gtk_text_iter_get_btree (&start);
void
_gtk_text_btree_place_cursor (GtkTextBTree *tree,
const GtkTextIter *iter)
+{
+ _gtk_text_btree_select_range (tree, iter, iter);
+}
+
+void
+_gtk_text_btree_select_range (GtkTextBTree *tree,
+ const GtkTextIter *ins,
+ const GtkTextIter *bound)
{
GtkTextIter start, end;
/* Move insert AND selection_bound before we redisplay */
real_set_mark (tree, tree->insert_mark,
- "insert", FALSE, iter, TRUE, FALSE);
+ "insert", FALSE, ins, TRUE, FALSE);
real_set_mark (tree, tree->selection_bound_mark,
- "selection_bound", FALSE, iter, TRUE, FALSE);
+ "selection_bound", FALSE, bound, TRUE, FALSE);
}
+
void
_gtk_text_btree_remove_mark_by_name (GtkTextBTree *tree,
const gchar *name)
line_ancestor = line_ancestor_parent;
line_ancestor_parent = line_ancestor->parent;
- node = line_ancestor_parent->children.node;
+ if (line_ancestor_parent != NULL)
+ {
+ node = line_ancestor_parent->children.node;
+ }
}
/* No dice. */