diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-06-19 17:16:20 -0400 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-06-19 17:16:20 -0400 |
commit | e2de4823d11d0c2fc4479e0bc0ad8955d9962255 (patch) | |
tree | d2e0e14b0667fa07427343436ae0b2a76a86a0d7 /src | |
parent | 5d9faae92b600abd01fa54b34a754745b7cab95a (diff) | |
download | ayatana-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.c | 8 |
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) |