summaryrefslogtreecommitdiff
path: root/tests/testtext.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-03-01 03:30:27 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-03-01 03:30:27 +0000
commit4ea9813d23e5454d7b301b33433ab8db457438cd (patch)
treeabe1ceeacc16e730137c4bbc1476414aec1c20e9 /tests/testtext.c
parent8451e4f843d8e56a0b02e820002aec49d91ddc47 (diff)
downloadgtk+-4ea9813d23e5454d7b301b33433ab8db457438cd.tar.gz
Add gtk_entry_set_alignment() to allow right-aligned entries and a
Sun Feb 29 22:01:49 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.[ch]: Add gtk_entry_set_alignment() to allow right-aligned entries and a "xalign" property. (#59799, patch from Egon Andersen and Steffen Gutmann) * gtk/gtkmisc.c (gtk_misc_class_init): Use improved xalign property description here too. * tests/testtext.c: UNDERLINE_ERROR test addition from Nicolas Settons' patch.
Diffstat (limited to 'tests/testtext.c')
-rw-r--r--tests/testtext.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/testtext.c b/tests/testtext.c
index 13eaabd42d..ef22c2b050 100644
--- a/tests/testtext.c
+++ b/tests/testtext.c
@@ -502,10 +502,12 @@ fill_example_buffer (GtkTextBuffer *buffer)
"underline", PANGO_UNDERLINE_SINGLE,
NULL);
+ tag = gtk_text_buffer_create_tag (buffer, "underline_error", NULL);
+
setup_tag (tag);
g_object_set (tag,
- "underline", PANGO_UNDERLINE_SINGLE,
+ "underline", PANGO_UNDERLINE_ERROR,
NULL);
tag = gtk_text_buffer_create_tag (buffer, "centered", NULL);
@@ -580,6 +582,11 @@ fill_example_buffer (GtkTextBuffer *buffer)
gtk_text_buffer_apply_tag_by_name (buffer, "underline", &iter, &iter2);
+ gtk_text_buffer_get_iter_at_line_offset (buffer, &iter, 1, 4);
+ gtk_text_buffer_get_iter_at_line_offset (buffer, &iter2, 1, 7);
+
+ gtk_text_buffer_apply_tag_by_name (buffer, "underline_error", &iter, &iter2);
+
gtk_text_buffer_get_iter_at_line_offset (buffer, &iter, 1, 14);
gtk_text_buffer_get_iter_at_line_offset (buffer, &iter2, 1, 24);