st-private: Fix style

This commit is contained in:
Jasper St. Pierre 2012-12-02 20:11:36 -05:00
parent 7e5f1fe411
commit a88433dba6

View File

@ -212,13 +212,16 @@ _st_set_text_from_style (ClutterText *text,
pango_attr_list_unref (attribs); pango_attr_list_unref (attribs);
align = st_theme_node_get_text_align (theme_node); align = st_theme_node_get_text_align (theme_node);
if(align == ST_TEXT_ALIGN_JUSTIFY) { if (align == ST_TEXT_ALIGN_JUSTIFY)
clutter_text_set_justify (text, TRUE); {
clutter_text_set_line_alignment (text, PANGO_ALIGN_LEFT); clutter_text_set_justify (text, TRUE);
} else { clutter_text_set_line_alignment (text, PANGO_ALIGN_LEFT);
clutter_text_set_justify (text, FALSE); }
clutter_text_set_line_alignment (text, (PangoAlignment) align); else
} {
clutter_text_set_justify (text, FALSE);
clutter_text_set_line_alignment (text, (PangoAlignment) align);
}
} }
/** /**