Enlightenment CVS committal

Author  : jethomas
Project : e17
Module  : libs/ewl

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


Modified Files:
        ewl_pointer_test.c 


Log Message:
Some improvements on mouse cursor settings.  Only change if child has 
non-default, and then go back to first non-default on mouse out.

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/pointer/ewl_pointer_test.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewl_pointer_test.c  4 Dec 2007 05:28:03 -0000       1.1
+++ ewl_pointer_test.c  16 Jan 2008 21:55:00 -0000      1.2
@@ -24,6 +24,7 @@
 {
        Ewl_Widget *pointer_win;
        Ewl_Widget *o;
+       int pos = 0;
 
        pointer_win = ewl_cursor_new();
        ewl_widget_appearance_set(pointer_win, "dndcursor");
@@ -35,6 +36,15 @@
                       "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_NONE);
+       ewl_container_child_append(EWL_CONTAINER(box), o);
+       ewl_widget_show(o);
+
+       pos = EWL_MOUSE_CURSOR_SB_UP_ARROW;
+
+       o = ewl_button_new();
+       ewl_attach_mouse_cursor_set(o, pos);
+       ewl_button_label_set(EWL_BUTTON(o), "Something different here");
        ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_NONE);
        ewl_container_child_append(EWL_CONTAINER(box), o);
        ewl_widget_show(o);



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to