[gtk+] Fix conversion from GdkColor to GdkRGBA
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix conversion from GdkColor to GdkRGBA
- Date: Sun, 6 Mar 2011 10:17:01 +0000 (UTC)
commit 0a03e812243565285a75dc5d5b2d085e32f45e1d
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun Mar 6 11:16:28 2011 +0100
Fix conversion from GdkColor to GdkRGBA
gtk/gtkstylecontext.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index b836933..1e5e85e 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]