[Xfce4-commits] [apps/xfce4-screensaver] 01/01: Handle Xfconf's storage of GdkColors
noreply at xfce.org
noreply at xfce.org
Fri Oct 26 12:43:14 CEST 2018
This is an automated email from the git hooks/post-receive script.
b l u e s a b r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-screensaver.
commit 9ac974f0ccd35e9ed29b62ef978184b2360c5232
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Fri Oct 26 06:43:09 2018 -0400
Handle Xfconf's storage of GdkColors
---
src/xfce-bg.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/xfce-bg.c b/src/xfce-bg.c
index d2af2c2..b248a0d 100644
--- a/src/xfce-bg.c
+++ b/src/xfce-bg.c
@@ -226,7 +226,7 @@ static void color_from_color_array (XfconfChannel *channel,
const gchar *property,
GdkRGBA *colorp)
{
- guint pc, rc, gc, bc;
+ guint rc, gc, bc, ac;
/* If all else fails use black */
gdk_rgba_parse (colorp, "#000000");
@@ -236,16 +236,16 @@ static void color_from_color_array (XfconfChannel *channel,
xfconf_channel_get_array(channel,
property,
- G_TYPE_UINT, &pc,
G_TYPE_UINT, &rc,
G_TYPE_UINT, &gc,
G_TYPE_UINT, &bc,
+ G_TYPE_UINT, &ac,
G_TYPE_INVALID);
colorp->red = (gdouble) rc / 65535;
colorp->green = (gdouble) gc / 65535;
colorp->blue = (gdouble) bc / 65535;
- colorp->alpha = 1.0;
+ colorp->alpha = (gdouble) ac / 65535;
}
static gboolean
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list