summaryrefslogtreecommitdiff
path: root/libmate-desktop
diff options
context:
space:
mode:
authorGyörgy Balló <[email protected]>2015-11-19 14:51:56 +0100
committerWolfgang Ulbrich <[email protected]>2015-11-21 17:40:23 +0100
commit53d0f2cd29a3ba3557f4ef4f2d7967c88a8a1914 (patch)
treedf8eb821e56f12d63336a272bd70850582093122 /libmate-desktop
parent2793d157e61e8e0bbbaac669679bc95f8189da6f (diff)
downloadmate-desktop-53d0f2cd29a3ba3557f4ef4f2d7967c88a8a1914.tar.bz2
mate-desktop-53d0f2cd29a3ba3557f4ef4f2d7967c88a8a1914.tar.xz
colorbutton: handle alpha for GdkRGBA
We have to handle alpha value to avoid uninitialized variable.
Diffstat (limited to 'libmate-desktop')
-rw-r--r--libmate-desktop/mate-colorbutton.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmate-desktop/mate-colorbutton.c b/libmate-desktop/mate-colorbutton.c
index 2f65e64..53a6e0d 100644
--- a/libmate-desktop/mate-colorbutton.c
+++ b/libmate-desktop/mate-colorbutton.c
@@ -689,6 +689,7 @@ mate_color_button_set_rgba (MateColorButton *color_button,
color_button->priv->color.red = color->red * 65535;
color_button->priv->color.green = color->green * 65535;
color_button->priv->color.blue = color->blue * 65535;
+ color_button->priv->alpha = color->alpha * 65535;
gtk_widget_queue_draw (color_button->priv->draw_area);
@@ -757,6 +758,7 @@ mate_color_button_get_rgba (MateColorButton *color_button,
color->red = color_button->priv->color.red / 65535.;
color->green = color_button->priv->color.green / 65535.;
color->blue = color_button->priv->color.blue / 65535.;
+ color->alpha = color_button->priv->alpha / 65535.;
}
#endif