Enlightenment CVS committal
Author : jethomas
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_embed.c
Log Message:
Change mouse cursor back to default when leaving a widget (eg. paned).
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_embed.c,v
retrieving revision 1.139
retrieving revision 1.140
diff -u -3 -r1.139 -r1.140
--- ewl_embed.c 10 Jan 2008 01:27:50 -0000 1.139
+++ ewl_embed.c 12 Jan 2008 05:45:14 -0000 1.140
@@ -738,11 +738,17 @@
*/
while (check && (widget != EWL_WIDGET(check))
&& !ewl_widget_parent_of(EWL_WIDGET(check), widget)) {
- ewl_embed_mouse_cursor_set(EWL_WIDGET(check));
ewl_object_state_remove(check, EWL_FLAG_STATE_MOUSE_IN);
ewl_callback_call(EWL_WIDGET(check), EWL_CALLBACK_MOUSE_OUT);
check = EWL_OBJECT(EWL_WIDGET(check)->parent);
+
+ /* We set the cursor to the parent of the now moused_out widget
+ * because if we only run this loop once then a custom cursor
will
+ * be shown on mouse_out
+ */
+ if (check)
+ ewl_embed_mouse_cursor_set(EWL_WIDGET(check));
}
/*
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs