summaryrefslogtreecommitdiff
path: root/eel/eel-gdk-extensions.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-07-15 17:57:14 +0200
committerraveit65 <[email protected]>2016-07-15 17:57:14 +0200
commitce7c14985b6517ee57752c5963de5d9559f39596 (patch)
tree8f41b454afc0af887e8c08dd0e708cef44aaad1a /eel/eel-gdk-extensions.c
parented7ca3d198f8012e5d3c0bb6e89a5f02b583d50a (diff)
downloadcaja-ce7c14985b6517ee57752c5963de5d9559f39596.tar.bz2
caja-ce7c14985b6517ee57752c5963de5d9559f39596.tar.xz
GTK+-3 eel: fix color definition pointed out by running distcheck with gtk3
Diffstat (limited to 'eel/eel-gdk-extensions.c')
-rw-r--r--eel/eel-gdk-extensions.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/eel/eel-gdk-extensions.c b/eel/eel-gdk-extensions.c
index 646c6405..58610529 100644
--- a/eel/eel-gdk-extensions.c
+++ b/eel/eel-gdk-extensions.c
@@ -429,9 +429,10 @@ eel_gdk_rgb_to_rgba (guint32 color)
{
GdkRGBA result;
- result.red = ((color >> 16) & 0xFF) / 0xFF;
- result.green = ((color >> 8) & 0xFF) / 0xFF;
- result.blue = (color & 0xff) / 0xFF;
+ result.red = ((gdouble) ((color >> 16) & 0xFF)) / 0xFF;
+ result.green = ((gdouble) ((color >> 8) & 0xFF)) / 0xFF;
+ result.blue = ((gdouble) (color & 0xFF)) / 0xFF;
+ result.alpha = 1.0;
return result;
}