[mutter] theme: Remove outdated assertion
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] theme: Remove outdated assertion
- Date: Sat, 8 Oct 2011 21:30:26 +0000 (UTC)
commit 28deea44d45808c846fa674d80497ee6408a3e6f
Author: Sandro Mani <manisandro gmail com>
Date: Sat Oct 8 23:19:04 2011 +0200
theme: Remove outdated assertion
The theme state used to use GtkStateType, but was ported over to GtkStateFlags,
leaving behind a broken assertion that fails when using certain Metacity
themes, for example Nodoka.
https://bugzilla.gnome.org/show_bug.cgi?id=661286
src/ui/theme-private.h | 2 --
src/ui/theme.c | 1 -
2 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/ui/theme-private.h b/src/ui/theme-private.h
index ba19435..8ee14f9 100644
--- a/src/ui/theme-private.h
+++ b/src/ui/theme-private.h
@@ -723,8 +723,6 @@ typedef enum
META_FRAME_PIECE_LAST
} MetaFramePiece;
-#define N_GTK_STATES 5
-
/**
* How to draw a frame in a particular state (say, a focussed, non-maximised,
* resizable frame). This corresponds closely to the <frame_style> tag
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 10337a2..bfe1d14 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -1339,7 +1339,6 @@ meta_color_spec_new_from_string (const char *str,
spec = meta_color_spec_new (META_COLOR_SPEC_GTK);
spec->data.gtk.state = state;
spec->data.gtk.component = component;
- g_assert (spec->data.gtk.state < N_GTK_STATES);
g_assert (spec->data.gtk.component < META_GTK_COLOR_LAST);
}
else if (str[0] == 'b' && str[1] == 'l' && str[2] == 'e' && str[3] == 'n' &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]