From 43f4a4df59d960442df2faedfd50e5c7c7a55d99 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 8 Oct 2012 21:09:16 +0200 Subject: Create PangoLayout when laying out the frame Because it's necessary to know how much space the contents take up --- src/presentation.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/presentation.h') diff --git a/src/presentation.h b/src/presentation.h index 72a1512..daa016b 100644 --- a/src/presentation.h +++ b/src/presentation.h @@ -55,8 +55,6 @@ struct slide struct frame { - PangoContext *pc; /* FIXME: Doesn't belong here */ - struct frame **rendering_order; int num_ro; int max_ro; @@ -66,12 +64,14 @@ struct frame struct layout_parameters lop; struct style *style; /* Non-NULL if 'lop' came from SS */ - /* Location relative to parent, calculated from alignment parameters */ + /* Location relative to parent, calculated from layout parameters */ double offs_x; double offs_y; double w; double h; + PangoLayout *pl; + /* True if this frame should be deleted on the next mouse click */ int empty; }; -- cgit v1.2.3