diff options
author | Thomas White <taw@bitwiz.org.uk> | 2012-11-30 09:49:01 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2012-11-30 09:49:01 +0100 |
commit | f6fefa99ea3a9a71d5803931cec403db845f767a (patch) | |
tree | 1331f00024cbede9245b993efa9e501dbca42405 /tests/render_test.c | |
parent | 1392eda7d12dc4ad6a75c794fcb21e494c12c0aa (diff) |
WIP on rendering
Diffstat (limited to 'tests/render_test.c')
-rw-r--r-- | tests/render_test.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/render_test.c b/tests/render_test.c index c800cdb..ab2bfc9 100644 --- a/tests/render_test.c +++ b/tests/render_test.c @@ -32,7 +32,6 @@ #include "../src/storycode.h" #include "../src/render.h" -#include "../src/layout.h" #include "../src/stylesheet.h" #include "../src/frame.h" @@ -44,8 +43,6 @@ static gint mw_destroy(GtkWidget *w, void *p) static gboolean draw_sig(GtkWidget *da, cairo_t *cr, struct frame *fr) { - PangoContext *pc; - GtkAllocation allocation; gint w, h; w = gtk_widget_get_allocated_width(da); @@ -56,11 +53,7 @@ static gboolean draw_sig(GtkWidget *da, cairo_t *cr, struct frame *fr) cairo_set_source_rgb(cr, 0.9, 0.9, 0.9); cairo_fill(cr); - pc = gtk_widget_get_pango_context(da); - - gtk_widget_get_allocation(da, &allocation); - - layout_frame(fr, allocation.width, allocation.height); + fr->w = w; fr->h = h; render_frame(fr, cr); return FALSE; |