[gnome-shell] st-theme-node: Clean up
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] st-theme-node: Clean up
- Date: Fri, 3 Aug 2012 15:27:37 +0000 (UTC)
commit 3ffa1e35e8b6848038459f954775d513b1828b74
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sat Jul 28 04:49:14 2012 -0300
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
src/st/st-theme-node-drawing.c | 1 -
src/st/st-theme-node-private.h | 4 +++-
src/st/st-theme-node.c | 4 ++--
3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/st/st-theme-node-drawing.c b/src/st/st-theme-node-drawing.c
index 1ac3e39..96df6f8 100644
--- a/src/st/st-theme-node-drawing.c
+++ b/src/st/st-theme-node-drawing.c
@@ -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];
diff --git a/src/st/st-theme-node-private.h b/src/st/st-theme-node-private.h
index b6cd2a4..f31f1b8 100644
--- a/src/st/st-theme-node-private.h
+++ b/src/st/st-theme-node-private.h
@@ -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;
diff --git a/src/st/st-theme-node.c b/src/st/st-theme-node.c
index 651de02..331b5d8 100644
--- a/src/st/st-theme-node.c
+++ b/src/st/st-theme-node.c
@@ -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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]