Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_iconbox.c
Log Message:
- patch from Peter Wehrfritz to fixup iconbox menu placement. Thanks.
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_iconbox.c,v
retrieving revision 1.113
retrieving revision 1.114
diff -u -3 -r1.113 -r1.114
--- ewl_iconbox.c 13 Apr 2006 20:37:22 -0000 1.113
+++ ewl_iconbox.c 13 Apr 2006 21:04:14 -0000 1.114
@@ -1367,10 +1367,13 @@
&& (ib->xdown != ev->x
&& ib->ydown != ev->y))
{
+ int h;
+
+ h =
ewl_object_current_h_get(EWL_OBJECT(ib->ewl_iconbox_context_menu));
ewl_widget_show(ib->ewl_iconbox_menu_floater);
ewl_floater_position_set(EWL_FLOATER(ib->ewl_iconbox_menu_floater),
- ev->x-ibx +
abs(px-ibx),
- ev->y-iby +abs(py-iby));
+ ev->x - px,
+ ev->y - py - h);
ewl_callback_call(EWL_WIDGET(ib->ewl_iconbox_context_menu),
EWL_CALLBACK_FOCUS_IN);
@@ -1424,9 +1427,12 @@
iby = ewl_object_current_y_get(EWL_OBJECT(ib->icon_box_parent));
if (ev->button == 3) {
+ int h;
+
+ h =
ewl_object_current_h_get(EWL_OBJECT(ib->icon_box_parent->icon_menu));
ewl_floater_position_set(EWL_FLOATER(ib->icon_box_parent->icon_menu_floater),
- ev->x-ibx + abs(sx-ibx),
- ev->y-iby +abs(sy-iby));
+ ev->x - sx,
+ ev->y - sy - h);
ewl_callback_call(EWL_WIDGET(ib->icon_box_parent->icon_menu),
EWL_CALLBACK_FOCUS_IN);
} else {
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs