diff options
author | Yaakov Selkowitz <[email protected]> | 2015-07-17 13:14:35 -0500 |
---|---|---|
committer | Yaakov Selkowitz <[email protected]> | 2015-07-17 13:14:35 -0500 |
commit | 627d2bac855ed34c3e5bb122078e078a06fa264e (patch) | |
tree | 32afb2aff23af1affd6c09626199271e69f8f967 /src/ui/theme.c | |
parent | 9d5a24638c306bce86244750de082faa09f1f8cd (diff) | |
download | marco-627d2bac855ed34c3e5bb122078e078a06fa264e.tar.bz2 marco-627d2bac855ed34c3e5bb122078e078a06fa264e.tar.xz |
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
https://git.gnome.org/browse/mutter/commit/?id=28deea4
https://git.gnome.org/browse/metacity/commit/?id=c9099b4
https://github.com/mate-desktop/marco/issues/205
Diffstat (limited to 'src/ui/theme.c')
-rw-r--r-- | src/ui/theme.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c index a7dc8d08..173c58f0 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -1312,7 +1312,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' && |