Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_iconbox.c ewl_menu.c
Log Message:
* Turns out the menu-popup -> position bug was caused by the 'realize' event.
The popup_move function was only being called by realize, which only happened
on the first time the menu was popped-up, and 'occassionally'. Fixed this for
now by putting a call to the realize callback in the configure callback.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_iconbox.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -3 -r1.64 -r1.65
--- ewl_iconbox.c 4 Nov 2005 12:34:38 -0000 1.64
+++ ewl_iconbox.c 6 Nov 2005 01:01:42 -0000 1.65
@@ -949,6 +949,7 @@
ewl_floater_position_set(EWL_FLOATER(ib->ewl_iconbox_menu_floater), ev->x-ibx +
abs(px-ibx), ev->y-iby +abs(py-iby));
ewl_widget_show(ib->ewl_iconbox_view_menu);
ewl_widget_show(ib->ewl_iconbox_context_menu);
+
//ewl_menu_popup_move_cb(EWL_MENU(ib->ewl_iconbox_context_menu)->base.popup,
NULL, ib->ewl_iconbox_context_menu);
ewl_callback_call(EWL_WIDGET(ib->ewl_iconbox_context_menu),
EWL_CALLBACK_SELECT);
} else if (ev->button == 1 /* Confirm that this is not an icon event */
&& (ib->xdown != ev->x && ib->ydown != ev->y)) {
/*Make sure the context menu is invisible*/
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_menu.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- ewl_menu.c 28 Oct 2005 11:39:14 -0000 1.14
+++ ewl_menu.c 6 Nov 2005 01:01:42 -0000 1.15
@@ -64,7 +64,7 @@
ewl_window_pointer_grab_set(EWL_WINDOW(menu->base.popup), TRUE);
/*Turn this off until we can figure out why this stops windows being
moved*/
- /*ewl_window_override_set(EWL_WINDOW(menu->base.popup), TRUE);*/
+ ewl_window_override_set(EWL_WINDOW(menu->base.popup), TRUE);
ewl_window_borderless_set(EWL_WINDOW(menu->base.popup));
ewl_widget_internal_set(menu->base.popup, TRUE);
ewl_widget_appearance_set(EWL_WIDGET(menu->base.popup), "menu");
@@ -121,6 +121,8 @@
menu->popup_x = x + CURRENT_X(w);
menu->popup_y = y + CURRENT_Y(w);
+ ewl_menu_popup_move_cb(menu->base.popup, NULL, w);
+
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs