Enlightenment CVS committal
Author : sebastid
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_bindings.c e_pointer.c
Log Message:
Add resize pointer for all mouse,down resize signals.
Just pop one element from the stack if type is given.
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_bindings.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- e_bindings.c 10 Oct 2005 22:35:12 -0000 1.24
+++ e_bindings.c 11 Oct 2005 05:51:03 -0000 1.25
@@ -51,17 +51,18 @@
e_bindings_signal_add(eb->context, eb->signal, eb->source,
eb->modifiers,
eb->any_mod, eb->action, eb->params);
/* FIXME: Can this be solved in a generic way? */
-#if 0
+ /* FIXME: Only change cursor if action is allowed! */
if ((!strcmp(eb->action, "window_resize")) &&
(!strncmp(eb->signal, "mouse,down,", 11)) &&
(!strncmp(eb->source, "resize_", 7)))
{
+ char params[32];
+ snprintf(params, sizeof(params), "resize_%s", eb->params);
e_bindings_signal_add(eb->context, "mouse,in", eb->source,
eb->modifiers,
- eb->any_mod, "pointer_push", eb->params);
+ eb->any_mod, "pointer_push", params);
e_bindings_signal_add(eb->context, "mouse,out", eb->source,
eb->modifiers,
- eb->any_mod, "pointer_pop", eb->params);
+ eb->any_mod, "pointer_pop", params);
}
-#endif
}
for (l = e_config->wheel_bindings; l; l = l->next)
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_pointer.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- e_pointer.c 10 Oct 2005 08:18:35 -0000 1.19
+++ e_pointer.c 11 Oct 2005 05:51:03 -0000 1.20
@@ -228,6 +228,7 @@
((!type) || (!strcmp(stack->type, type))))
{
p->stack = evas_list_remove_list(p->stack, l2);
+ if (type) break;
}
}
@@ -379,12 +380,14 @@
if (!cursor) printf("X Cursor for %s is missing\n", type);
ecore_x_window_cursor_set(p->win, cursor);
}
+#if 0
else if (!strcmp(type, "resize"))
{
cursor = ecore_x_cursor_shape_get(ECORE_X_CURSOR_SIZING);
if (!cursor) printf("X Cursor for %s is missing\n", type);
ecore_x_window_cursor_set(p->win, cursor);
}
+#endif
else if (!strcmp(type, "resize_tl"))
{
cursor = ecore_x_cursor_shape_get(ECORE_X_CURSOR_TOP_LEFT_CORNER);
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs