mirror of
https://github.com/brl/mutter.git
synced 2024-11-09 23:46:33 -05:00
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
This commit is contained in:
parent
f82966adb5
commit
28deea44d4
@ -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
|
||||
|
@ -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' &&
|
||||
|
Loading…
Reference in New Issue
Block a user