Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/test


Modified Files:
        ewl_filedialog_test.c ewl_test.c 


Log Message:
New API for the fileselector and filedialog widgets. This will hopefully make
things more consistent, and easier in the long term. Still a couple known bugs
with traversing the directory structure.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_filedialog_test.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- ewl_filedialog_test.c       11 Feb 2004 18:17:32 -0000      1.19
+++ ewl_filedialog_test.c       17 Feb 2004 05:18:38 -0000      1.20
@@ -68,6 +68,15 @@
        user_data = NULL;
 }
 
+void goto_home(Ewl_Widget *w, void *ev_data, void *user_data)
+{
+       char *home;
+       Ewl_Filedialog *fd = user_data;
+
+       home = getenv("HOME");
+       if (home)
+               ewl_filedialog_set_directory(fd, home);
+}
 
 void __start_fd (Ewl_Widget *w, void *ev_data, void *user_data)
 {
@@ -83,6 +92,8 @@
                ewl_container_append_child(EWL_CONTAINER(vbox), fd);
 
                home_button = ewl_button_new("Home");
+               ewl_callback_append(home_button, EWL_CALLBACK_CLICKED,
+                                   goto_home, fd);
                ewl_object_set_fill_policy(EWL_OBJECT(home_button),
                                           EWL_FLAG_FILL_HFILL);
                ewl_container_append_child(EWL_CONTAINER(fd), home_button);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_test.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -3 -r1.59 -r1.60
--- ewl_test.c  27 Jan 2004 06:10:16 -0000      1.59
+++ ewl_test.c  17 Feb 2004 05:18:38 -0000      1.60
@@ -39,6 +39,7 @@
                { "Floater", __create_floater_test_window },
                { "Image", __create_image_test_window },
                { "IMenu", __create_imenu_test_window },
+               { "Menu", __create_menu_test_window },
                { "Notebook", __create_notebook_test_window },
                { "Password", __create_password_test_window },
                { "Progressbar", __create_progressbar_test_window },




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to