Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

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


Modified Files:
        ewl_toolbar_test.c 


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

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/toolbar/ewl_toolbar_test.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewl_toolbar_test.c  4 Dec 2007 05:28:04 -0000       1.1
+++ ewl_toolbar_test.c  6 May 2008 20:18:57 -0000       1.2
@@ -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_icon.h"
@@ -14,66 +14,66 @@
 void
 test_info(Ewl_Test *test)
 {
-       test->name = "Toolbar";
-       test->tip = "Defines a widget for displaying a toolbar";
-       test->filename = __FILE__;
-       test->func = create_test;
-       test->type = EWL_TEST_TYPE_CONTAINER;
+        test->name = "Toolbar";
+        test->tip = "Defines a widget for displaying a toolbar";
+        test->filename = __FILE__;
+        test->func = create_test;
+        test->type = EWL_TEST_TYPE_CONTAINER;
 }
 
 static int
 create_test(Ewl_Container *box)
 {
-       Ewl_Widget *body, *o2, *o;
+        Ewl_Widget *body, *o2, *o;
 
-       body = ewl_vbox_new();
-       ewl_container_child_append(EWL_CONTAINER(box), body);
-       ewl_widget_show(body);
-
-       o2 = ewl_toolbar_new();
-       ewl_container_child_append(EWL_CONTAINER(body), o2);
-       ewl_object_alignment_set(EWL_OBJECT(o2), EWL_FLAG_ALIGN_CENTER);
-       ewl_object_fill_policy_set(EWL_OBJECT(o2),
-                               EWL_FLAG_FILL_HFILL | EWL_FLAG_FILL_VSHRINK);
-       ewl_toolbar_icon_part_hide(EWL_TOOLBAR(o2), EWL_ICON_PART_LABEL);
-       ewl_widget_show(o2);
-
-       o = ewl_icon_simple_new();
-       ewl_stock_type_set(EWL_STOCK(o), EWL_STOCK_ARROW_LEFT);
-       ewl_callback_append(EWL_WIDGET(o), EWL_CALLBACK_CLICKED, cb_click, o2);
-       ewl_container_child_append(EWL_CONTAINER(o2), o);
-       ewl_widget_show(o);
-
-       o = ewl_icon_simple_new();
-       ewl_stock_type_set(EWL_STOCK(o), EWL_STOCK_ARROW_RIGHT);
-       ewl_container_child_append(EWL_CONTAINER(o2), o);
-       ewl_widget_show(o);
-
-       o = ewl_icon_simple_new();
-       ewl_container_child_append(EWL_CONTAINER(o2), o);
-       ewl_stock_type_set(EWL_STOCK(o), EWL_STOCK_STOP);
-       ewl_widget_show(o);
-
-       o = ewl_icon_simple_new();
-       ewl_container_child_append(EWL_CONTAINER(o2), o);
-       ewl_stock_type_set(EWL_STOCK(o), EWL_STOCK_HOME);
-       ewl_widget_show(o);
-
-       o = ewl_vseparator_new();
-       ewl_container_child_append(EWL_CONTAINER(o2), o);
-       ewl_widget_show(o);
-
-       o = ewl_hseeker_new();
-       ewl_container_child_append(EWL_CONTAINER(o2), o);
-       ewl_widget_show(o);
+        body = ewl_vbox_new();
+        ewl_container_child_append(EWL_CONTAINER(box), body);
+        ewl_widget_show(body);
+
+        o2 = ewl_toolbar_new();
+        ewl_container_child_append(EWL_CONTAINER(body), o2);
+        ewl_object_alignment_set(EWL_OBJECT(o2), EWL_FLAG_ALIGN_CENTER);
+        ewl_object_fill_policy_set(EWL_OBJECT(o2),
+                               EWL_FLAG_FILL_HFILL | EWL_FLAG_FILL_VSHRINK);
+        ewl_toolbar_icon_part_hide(EWL_TOOLBAR(o2), EWL_ICON_PART_LABEL);
+        ewl_widget_show(o2);
+
+        o = ewl_icon_simple_new();
+        ewl_stock_type_set(EWL_STOCK(o), EWL_STOCK_ARROW_LEFT);
+        ewl_callback_append(EWL_WIDGET(o), EWL_CALLBACK_CLICKED, cb_click, o2);
+        ewl_container_child_append(EWL_CONTAINER(o2), o);
+        ewl_widget_show(o);
+
+        o = ewl_icon_simple_new();
+        ewl_stock_type_set(EWL_STOCK(o), EWL_STOCK_ARROW_RIGHT);
+        ewl_container_child_append(EWL_CONTAINER(o2), o);
+        ewl_widget_show(o);
+
+        o = ewl_icon_simple_new();
+        ewl_container_child_append(EWL_CONTAINER(o2), o);
+        ewl_stock_type_set(EWL_STOCK(o), EWL_STOCK_STOP);
+        ewl_widget_show(o);
+
+        o = ewl_icon_simple_new();
+        ewl_container_child_append(EWL_CONTAINER(o2), o);
+        ewl_stock_type_set(EWL_STOCK(o), EWL_STOCK_HOME);
+        ewl_widget_show(o);
+
+        o = ewl_vseparator_new();
+        ewl_container_child_append(EWL_CONTAINER(o2), o);
+        ewl_widget_show(o);
+
+        o = ewl_hseeker_new();
+        ewl_container_child_append(EWL_CONTAINER(o2), o);
+        ewl_widget_show(o);
 
-       return 1;
+        return 1;
 }
 
 void
 cb_click(Ewl_Widget *w __UNUSED__, void *e __UNUSED__, void *data)
 {
-       ewl_toolbar_icon_part_hide(EWL_TOOLBAR(data), EWL_ICON_PART_NONE);
+        ewl_toolbar_icon_part_hide(EWL_TOOLBAR(data), EWL_ICON_PART_NONE);
 }
 
 



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