Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        ewl_entry.c ewl_misc.c 


Log Message:
A call to ewl_main is now equivalent to ecore_main_loop_begin, so apps have
the option of calling either. Removed a printf from the entry code.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_entry.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -3 -r1.68 -r1.69
--- ewl_entry.c 16 Oct 2003 07:05:09 -0000      1.68
+++ ewl_entry.c 23 Oct 2003 00:36:21 -0000      1.69
@@ -289,7 +289,6 @@
                ewl_callback_call_with_event_data(w, EWL_CALLBACK_VALUE_CHANGED,
                                EWL_TEXT(w)->text);
        else if (ev->key_compose) {
-               printf("Received %s\n", ev->keyname);
                __ewl_entry_insert_text(w, ev->key_compose);
        }
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_misc.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -3 -r1.45 -r1.46
--- ewl_misc.c  21 Oct 2003 05:48:06 -0000      1.45
+++ ewl_misc.c  23 Oct 2003 00:36:21 -0000      1.46
@@ -7,6 +7,8 @@
 
 static unsigned int    debug_segv = 0;
 static unsigned int    phase_status = 0;
+static Ecore_Timer    *config_timer = NULL;
+
 static Ewd_List *configure_list = NULL;
 static Ewd_List *realize_list = NULL;
 static Ewd_List *destroy_list = NULL;
@@ -91,8 +93,12 @@
 
        ewl_embed_list = ewd_list_new();
        ecore_idle_enterer_add(ewl_idle_render, NULL);
-       ecore_event_handler_add(ECORE_EVENT_SIGNAL_EXIT, __ewl_ecore_exit,
-                       NULL);
+
+       /*
+        * Call it once right away, then get it looping every half second
+        */
+       ewl_reread_config(NULL);
+       config_timer = ecore_timer_add(0.5, ewl_reread_config, NULL);
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
@@ -108,13 +114,6 @@
 {
        DENTER_FUNCTION(DLEVEL_STABLE);
 
-       /*
-        * Call it once right away, then get it looping every half second
-        */
-       ewl_reread_config(NULL);
-       ecore_timer_add(0.5, ewl_reread_config, NULL);
-
-       ewl_idle_render(NULL);
        ecore_main_loop_begin();
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
@@ -185,6 +184,7 @@
        DENTER_FUNCTION(DLEVEL_STABLE);
 
        ecore_main_loop_quit();
+       ecore_timer_del(config_timer);
        ewl_callbacks_deinit();
 
        ewd_list_destroy(configure_list);




-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to