Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        ewl_text.c 


Log Message:
Duplicate the text for passing in the callback.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_text.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -3 -r1.64 -r1.65
--- ewl_text.c  8 Jun 2004 14:05:48 -0000       1.64
+++ ewl_text.c  8 Jun 2004 14:14:26 -0000       1.65
@@ -124,8 +124,10 @@
                ewl_text_update_size(ta);
        }
 
+       text = strdup(text);
        ewl_callback_call_with_event_data(EWL_WIDGET(ta),
-                                         EWL_CALLBACK_VALUE_CHANGED, ta->text);
+                                         EWL_CALLBACK_VALUE_CHANGED, text);
+       FREE(text);
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }




-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to