Enlightenment CVS committal

Author  : mekius
Project : e17
Module  : proto

Dir     : e17/proto/empower/src/bin/ewl


Modified Files:
        empower_cb_ewl.c 


Log Message:
Thanks to RbdPngn the window properly closes!  Also put keyboard/pointer 
grabbing back in.

===================================================================
RCS file: /cvs/e/e17/proto/empower/src/bin/ewl/empower_cb_ewl.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- empower_cb_ewl.c    5 Apr 2006 17:54:07 -0000       1.2
+++ empower_cb_ewl.c    5 Apr 2006 19:40:53 -0000       1.3
@@ -29,10 +29,13 @@
 }
 
 void pipe_to_sudo_cb(Ewl_Widget *w, void *event, void *data)
-{              
+{      
        FILE *sudo_pipe;
        
        const char *pass = ewl_password_text_get(EWL_PASSWORD(data));
+               
+       ewl_widget_destroy(win);
+       ewl_main_quit();
        
        if(pass)
        {
@@ -42,17 +45,9 @@
                
                if(pid == 0)
                {       
-                       //ewl_window_keyboard_grab_set(EWL_WINDOW(win), 0);
-                       //ewl_window_pointer_grab_set(EWL_WINDOW(win), 0);
                        sudo_pipe = popen(buf, "w");
                        fprintf(sudo_pipe, "%s\n", password);
                        pclose(sudo_pipe);
-               }       
-               else
-               {               
-                       ewl_widget_destroy(win);
-                       wait(pid);
                }
        }
-       ewl_main_quit();
 }




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to