Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/bin/tests/io_manager


Modified Files:
        ewl_io_manager_test.c 


Log Message:
- change tabs to spaces (Ewl uses an 8 space indent now instead of a tab)

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/io_manager/ewl_io_manager_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_io_manager_test.c       9 Dec 2007 06:21:42 -0000       1.3
+++ ewl_io_manager_test.c       6 May 2008 20:09:04 -0000       1.4
@@ -1,4 +1,4 @@
-/* vim: set sw=8 ts=8 sts=8 noexpandtab: */
+/* vim: set sw=8 ts=8 sts=8 expandtab: */
 #include "Ewl_Test.h"
 #include "ewl_test_private.h"
 #include "ewl_button.h"
@@ -20,89 +20,89 @@
 void
 test_info(Ewl_Test *test)
 {
-       test->name = "IO Manager";
-       test->tip = "Defines a system for doing IO of URIs";
-       test->filename = __FILE__;
-       test->func = create_test;
-       test->type = EWL_TEST_TYPE_SIMPLE;
+        test->name = "IO Manager";
+        test->tip = "Defines a system for doing IO of URIs";
+        test->filename = __FILE__;
+        test->func = create_test;
+        test->type = EWL_TEST_TYPE_SIMPLE;
 }
 
 static int
 create_test(Ewl_Container *box)
 {
-       Ewl_Widget *o, *o2;
+        Ewl_Widget *o, *o2;
 
-       o2 = ewl_button_new();
-       ewl_stock_type_set(EWL_STOCK(o2), EWL_STOCK_OPEN);
-       ewl_callback_append(o2, EWL_CALLBACK_CLICKED, cb_clicked, NULL);
-       ewl_object_fill_policy_set(EWL_OBJECT(o2), EWL_FLAG_FILL_SHRINK);
-       ewl_container_child_append(box, o2);
-       ewl_widget_show(o2);
-
-       o = ewl_scrollpane_new();
-       ewl_container_child_append(box, o);
-       ewl_widget_name_set(o, "scroll");
-       ewl_widget_show(o);
+        o2 = ewl_button_new();
+        ewl_stock_type_set(EWL_STOCK(o2), EWL_STOCK_OPEN);
+        ewl_callback_append(o2, EWL_CALLBACK_CLICKED, cb_clicked, NULL);
+        ewl_object_fill_policy_set(EWL_OBJECT(o2), EWL_FLAG_FILL_SHRINK);
+        ewl_container_child_append(box, o2);
+        ewl_widget_show(o2);
+
+        o = ewl_scrollpane_new();
+        ewl_container_child_append(box, o);
+        ewl_widget_name_set(o, "scroll");
+        ewl_widget_show(o);
 
-       return 1;
+        return 1;
 }
 
 static void
 cb_clicked(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__,
-                                       void *data __UNUSED__)
+                                       void *data __UNUSED__)
 {
-       Ewl_Widget *fd;
-       Ecore_List *filters;
+        Ewl_Widget *fd;
+        Ecore_List *filters;
 
-       filters = ecore_list_new();
-       ecore_list_append(filters, strdup("image/jpeg"));
-       ecore_list_append(filters, strdup("image/png"));
-       ecore_list_append(filters, strdup("image/gif"));
-
-       fd = ewl_filedialog_new();
-       ewl_filedialog_filter_add(EWL_FILEDIALOG(fd), "txt", "*.txt", NULL);
-       ewl_filedialog_filter_add(EWL_FILEDIALOG(fd), "Images", NULL, filters);
-       ewl_callback_append(fd, EWL_CALLBACK_DELETE_WINDOW, cb_fd_delete, NULL);
-       ewl_callback_append(fd, EWL_CALLBACK_VALUE_CHANGED, cb_open, NULL);
-       ewl_widget_show(fd);
+        filters = ecore_list_new();
+        ecore_list_append(filters, strdup("image/jpeg"));
+        ecore_list_append(filters, strdup("image/png"));
+        ecore_list_append(filters, strdup("image/gif"));
+
+        fd = ewl_filedialog_new();
+        ewl_filedialog_filter_add(EWL_FILEDIALOG(fd), "txt", "*.txt", NULL);
+        ewl_filedialog_filter_add(EWL_FILEDIALOG(fd), "Images", NULL, filters);
+        ewl_callback_append(fd, EWL_CALLBACK_DELETE_WINDOW, cb_fd_delete, 
NULL);
+        ewl_callback_append(fd, EWL_CALLBACK_VALUE_CHANGED, cb_open, NULL);
+        ewl_widget_show(fd);
 }
 
 static void
 cb_fd_delete(Ewl_Widget *w, void *ev __UNUSED__, void *data __UNUSED__)
 {
-       ewl_widget_destroy(w);
+        ewl_widget_destroy(w);
 }
 
 static void
 cb_open(Ewl_Widget *w, void *ev, void *data __UNUSED__)
 {
-       Ewl_Event_Action_Response *e;
-       Ewl_Filedialog *fd;
-       Ewl_Widget *scroll, *t;
-       char *s;
-
-       e = ev;
-
-       if (e->response == EWL_STOCK_CANCEL)
-               return;
-
-       fd = EWL_FILEDIALOG(w);
-       s = ewl_filedialog_selected_file_get(fd);
-       ewl_widget_destroy(w);
-
-       scroll = ewl_widget_name_find("scroll");
-       ewl_container_reset(EWL_CONTAINER(scroll));
-
-       t = ewl_io_manager_uri_read(s);
-       if (!t)
-       {
-               printf("Unable to create widget from file (%s)\n", s);
-               return;
-       }
-       ewl_container_child_append(EWL_CONTAINER(scroll), t);
-       ewl_widget_show(t);
+        Ewl_Event_Action_Response *e;
+        Ewl_Filedialog *fd;
+        Ewl_Widget *scroll, *t;
+        char *s;
+
+        e = ev;
+
+        if (e->response == EWL_STOCK_CANCEL)
+               return;
+
+        fd = EWL_FILEDIALOG(w);
+        s = ewl_filedialog_selected_file_get(fd);
+        ewl_widget_destroy(w);
+
+        scroll = ewl_widget_name_find("scroll");
+        ewl_container_reset(EWL_CONTAINER(scroll));
+
+        t = ewl_io_manager_uri_read(s);
+        if (!t)
+        {
+               printf("Unable to create widget from file (%s)\n", s);
+               return;
+        }
+        ewl_container_child_append(EWL_CONTAINER(scroll), t);
+        ewl_widget_show(t);
 
-       free(s);
+        free(s);
 }
 
 



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to