Enlightenment CVS committal
Author : jethomas
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_dnd.c ewl_embed.c
Log Message:
Reset mouse cursor when done dragging, and don't spit out unneeded warnings.
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_dnd.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -3 -r1.54 -r1.55
--- ewl_dnd.c 4 Jun 2008 20:18:26 -0000 1.54
+++ ewl_dnd.c 17 Jun 2008 22:31:34 -0000 1.55
@@ -332,10 +332,10 @@
emb = ewl_embed_widget_find(w);
if (!emb) DRETURN(DLEVEL_STABLE);
- /*
- * FIXME: Reset the cursor here.
- */
- // ewl_embed_mouse_cursor_set(EWL_WIDGET(emb));
+ /* Reset the cursor */
+ ewl_attach_list_del(EWL_WIDGET(emb)->attach,
+ EWL_ATTACH_TYPE_MOUSE_ARGB_CURSOR);
+ ewl_embed_mouse_cursor_set(EWL_WIDGET(emb));
ewl_engine_embed_dnd_drag_drop(emb);
DLEAVE_FUNCTION(DLEVEL_STABLE);
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_embed.c,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -3 -r1.147 -r1.148
--- ewl_embed.c 4 Jun 2008 20:18:26 -0000 1.147
+++ ewl_embed.c 17 Jun 2008 22:31:34 -0000 1.148
@@ -926,10 +926,7 @@
widget = widget->parent;
}
- if (!widget) {
- DWARNING("Could not find widget for dnd position event.");
- DRETURN_PTR(NULL, DLEVEL_STABLE);
- }
+ if (!widget) DRETURN_PTR(NULL, DLEVEL_STABLE);
/* If the last position event was over a different widget,
* feed the leaving widget a 'null' */
@@ -1721,7 +1718,6 @@
if ((argb = ewl_attach_get(w, EWL_ATTACH_TYPE_MOUSE_ARGB_CURSOR))) {
pointer = argb->handle;
- ewl_attach_mouse_cursor_set(w, pointer);
}
if (!pointer) {
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs