Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/etox

Dir     : e17/libs/etox/test


Modified Files:
        etox_test.c selections.c 


Log Message:
Fix a problem unwrapping/re-wrapping text.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/test/etox_test.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -3 -r1.28 -r1.29
--- etox_test.c 1 Aug 2003 21:12:13 -0000       1.28
+++ etox_test.c 3 Aug 2003 05:05:05 -0000       1.29
@@ -66,6 +66,15 @@
        ee = NULL;
 }
 
+int sig_exit(void *data, int type, void * ev)
+{
+       ecore_main_loop_quit();
+       return 1;
+       data = NULL;
+       type = 0;
+       ev = NULL;
+}
+
 int e_mouse_move(void *data, int type, void * ev)
 {
        Ecore_X_Event_Mouse_Move *e;
@@ -406,6 +415,7 @@
                        NULL);
        ecore_event_handler_add(ECORE_X_EVENT_MOUSE_BUTTON_UP, e_mouse_up,
                        NULL);
+       ecore_event_handler_add(ECORE_EVENT_SIGNAL_EXIT, sig_exit, NULL);
 
        evas = ecore_evas_get(ee);
        evas_font_path_append(evas, FONT_DIRECTORY);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/test/selections.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- selections.c        1 Aug 2003 21:12:13 -0000       1.6
+++ selections.c        3 Aug 2003 05:05:05 -0000       1.7
@@ -33,6 +33,15 @@
        ee = NULL;
 }
 
+int sig_exit(void *data, int type, void * ev)
+{
+       ecore_main_loop_quit();
+       return 1;
+       data = NULL;
+       type = 0;
+       ev = NULL;
+}
+
 int main(int argc, const char **argv)
 {
        Etox_Selection *selected1;
@@ -116,6 +125,7 @@
        etox_append_text(etox, "Well slap my ass and call me Sally!");
 
        ecore_evas_callback_resize_set(ee, window_resize);
+       ecore_event_handler_add(ECORE_EVENT_SIGNAL_EXIT, sig_exit, NULL);
 
        ecore_main_loop_begin();
 




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to