[gtk+] hsv: Fix gcc warnings
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] hsv: Fix gcc warnings
- Date: Mon, 27 Dec 2010 01:09:48 +0000 (UTC)
commit 9bab53f1bdccb152d83cda7cd6c07ea5d7b5ff8b
Author: Benjamin Otte <otte redhat com>
Date: Mon Dec 27 00:45:56 2010 +0100
hsv: Fix gcc warnings
gtk/gtkhsv.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkhsv.c b/gtk/gtkhsv.c
index 2d71051..e6591c9 100644
--- a/gtk/gtkhsv.c
+++ b/gtk/gtkhsv.c
@@ -719,7 +719,7 @@ gtk_hsv_button_press (GtkWidget *widget,
if (is_in_ring (hsv, x, y))
{
priv->mode = DRAG_H;
- set_cross_grab (hsv, gdk_event_get_device (event), event->time);
+ set_cross_grab (hsv, gdk_event_get_device ((GdkEvent *) event), event->time);
gtk_hsv_set_color (hsv,
compute_v (hsv, x, y),
@@ -737,7 +737,7 @@ gtk_hsv_button_press (GtkWidget *widget,
gdouble s, v;
priv->mode = DRAG_SV;
- set_cross_grab (hsv, gdk_event_get_device (event), event->time);
+ set_cross_grab (hsv, gdk_event_get_device ((GdkEvent *) event), event->time);
compute_sv (hsv, x, y, &s, &v);
gtk_hsv_set_color (hsv, priv->h, s, v);
@@ -788,7 +788,7 @@ gtk_hsv_button_release (GtkWidget *widget,
g_assert_not_reached ();
}
- gdk_device_ungrab (gdk_event_get_device (event), event->time);
+ gdk_device_ungrab (gdk_event_get_device ((GdkEvent *) event), event->time);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]