Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

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


Modified Files:
        ewl_statusbar_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/statusbar/ewl_statusbar_test.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewl_statusbar_test.c        4 Dec 2007 05:28:04 -0000       1.1
+++ ewl_statusbar_test.c        6 May 2008 20:18:56 -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_button.h"
@@ -15,69 +15,69 @@
 void
 test_info(Ewl_Test *test)
 {
-       test->name = "Statusbar";
-       test->tip = "Provides a status bar.";
-       test->filename = __FILE__;
-       test->func = create_test;
-       test->type = EWL_TEST_TYPE_SIMPLE;
+        test->name = "Statusbar";
+        test->tip = "Provides a status bar.";
+        test->filename = __FILE__;
+        test->func = create_test;
+        test->type = EWL_TEST_TYPE_SIMPLE;
 }
 
 static int
 create_test(Ewl_Container *box)
 {
-       Ewl_Widget *statusbar = NULL, *button = NULL, *hbox = NULL;
+        Ewl_Widget *statusbar = NULL, *button = NULL, *hbox = NULL;
 
-       statusbar = ewl_statusbar_new();
-       ewl_container_child_append(EWL_CONTAINER(box), statusbar);
-       ewl_statusbar_left_hide(EWL_STATUSBAR(statusbar));
-       ewl_widget_show(statusbar);
-
-       button_push_cb(NULL, NULL, statusbar);
-
-       hbox = ewl_hbox_new();
-       ewl_container_child_append(EWL_CONTAINER(box), hbox);
-       ewl_widget_show(hbox);
-
-       button = ewl_button_new();
-       ewl_button_label_set(EWL_BUTTON(button), "push");
-       ewl_callback_append(button, EWL_CALLBACK_CLICKED, button_push_cb,
-                                                               statusbar);
-       ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK);
-       ewl_container_child_append(EWL_CONTAINER(hbox), button);
-       ewl_widget_show(button);
-
-       button = ewl_button_new();
-       ewl_button_label_set(EWL_BUTTON(button), "pop");
-       ewl_callback_append(button, EWL_CALLBACK_CLICKED, button_pop_cb,
-                                                               statusbar);
-       ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK);
-       ewl_container_child_append(EWL_CONTAINER(hbox), button);
-       ewl_widget_show(button);
+        statusbar = ewl_statusbar_new();
+        ewl_container_child_append(EWL_CONTAINER(box), statusbar);
+        ewl_statusbar_left_hide(EWL_STATUSBAR(statusbar));
+        ewl_widget_show(statusbar);
+
+        button_push_cb(NULL, NULL, statusbar);
+
+        hbox = ewl_hbox_new();
+        ewl_container_child_append(EWL_CONTAINER(box), hbox);
+        ewl_widget_show(hbox);
+
+        button = ewl_button_new();
+        ewl_button_label_set(EWL_BUTTON(button), "push");
+        ewl_callback_append(button, EWL_CALLBACK_CLICKED, button_push_cb,
+                                                               statusbar);
+        ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK);
+        ewl_container_child_append(EWL_CONTAINER(hbox), button);
+        ewl_widget_show(button);
+
+        button = ewl_button_new();
+        ewl_button_label_set(EWL_BUTTON(button), "pop");
+        ewl_callback_append(button, EWL_CALLBACK_CLICKED, button_pop_cb,
+                                                               statusbar);
+        ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK);
+        ewl_container_child_append(EWL_CONTAINER(hbox), button);
+        ewl_widget_show(button);
 
-       return 1;
+        return 1;
 }
 
 static void
 button_push_cb(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__,
-                                               void *data)
+                                               void *data)
 {
-       Ewl_Statusbar *sb;
-       char msg[20];
+        Ewl_Statusbar *sb;
+        char msg[20];
 
-       sb = data;
+        sb = data;
 
-       snprintf(msg, 20, "at %d", current_num++);
-       ewl_statusbar_push(sb, msg);
+        snprintf(msg, 20, "at %d", current_num++);
+        ewl_statusbar_push(sb, msg);
 }
 
 static void
 button_pop_cb(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__,
-                                               void *data)
+                                               void *data)
 {
-       Ewl_Statusbar *sb;
+        Ewl_Statusbar *sb;
 
-       sb = data;
-       ewl_statusbar_pop(sb);
+        sb = data;
+        ewl_statusbar_pop(sb);
 }
 
 



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