diff options
author | Havoc Pennington <hp@pobox.com> | 2000-06-02 17:27:21 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2000-06-02 17:27:21 +0000 |
commit | e86329d5d4640805dc46cbf07a920cb932bd54d4 (patch) | |
tree | 0d81a57ff3971f3a3f600e9a82ff2af1c63230e6 /gtk/gtktextbuffer.h | |
parent | bb77f4e6b934e2ff9dbe99a73a0aad1fbdd921bc (diff) | |
download | gdk-pixbuf-e86329d5d4640805dc46cbf07a920cb932bd54d4.tar.gz |
Test program to make sure GtkTextBuffer is in working order.
2000-06-02 Havoc Pennington <hp@pobox.com>
* gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
is in working order.
* gtk/testtext.c: Change to reflect anonymous mark API
* gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
* gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
field, which was unused.
* gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
saves some typing.
* gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*
* gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
flag on the insertion point and selection bound
Throughout, use GtkTextMark instead of GtkTextLineSegment, and
make mark-manipulation functions take a GtkTextMark* instead of a
mark name.
* gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to
GtkTextMarkBody; will be used to detect attempts to delete
the permanent marks (insert and selection bound)
Diffstat (limited to 'gtk/gtktextbuffer.h')
-rw-r--r-- | gtk/gtktextbuffer.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/gtktextbuffer.h b/gtk/gtktextbuffer.h index 66f770ab1..c57354b17 100644 --- a/gtk/gtktextbuffer.h +++ b/gtk/gtktextbuffer.h @@ -68,10 +68,10 @@ struct _GtkTextBufferClass { /* Mark moved or created */ void (* mark_set) (GtkTextBuffer *buffer, const GtkTextIter *location, - const gchar *mark_name); + GtkTextMark *mark); void (* mark_deleted) (GtkTextBuffer *buffer, - const gchar *mark_name); + GtkTextMark *mark); void (* apply_tag) (GtkTextBuffer *buffer, GtkTextTag *tag, @@ -176,10 +176,10 @@ GtkTextMark *gtk_text_buffer_create_mark (GtkTextBuffer *buffer, const GtkTextIter *where, gboolean left_gravity); void gtk_text_buffer_move_mark (GtkTextBuffer *buffer, - const gchar *mark_name, + GtkTextMark *mark, const GtkTextIter *where); void gtk_text_buffer_delete_mark (GtkTextBuffer *buffer, - const gchar *name); + GtkTextMark *mark); GtkTextMark *gtk_text_buffer_get_mark (GtkTextBuffer *buffer, const gchar *name); @@ -233,9 +233,9 @@ void gtk_text_buffer_get_last_iter (GtkTextBuffer *buffer, void gtk_text_buffer_get_bounds (GtkTextBuffer *buffer, GtkTextIter *start, GtkTextIter *end); -gboolean gtk_text_buffer_get_iter_at_mark (GtkTextBuffer *buffer, +void gtk_text_buffer_get_iter_at_mark (GtkTextBuffer *buffer, GtkTextIter *iter, - const gchar *name); + GtkTextMark *mark); /* There's no get_first_iter because you just get the iter for |