[gtk+] Fix call to gtk_widget_override_cursor()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix call to gtk_widget_override_cursor()
- Date: Sat, 4 Dec 2010 17:28:20 +0000 (UTC)
commit 37719380aed87da3c347d1ab1f5ee74478fa452a
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Dec 4 18:26:02 2010 +0100
Fix call to gtk_widget_override_cursor()
gtk/gtkwidget.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 2fa0df2..196a2c5 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -8381,9 +8381,21 @@ gtk_widget_modify_cursor (GtkWidget *widget,
const GdkColor *primary,
const GdkColor *secondary)
{
+ GdkRGBA primary_rgba, secondary_rgba;
+
g_return_if_fail (GTK_IS_WIDGET (widget));
- gtk_widget_override_cursor (widget, primary, secondary);
+ primary_rgba.red = primary->red / 65535.;
+ primary_rgba.green = primary->green / 65535.;
+ primary_rgba.blue = primary->blue / 65535.;
+ primary_rgba.alpha = 1;
+
+ secondary_rgba.red = secondary->red / 65535.;
+ secondary_rgba.green = secondary->green / 65535.;
+ secondary_rgba.blue = secondary->blue / 65535.;
+ secondary_rgba.alpha = 1;
+
+ gtk_widget_override_cursor (widget, &primary_rgba, &secondary_rgba);
g_signal_emit (widget,
widget_signals[STYLE_SET],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]