diff options
author | Matthias Clasen <mclasen@redhat.com> | 2007-05-26 04:10:42 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-05-26 04:10:42 +0000 |
commit | 6ac30db004c4a768aaf74286bcc21ff7123e0550 (patch) | |
tree | 15e8284ee1ef0b2905bf2c0f2d1f6ce60eea9c91 /gtk/gtktextmarkprivate.h | |
parent | a7f95266a51e905b0fea0cfe43809023038a7428 (diff) | |
download | gtk+-6ac30db004c4a768aaf74286bcc21ff7123e0550.tar.gz |
Allow to separate GtkTextMark creation from buffer insertion. (#132818,
2007-05-25 Matthias Clasen <mclasen@redhat.com>
Allow to separate GtkTextMark creation from buffer insertion.
(#132818, Gustavo Giráldez, patch by Yevgen Muntyan)
* gtk/gtktextmarkprivate.h:
* gtk/gtktextmark.[hc] (gtk_text_mark_new): New function to
create a GtkTextMark.
* gtk/gtktextbuffer.[hc] (gtk_text_buffer_add_mark): New
function to add an existing mark to a buffer.
* gtk/gtktextbtree.c: Allow adding existing marks.
* gtk/gtk.symbols: Add new functions.
* tests/testtextbuffer.c: Add some tests for new mark
functionality.
svn path=/trunk/; revision=17922
Diffstat (limited to 'gtk/gtktextmarkprivate.h')
-rw-r--r-- | gtk/gtktextmarkprivate.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/gtktextmarkprivate.h b/gtk/gtktextmarkprivate.h index 43e9797366..d2ff381371 100644 --- a/gtk/gtktextmarkprivate.h +++ b/gtk/gtktextmarkprivate.h @@ -49,9 +49,8 @@ struct _GtkTextMarkBody { guint not_deleteable : 1; }; -GtkTextLineSegment *_gtk_mark_segment_new (GtkTextBTree *tree, - gboolean left_gravity, - const gchar *name); +void _gtk_mark_segment_set_tree (GtkTextLineSegment *mark, + GtkTextBTree *tree); G_END_DECLS |