summaryrefslogtreecommitdiff
path: root/tests/testtext.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2000-09-28 21:10:40 +0000
committerHavoc Pennington <hp@src.gnome.org>2000-09-28 21:10:40 +0000
commit85735ec7f5eeb22b3e32f6d74e5d53fae7e7fa4e (patch)
tree028c667c63d9968d8ef29c985dc9b9da6c731d95 /tests/testtext.c
parent3e6e7b94f620438fce28ac995dddbb8ca749f4a9 (diff)
downloadgtk+-85735ec7f5eeb22b3e32f6d74e5d53fae7e7fa4e.tar.gz
Set up infrastructure to deal with lots of scrolling child windows, and
2000-09-28 Havoc Pennington <hp@redhat.com> * gtk/gtktextview.c: Set up infrastructure to deal with lots of scrolling child windows, and draw focus rectangle properly. (gtk_text_view_buffer_to_window_coords): Coordinate transformation to deal with all these freaking windows and offsets (gtk_text_view_window_to_buffer_coords): transform the other way * gtk/testtext.c (create_buffer): Update to match Pango API change * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the anonymous tags (foreach_unref): don't emit remove signal from finalize, just set tag's parent to NULL
Diffstat (limited to 'tests/testtext.c')
-rw-r--r--tests/testtext.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/testtext.c b/tests/testtext.c
index 8fa5718f75..6ba130a055 100644
--- a/tests/testtext.c
+++ b/tests/testtext.c
@@ -1239,12 +1239,12 @@ create_buffer (void)
gtk_object_set (GTK_OBJECT (buffer->found_text_tag),
"foreground", "red", NULL);
- tabs = pango_tab_array_new_with_defaults (4,
- TRUE,
- PANGO_TAB_LEFT, 10,
- PANGO_TAB_LEFT, 30,
- PANGO_TAB_LEFT, 60,
- PANGO_TAB_LEFT, 120);
+ tabs = pango_tab_array_new_with_positions (4,
+ TRUE,
+ PANGO_TAB_LEFT, 10,
+ PANGO_TAB_LEFT, 30,
+ PANGO_TAB_LEFT, 60,
+ PANGO_TAB_LEFT, 120);
buffer->custom_tabs_tag = gtk_text_buffer_create_tag (buffer->buffer, NULL);
gtk_object_set (GTK_OBJECT (buffer->custom_tabs_tag),