Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src
Modified Files:
ewl_entry.c
Log Message:
- only show the cursor if the entry is selected for input
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_entry.c,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -3 -r1.119 -r1.120
--- ewl_entry.c 9 Dec 2004 05:33:52 -0000 1.119
+++ ewl_entry.c 21 Dec 2004 01:02:19 -0000 1.120
@@ -133,7 +133,6 @@
ewl_widget_internal_set(e->cursor, TRUE);
ewl_object_fill_policy_set(EWL_OBJECT(e->cursor), EWL_FLAG_FILL_SHRINK);
ewl_entry_cursor_position_set(EWL_ENTRY_CURSOR(e->cursor), 0);
- ewl_widget_show(e->cursor);
/*
* Attach necessary callback mechanisms
@@ -373,8 +372,6 @@
if (edit) {
ewl_callback_append(w, EWL_CALLBACK_KEY_DOWN,
ewl_entry_key_down_cb, NULL);
-
- ewl_widget_show(e->cursor);
}
else {
ewl_callback_del(w, EWL_CALLBACK_KEY_DOWN,
@@ -1047,6 +1044,9 @@
e = EWL_ENTRY(w);
+ if (e->cursor && !VISIBLE(e->cursor))
+ ewl_widget_show(e->cursor);
+
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
@@ -1059,6 +1059,9 @@
e = EWL_ENTRY(w);
+ if (e->cursor && VISIBLE(e->cursor))
+ ewl_widget_hide(e->cursor)
+
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs