summaryrefslogtreecommitdiff
path: root/src/ui/theme.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/theme.c')
-rw-r--r--src/ui/theme.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c
index c117eeb8..a78f9ce2 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -2917,7 +2917,7 @@ meta_parse_position_expression (MetaDrawSpec *spec,
val = spec->value;
else
{
- if (pos_eval (spec, env, &spec->value, err) == FALSE)
+ if (!pos_eval (spec, env, &spec->value, err))
{
g_assert (err == NULL || *err != NULL);
return FALSE;
@@ -2946,7 +2946,7 @@ meta_parse_size_expression (MetaDrawSpec *spec,
val = spec->value;
else
{
- if (pos_eval (spec, env, &spec->value, err) == FALSE)
+ if (!pos_eval (spec, env, &spec->value, err))
{
g_assert (err == NULL || *err != NULL);
return FALSE;
@@ -3095,10 +3095,7 @@ meta_draw_spec_new (MetaTheme *theme,
spec->n_tokens, NULL);
if (spec->constant)
{
- gboolean result;
-
- result = pos_eval (spec, NULL, &spec->value, error);
- if (result == FALSE)
+ if (!pos_eval (spec, NULL, &spec->value, error))
{
meta_draw_spec_free (spec);
return NULL;