Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

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


Modified Files:
        ewl_menubar_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/menubar/ewl_menubar_test.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewl_menubar_test.c  4 Dec 2007 05:28:02 -0000       1.1
+++ ewl_menubar_test.c  6 May 2008 20:18:55 -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_menubar.h"
@@ -12,119 +12,119 @@
 void
 test_info(Ewl_Test *test)
 {
-       test->name = "Menubar";
-       test->tip = "Defines a menubar that can be used to hold menus.";
-       test->filename = __FILE__;
-       test->func = create_test;
-       test->type = EWL_TEST_TYPE_CONTAINER;
+        test->name = "Menubar";
+        test->tip = "Defines a menubar that can be used to hold menus.";
+        test->filename = __FILE__;
+        test->func = create_test;
+        test->type = EWL_TEST_TYPE_CONTAINER;
 }
 
 static int
 create_test(Ewl_Container *box)
 {
-       Ewl_Widget *h_menubar = NULL, *v_menubar = NULL;
+        Ewl_Widget *h_menubar = NULL, *v_menubar = NULL;
 
-       h_menubar = ewl_hmenubar_new();
-       {
-               int i;
-               Ewl_Widget *item;
-               Ewl_Widget *foo;
-               char *m_items[] = {"File",
-                                  "Test",
-                                  "About",
-                                  NULL};
-               for(i = 0; m_items[i] != NULL; i++) {
-
-                       if (i != 0) {
-                               Ewl_Widget *sep;
-
-                               sep = ewl_vseparator_new();
-                               
ewl_container_child_append(EWL_CONTAINER(h_menubar), sep);
-                               ewl_widget_show(sep);
-                       }
-
-                       item = ewl_menu_new();
-                       ewl_button_label_set(EWL_BUTTON(item), m_items[i]);
-                       ewl_container_child_append(EWL_CONTAINER(h_menubar), 
item);
-                       ewl_widget_show(item);
-
-                       foo = ewl_menu_item_new();
-                       ewl_button_label_set(EWL_BUTTON(foo), "foo");
-                       ewl_container_child_append(EWL_CONTAINER(item), foo);
-                       ewl_widget_show(foo);
-
-                       foo = ewl_menu_item_new();
-                       ewl_button_label_set(EWL_BUTTON(foo), "foobar");
-                       ewl_container_child_append(EWL_CONTAINER(item), foo);
-                       ewl_widget_show(foo);
-
-               }
-
-               item = ewl_spacer_new();
-               ewl_object_fill_policy_set(EWL_OBJECT(item), EWL_FLAG_FILL_ALL);
-               ewl_container_child_append(EWL_CONTAINER(h_menubar), item);
-               ewl_widget_show(item);
-
-               item = ewl_menu_new();
-               ewl_button_label_set(EWL_BUTTON(item), "Help");
-               ewl_container_child_append(EWL_CONTAINER(h_menubar), item);
-               ewl_widget_show(item);
-
-               foo = ewl_menu_item_new();
-               ewl_button_label_set(EWL_BUTTON(foo), "foo");
-               ewl_container_child_append(EWL_CONTAINER(item), foo);
-               ewl_widget_show(foo);
-
-               foo = ewl_menu_item_new();
-               ewl_button_label_set(EWL_BUTTON(foo), "foobar");
-               ewl_container_child_append(EWL_CONTAINER(item), foo);
-               ewl_widget_show(foo);
-       }
-       ewl_container_child_append(EWL_CONTAINER(box), h_menubar);
-       ewl_widget_show(h_menubar);
-
-       v_menubar = ewl_vmenubar_new();
-       {
-               int i;
-               Ewl_Widget *item;
-               char *m_items[] = {"About",
-                                  "Left",
-                                  "Right",
-                                  "foo",
-                                  NULL};
-               for(i = 0; m_items[i] != NULL; i++) {
-                       Ewl_Widget *foo;
-
-                       if (i != 0 && (i & 1))
-                       {
-                               Ewl_Widget *sep;
-
-                               sep = ewl_hseparator_new();
-                               
ewl_container_child_append(EWL_CONTAINER(v_menubar), sep);
-                               ewl_widget_show(sep);
-                       }
-
-                       item = ewl_menu_new();
-                       ewl_button_label_set(EWL_BUTTON(item), m_items[i]);
-                       ewl_container_child_append(EWL_CONTAINER(v_menubar), 
item);
-                       ewl_widget_show(item);
-
-                       foo = ewl_menu_item_new();
-                       ewl_button_label_set(EWL_BUTTON(foo), "foo");
-                       ewl_container_child_append(EWL_CONTAINER(item), foo);
-                       ewl_widget_show(foo);
-
-                       foo = ewl_menu_item_new();
-                       ewl_button_label_set(EWL_BUTTON(foo), "foobar");
-                       ewl_container_child_append(EWL_CONTAINER(item), foo);
-                       ewl_widget_show(foo);
-
-               }
-       }
-       ewl_container_child_append(EWL_CONTAINER(box), v_menubar);
-       ewl_object_alignment_set(EWL_OBJECT(v_menubar), EWL_FLAG_ALIGN_LEFT);
-       ewl_widget_show(v_menubar);
+        h_menubar = ewl_hmenubar_new();
+        {
+               int i;
+               Ewl_Widget *item;
+               Ewl_Widget *foo;
+               char *m_items[] = {"File",
+                                  "Test",
+                                  "About",
+                                  NULL};
+               for(i = 0; m_items[i] != NULL; i++) {
+
+                       if (i != 0) {
+                               Ewl_Widget *sep;
+
+                               sep = ewl_vseparator_new();
+                               
ewl_container_child_append(EWL_CONTAINER(h_menubar), sep);
+                               ewl_widget_show(sep);
+                       }
+
+                       item = ewl_menu_new();
+                       ewl_button_label_set(EWL_BUTTON(item), m_items[i]);
+                       ewl_container_child_append(EWL_CONTAINER(h_menubar), 
item);
+                       ewl_widget_show(item);
+
+                       foo = ewl_menu_item_new();
+                       ewl_button_label_set(EWL_BUTTON(foo), "foo");
+                       ewl_container_child_append(EWL_CONTAINER(item), foo);
+                       ewl_widget_show(foo);
+
+                       foo = ewl_menu_item_new();
+                       ewl_button_label_set(EWL_BUTTON(foo), "foobar");
+                       ewl_container_child_append(EWL_CONTAINER(item), foo);
+                       ewl_widget_show(foo);
+
+               }
+
+               item = ewl_spacer_new();
+               ewl_object_fill_policy_set(EWL_OBJECT(item), EWL_FLAG_FILL_ALL);
+               ewl_container_child_append(EWL_CONTAINER(h_menubar), item);
+               ewl_widget_show(item);
+
+               item = ewl_menu_new();
+               ewl_button_label_set(EWL_BUTTON(item), "Help");
+               ewl_container_child_append(EWL_CONTAINER(h_menubar), item);
+               ewl_widget_show(item);
+
+               foo = ewl_menu_item_new();
+               ewl_button_label_set(EWL_BUTTON(foo), "foo");
+               ewl_container_child_append(EWL_CONTAINER(item), foo);
+               ewl_widget_show(foo);
+
+               foo = ewl_menu_item_new();
+               ewl_button_label_set(EWL_BUTTON(foo), "foobar");
+               ewl_container_child_append(EWL_CONTAINER(item), foo);
+               ewl_widget_show(foo);
+        }
+        ewl_container_child_append(EWL_CONTAINER(box), h_menubar);
+        ewl_widget_show(h_menubar);
+
+        v_menubar = ewl_vmenubar_new();
+        {
+               int i;
+               Ewl_Widget *item;
+               char *m_items[] = {"About",
+                                  "Left",
+                                  "Right",
+                                  "foo",
+                                  NULL};
+               for(i = 0; m_items[i] != NULL; i++) {
+                       Ewl_Widget *foo;
+
+                       if (i != 0 && (i & 1))
+                       {
+                               Ewl_Widget *sep;
+
+                               sep = ewl_hseparator_new();
+                               
ewl_container_child_append(EWL_CONTAINER(v_menubar), sep);
+                               ewl_widget_show(sep);
+                       }
+
+                       item = ewl_menu_new();
+                       ewl_button_label_set(EWL_BUTTON(item), m_items[i]);
+                       ewl_container_child_append(EWL_CONTAINER(v_menubar), 
item);
+                       ewl_widget_show(item);
+
+                       foo = ewl_menu_item_new();
+                       ewl_button_label_set(EWL_BUTTON(foo), "foo");
+                       ewl_container_child_append(EWL_CONTAINER(item), foo);
+                       ewl_widget_show(foo);
+
+                       foo = ewl_menu_item_new();
+                       ewl_button_label_set(EWL_BUTTON(foo), "foobar");
+                       ewl_container_child_append(EWL_CONTAINER(item), foo);
+                       ewl_widget_show(foo);
+
+               }
+        }
+        ewl_container_child_append(EWL_CONTAINER(box), v_menubar);
+        ewl_object_alignment_set(EWL_OBJECT(v_menubar), EWL_FLAG_ALIGN_LEFT);
+        ewl_widget_show(v_menubar);
 
-       return 1;
+        return 1;
 }
 



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