Christopher Michael [Tue, 22 Oct 2019 14:06:23 +0000 (10:06 -0400)]
ecore-evas-wayland: Minor formatting fix
NB: No functional changes
Christopher Michael [Tue, 22 Oct 2019 14:04:01 +0000 (10:04 -0400)]
ecore-evas-wayland: Minor formatting fix
NB: No functional changes
Daniel Kolesa [Sun, 20 Oct 2019 16:49:04 +0000 (18:49 +0200)]
eina: fix network byte order swap funcs on big endian
Jongmin Lee [Mon, 21 Oct 2019 23:24:41 +0000 (08:24 +0900)]
build: resolve migration build error
Change-Id: I7ab5cb4a3e283546a25670ab35f03db25a1918b3
Ali Alzyod [Sat, 19 Oct 2019 05:01:36 +0000 (14:01 +0900)]
evas_object_textblock: add support for variation sequences
Summary: update font processing to handle variation sequences unicodes to select proper glypg in respect to variation seqences
Test Plan:
```
EAPI_MAIN int
elm_main(int argc, char **argv)
{
Evas_Object *win, *textblock;
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
win = elm_win_util_standard_add("Main", "");
elm_win_autodel_set(win, EINA_TRUE);
textblock = evas_object_textblock_add(win);
efl_canvas_text_style_set(textblock,NULL,"DEFAULT='font=DejaVuSans font_fallbacks=SamsungColorEmoji color=#000 font_size=20'");
evas_object_textblock_text_markup_set(textblock, "8️⃣☪️AAA☪︎1234567️⃣");
evas_object_size_hint_weight_set(textblock, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(textblock, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(textblock);
evas_object_move(textblock, 0, 0);
evas_object_resize(textblock, 320, 320);
evas_object_resize(win, 320, 320);
evas_object_show(win);
elm_run();
return 0;
}
ELM_MAIN()
```
Reviewers: woohyun, bowonryu, segfaultxavi, cedric, bu5hm4n
Reviewed By: woohyun, cedric
Subscribers: bu5hm4n, subodh6129, herdsman, segfaultxavi, zmike, cedric, #committers, #reviewers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9053
Mike Blumenkrantz [Fri, 18 Oct 2019 17:30:10 +0000 (13:30 -0400)]
fix various trivial null derefs
Summary:
CIDs 1401081, 1401044, 1400983, 1400960, 1400927, 1400799, 1396946, 1396944,
1383851, 1383847, 1382211, 1379921, 1379921
Reviewers: cedric
Reviewed By: cedric
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10452
Mike Blumenkrantz [Fri, 18 Oct 2019 17:30:03 +0000 (13:30 -0400)]
efl/io: return EINVAL if null slice is passed for writing
Summary: CIDs 1396996, 1396983, 1396953
Reviewers: cedric
Reviewed By: cedric
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10451
Mike Blumenkrantz [Fri, 18 Oct 2019 17:29:57 +0000 (13:29 -0400)]
tests/ecore_con: clarify pointer usage in ecore_con_url tests
Summary:
this was pretty bizarre
CID 1401029
Reviewers: cedric
Reviewed By: cedric
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10450
Mike Blumenkrantz [Fri, 18 Oct 2019 17:29:51 +0000 (13:29 -0400)]
elm/main: fix null deref
Summary: CID 1402697
Reviewers: cedric
Reviewed By: cedric
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10449
Mike Blumenkrantz [Fri, 18 Oct 2019 17:29:44 +0000 (13:29 -0400)]
efl/engines: fix null derefs
Summary: CIDs 1402640, 1402709
Reviewers: cedric
Reviewed By: cedric
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10448
Mike Blumenkrantz [Fri, 18 Oct 2019 17:29:38 +0000 (13:29 -0400)]
evas_vg/svg: fix null deref
Summary: CID 1405672
Reviewers: cedric
Reviewed By: cedric
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10446
Mike Blumenkrantz [Fri, 18 Oct 2019 17:29:32 +0000 (13:29 -0400)]
eina/convert: init endptr in failure case of eina_convert_strtod_c
Summary:
there is not any way to determine that this function has failed other
than to check this pointer, so ensure that it always has a value which
is meaningful in failure cases
Reviewers: cedric
Reviewed By: cedric
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10445
Mike Blumenkrantz [Fri, 18 Oct 2019 17:29:26 +0000 (13:29 -0400)]
efl/boolean_model: remove misleading null check
Summary:
this is always a pointer to a stack variable
CID 1405799
Reviewers: cedric
Reviewed By: cedric
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10444
Mike Blumenkrantz [Fri, 18 Oct 2019 17:29:20 +0000 (13:29 -0400)]
embryo: don't use sizeof() when strlen() is intended
Summary: CID 1402617
Reviewers: cedric
Reviewed By: cedric
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10411
Mike Blumenkrantz [Fri, 18 Oct 2019 17:29:13 +0000 (13:29 -0400)]
tests: fix minor string leaks
Summary: CIDs 1404754, 1401022, 1400965
Reviewers: devilhorns
Reviewed By: devilhorns
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10405
Mike Blumenkrantz [Fri, 18 Oct 2019 17:29:07 +0000 (13:29 -0400)]
benchmarks/eina: fix possible div by zero in ecore_hash
Summary: CID 1400768
Reviewers: devilhorns
Reviewed By: devilhorns
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10397
Mike Blumenkrantz [Fri, 18 Oct 2019 17:29:01 +0000 (13:29 -0400)]
ecore/main: avoid calling FD_SET with invalid fd value
Summary:
it's possible that _ecore_get_epoll_fd() can return -1, so ensure that we
correctly handle this
CID 1383850
Reviewers: devilhorns
Reviewed By: devilhorns
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10394
Mike Blumenkrantz [Fri, 18 Oct 2019 17:28:54 +0000 (13:28 -0400)]
ecore/getopt: handle negative return in arg parsing
Summary:
_ecore_getopt_parse_find_nonargs_base() can return -1 on errors
CID 1402615
Reviewers: devilhorns
Reviewed By: devilhorns
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10393
Mike Blumenkrantz [Fri, 18 Oct 2019 17:28:48 +0000 (13:28 -0400)]
tests/eldbus: add va_end for va_args usage in message test
Summary: CIDs 1400977, 1400974
Reviewers: devilhorns
Reviewed By: devilhorns
Subscribers: devilhorns, cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10390
Mike Blumenkrantz [Fri, 18 Oct 2019 17:28:41 +0000 (13:28 -0400)]
evas/language: #ifdef guard variable which is only used inside #ifdef
Summary:
this variable is already only changed inside an #ifdef, so declare and
free it only inside the same ifdef for clarity
ref
9d9aa8b6ae0c07ebe23e1ea3fcb81f8050311651
CID 1400807
Reviewers: devilhorns
Reviewed By: devilhorns
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10389
Bruno da Silva Belo [Fri, 18 Oct 2019 14:40:33 +0000 (11:40 -0300)]
csharp: Setting ELM_ENGINE if it is none.
Reviewers: lauromoura, felipealmeida
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8322
Differential Revision: https://phab.enlightenment.org/D10442
Carsten Haitzler (Rasterman) [Fri, 18 Oct 2019 11:49:21 +0000 (12:49 +0100)]
wl egl - use platform get display
if possible, use the platform specific egl get display as a wl egl
client. this fixes client side init with ... some drivers that can't
auto-detect the display type passed in.
@fix
Yeongjong Lee [Thu, 17 Oct 2019 23:23:11 +0000 (20:23 -0300)]
mono: encapsulate invoke method
Summary: This patch will fix compiler warning CA1401.
Test Plan: meson setup -Dbindings=mono,cxx -Dmono-beta=true
Reviewers: lauromoura, segfaultxavi, Jaehyun_Cho
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, woohyun, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10338
Bruno da Silva Belo [Thu, 17 Oct 2019 18:53:48 +0000 (15:53 -0300)]
csharp: updating eldbus_message doc and hide api.
Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8361
Differential Revision: https://phab.enlightenment.org/D10431
Bruno da Silva Belo [Thu, 17 Oct 2019 18:39:47 +0000 (15:39 -0300)]
csharp: updating eldbus_proxy doc and hide api.
Summary: ref T8361
Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8361
Differential Revision: https://phab.enlightenment.org/D10428
Bruno da Silva Belo [Thu, 17 Oct 2019 18:25:17 +0000 (15:25 -0300)]
csharp: updating eldbus_pending docs and hide api.
Summary: ref T8361
Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8361
Differential Revision: https://phab.enlightenment.org/D10427
Bruno da Silva Belo [Thu, 17 Oct 2019 17:49:15 +0000 (14:49 -0300)]
csharp: updating eldbus_object docs and hide api.
Summary: ref T8361
Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8361
Differential Revision: https://phab.enlightenment.org/D10426
Bruno da Silva Belo [Thu, 17 Oct 2019 17:40:48 +0000 (14:40 -0300)]
csharp: hide eldbus_service api.
Summary: ref T8361
Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8361
Differential Revision: https://phab.enlightenment.org/D10425
Yeongjong Lee [Thu, 17 Oct 2019 17:36:15 +0000 (14:36 -0300)]
mono: add static modifier to static holder types.
Summary: This patch will fix CA1052 compiler warnings.
Test Plan: meson setup -Dbindings=mono,cxx -Dmono-beta=true
Reviewers: lauromoura, Jaehyun_Cho
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10434
Yeongjong Lee [Thu, 17 Oct 2019 17:32:29 +0000 (14:32 -0300)]
mono: merge namespaces
Summary:
This patch merge namespaces to improve readablity.
Before
```
namespace Efl {
namespace Canvas {
```
After
```
namespace Efl.Canvas {
```
Test Plan: meson setup -Dbindings=mono,cxx -Dmono-beta=true
Reviewers: lauromoura, Jaehyun_Cho
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10436
Yeongjong Lee [Thu, 17 Oct 2019 16:57:22 +0000 (13:57 -0300)]
mono: remove underscores of Efl_Op_Description, Efl_Object_Ops
Summary:
C# does not use underscore in type name.
ref T8333
Test Plan: meson setup -Dbindings=mono,cxx -Dmono-beta=true
Reviewers: lauromoura, Jaehyun_Cho
Reviewed By: Jaehyun_Cho
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8333
Differential Revision: https://phab.enlightenment.org/D10422
Woochanlee [Thu, 17 Oct 2019 14:41:15 +0000 (10:41 -0400)]
gesture_manager: Deleted function and definition that are no more use.
Summary:
D7762
Searching for event what is using in gesture manager.
But the value was wrong.
And now D10437 made it better.
Reviewers: Hermet, smohanty, zmike
Reviewed By: zmike
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10438
Lauro Moura [Thu, 17 Oct 2019 14:11:00 +0000 (11:11 -0300)]
csharp: Add Efl.Model implementations to internal model
Summary:
CollectionView tries to access some properties from the base model so we
need to provide some implementation of the property getter/setter.
Reviewers: SanghyeonLee, cedric, felipealmeida
Reviewed By: SanghyeonLee
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10300
Hermet Park [Thu, 17 Oct 2019 08:39:26 +0000 (17:39 +0900)]
vector json: fix a ordering issue of stroke.
for optimization, we created a shape node in a lazy way,
This introduced corrupted layering order issue.
We fix it by keeping the object creation order.
Layzing creation is just for an ideal case,
It doesn't verified the performance.
Hermet Park [Thu, 17 Oct 2019 07:59:14 +0000 (16:59 +0900)]
vector json: optimize logic.
if a layer is full transparent, skip it further processing.
Bruno da Silva Belo [Wed, 16 Oct 2019 14:26:03 +0000 (11:26 -0300)]
csharp: Updating eldbus_common docs.
Summary: ref T8361
Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8361
Differential Revision: https://phab.enlightenment.org/D10416
Bruno da Silva Belo [Wed, 16 Oct 2019 14:00:29 +0000 (11:00 -0300)]
csharp: updating eldbus_config docs.
Summary: ref T8361
Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8361
Differential Revision: https://phab.enlightenment.org/D10417
Bruno da Silva Belo [Wed, 16 Oct 2019 13:50:10 +0000 (10:50 -0300)]
csharp: updating eldbus_connection docs.
Summary: ref T8361
Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8361
Differential Revision: https://phab.enlightenment.org/D10418
Yeongjong Lee [Wed, 16 Oct 2019 13:39:52 +0000 (10:39 -0300)]
mono: make public static field const or readonly
Summary: This patch will fix CA2211 compiler warnings.
Test Plan: meson setup -Dbindings=mono,cxx -Dmono-beta=true
Reviewers: lauromoura, Jaehyun_Cho
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10423
Jaehyun Cho [Wed, 16 Oct 2019 13:31:22 +0000 (10:31 -0300)]
csharp: rename Factory.cs to ItemFactory.cs
Summary:
Since current Factory.cs contains class ItemFactory, Factory.cs is
renamed to ItemFactory.cs.
Reviewers: lauromoura, YOhoho, SanghyeonLee
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10424
JunsuChoi [Wed, 16 Oct 2019 06:12:13 +0000 (15:12 +0900)]
efl_canvas_vg : Propagates the alpha color of the parent
Summary:
The current color is affected by the parent's opacity.
If p_opacity is set, it will be applied to the current color.
Test Plan: N/A
Reviewers: Hermet, smohanty, kimcinoo
Reviewed By: Hermet
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10399
Mike Blumenkrantz [Tue, 15 Oct 2019 22:02:49 +0000 (07:02 +0900)]
examples/eldbus: fix pointer leak on failure case
Summary: CID 1400787
Reviewers: kimcinoo
Reviewed By: kimcinoo
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10407
Mike Blumenkrantz [Tue, 15 Oct 2019 21:57:34 +0000 (06:57 +0900)]
examples/evas: free map pointer in map example
Summary: CID 1400959
Reviewers: kimcinoo
Reviewed By: kimcinoo
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10406
Felipe Magno de Almeida [Mon, 14 Oct 2019 03:51:15 +0000 (03:51 +0000)]
csharp: Add since documentation to struct and struct fields
Reviewed-by: Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D10385
Mike Blumenkrantz [Tue, 15 Oct 2019 14:20:53 +0000 (11:20 -0300)]
lz4: fix potential div by zero
Summary:
LZ4F_getBlockSize() can return 0
CID 1404010
Reviewers: lauromoura
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10392
Mike Blumenkrantz [Tue, 15 Oct 2019 14:18:43 +0000 (11:18 -0300)]
tests/eina: fix assign when compare was intended
Summary: CID 1400858
Reviewers: lauromoura
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10396
Lauro Moura [Tue, 15 Oct 2019 13:11:09 +0000 (10:11 -0300)]
csharp: Avoid direct usage of some dllimport funcs
Summary:
Instead of accessing them directly, generated code should access them
only through proper managed wrappers.
JIT should take care of inline them.
This would allow D10338 without depending on the friendly assembly feature.
Reviewers: YOhoho, felipealmeida, brunobelo, woohyun, segfaultxavi
Reviewed By: YOhoho
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10366
Lauro Moura [Tue, 15 Oct 2019 13:10:53 +0000 (10:10 -0300)]
csharp: Fix promises docs and hide api
Summary: ref T8293
Reviewers: felipealmeida, brunobelo, segfaultxavi, woohyun
Reviewed By: brunobelo
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8293
Differential Revision: https://phab.enlightenment.org/D10331
Jaehyun Cho [Tue, 15 Oct 2019 13:06:48 +0000 (09:06 -0400)]
efl_ui: rename efl_ui_types.eot to efl_ui_drag_types.eot
Summary:
The current efl_ui_types.eot contains only enum Efl.Ui.Drag_Dir.
Therefore, it is renamed to efl_ui_drag_types.eot as follows.
src/lib/efl/interfaces/efl_ui_types.eot -> efl_ui_drag_types.eot
Reviewers: bu5hm4n, segfaultxavi, zmike
Reviewed By: zmike
Subscribers: zmike, cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10387
Jaehyun Cho [Tue, 15 Oct 2019 08:28:35 +0000 (17:28 +0900)]
csharp: fix to write cref Eina.Array<T> correctly
Since the class is Eina.Array<T>, cref Eina.Array is replaced to
Eina.Array<T>.
Hermet Park [Tue, 15 Oct 2019 06:03:47 +0000 (15:03 +0900)]
vector json: use lottie apis case by case.
We can request loading from data only in case of actual memory map.
The lottie-player would take care of the parsing on utf8/16/32 formats
more precisely so that we don't need to take care of this converting
from the memory.
Carsten Haitzler (Rasterman) [Mon, 14 Oct 2019 18:12:25 +0000 (19:12 +0100)]
ecore_evas/wl2 0 fux xdg close cb for window when it's closed remotely
this should fix this:
https://matrix.org/_matrix/media/r0/download/matrix.org/lhFneENlWAjuXDaJfSYuJjjJ
unfortunately this means adding an api and then using it in ecore_evas.
@fix
Bruno da Silva Belo [Mon, 14 Oct 2019 21:33:01 +0000 (18:33 -0300)]
csharp: updating GenericModel.cs docs.
Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8345
Differential Revision: https://phab.enlightenment.org/D10376
Bruno da Silva Belo [Mon, 14 Oct 2019 21:27:49 +0000 (18:27 -0300)]
csharp: updating Bind docs and hide api.
Summary: ref T8345
Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8345
Differential Revision: https://phab.enlightenment.org/D10374
Bruno da Silva Belo [Mon, 14 Oct 2019 21:01:30 +0000 (18:01 -0300)]
csharp: updating Factory docs.
Summary: ref T8345
Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8345
Differential Revision: https://phab.enlightenment.org/D10375
Lauro Moura [Mon, 14 Oct 2019 20:19:12 +0000 (17:19 -0300)]
csharp: Remove test dependency on internal funcs
Summary: This will help cleaninup the EFL# API.
Test Plan: run test suite
Reviewers: YOhoho, felipealmeida, segfaultxavi, woohyun, brunobelo
Reviewed By: YOhoho
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10365
Bruno da Silva Belo [Mon, 14 Oct 2019 20:02:45 +0000 (17:02 -0300)]
csharp: Updating eina_array docs and hide api.
Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8293
Differential Revision: https://phab.enlightenment.org/D10309
Bruno da Silva Belo [Mon, 14 Oct 2019 19:36:25 +0000 (16:36 -0300)]
csharp: updating eina_common docs and hide api.
Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8293
Differential Revision: https://phab.enlightenment.org/D10311
Bruno da Silva Belo [Mon, 14 Oct 2019 15:23:56 +0000 (12:23 -0300)]
csharp: updating eina_config docs and hide api.
Reviewers: felipealmeida, lauromoura, woohyun, segfaultxavi
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8293
Differential Revision: https://phab.enlightenment.org/D10312
Bruno da Silva Belo [Mon, 14 Oct 2019 14:57:01 +0000 (11:57 -0300)]
csharp: updating eina_container_common doc and api
Reviewers: felipealmeida, lauromoura, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8293
Differential Revision: https://phab.enlightenment.org/D10314
Bruno da Silva Belo [Mon, 14 Oct 2019 14:36:25 +0000 (11:36 -0300)]
csharp: updating eina_error docs.
Reviewers: felipealmeida, lauromoura, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8293
Differential Revision: https://phab.enlightenment.org/D10323
Bruno da Silva Belo [Mon, 14 Oct 2019 14:22:56 +0000 (11:22 -0300)]
csharp: updating eina_hash docs and hide api.
Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8293
Differential Revision: https://phab.enlightenment.org/D10324
Bruno da Silva Belo [Mon, 14 Oct 2019 14:01:36 +0000 (11:01 -0300)]
csharp: updating eina_list docs.
Summary: ref T8293
Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8293
Differential Revision: https://phab.enlightenment.org/D10351
Bruno da Silva Belo [Mon, 14 Oct 2019 13:26:02 +0000 (10:26 -0300)]
csharp: updating eina_log docs.
Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8293
Differential Revision: https://phab.enlightenment.org/D10352
Cedric BAIL [Mon, 14 Oct 2019 13:38:23 +0000 (09:38 -0400)]
ecore_con: use only Eina_Magic infrastructure for set and check in Ecore_Con_Url.
Summary:
We can not have half our code rely on Ecore magic check and the other half
use Eina_Magic or this will lead to inconsistency with Eina_Magic definition.
Reviewers: zmike, segfaultxavi, bu5hm4n, raster
Reviewed By: raster
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10383
Mike Blumenkrantz [Mon, 14 Oct 2019 13:30:23 +0000 (09:30 -0400)]
elm/layout: add some workarounds to try handling legacy min sizes
Summary:
if a legacy widget calls evas_object_size_hint_min_set, this actually sets
efl_gfx_hint_size_restricted_min now, which is supposed to be the hint that
is used internally by widgets. as a result, there is a conflict between the
size which the user expects and the size which the widget tries to calculate.
the user size should always be respected, however, so this adds some tracking
to determine whether the layout's min size was set by the layout during its own
calc or by something externally
@fix
Reviewers: eagleeye, CHAN, woohyun, Jaehyun_Cho, cedric
Reviewed By: cedric
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10373
Mike Blumenkrantz [Mon, 14 Oct 2019 13:30:17 +0000 (09:30 -0400)]
evas/render: selectively inhibit render callbacks
Summary:
only call these if they are subscribed to now
ref T8321
Reviewers: cedric
Reviewed By: cedric
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8321
Differential Revision: https://phab.enlightenment.org/D10361
Mike Blumenkrantz [Mon, 14 Oct 2019 13:30:10 +0000 (09:30 -0400)]
efl_ui/layout: selectively inhibit theme,changed event
Summary:
this is called a ton.
ref T8321
Depends on D10359
Reviewers: cedric
Reviewed By: cedric
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8321
Differential Revision: https://phab.enlightenment.org/D10360
Mike Blumenkrantz [Mon, 14 Oct 2019 13:30:03 +0000 (09:30 -0400)]
ecore: inhibit "idle" event emission if no subscribers exist
Summary:
it seems like this was intended to be handled already, but somehow it wasn't...
ref T8321
Depends on D10358
Reviewers: cedric
Reviewed By: cedric
Subscribers: bu5hm4n, cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8321
Differential Revision: https://phab.enlightenment.org/D10359
Mike Blumenkrantz [Mon, 14 Oct 2019 13:29:57 +0000 (09:29 -0400)]
evas/smart: inhibit smart member add/del callbacks when no subscribers exist
Summary:
this is triggered a ton on app startup
ref T8321
Depends on D10357
Reviewers: bu5hm4n, cedric
Reviewed By: bu5hm4n, cedric
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8321
Differential Revision: https://phab.enlightenment.org/D10358
Mike Blumenkrantz [Mon, 14 Oct 2019 13:29:50 +0000 (09:29 -0400)]
edje: block "recalc" event emission if it isn't being subscribed to
Summary:
this gets called a ton
ref T8321
Depends on D10356
Reviewers: bu5hm4n, cedric
Reviewed By: bu5hm4n, cedric
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8321
Differential Revision: https://phab.enlightenment.org/D10357
Mike Blumenkrantz [Mon, 14 Oct 2019 13:29:43 +0000 (09:29 -0400)]
evas/smart: print actual errors when smart api functions are called on non-smarts
Summary:
this is an error, and it should be printed
Depends on D10355
Reviewers: cedric
Reviewed By: cedric
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10356
Mike Blumenkrantz [Mon, 14 Oct 2019 13:29:37 +0000 (09:29 -0400)]
evas/smart: inhibit evas-internal smart callbacks when there are no subscribers
Summary:
we know these ahead of time since they're hardcoded, so we can block their
emission just like we do for eo events
ref T8321
Depends on D10354
Reviewers: cedric
Reviewed By: cedric
Subscribers: bu5hm4n, cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8321
Differential Revision: https://phab.enlightenment.org/D10355
Mike Blumenkrantz [Mon, 14 Oct 2019 13:29:30 +0000 (09:29 -0400)]
eo: block "invalidate" event emission when there are no subscribers
Summary:
this should be handled like the rest of eo internal events
ref T8321
Depends on D10353
Reviewers: bu5hm4n, cedric
Reviewed By: bu5hm4n, cedric
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8321
Differential Revision: https://phab.enlightenment.org/D10354
Mike Blumenkrantz [Mon, 14 Oct 2019 13:29:23 +0000 (09:29 -0400)]
evas/callbacks: emit hardcoded legacy smart callbacks always
Summary:
these are not strictly related to the event callback types and should not
have their emission tied to the corresponding event
also add unit test to verify all of these
@fix
Reviewers: cedric
Reviewed By: cedric
Subscribers: bu5hm4n, cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10353
Carsten Haitzler (Rasterman) [Mon, 14 Oct 2019 11:14:26 +0000 (12:14 +0100)]
eet - fix loading eet files that do not have dicts
my performance fix for locking around the eet dict breaks if there is
no dict in the eet file. this causes a segv.
fixes T8368
@fix
Hermet Park [Mon, 14 Oct 2019 08:52:47 +0000 (17:52 +0900)]
canvas vg: don't draw images if it's full transparent.
WooHyun Jung [Mon, 14 Oct 2019 07:55:52 +0000 (16:55 +0900)]
eolian: fix eolian errors with EOLIAN_ENFORCE_SINCE=1
Summary:
This is not the end of fixing eolian errors. I need to keep fixing
more.
Test Plan:
1. export EOLIAN_ENFORCE_SINCE=1
2. ninja
Reviewers: q66, segfaultxavi, zmike, bu5hm4n, Jaehyun_Cho
Reviewed By: segfaultxavi, Jaehyun_Cho
Subscribers: Jaehyun_Cho, stefan_schmidt, cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10370
Bruno da Silva Belo [Mon, 14 Oct 2019 04:06:49 +0000 (01:06 -0300)]
csharp: updating UserModel docs.
Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8345
Differential Revision: https://phab.enlightenment.org/D10377
Bruno da Silva Belo [Mon, 14 Oct 2019 04:01:10 +0000 (01:01 -0300)]
csharp: updating efl_all docs.
Summary: ref T8345
Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8345
Differential Revision: https://phab.enlightenment.org/D10378
Bruno da Silva Belo [Mon, 14 Oct 2019 03:53:34 +0000 (00:53 -0300)]
csharp: updating efl_csharp_application docs.
Summary: ref T8345
Reviewers: lauromoura, felipealmeida, segfaultxavi, woohyun
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8345
Differential Revision: https://phab.enlightenment.org/D10379
Felipe Magno de Almeida [Mon, 14 Oct 2019 02:45:17 +0000 (23:45 -0300)]
csharp: Add since documentation to Async methods
Reviewers: lauromoura
Reviewed By: lauromoura
After review, fixed formatting and indentation.
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8359
Differential Revision: https://phab.enlightenment.org/D10384
Lauro Moura [Mon, 14 Oct 2019 02:34:32 +0000 (23:34 -0300)]
elm: Fix potential leak in cv request add
Summary: CID 1405809
Reviewers: zmike, cedric, bu5hm4n
Reviewed By: cedric
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10174
Shinwoo Kim [Mon, 14 Oct 2019 02:13:15 +0000 (11:13 +0900)]
evas filter: Implement grayscale filter in SW
Summary: Initial version implementing grayscale filter in SW.
Test Plan:
1. Create filter_example with following.
efl_gfx_filter_program_set(image, "grayscale ()", "grayscale");
1. Run.
./filter_example
Reviewers: Hermet, jsuya
Reviewed By: Hermet
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10219
Shinwoo Kim [Mon, 14 Oct 2019 02:11:04 +0000 (11:11 +0900)]
evas filter: preserve text source color
Summary:
The filter did not use text source color. Whatever color a text has, filter
used white color instead of it.
Test Plan: efl_gfx_filter_program_set(non_white_color_text, "code", "name");
Reviewers: Hermet, jsuya, cedric
Reviewed By: cedric
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10336
Shinwoo Kim [Mon, 14 Oct 2019 02:09:31 +0000 (11:09 +0900)]
evas_image: fix memory leak
Summary:
On the sw engine, an im could be changed and removed by evas_cache_image_size_set.
In this case, there is no chance to free its resource and ends up in memory leak.
Reviewers: Hermet, raster, jsuya, cedric
Reviewed By: cedric
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10334
Shinwoo Kim [Mon, 14 Oct 2019 02:07:01 +0000 (11:07 +0900)]
evas_cache_image: drop image after replacement
Summary:
When a newly created Image_Entry works for instead of an old one,
we need to drop it. And we did dorp it.
The line calling ref and drop was added by following commit.
d550190 evas image cache - add lots more locking to try stamp out
any thread bug
But it is missed by following commit.
9f99ab1 evas cache: clear up caching locking and reference count.
Reviewers: Hermet, raster, jsuya, cedric
Reviewed By: cedric
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10333
SangHyeon Jade Lee [Fri, 8 Nov 2019 09:34:28 +0000 (18:34 +0900)]
genlist: fix wrong proxy geometry set
Change-Id: I794c528e5862c9e265344e2da953c4a83c596a75
Signed-off-by: SangHyeon Jade Lee <sh10233.lee@samsung.com>
Wonki Kim [Wed, 6 Nov 2019 12:46:42 +0000 (13:46 +0100)]
check: reset flags that used for legacy 'changed' cb
Summary:
in case of setting a state of check by calling a API,
the flags that used for changed cb aren't changed.
which causes that the callback not invoked when it should be.
this patch resets the flags to make it work properly.
Reviewers: bu5hm4n
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D10591
Change-Id: I16406ca41b6ac235cb6ef4ab4e2905669dd78e98
Ali Alzyod [Tue, 5 Nov 2019 11:40:59 +0000 (20:40 +0900)]
evas_textblock: content fit feature
Summary:
**Content Fit Feature for Evas_Object_Textblock**
This Feature is available at **Evas **object level. And **Edje **level (where it is internally use evas functionality)
This feature will allow text block to fit its content font size to proper size to fit its area.
**Main Properties:**
Fit Modes : None=Default, Width, Height, All [Width+Height]
Fit Size Range : Contains maximum and minimum font size to be used (and in between).
Fit Step Size : Step(Jump) value when trying fonts sizes between Size_Range max and min.
Fit Size Array : Other way to resize font, where you explicitly select font sizes to be uses (for example [20, 50, 100] it will try 3 sizes only)
Text Fit feature was available in Edje but:
1- It doesn't effected by ellipsis or warping in font style (or do not handle the in right way)
2- Accuracy is not good (specially if you have fix pixel size elements (spaces,tabs,items))
3- No (Step size, Size Array) available.
Test Plan:
To check the Feature
> elementary_test
> fit
> textbock fit
You can modify all the modes and properties
These are two examples, One using Evas other uses Edje
**Evas**
```
enum BUTTON{
BUTTON_MODE = 0,
BUTTON_MAX = 1,
BUTTON_MIN = 2,
BUTTON_STEP = 3,
BUTTON_ARRAY = 4,
BUTTON_CONTENT = 5,
BUTTON_STYLE = 6,
BUTTON_ALL = BUTTON_STYLE+1,
};
char* BUTTON_STR[BUTTON_ALL] ={
"MODE",
"MAX",
"MIN",
"STEP",
"ARRAY",
"CONTENT",
"STYLE",
};
char *contents[] = {
"Hello World",
"This is Line<br>THis is other Line",
"This text contains <font_size=20 color=#F00>SPECIFIC SIZE</font_size> that does not effected by fit mode"
};
char *styles[] = {
"DEFAULT='font=sans font_size=30 color=#000 wrap=mixed ellipsis=1.0'",
"DEFAULT='font=sans font_size=30 color=#000 wrap=mixed'",
"DEFAULT='font=sans font_size=30 color=#000 ellipsis=1.0'",
"DEFAULT='font=sans font_size=30 color=#000'",
};
char *styles_names[] = {
"wrap=<color=#F00>mixed</color> ellipsis=<color=#F00>1.0</color>",
"wrap=<color=#F00>mixed</color> ellipsis=<color=#F00>NONE</color>",
"wrap=<color=#F00>NONE</color> ellipsis=<color=#F00>1.0</color>",
"wrap=<color=#F00>NONE</color> ellipsis=<color=#F00>NONE</color>",
};
typedef struct _APP
{
Evas_Object *win, *box, *txtblock,*bg, *boxHor, *boxHor2;
Eo *btn[BUTTON_ALL];
Eo *lbl_status;
char * str;
unsigned int i_contnet, i_style;
} APP;
APP *app;
char * get_fit_status(Eo * textblock);
static void _btn_clicked(void *data EINA_UNUSED, Eo *obj, void *eventInfo EINA_UNUSED){
if (obj == app->btn[BUTTON_MODE])
{
unsigned int options;
evas_textblock_fit_options_get(app->txtblock, &options);
if (options == TEXTBLOCK_FIT_MODE_NONE)
evas_textblock_fit_options_set(app->txtblock, TEXTBLOCK_FIT_MODE_HEIGHT);
else if (options == TEXTBLOCK_FIT_MODE_HEIGHT)
evas_textblock_fit_options_set(app->txtblock, TEXTBLOCK_FIT_MODE_WIDTH);
else if (options == TEXTBLOCK_FIT_MODE_WIDTH)
evas_textblock_fit_options_set(app->txtblock, TEXTBLOCK_FIT_MODE_ALL);
else if (options == TEXTBLOCK_FIT_MODE_ALL)
evas_textblock_fit_options_set(app->txtblock, TEXTBLOCK_FIT_MODE_NONE);
}
else if (obj == app->btn[BUTTON_MAX])
{
unsigned int min, max;
evas_textblock_fit_size_range_get(app->txtblock, &min, &max);
max -= 5;
evas_textblock_fit_size_range_set(app->txtblock, min, max);
}
else if (obj == app->btn[BUTTON_MIN])
{
unsigned int min, max;
evas_textblock_fit_size_range_get(app->txtblock, &min, &max);
min += 5;
evas_textblock_fit_size_range_set(app->txtblock, min, max);
}
else if (obj == app->btn[BUTTON_STEP])
{
unsigned int step;
evas_textblock_fit_step_size_get(app->txtblock, &step);
step++;
evas_textblock_fit_step_size_set(app->txtblock, step);
}
else if (obj == app->btn[BUTTON_ARRAY])
{
unsigned int font_size[] = {10, 50, 100 ,150};
evas_textblock_fit_size_array_set(app->txtblock,font_size,4);
}
else if (obj == app->btn[BUTTON_CONTENT])
{
app->i_contnet++;
if(app->i_contnet>=sizeof(contents)/sizeof(char*))
app->i_contnet=0;
evas_object_textblock_text_markup_set(app->txtblock,contents[app->i_contnet]);
}
else if (obj == app->btn[BUTTON_STYLE])
{
app->i_style++;
if(app->i_style>=sizeof(styles)/sizeof(char*))
app->i_style=0;
Evas_Textblock_Style *style = evas_object_textblock_style_get(app->txtblock);
evas_textblock_style_set(style,styles[app->i_style]);
}
elm_object_text_set(app->lbl_status, get_fit_status(app->txtblock));
}
char * get_fit_status(Eo * textblock)
{
static char status[0xFFF];
unsigned int options,min,max,step,size_array[256];
size_t size_array_len;
evas_textblock_fit_options_get(textblock,&options);
evas_textblock_fit_size_range_get(textblock,&min,&max);
evas_textblock_fit_step_size_get(textblock,&step);
evas_textblock_fit_size_array_get(textblock,NULL,&size_array_len,0);
if (size_array_len>255)
size_array_len = 255;
evas_textblock_fit_size_array_get(textblock,size_array,NULL,size_array_len);
strcpy(status,"Mode : ");
if (options == TEXTBLOCK_FIT_MODE_NONE)
strcat(status,"MODE_NONE");
else if (options == TEXTBLOCK_FIT_MODE_HEIGHT)
strcat(status,"MODE_HEIGHT");
else if (options == TEXTBLOCK_FIT_MODE_WIDTH)
strcat(status,"MODE_WIDTH");
else if (options == TEXTBLOCK_FIT_MODE_ALL)
strcat(status,"MODE_ALL");
strcat(status,"<br>");
sprintf(status + strlen(status),"Max : %d<br>",max);
sprintf(status + strlen(status),"Min : %d<br>",min);
sprintf(status + strlen(status),"Step : %d<br>",step);
sprintf(status + strlen(status),"Array : [ ");
for (size_t i = 0 ; i < 10 ; i++)
{
if(i<size_array_len)
sprintf(status + strlen(status)," %d,",size_array[i]);
}
if(10<size_array_len)
sprintf(status + strlen(status)," ... ");
sprintf(status + strlen(status)," ]");
sprintf(status + strlen(status),"<br>");
sprintf(status + strlen(status),"%s",styles_names[app->i_style]);
return status;
}
int elm_main(int argc, char **argv)
{
app = calloc(sizeof(APP), 1);
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
app->win = elm_win_util_standard_add("Main", "App");
elm_win_autodel_set(app->win, EINA_TRUE);
app->box = elm_box_add(app->win);
app->boxHor = elm_box_add(app->box);
app->boxHor2 = elm_box_add(app->box);
app->txtblock = evas_object_textblock_add(app->box);
app->bg = elm_bg_add(app->box);
elm_bg_color_set(app->bg,255,255,255);
Evas_Textblock_Style *style = evas_textblock_style_new();
evas_textblock_style_set(style,styles[0]);
evas_object_textblock_style_set(app->txtblock,style);
evas_object_textblock_text_markup_set(app->txtblock,contents[0]);
elm_box_horizontal_set(app->boxHor, EINA_TRUE);
elm_box_horizontal_set(app->boxHor2, EINA_TRUE);
evas_object_size_hint_weight_set(app->box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(app->box, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(app->box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(app->box, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(app->txtblock);
evas_object_show(app->bg);
evas_object_show(app->box);
evas_object_show(app->boxHor);
evas_object_show(app->boxHor2);
elm_box_pack_end(app->box, app->bg);
elm_box_pack_end(app->box, app->boxHor);
elm_box_pack_end(app->box, app->boxHor2);
elm_object_content_set(app->bg,app->txtblock);
elm_win_resize_object_add(app->win, app->box);
evas_object_resize(app->win, 320, 480);
for(int i = 0 ; i < BUTTON_ALL ; i++)
{
app->btn[i] = elm_button_add(app->boxHor);
evas_object_smart_callback_add(app->btn[i], "clicked", _btn_clicked, NULL);
elm_object_text_set(app->btn[i], BUTTON_STR[i]);
elm_box_pack_end(app->boxHor, app->btn[i]);
evas_object_show(app->btn[i]);
}
app->lbl_status = elm_label_add(app->boxHor2);
elm_object_text_set(app->lbl_status, get_fit_status(app->txtblock));
elm_box_pack_end(app->boxHor2, app->lbl_status);
evas_object_show(app->lbl_status);
evas_object_size_hint_weight_set(app->txtblock, EVAS_HINT_EXPAND,EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(app->txtblock, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(app->bg, EVAS_HINT_EXPAND,EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(app->bg, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(app->win);
elm_run();
return 0;
}
ELM_MAIN()
```
**Edje**
```
// compile: edje_cc source.edc
// run: edje_player source.edje
collections {
styles
{
style
{
name: "text_style";
base: "font=sans font_size=30 color=#FFF wrap=mixed ellipsis=1.0";
tag: "br" "\n";
tag: "ps" "ps";
tag: "tab" "\t";
tag: "b" "+ font_weight=Bold";
}
}
group {
name: "my_group"; // must be the same as in source.c
parts {
part
{
name: "background";
type: RECT;
scale: 1;
description
{
color: 0 0 0 0;
rel1.relative: 0.0 0.0;
rel2.relative: 1.0 1.0;
}
}
part
{
name: "text";
type: TEXTBLOCK;
scale: 1;
entry_mode: NONE;
effect: OUTLINE_SHADOW;
description
{
state: "default" 0.0;
rel1.to : "background";
rel1.relative: 0.0 0.0;
rel2.to : "background";
rel2.relative: 1.0 1.0;
text
{
style: "text_style";
align: 0.0 0.0;
text: "Hello World This is Me";
fit: 1 1;
fit_step: 1;
size_range: 30 200;
//fit_size_array: 20 40 60 80 100 200;
}
}
}
}
}
}
```
Found Task T5724 relative to this Feature
Reviewers: woohyun, bowonryu, cedric, raster
Subscribers: #committers, #reviewers, cedric
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9280
Change-Id: I4e55ddca27d69afed1c99f8f922a8e3277364932
Sungtaek Hong [Thu, 6 Oct 2016 05:35:03 +0000 (14:35 +0900)]
item is not packed homogeneously
@tizen_fix
Change-Id: I4529484a5215ed8fc4edd3462486e4e1bae535a5
Signed-off-by: Sungtaek Hong <sth253.hong@samsung.com>
Taehyub Kim [Mon, 28 Oct 2019 11:11:52 +0000 (20:11 +0900)]
elc_popup: don't allow the recalculation when the content_area is calculated
Change-Id: I166ed0ee99d3e26707e593526830b914ad675e32
Yeongjong Lee [Wed, 23 Oct 2019 07:49:30 +0000 (16:49 +0900)]
efl_ui_layout: replace efl_canvas_group_calculate with elm_layout_sizing_eval
ref
ef11a741ad768742f120955191c6aee3bf669114
@tizen_fix
Change-Id: I756c0f841233d77b03d45036df9765fc45e28df6
Taehyub Kim [Wed, 23 Oct 2019 07:12:28 +0000 (16:12 +0900)]
edje_entry: check empty string when key down event is called
@tizen_fix
Change-Id: I0118d46c7ce169b0dbb972b8bd963705b736e106
Yeongjong Lee [Tue, 22 Oct 2019 08:36:32 +0000 (17:36 +0900)]
elm_panel: disable efl_ui_focus_layer functions
This patch will be reverted with patch to disable focus manager.
@tizen_fix
Change-Id: Id8f6d6c9e5f20118f0d38500d4f19687e71ebde0
YeongJong Lee [Tue, 22 Oct 2019 08:34:37 +0000 (08:34 +0000)]
Revert "elm_widget: disable focus manager in tizen"
This reverts commit
754fc972036cdc95b88faacacbeb19d802d33cea.
Change-Id: Iaf0347bcba63f54d89240d52cac41f2e9ee4f1e5
Yeongjong Lee [Mon, 21 Oct 2019 08:04:04 +0000 (17:04 +0900)]
elm_widget: disable focus manager in tizen
`@empty` tag will disable efl_ui_focus_* functions which means focus manager
code doesn't work anymore in tizen.
@tizne_fix
Change-Id: Ie7bf0c485fde997a11b171a62d53ac78eebf8573
Wonki Kim [Tue, 22 Oct 2019 04:53:03 +0000 (13:53 +0900)]
ttrace: replace sprintf with snprintf
sprintf has a potentiality of BOF.
this patch replace it with snprintf to prevent the problem.
Change-Id: Id131277846519ecd6deae363a3da3d363590567a
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
Hosang Kim [Tue, 22 Oct 2019 02:56:40 +0000 (11:56 +0900)]
efl_ui_layout: size should be calculated immediately
When the child's size hint is changed, parent's size should be
calculated immediately
@tizen_only
Change-Id: Ice417e634da643ec88b6a0c61886f85a705e681d
Wonki Kim [Mon, 21 Oct 2019 11:10:02 +0000 (20:10 +0900)]
elm_config: replace ecore_file_cp with ecore_file_mv
ecore_file_cp can cause elm_config eet data invalid.
this patch replaces it with ecore_file_mv to prevent the problem.
Change-Id: I5e39ab88cf5ecb70e9d9823b43ebdcc92b2cfc51
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>