projects
/
hildon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Correct the color drag in HildonColorChooser
[hildon]
/
hildon
/
hildon-color-chooser.c
diff --git
a/hildon/hildon-color-chooser.c
b/hildon/hildon-color-chooser.c
index
8e8e075
..
3f4473f
100644
(file)
--- a/
hildon/hildon-color-chooser.c
+++ b/
hildon/hildon-color-chooser.c
@@
-705,8
+705,8
@@
hildon_color_chooser_pointer_motion (GtkWidget *widget,
g_assert (priv);
- x = (gint) event->x;
- y = (gint) event->y;
+ x = (int) event->x + widget->allocation.x;
+ y = (int) event->y + widget->allocation.y;
if (priv->mousestate == 1) {
if (x >= priv->spa.x && x <= priv->spa.x + priv->spa.width &&