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 /tests | |
parent | 027c3154997eed2f371025399b764321b44a19b3 (diff) | |
download | gdk-pixbuf-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 'tests')
-rw-r--r-- | tests/testtext.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/testtext.c b/tests/testtext.c index 292681e2b..1969589f1 100644 --- a/tests/testtext.c +++ b/tests/testtext.c @@ -429,7 +429,6 @@ fill_example_buffer (GtkTextBuffer *buffer) GdkPixbuf *pixbuf; int i; char *str; - GtkTextChildAnchor *anchor; /* FIXME this is broken if called twice on a buffer, since * we try to create tags a second time. @@ -510,7 +509,7 @@ fill_example_buffer (GtkTextBuffer *buffer) "direction", GTK_TEXT_DIR_RTL, "indent", 30, "left_margin", 20, - "right_margin", 20, + "right_margin", 20, NULL); @@ -693,7 +692,7 @@ static View * get_empty_view (View *view) { if (!view->buffer->filename && - !gtk_text_buffer_modified (view->buffer->buffer)) + !gtk_text_buffer_get_modified (view->buffer->buffer)) return view; else return create_view (create_buffer ()); @@ -1366,7 +1365,7 @@ save_as_buffer (Buffer *buffer) static gboolean check_buffer_saved (Buffer *buffer) { - if (gtk_text_buffer_modified (buffer->buffer)) + if (gtk_text_buffer_get_modified (buffer->buffer)) { char *pretty_name = buffer_pretty_name (buffer); char *msg = g_strdup_printf ("Save changes to '%s'?", pretty_name); |