diff options
author | Havoc Pennington <hp@redhat.com> | 2000-11-15 00:23:37 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2000-11-15 00:23:37 +0000 |
commit | fe8da19f2a65a220c805cdf37c60f6a0c0f1d368 (patch) | |
tree | 7188631c820283bd62a658c48384db384cde3650 /tests | |
parent | 2d24862ffdf973337ff31168c11259a3f4d5acdf (diff) | |
download | gtk+-fe8da19f2a65a220c805cdf37c60f6a0c0f1d368.tar.gz |
Draw underlines one pixel higher.
2000-11-14 Havoc Pennington <hp@redhat.com>
* gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
higher.
* gtk/gtktextdisplay.c (render_layout_line): Take rise into
account. Also, render rise, underline, background, etc. for
pixbufs as well as text. Also, draw underlines one pixel higher.
* gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
PangoAttribute for the rise, so it gets drawn properly. Also,
add the GtkTextAppearance attribute for pixbuf/widget segments
as well; we should go ahead and have rise, underline, background,
stipple work for those
* gtk/gtktexttag.c: Rename "offset" property to "rise" to match
Pango
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testgtk.c | 2 | ||||
-rw-r--r-- | tests/testtext.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c index aefa384ee5..555ac978b1 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -2111,7 +2111,7 @@ void create_labels (void) "or even on this one\n" "la <big>la <big>la <big>la <big>la</big></big></big></big>\n" "but this _word is <span foreground=\"purple\"><big>purple</big></span>\n" - "We like <sup>superscript</sup> and <sub>subscript</sub> too"); + "<span underline=\"double\">We like <sup>superscript</sup> and <sub>subscript</sub> too</span>"); g_return_if_fail (keyval == GDK_s); diff --git a/tests/testtext.c b/tests/testtext.c index 9e52f2f97b..1ea511bdd7 100644 --- a/tests/testtext.c +++ b/tests/testtext.c @@ -454,7 +454,7 @@ fill_example_buffer (GtkTextBuffer *buffer) color.blue = color.green = 0; color.red = 0xffff; gtk_object_set (GTK_OBJECT (tag), - "offset", -4, + "rise", -4 * PANGO_SCALE, "foreground_gdk", &color, NULL); |