[Xfce4-commits] <xfce4-eyes-plugin:master> Fix previous commit (independent eye movement).
Harald Judt
noreply at xfce.org
Thu Feb 28 17:08:01 CET 2013
Updating branch refs/heads/master
to 8164b087d1d2d5650c6835f89b4a46bc3d0426ca (commit)
from c5f5e0484d8fbcb68ed28732dc240935be336782 (commit)
commit 8164b087d1d2d5650c6835f89b4a46bc3d0426ca
Author: Harald Judt <h.judt at gmx.at>
Date: Thu Feb 28 17:05:09 2013 +0100
Fix previous commit (independent eye movement).
Last time I got the brackets wrong, so the eyes did not look exactly
in the right direction.
panel-plugin/eyes.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/panel-plugin/eyes.c b/panel-plugin/eyes.c
index 11a286a..3346adb 100644
--- a/panel-plugin/eyes.c
+++ b/panel-plugin/eyes.c
@@ -75,12 +75,10 @@ calculate_pupil_xy (EyesPlugin *eyes_applet,
height = GTK_WIDGET(widget)->allocation.height;
gtk_misc_get_alignment(GTK_MISC(widget), &xalign, &yalign);
- nx = x - (MAX(width - eyes_applet->eye_width, 0)
- * xalign - eyes_applet->eye_width / 2)
- - GTK_WIDGET(widget)->allocation.x;
- ny = y - (MAX(height - eyes_applet->eye_height, 0)
- * yalign - eyes_applet->eye_height / 2)
- - GTK_WIDGET(widget)->allocation.y;
+ nx = x - MAX(width - eyes_applet->eye_width, 0) * xalign
+ - eyes_applet->eye_width / 2 - GTK_WIDGET(widget)->allocation.x;
+ ny = y - MAX(height - eyes_applet->eye_height, 0) * yalign
+ - eyes_applet->eye_height / 2 - GTK_WIDGET(widget)->allocation.y;
h = hypot (nx, ny);
if (h < 0.5 ||
More information about the Xfce4-commits
mailing list