Hi,
When I tried elementary/example/datetime_example, I found it will
display redundant month and hour on the top of window. For X engine, it
locates on the top of client area; and for Wayland engine, it locates on
the top of window title bar.
(http://trac.enlightenment.org/e/ticket/1174)
It comes from _field_list_arrange() couldn't hide invisible fields
because the filed has different location value when it is visible and
invisible. _parse_format() refuse to calculate the location value of
invisible field and it is put value in _reload_format() [line 416 in
elm_datetime.c].
So I remove invisible condition in _parse_format() [line 342 in
elm_datetime.c] to get the same location value of the field whatever it
is visible and invisible.
Could you please review my attached patch for this issue?
Thanks.
Yan Wang
Index: src/lib/elm_datetime.c
===================================================================
--- src/lib/elm_datetime.c (revision 74049)
+++ src/lib/elm_datetime.c (working copy)
@@ -339,7 +339,7 @@ _parse_format(Evas_Object *obj,
/* ignore the fields already have or disabled
* valid formats, means already parsed &
* repeated, ignore. */
- if (!field->visible || field->location != -1) break;
+ if (field->location != -1) break;
field->fmt[1] = cur;
field->fmt_exist = EINA_TRUE;
field->location = location++;
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel