Changed launcher to use Areas for each icon; this allows showing tooltips

git-svn-id: http://tint2.googlecode.com/svn/trunk@631 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
o9000
2011-05-28 22:43:03 +00:00
committed by mrovi@interfete-web-club.com
parent f71967bbca
commit 47ce616991
4 changed files with 49 additions and 31 deletions

View File

@@ -699,16 +699,10 @@ Area* click_area(Panel *panel, int x, int y)
GSList* it = result->list;
while (it) {
Area* a = it->data;
if (panel_horizontal) {
if (a->on_screen && x >= a->posx && x <= (a->posx + a->width)) {
new_result = a;
break;
}
} else {
if (a->on_screen && y >= a->posy && y <= (a->posy + a->height)) {
new_result = a;
break;
}
if (a->on_screen && x >= a->posx && x <= (a->posx + a->width)
&& y >= a->posy && y <= (a->posy + a->height)) {
new_result = a;
break;
}
it = it->next;
}