aboutsummaryrefslogtreecommitdiff
path: root/src/stylesheet.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-07-26 09:58:06 +0200
committerThomas White <taw@bitwiz.org.uk>2011-07-26 09:58:06 +0200
commitd1a3e8d5d0189690bdd9f23196e0fb5254d0e856 (patch)
treeec8ec3ea8d579deb2d71f647580b55e3c5fcb7e1 /src/stylesheet.c
parenta7c93728218e9b14f4ce82516cfc6b42d98abd17 (diff)
halign / valign
Diffstat (limited to 'src/stylesheet.c')
-rw-r--r--src/stylesheet.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c
index c16424a..9d8024e 100644
--- a/src/stylesheet.c
+++ b/src/stylesheet.c
@@ -281,8 +281,8 @@ static void default_stylesheet(StyleSheet *ss)
ly->margin_right = 20.0;
ly->margin_top = 20.0;
ly->margin_bottom = 20.0;
- ly->just = J_CENTER;
- ly->vert = V_TOP;
+ ly->halign = J_CENTER;
+ ly->valign = V_TOP;
ly->offset_x = 0.0;
ly->offset_y = 0.0; /* irrelevant */
@@ -294,8 +294,8 @@ static void default_stylesheet(StyleSheet *ss)
ly->margin_right = 20.0;
ly->margin_top = 20.0;
ly->margin_bottom = 20.0;
- ly->just = J_CENTER;
- ly->vert = V_CENTER;
+ ly->halign = J_CENTER;
+ ly->valign = V_CENTER;
ly->offset_x = -200.0;
ly->offset_y = +300.0;
@@ -303,13 +303,12 @@ static void default_stylesheet(StyleSheet *ss)
st->font = strdup("Sans 30");
ly = new_layout_element(ss, st->name);
ly->text_style = st;
- ly->text_style = st;
ly->margin_left = 20.0;
ly->margin_right = 20.0;
ly->margin_top = 20.0;
ly->margin_bottom = 20.0;
- ly->just = J_CENTER;
- ly->vert = V_CENTER;
+ ly->halign = J_CENTER;
+ ly->valign = V_CENTER;
ly->offset_x = +200.0;
ly->offset_y = -300.0;
@@ -318,13 +317,12 @@ static void default_stylesheet(StyleSheet *ss)
ly = new_layout_element(ss, "Slide content");
ly->text_style = st;
- ly->text_style = st;
ly->margin_left = 20.0;
ly->margin_right = 20.0;
ly->margin_top = 20.0;
ly->margin_bottom = 20.0;
- ly->just = J_CENTER;
- ly->vert = V_CENTER;
+ ly->halign = J_CENTER;
+ ly->valign = V_CENTER;
ly->offset_x = +200.0;
ly->offset_y = -300.0;