From 0a03e812243565285a75dc5d5b2d085e32f45e1d Mon Sep 17 00:00:00 2001 From: Ignacio Casal Quinteiro Date: Sun, 6 Mar 2011 11:16:28 +0100 Subject: [PATCH] Fix conversion from GdkColor to GdkRGBA --- gtk/gtkstylecontext.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index b8369338ac..1e5e85ef53 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -3620,9 +3620,9 @@ get_cursor_color (GtkStyleContext *context, if (style_color) { - color->red = style_color->red / 65535; - color->green = style_color->green / 65535; - color->blue = style_color->blue / 65535; + color->red = style_color->red / 65535.0; + color->green = style_color->green / 65535.0; + color->blue = style_color->blue / 65535.0; color->alpha = 1; gdk_color_free (style_color);