Enlightenment CVS committal
Author : pfritz
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/pointer
Modified Files:
ewl_pointer.c
Log Message:
remove unused code
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/pointer/ewl_pointer.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- ewl_pointer.c 23 Aug 2007 05:26:47 -0000 1.10
+++ ewl_pointer.c 14 Nov 2007 21:10:14 -0000 1.11
@@ -8,11 +8,6 @@
#include <stdlib.h>
static int create_test(Ewl_Container *win);
-static void cb_destroy(Ewl_Widget *w, void *ev, void *data);
-static int timer_cb_in(void *data);
-static int timer_cb_out(void *data);
-
-static Ecore_Timer *cur_timer;
void
test_info(Ewl_Test *test)
@@ -32,59 +27,17 @@
pointer_win = ewl_cursor_new();
ewl_widget_appearance_set(pointer_win, "dndcursor");
- ewl_callback_append(pointer_win, EWL_CALLBACK_DESTROY,
- cb_destroy, NULL);
ewl_widget_show(pointer_win);
- o = ewl_button_new();
- // ewl_container_child_append(EWL_CONTAINER(pointer_win), o);
- /* ewl_widget_color_set(EWL_WIDGET(o), 255, 255, 255, 200); */
- ewl_widget_show(o);
-
- cur_timer = ecore_timer_add(2.0, timer_cb_in, o);
-
o = ewl_entry_new();
ewl_attach_mouse_argb_cursor_set(o, pointer_win);
ewl_text_text_set(EWL_TEXT(o), "Expect to see a button cursor\n"
"over this entry and a normal cursor\n"
"over other parts of the window");
ewl_entry_editable_set(EWL_ENTRY(o), FALSE);
- ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_HFILL);
+ ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_NONE);
ewl_container_child_append(EWL_CONTAINER(box), o);
ewl_widget_show(o);
return 1;
-}
-
-static int
-timer_cb_in(void *data)
-{
- Ewl_Widget *button = EWL_WIDGET(data);
-
- ewl_callback_call(button, EWL_CALLBACK_MOUSE_IN);
-
- cur_timer = ecore_timer_add(2.0, timer_cb_out, data);
-
- return 0;
-}
-
-static int
-timer_cb_out(void *data)
-{
- Ewl_Widget *button = EWL_WIDGET(data);
-
- ewl_callback_call(button, EWL_CALLBACK_MOUSE_OUT);
-
- cur_timer = ecore_timer_add(2.0, timer_cb_in, data);
-
- return 0;
-}
-
-static void
-cb_destroy(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__,
- void *data __UNUSED__)
-{
- if (cur_timer)
- ecore_timer_del(cur_timer);
- cur_timer = NULL;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs