summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-18 19:55:17 +0200
committerraveit65 <[email protected]>2016-07-02 10:26:46 +0200
commitba4fb3a39a3f960f9deb949d08063dc58312a7e7 (patch)
treef61957366c3c17776e3c0d343914721217cfc88d
parent90d0a924f844d5dde9a687ee872c26d5e3237687 (diff)
downloadmate-desktop-ba4fb3a39a3f960f9deb949d08063dc58312a7e7.tar.bz2
mate-desktop-ba4fb3a39a3f960f9deb949d08063dc58312a7e7.tar.xz
GTK+-3 mate-bg: Don't use C99 declarations
It's not really necessary. taken from: https://git.gnome.org/browse/gnome-desktop/commit/?h=gnome-3-6&id=2738c5c
-rw-r--r--libmate-desktop/mate-bg.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libmate-desktop/mate-bg.c b/libmate-desktop/mate-bg.c
index d53510f..cf63d32 100644
--- a/libmate-desktop/mate-bg.c
+++ b/libmate-desktop/mate-bg.c
@@ -1306,12 +1306,13 @@ mate_bg_is_dark (MateBG *bg,
if (pixbuf) {
#if GTK_CHECK_VERSION (3, 0, 0)
GdkRGBA argb;
+ guchar a, r, g, b;
pixbuf_average_value (pixbuf, &argb);
- guchar a = argb.alpha * 0xff;
- guchar r = argb.red * 0xff;
- guchar g = argb.green * 0xff;
- guchar b = argb.blue * 0xff;
+ a = argb.alpha * 0xff;
+ r = argb.red * 0xff;
+ g = argb.green * 0xff;
+ b = argb.blue * 0xff;
#else
guint32 argb = pixbuf_average_value (pixbuf);
guchar a = (argb >> 24) & 0xff;