From f6fefa99ea3a9a71d5803931cec403db845f767a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 30 Nov 2012 09:49:01 +0100 Subject: WIP on rendering --- tests/render_test_sc1.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'tests/render_test_sc1.c') diff --git a/tests/render_test_sc1.c b/tests/render_test_sc1.c index 154a08f..e32674d 100644 --- a/tests/render_test_sc1.c +++ b/tests/render_test_sc1.c @@ -33,7 +33,6 @@ #include "../src/storycode.h" #include "../src/render.h" -#include "../src/layout.h" #include "../src/stylesheet.h" #include "../src/frame.h" @@ -45,8 +44,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); @@ -57,11 +54,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; -- cgit v1.2.3