summaryrefslogtreecommitdiff
path: root/tests/testtext.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testtext.c')
-rw-r--r--tests/testtext.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/testtext.c b/tests/testtext.c
index 54b94a59d5..3086f0bdbd 100644
--- a/tests/testtext.c
+++ b/tests/testtext.c
@@ -2078,12 +2078,14 @@ line_numbers_expose (GtkWidget *widget,
pango_layout_set_text (layout, str, -1);
-
- gdk_draw_layout (target,
- widget->style->fg_gc [widget->state],
- /* 2 is just a random padding */
- 2, pos + 2,
- layout);
+ gtk_paint_layout (widget->style,
+ target,
+ GTK_WIDGET_STATE (widget),
+ NULL,
+ widget,
+ NULL,
+ 2, pos + 2,
+ layout);
g_free (str);