From ca83d0a3dcb6660cff67f61fca108b1b02c31859 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 3 Nov 2000 20:40:57 +0000 Subject: Get widgets working on the btree/buffer side. Display of them still 2000-11-03 Havoc Pennington Get widgets working on the btree/buffer side. Display of them still doesn't work. * gtk/gtktextview.c: start implementing child widget stuff * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function * gtk/gtktextlayout.c: handle embedded widgets * gtk/gtktextdisplay.c: handle embedded widgets * gtk/gtktextchild.c: Implement all the child anchor goo * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New function * gtk/gtktextbtree.c: Add child anchor table to the btree struct (insert_pixbuf_or_widget_segment): abstract out common portions of creating a child anchor or a pixbuf segment. (gtk_text_btree_create_child_anchor): new function (gtk_text_btree_unregister_child_anchor): new function * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the allocate_child signal on GtkTextLayout * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return values (gtk_text_iter_get_child_anchor): new function * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a default handler for the changed signal, which calls gtk_text_buffer_set_modified(), instead of just always emitting changed then calling set_modified() manually. I guess this is maybe more flexible. It seems logical. --- gtk/gtktextiter.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gtk/gtktextiter.h') diff --git a/gtk/gtktextiter.h b/gtk/gtktextiter.h index 148046cfae..3e649d0b40 100644 --- a/gtk/gtktextiter.h +++ b/gtk/gtktextiter.h @@ -28,6 +28,7 @@ #define GTK_TEXT_ITER_H #include +#include #ifdef __cplusplus extern "C" { @@ -100,6 +101,8 @@ gchar *gtk_text_iter_get_visible_text (const GtkTextIter *start, GdkPixbuf* gtk_text_iter_get_pixbuf (const GtkTextIter *iter); GSList * gtk_text_iter_get_marks (const GtkTextIter *iter); +GtkTextChildAnchor* gtk_text_iter_get_child_anchor (const GtkTextIter *iter); + /* Return list of tags toggled at this point (toggled_on determines whether the list is of on-toggles or off-toggles) */ GSList *gtk_text_iter_get_toggled_tags (const GtkTextIter *iter, -- cgit v1.2.1