aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2015-11-15 16:17:17 +0100
committerThomas White <taw@bitwiz.org.uk>2015-11-15 16:17:17 +0100
commit81100c4e659c6b11f2e36f48a171325ddff76676 (patch)
tree67f55f357f72c35e288096d6202ec3c352d59b22 /tests
parent9fa18b75c1354989dabf682788b9ea41fe28c707 (diff)
Move PangoLanguage higher up
Diffstat (limited to 'tests')
-rw-r--r--tests/render_test.c3
-rw-r--r--tests/render_test_sc1.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/render_test.c b/tests/render_test.c
index 51d4a3a..5c99542 100644
--- a/tests/render_test.c
+++ b/tests/render_test.c
@@ -52,12 +52,13 @@ static gboolean draw_sig(GtkWidget *da, cairo_t *cr, gpointer data)
cairo_surface_t *surface;
SCBlock *scblocks = data;
struct frame *top;
+ PangoLanguage *lang = pango_language_from_string("en_GB");
w = gtk_widget_get_allocated_width(da);
h = gtk_widget_get_allocated_height(da);
surface = render_sc(scblocks, w, h, w, h, NULL, NULL, NULL,
- ISZ_EDITOR, 1, &top);
+ ISZ_EDITOR, 1, &top, lang);
cairo_rectangle(cr, 0.0, 0.0, w, h);
cairo_set_source_surface(cr, surface, 0.0, 0.0);
cairo_fill(cr);
diff --git a/tests/render_test_sc1.c b/tests/render_test_sc1.c
index 8a6ff8b..eae8689 100644
--- a/tests/render_test_sc1.c
+++ b/tests/render_test_sc1.c
@@ -51,12 +51,13 @@ static gboolean draw_sig(GtkWidget *da, cairo_t *cr, gpointer data)
cairo_surface_t *surface;
SCBlock *scblocks = data;
struct frame *top;
+ PangoLanguage *lang = pango_language_from_string("en_GB");
w = gtk_widget_get_allocated_width(da);
h = gtk_widget_get_allocated_height(da);
surface = render_sc(scblocks, w, h, w, h, NULL, NULL, NULL,
- ISZ_EDITOR, 1, &top);
+ ISZ_EDITOR, 1, &top, lang);
cairo_rectangle(cr, 0.0, 0.0, w, h);
cairo_set_source_surface(cr, surface, 0.0, 0.0);
cairo_fill(cr);