Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/colorpicker
Modified Files:
ewl_colorpicker_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/colorpicker/ewl_colorpicker_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_colorpicker_test.c 26 Feb 2008 04:24:11 -0000 1.2
+++ ewl_colorpicker_test.c 6 May 2008 20:09:02 -0000 1.3
@@ -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_colorpicker.h"
@@ -11,34 +11,34 @@
void
test_info(Ewl_Test *test)
{
- test->name = "Colorpicker";
- test->tip = "Defines a colour picker.";
- test->filename = __FILE__;
- test->func = create_test;
- test->type = EWL_TEST_TYPE_MISC;
+ test->name = "Colorpicker";
+ test->tip = "Defines a colour picker.";
+ test->filename = __FILE__;
+ test->func = create_test;
+ test->type = EWL_TEST_TYPE_MISC;
}
static int
create_test(Ewl_Container *box)
{
- Ewl_Widget *colorpicker;
+ Ewl_Widget *colorpicker;
- colorpicker = ewl_colorpicker_new();
- ewl_container_child_append(EWL_CONTAINER(box), colorpicker);
- ewl_callback_append(colorpicker, EWL_CALLBACK_VALUE_CHANGED,
- color_value_changed, NULL);
- ewl_widget_show(colorpicker);
+ colorpicker = ewl_colorpicker_new();
+ ewl_container_child_append(EWL_CONTAINER(box), colorpicker);
+ ewl_callback_append(colorpicker, EWL_CALLBACK_VALUE_CHANGED,
+ color_value_changed, NULL);
+ ewl_widget_show(colorpicker);
- return 1;
+ return 1;
}
static void
color_value_changed(Ewl_Widget *w, void *ev __UNUSED__, void *data __UNUSED__)
{
- unsigned int r, g, b;
+ unsigned int r, g, b;
- ewl_colorpicker_current_rgb_get(EWL_COLORPICKER(w), &r, &g, &b);
- printf("value changed to (%u, %u, %u)\n", r, g, b);
+ ewl_colorpicker_current_rgb_get(EWL_COLORPICKER(w), &r, &g, &b);
+ printf("value changed to (%u, %u, %u)\n", r, g, b);
}
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs