summaryrefslogtreecommitdiff
path: root/src/theme-viewer.c
diff options
context:
space:
mode:
authorBjörn Lindqvist <bjourne@gmail.com>2006-04-18 17:18:53 +0000
committerBjörn Lindqvist <bjornl@src.gnome.org>2006-04-18 17:18:53 +0000
commitae85a3361400b2d6caf65cab4383defd1358bc45 (patch)
tree418c00099d88d51e112a780962de24d5d09397f9 /src/theme-viewer.c
parentfe47d4436d4939b87e96de01fbceeb38d4e9b2dd (diff)
downloadmetacity-ae85a3361400b2d6caf65cab4383defd1358bc45.tar.gz
metacity-ae85a3361400b2d6caf65cab4383defd1358bc45.tar.bz2
Add boxes.{c,h} to libmetacity_private
2006-04-18 Björn Lindqvist <bjourne@gmail.com> * makefile.am: Add boxes.{c,h} to libmetacity_private * src/theme-parser.c (check_expression): * src/theme-viewer.c (run_position_expression_tests): Use meta_rect (). * src/theme.c: Replace while loops iterating over sequences with for loops. * src/theme.c, src/theme.h (struct _MetaPositionExprEnv, meta_draw_op_draw, meta_draw_op_list_draw, meta_theme_draw_menu_icon): Use MetaRectangles in function prototypes instead of x, y, with, height ints where applicable.
Diffstat (limited to 'src/theme-viewer.c')
-rw-r--r--src/theme-viewer.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/theme-viewer.c b/src/theme-viewer.c
index bb081d9..9d6d7ab 100644
--- a/src/theme-viewer.c
+++ b/src/theme-viewer.c
@@ -1191,11 +1191,9 @@ run_position_expression_tests (void)
test->expr, test->expected_x, test->expected_y);
err = NULL;
-
- env.x = test->rect.x;
- env.y = test->rect.y;
- env.width = test->rect.width;
- env.height = test->rect.height;
+
+ env.rect = meta_rect (test->rect.x, test->rect.y,
+ test->rect.width, test->rect.height);
env.object_width = -1;
env.object_height = -1;
env.left_width = 0;