forked from AuroraMiddleware/gtk
gtk/gtkcssrgbavalue.c: Fix build on Visual Studio
Visual Studio does not allow static or global structures to use static storage duration by compound literals, which is actually a GCCism[1]. [1]: See https://gcc.gnu.org/onlinedocs/gcc/Compound-Literals.html
This commit is contained in:
parent
ad48bbb849
commit
d2e13dd3e4
@ -107,9 +107,9 @@ static const GtkCssValueClass GTK_CSS_VALUE_RGBA = {
|
||||
gtk_css_value_rgba_print
|
||||
};
|
||||
|
||||
static GtkCssValue transparent_black_singleton = (GtkCssValue) { >K_CSS_VALUE_RGBA, 1, { 0, 0, 0, 0 }};
|
||||
static GtkCssValue transparent_white_singleton = (GtkCssValue) { >K_CSS_VALUE_RGBA, 1, { 1, 1, 1, 0 }};
|
||||
static GtkCssValue opaque_white_singleton = (GtkCssValue) { >K_CSS_VALUE_RGBA, 1, { 1, 1, 1, 1 }};
|
||||
static GtkCssValue transparent_black_singleton = { >K_CSS_VALUE_RGBA, 1, { 0, 0, 0, 0 }};
|
||||
static GtkCssValue transparent_white_singleton = { >K_CSS_VALUE_RGBA, 1, { 1, 1, 1, 0 }};
|
||||
static GtkCssValue opaque_white_singleton = { >K_CSS_VALUE_RGBA, 1, { 1, 1, 1, 1 }};
|
||||
|
||||
GtkCssValue *
|
||||
_gtk_css_rgba_value_new_from_rgba (const GdkRGBA *rgba)
|
||||
|
Loading…
Reference in New Issue
Block a user