Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/test


Modified Files:
        ewl_filedialog_test.c 


Log Message:
File dialog update. Allow for a cancel callback. Hides the filedialog on OK
and Cancel by default.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_filedialog_test.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- ewl_filedialog_test.c       30 Dec 2003 18:05:22 -0000      1.14
+++ ewl_filedialog_test.c       29 Jan 2004 04:26:18 -0000      1.15
@@ -71,12 +71,14 @@
 
 void __start_fd (Ewl_Widget *w, void *ev_data, void *user_data)
 {
-       Ewl_Widget *fd;
-       
-       fd = ewl_filedialog_new(w->parent->parent, EWL_FILEDIALOG_TYPE_OPEN,
-                       __open_file);
+       static Ewl_Widget *fd = NULL;
+
+       if (!fd) {
+               fd = ewl_filedialog_new(w->parent->parent,
+                               EWL_FILEDIALOG_TYPE_OPEN, __open_file, NULL);
 
-       ewl_container_append_child(EWL_CONTAINER(vbox), fd);
+               ewl_container_append_child(EWL_CONTAINER(vbox), fd);
+       }
        ewl_widget_show(fd);
 
        ev_data = NULL;




-------------------------------------------------------
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

Reply via email to