summaryrefslogtreecommitdiff
path: root/gtk/gtktextmark.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2007-05-26 04:10:42 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-05-26 04:10:42 +0000
commit6ac30db004c4a768aaf74286bcc21ff7123e0550 (patch)
tree15e8284ee1ef0b2905bf2c0f2d1f6ce60eea9c91 /gtk/gtktextmark.h
parenta7f95266a51e905b0fea0cfe43809023038a7428 (diff)
downloadgtk+-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/gtktextmark.h')
-rw-r--r--gtk/gtktextmark.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtktextmark.h b/gtk/gtktextmark.h
index 851123c4ac..41bcb9492f 100644
--- a/gtk/gtktextmark.h
+++ b/gtk/gtktextmark.h
@@ -88,6 +88,8 @@ void gtk_text_mark_set_visible (GtkTextMark *mark,
gboolean setting);
gboolean gtk_text_mark_get_visible (GtkTextMark *mark);
+GtkTextMark *gtk_text_mark_new (const gchar *name,
+ gboolean left_gravity);
G_CONST_RETURN gchar* gtk_text_mark_get_name (GtkTextMark *mark);
gboolean gtk_text_mark_get_deleted (GtkTextMark *mark);
GtkTextBuffer* gtk_text_mark_get_buffer (GtkTextMark *mark);