st-theme-node: Clean up

Replace some faulty indentation, group some booleans to reduce
a bit of memory usage

https://bugzilla.gnome.org/show_bug.cgi?id=680801
This commit is contained in:
Jasper St. Pierre 2012-07-28 04:49:14 -03:00
parent 114fb4219b
commit 3ffa1e35e8
3 changed files with 5 additions and 4 deletions

View File

@ -1477,7 +1477,6 @@ static void
st_theme_node_paint_borders (StThemeNode *node,
const ClutterActorBox *box,
guint8 paint_opacity)
{
float width, height;
int border_width[4];

View File

@ -45,7 +45,7 @@ struct _StThemeNode {
int background_position_x;
int background_position_y;
gboolean background_position_set : 1;
StBackgroundSize background_size;
gint background_size_w;
gint background_size_h;
@ -87,6 +87,8 @@ struct _StThemeNode {
/* We hold onto these separately so we can destroy them on finalize */
CRDeclaration *inline_properties;
guint background_position_set : 1;
guint properties_computed : 1;
guint geometry_computed : 1;
guint background_computed : 1;

View File

@ -1647,8 +1647,8 @@ _st_theme_node_ensure_background (StThemeNode *node)
}
else
node->background_position_set = TRUE;
result = get_length_from_term_int (node, decl->value->next, FALSE, &node->background_position_y);
result = get_length_from_term_int (node, decl->value->next, FALSE, &node->background_position_y);
if (result == VALUE_NOT_FOUND)
{