diff options
author | Havoc Pennington <hp@redhat.com> | 2001-02-19 23:27:27 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-02-19 23:27:27 +0000 |
commit | bc31a1bcca308f345343aa82f0b54072fccbc693 (patch) | |
tree | 591e11b74eae3ea337250ac03a3e6880de9a8557 /gtk/gtktextbuffer.h | |
parent | 027c3154997eed2f371025399b764321b44a19b3 (diff) | |
download | gtk+-bc31a1bcca308f345343aa82f0b54072fccbc693.tar.gz |
add insert_child_anchor signal, bug #50245
2001-02-19 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
insert_child_anchor signal, bug #50245
* gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
from create_child_anchor, so the anchor is passed in
* gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
(_gtk_widget_segment_new): have the child anchor object passed in,
instead of creating it.
* gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
to gtk_text_buffer_get_modified
Diffstat (limited to 'gtk/gtktextbuffer.h')
-rw-r--r-- | gtk/gtktextbuffer.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gtk/gtktextbuffer.h b/gtk/gtktextbuffer.h index af00330cf7..85e42d08aa 100644 --- a/gtk/gtktextbuffer.h +++ b/gtk/gtktextbuffer.h @@ -85,14 +85,9 @@ struct _GtkTextBufferClass GtkTextIter *pos, GdkPixbuf *pixbuf); -#if 0 - /* FIXME To do this, first have to implement the sequence - * gtk_text_child_anchor_new(); gtk_text_buffer_insert_child_anchor(); - */ - void (* insert_child_anchor) (GtkTextBuffer *buffer, - GtkTextIter *pos, + void (* insert_child_anchor) (GtkTextBuffer *buffer, + GtkTextIter *pos, GtkTextChildAnchor *anchor); -#endif void (* delete_range) (GtkTextBuffer *buffer, GtkTextIter *start, @@ -217,7 +212,12 @@ void gtk_text_buffer_insert_pixbuf (GtkTextBuffer *buffer, GtkTextIter *iter, GdkPixbuf *pixbuf); -/* Create a child anchor */ +/* Insert a child anchor */ +void gtk_text_buffer_insert_child_anchor (GtkTextBuffer *buffer, + GtkTextIter *iter, + GtkTextChildAnchor *anchor); + +/* Convenience, create and insert a child anchor */ GtkTextChildAnchor *gtk_text_buffer_create_child_anchor (GtkTextBuffer *buffer, GtkTextIter *iter); @@ -313,7 +313,7 @@ void gtk_text_buffer_get_iter_at_child_anchor (GtkTextBuffer *buffer, flag, but if you would like them to you can connect a handler to the tag/mark signals and call set_modified in your handler */ -gboolean gtk_text_buffer_modified (GtkTextBuffer *buffer); +gboolean gtk_text_buffer_get_modified (GtkTextBuffer *buffer); void gtk_text_buffer_set_modified (GtkTextBuffer *buffer, gboolean setting); |