aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-06-19 17:16:20 -0400
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-06-19 17:16:20 -0400
commite2de4823d11d0c2fc4479e0bc0ad8955d9962255 (patch)
treed2e0e14b0667fa07427343436ae0b2a76a86a0d7 /src
parent5d9faae92b600abd01fa54b34a754745b7cab95a (diff)
downloadayatana-ido-e2de4823d11d0c2fc4479e0bc0ad8955d9962255.tar.gz
ayatana-ido-e2de4823d11d0c2fc4479e0bc0ad8955d9962255.tar.bz2
ayatana-ido-e2de4823d11d0c2fc4479e0bc0ad8955d9962255.zip
ido_playback_menu_item_get_button_at_pos: add ascii blueprint
Diffstat (limited to 'src')
-rw-r--r--src/idoplaybackmenuitem.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/idoplaybackmenuitem.c b/src/idoplaybackmenuitem.c
index d507f6e..81fcab7 100644
--- a/src/idoplaybackmenuitem.c
+++ b/src/idoplaybackmenuitem.c
@@ -94,6 +94,14 @@ static Button
ido_playback_menu_item_get_button_at_pos (gint x,
gint y)
{
+ /* 57 101 143 187
+ * 5 +------+
+ * 12 +-----+ +-----+
+ * |prev play next|
+ * 40 +-----+ +-----+
+ * 47 +------+
+ */
+
if (x > 57 && x < 102 && y > 12 && y < 40)
return BUTTON_PREVIOUS;
else if (x > 101 && x < 143 && y > 5 && y < 47)