Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
actions.c
Log Message:
Fix segv when using e.g. dragbar menus.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/actions.c,v
retrieving revision 1.134
retrieving revision 1.135
diff -u -3 -r1.134 -r1.135
--- actions.c 21 Jan 2004 23:32:44 -0000 1.134
+++ actions.c 28 Jan 2004 16:11:03 -0000 1.135
@@ -370,7 +370,13 @@
if (af->need_ewin)
{
if (ewin == NULL)
- ewin = GetContextEwin();
+ {
+ if (params)
+ ewin = FindItem(NULL, atoi((char *)params), LIST_FINDBY_ID,
+ LIST_TYPE_EWIN);
+ if (ewin == NULL)
+ ewin = GetContextEwin();
+ }
if (ewin == NULL)
return -1;
@@ -3317,7 +3323,7 @@
{0, 0, 0, 0, doToolTipSet}, /* ACTION_TOOLTIP_SET */
{0, 0, 0, 0, doFocusNext}, /* ACTION_FOCUS_NEXT */
{0, 0, 0, 0, doFocusPrev}, /* ACTION_FOCUS_PREV */
- {0, 0, 0, 0, doFocusSet}, /* ACTION_FOCUS_SET */
+ {1, 0, 0, 0, doFocusSet}, /* ACTION_FOCUS_SET */
{0, 0, 0, 0, doBackgroundSet}, /* ACTION_BACKGROUND_SET */
{0, 0, 1, 0, doAreaSet}, /* ACTION_AREA_SET */
{0, 0, 1, 0, doAreaMoveBy}, /* ACTION_MOVE_BY */
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs