Chris Michael [Fri, 6 Jan 2017 14:33:58 +0000 (09:33 -0500)]
evas-wayland-shm: Fix formatting
NB: No functional changes, just reformatting so that this insane
one-liner wraps to 80...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Marcel Hollerbach [Fri, 6 Jan 2017 12:02:37 +0000 (13:02 +0100)]
eina: fix up last commit
i am sorry. I missed that i just freed the string and not the complete
buf. This now really frees the buf.
Marcel Hollerbach [Fri, 6 Jan 2017 11:18:32 +0000 (12:18 +0100)]
eina_buf: replace eina_strbuf_free_return with eina_xXxbuf_release
The api name free_return wasnt a good choice so it is changed to
release. This also moves the implementation to binbuf template so it is
available in all buf types.
Carsten Haitzler (Rasterman) [Fri, 6 Jan 2017 10:25:25 +0000 (19:25 +0900)]
eina - fix redefinition of word size if already defined
YeongJong Lee [Fri, 6 Jan 2017 09:38:02 +0000 (09:38 +0000)]
elm_code: Add 2 spaces auto indent after keywords
Summary:
When insert newline, check the previous line has keyword.
If so, insert 2 spaces indent more.
Test Plan:
1. run elementry_test - Code Editor or Edi.
2. Type some code with keywords.
3. Type <Return>.
4. Check that the indentation of newline is correct.
Reviewers: ajwillia.ms
Reviewed By: ajwillia.ms
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4543
Carsten Haitzler (Rasterman) [Fri, 6 Jan 2017 08:42:44 +0000 (17:42 +0900)]
evas gl - avoid a possible crash of tex upload of invalid sized image
so i had a crash where my bt said the image size is 1x1 but the img
struct said its 0x0, so put in protection to not upload a texture from
a 0x0 image... just for now... because this is odd - the image data is
a real ptr i can access and there should be at least 1 pixel... but i
can't be sure this fixes it as this is one of those "one offs" i cant
reproduce...
@fix
Carsten Haitzler (Rasterman) [Fri, 6 Jan 2017 07:35:09 +0000 (16:35 +0900)]
evas image preload - fix race condition that stops preloads
so if you queue a preload while a cancel is still pending the new
preload never happens. this fixes that. now it does but checking for
leftover tasks in the cancel cb and rescheduling a preload thread.
@fix
Mykyta Biliavskyi [Fri, 6 Jan 2017 08:30:19 +0000 (10:30 +0200)]
edje_edit: fix set the images set as image.normal value.
Added ability to set the images set by name into image
part image.normal attribute.
Add search the images set id for case when the image id doesn't find in
image entries list.
@fix
Jiyoun Park [Fri, 6 Jan 2017 06:40:09 +0000 (15:40 +0900)]
evas_image_main: fix memory leak of camera app -PLM[P161206-03545]
In gl engine, image objects try to unload image's pixel data after creating or updating the texture.
but image entry's reference is still 1, it is added to the pending_unloads list,
and it is cleaned when evas render function.
If elm image use preload feature, preload_done flag is true, so this image data cannot be removed from
pending_unloads list, it cause memory leak.
I think it is better to free image's pixel data in evas_cache_image_unload_data,
(not add to the pending_unloads list)
but it it complicated to modify.
so I'll remove the code to check preload_done flag in evas_common_rgba_pending_unloads_cleanup function.
this flag check was added because of gl preloading, but now gl preloading feature is disabled.
this flag is related with https://phab.enlightenment.org/D2823
I tested photocam, but crash doesn't occur anymore, even though removing flag check.
Carsten Haitzler (Rasterman) [Fri, 6 Jan 2017 00:37:40 +0000 (09:37 +0900)]
evas image skip header - more fixes for when images fail to load
this fixes some more issues i have found in using skip header like if
the file doesn't exist etc. recent feature add so not a fix.
Cedric BAIL [Fri, 6 Jan 2017 00:33:29 +0000 (16:33 -0800)]
eina: try to provide __WORDSIZE to system that don't have it aka OpenBSD.
Derek Foreman [Thu, 5 Jan 2017 19:38:25 +0000 (13:38 -0600)]
wayland_shm: Yeah I dunno
This doesn't make any sense to me so it can't be right, right?
Fixes session recovery. If it breaks something else talk to devilhorns. :)
Derek Foreman [Thu, 5 Jan 2017 19:36:35 +0000 (13:36 -0600)]
wayland_shm: Add a way to update the stored wayland objects
On session recovery the engine needs to be given new copies of the
surface, dmabuf, and shm objects to run in the new connection.
This fixes session recovery breakage introduced when we stopped recreating
the outbuf on reconfigure.
Derek Foreman [Thu, 5 Jan 2017 19:33:19 +0000 (13:33 -0600)]
wayland_shm: Add a force flag to surface reconfigure
We're going to need a way to force reconfigure unconditionally to make
session recovery work again.
Derek Foreman [Wed, 4 Jan 2017 23:20:05 +0000 (17:20 -0600)]
ecore_wl2: Fix accidental re-use of tmp var
Oops, same tmp var for a nested inlist traverse. That won't end well.
Derek Foreman [Wed, 4 Jan 2017 19:12:56 +0000 (13:12 -0600)]
ecore_wl2: Don't request shell surfaces for all window types
Now that cursors are "windows", this results in a mess. So skip at least
NONE and DND for now.
Derek Foreman [Wed, 4 Jan 2017 17:40:17 +0000 (11:40 -0600)]
ecore_wl2: Prevent use after free on input deletion
Window structs keep inputs around, so we should sweep through them
and NULL out any stale ones on a delete.
Derek Foreman [Wed, 4 Jan 2017 16:33:34 +0000 (10:33 -0600)]
ecore_wl2: Remove the rest of the cursor frame callback
Oops, I made a clean spot, now I need to clean up the rest of this.
ref
641dfab516b8de1cf27ca07671ff73de6c8d32bf
Daniel Kolesa [Thu, 5 Jan 2017 14:58:55 +0000 (15:58 +0100)]
eolian: stricter implement/constructor verification
The system now verifies whether the class of an implement or
constructor exists within the inheritance hierarchy. It also
properly checks duplicates everywhere and prints better error
messages.
Marcel Hollerbach [Tue, 3 Jan 2017 09:52:27 +0000 (10:52 +0100)]
eina_strbuf: add eina_strbuf_free_return
Summary:
For a function which just composes a string with strbuf its quite
usefull to return the string while its freed.
This makes a function like:
{
Eina_Strbuf *buf;
char *path;
buf = eina_strbuf_new();
eina_strbuf_append(buf, "test");
eina_strbuf_append_printf(buf, "%s-%d.edj", "test", 0);
path = eina_strbuf_string_steal(buf);
eina_strbuf_free(buf);
return path;
}
To:
{
Eina_Strbuf *buf;
buf = eina_strbuf_new();
eina_strbuf_append(buf, "test");
eina_strbuf_append_printf(buf, "%s-%d.edj", "test", 0);
return eina_strbuf_free_return(buf);
}
Which is a bit more handy.
Test Plan: just run make check
Reviewers: raster, cedric
Subscribers: jpeg
Differential Revision: https://phab.enlightenment.org/D4545
JEONGHYUN YUN [Thu, 5 Jan 2017 08:26:32 +0000 (17:26 +0900)]
elm_panel: Add _scrollable_layout_resize internal funcion for refactoring
Summary:
Remove duplicated code in _elm_panel_efl_gfx_size_set
and _elm_panel_scrollable_content_size_set.
Reviewers: jpeg, woohyun, eunue, jypark
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4553
Jean-Philippe Andre [Thu, 5 Jan 2017 08:15:42 +0000 (17:15 +0900)]
colorselector: Switch to Efl.Ui.Box internally
This doesn't change anything (in theory) but was to test the
box implementation. Conclusion: it's not much better than
elm_box. Also, homogenous mode isn't set because the layout
is completely broken (+ sets a min size equal to the object
size, thus can not resize down ever). The palette's objects
have the same size anyway.
Jean-Philippe Andre [Thu, 5 Jan 2017 07:14:27 +0000 (16:14 +0900)]
evas: Slightly optimize size hints
Object size hints are stored in a specially allocated struct
(from a mempool) and even a call to size_hint_set(default_values)
will allocate this struct. This patch avoids unnecessary allocations.
Originally I was trying to fix an infinite recalc loop but it
magically vanished...
Jean-Philippe Andre [Wed, 4 Jan 2017 11:17:21 +0000 (20:17 +0900)]
button: Add support for efl_text_set
For now a very quick and dirty solution, relying on elm_layout
legacy APIs.
Jean-Philippe Andre [Wed, 4 Jan 2017 11:07:42 +0000 (20:07 +0900)]
Revert "elm_layout: Implement Efl.Text"
This reverts commit
584e17ae84750b0c8a9bc92f41c767073a41fc94.
After talking to @herdsman (before xmas) we concluded that we
didn't necessarily want a generic version of efl_text_set/get
for elm_layout. Instead, each widget that should have a default
text part should implement text_set/get themselves (very simple).
Note that Efl.Ui.Text somehow does not "implement" efl_text when
looking at the eolian files. It works by composition.
JEONGHYUN YUN [Thu, 5 Jan 2017 01:26:29 +0000 (10:26 +0900)]
elm_panel: Add get function in scrollable_content_size property
Summary:
Added get function for getting the size of the scrollable panel.
Additionally, added some exception handling code in scrollable_content_size_set
Reviewers: woohyun, eunue
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4549
Chris Michael [Wed, 4 Jan 2017 19:23:52 +0000 (14:23 -0500)]
elementary: Support xdg_shell version 6 show_window_menu function
As we now support xdg_shell version 6 on the client-side, we need to
use the zxdg_toplevel_v6 function call to show window menus.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Chris Michael [Wed, 4 Jan 2017 19:22:46 +0000 (14:22 -0500)]
ecore-evas-wayland: Support zxdg_shell version 6 configure_ack
Small patch to support configure acknowledgement with xdg_shell
version 6.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Chris Michael [Wed, 4 Jan 2017 19:20:42 +0000 (14:20 -0500)]
ecore-wl2: Add support for xdg shell version 6
This patch adds support (client-side) for xdg_shell version 6.
Enlightenment is currently using this version as it's desktop shell,
so we need to support it client-side also.
fixes T4998
@feature
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Chris Michael [Wed, 4 Jan 2017 16:08:49 +0000 (11:08 -0500)]
ecore-wl2: Fix formatting
NB: No functional changes, just cleaning up formatting before the
serious work begins.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Derek Foreman [Wed, 4 Jan 2017 14:54:03 +0000 (08:54 -0600)]
wayland_shm: Shut up coverity
Quite cosmetic, but I suppose this is better than flagging as false
positive.
CID1368209
Chris Michael [Wed, 4 Jan 2017 13:12:21 +0000 (08:12 -0500)]
evas-gl-generic: Mark 'data' parameter as unused
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Carsten Haitzler (Rasterman) [Wed, 4 Jan 2017 11:18:42 +0000 (20:18 +0900)]
efl header skip with preload - fix seg on invalid file
for invalid files we didn't handle this case, so fix it - recent
commit/feature add.
Carsten Haitzler (Rasterman) [Wed, 4 Jan 2017 10:21:02 +0000 (19:21 +0900)]
wayland egl - unbork after manmower broke rendering removing swapinterval
so removing eglSwapInterval() is a very poor idea as then... who knwos
what it is? this broke at least nouveau (under weston AND under
enlightenment). a very skillful b0rk here than i luckily caught
quickly! :)
Carsten Haitzler (Rasterman) [Wed, 4 Jan 2017 08:44:13 +0000 (17:44 +0900)]
openssl 1.1 build break fixes
this fixes building against openssl 1.1 since it broke api in various
ways by hiding structs and deprecating api's (this causes warnings not
breaks unlike the struct hiding). this adapts to these changes and
makes efl build again.
@fix
Haegeun Park [Wed, 4 Jan 2017 02:45:56 +0000 (11:45 +0900)]
[Evas GL Thread 1] evas: Fixed indentation of evas_thread_render.c
Summary:
@fix
Change-Id: I411fe6d75dc7b15c0d7f19f165ea4b0cc3b28c12
Reviewers: sung, jpeg, cedric, raster
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4525
Jee-Yong Um [Wed, 4 Jan 2017 02:14:46 +0000 (11:14 +0900)]
edje_cc: Keep lookups for removed program
Summary:
Program lookups triggered by removed edje program should be removed when removing
edje program, but program lookups for removed program should be kept to check
exitence of removed program.
This patch keeps lookups for removed program.
Reviewers: cedric, jpeg
Reviewed By: jpeg
Differential Revision: https://phab.enlightenment.org/D4544
Guilherme Iscaro [Wed, 4 Jan 2017 01:49:22 +0000 (10:49 +0900)]
Evas Canvas: Remove focused_objects property.
Summary:
This property is not needed and it will only increase the API size.
One can simple achieve the same behaviour by simple doing:
//C code...
Eina_List *l;
Evas_Device *dev;
devices = evas_device_list(evas, NULL);
EINA_LIST_FOREACH(devices, l, dev)
{
Evas_Object *obj;
if (evas_device_class_get(dev) != EVAS_DEVICE_CLASS_SEAT)
continue;
obj = evas_canvas_seat_focus_get(dev);
//Do something with the focused object.....
}
//More C code...
Reviewers: bdilly, barbieri, conr2d, jpeg
Reviewed By: jpeg
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4547
SangHyeon Lee [Wed, 4 Jan 2017 05:46:46 +0000 (14:46 +0900)]
gengrid: adding sizing eval when gengrid min size is changed
Adding sizing eval when gengrid min width and height is changed,
so need to re-evaluate properly.
Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
SangHyeon Lee [Wed, 4 Jan 2017 05:32:11 +0000 (14:32 +0900)]
genlist : fixing wrong item realize bug when block is changed
Summary :
If current realized item is changed to another block which
was unrealized, item still stay in realized states because
new block is unrealized.
so when adding item to new block, adding realized state check
to change block realized state correctly.
Test Plan :
The issue is happen in eflete edc group list view.
when you expand and contract the tree view, if child is
bigger then block size, items under the current tree still
floating on the child items.
Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
SangHyeon Lee [Tue, 3 Jan 2017 10:16:06 +0000 (19:16 +0900)]
genlist : initialize disabled content for reusing
initialize disabled content for reusing again.
Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
Derek Foreman [Tue, 3 Jan 2017 23:07:54 +0000 (17:07 -0600)]
wayland_egl: Stop setting swap interval to 0
We have some "vsync" variable cargo culted from somewhere that is never
properly set, so is always 0 because it's in a calloced structure.
It's then used to set eglSwapInterval() to 0 always, which results
in mesa using wl_display_sync() instead of wl_surface_frame() for
its frame ready callback mechanism.
Remove it entirely and use the sensible default swapinterval.
Derek Foreman [Tue, 3 Jan 2017 22:40:21 +0000 (16:40 -0600)]
wayland: Fix cursor surface frame calls
The common code was skipping frame callback when no shell surface was
present - cursors aren't shell surfaces.
Add the frame callback to the common path and remove the bespoke callback
from the cursor code.
Derek Foreman [Tue, 3 Jan 2017 20:20:18 +0000 (14:20 -0600)]
evas_shm: Fix dmabuf failure
This keeps us from accidentally going through the fallback path twice and
crashing. It also clears up some refcounting problems that would have led
to leaked memory in the crash case.
fix T5037
Gustavo Sverzut Barbieri [Tue, 3 Jan 2017 14:23:43 +0000 (12:23 -0200)]
ecore_fb: allow ecore_fb to not setup VT.
Some systems won't allow VT to be setup due permissions to KDSETMODE
to KD_GRAPHICS.
Introduce $ECORE_FB_NO_VT envvar to allow skip that setup.
Gustavo Sverzut Barbieri [Tue, 3 Jan 2017 14:41:07 +0000 (12:41 -0200)]
ecore_fb_init(): use 'name' parameter similar to ecore_evas_fb_new().
Instead of assuming /dev/fb/0 or /dev/fb0, use the given 'name'
parameter in a similar way to ecore_evas_fb_new(): a number to be
parsed with 'strtoul()'.
Without this calling ecore_evas_fb_new() or ecore_evas_new() with
'display=1' will produce incorrect results.
@fix
Jaeyong Hwang [Tue, 3 Jan 2017 07:08:56 +0000 (16:08 +0900)]
evas: Add code to change the object's chage flag in evas_object_image_data_set
Summary:
When using evas_object_image_data_set(obj, data), if you give the value of data to NULL, the image data is free.
However, Since you have not set a flag in the image object to be modified, it will not be processed in the next render loop.
Eventually, the image data is erased, but you see the image before it was erased.
If evas_object_image_data_update_add() is used to solve this problem, the operation of the function is skipped because the values of w and h in image are 0.
So, If data is NULL, I modified it to call evas_object_change() in evas_object_image_data_set().
Test Plan:
Sample code
{F61599}
{F61601}
Reviewers: Hermet, jiin.moon, eunue, jpeg
Reviewed By: jpeg
Subscribers: jpeg, cedric
Differential Revision: https://phab.enlightenment.org/D4520
SangHyeon Lee [Tue, 3 Jan 2017 08:35:35 +0000 (17:35 +0900)]
gengrid : enable layout sizing eval and content min limit feature in gengrid
Summary :
As the child of layout and scroll interface user,
gengrid need to support content min limit feature to set min size
by layout sizing eval.
Test Plan :
Set elm_scroller_content_min_limit to gengrid and get min size off
gengrid object.
Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
Jiwon Kim [Mon, 2 Jan 2017 09:38:59 +0000 (18:38 +0900)]
evas: fix adjustment logic about image border
Summary:
If border left+right >= image width, center area does not rendered.
Although adjusement logic, _draw_image()'s src_w can be a 0.
This commit try to secure center area at least 1 pixel.
This should fix T5057
@fix
Reviewers: raster, jypark, jpeg
Subscribers: cedric
Maniphest Tasks: T5057
Differential Revision: https://phab.enlightenment.org/D4538
Jee-Yong Um [Mon, 2 Jan 2017 07:48:17 +0000 (16:48 +0900)]
Elm.Widget: rename "event.*" methods to solve name conflict
Summary:
Elm.Widget.event_callback_add conflicts with Efl.Object.event_callback_add.
To solve this problem, "widget_" prefix is added to methods starting with
"event".
Reviewers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4521
Marcel Hollerbach [Mon, 2 Jan 2017 16:18:31 +0000 (17:18 +0100)]
elementary_config: make compare of web_backend more secure
web_backend can get NULL when there is a error with the entry. Make sure
the pointers are different, or they are not NULL and the string contents
are different.
Daniel Kolesa [Mon, 2 Jan 2017 15:25:26 +0000 (16:25 +0100)]
eolian: correctly set the empty/auto flags in implements
Daniel Kolesa [Mon, 2 Jan 2017 15:09:04 +0000 (16:09 +0100)]
eolian: disallow duplicate implements
Daniel Kolesa [Mon, 2 Jan 2017 14:28:26 +0000 (15:28 +0100)]
eolian: fill ctor class early on
Daniel Kolesa [Mon, 2 Jan 2017 14:00:38 +0000 (15:00 +0100)]
eolian: no need to fill func in eolian_implement_function_get
All implements are now filled in the previous stage.
Daniel Kolesa [Mon, 2 Jan 2017 13:35:17 +0000 (14:35 +0100)]
eolian: partially clean up implement filling logic
Daniel Kolesa [Mon, 2 Jan 2017 13:02:44 +0000 (14:02 +0100)]
eolian: require specification of either get or set in property impls
Carsten Haitzler (Rasterman) [Mon, 2 Jan 2017 13:58:24 +0000 (22:58 +0900)]
evas loader - don't stat NULL file paths
something i found valgrinding my recent async improvments. statting
null path. fix it.
Jaehyun Cho [Mon, 2 Jan 2017 10:59:06 +0000 (19:59 +0900)]
edje_cc_parse: Fix to insert missing double quotation marks
Jaehyun Cho [Mon, 2 Jan 2017 10:25:45 +0000 (19:25 +0900)]
edje_cc_parse: Compile EDC file whose path contains space character.
Previously, edje_cc could not compile EDC file whose path contains space
character since edje_cc interpreted the EDC file as separate 2 inputs.
(i.e. "input file.edc" was interpreted as "input" and "file.edc")
This patch enables edje_cc to interpret above case correctly.
Carsten Haitzler (Rasterman) [Sun, 1 Jan 2017 23:40:37 +0000 (08:40 +0900)]
evas generic loader - expand buffers in case of weird install location
so we had just 128 bytes for path to generic loader utility. in most
cases this is plenty but if you have bizarre symlinks and long paths
we may run out of space, so move up to 4k buffers as this is
realistically the max path len anyway on a system.
@fix
Carsten Haitzler (Rasterman) [Sun, 1 Jan 2017 13:15:24 +0000 (22:15 +0900)]
evas image async preload - add option to also make header load async
to date if you use async preload we still load the header
synchronously and this can be horrible especially with generic
loaders. there is no way to farm this off to the preload thread. now
there is. youhave to set it as a skip head load option before doing a
file_set AND you need to issue a preload ... but now it's possible.
@feature
Carsten Haitzler (Rasterman) [Fri, 30 Dec 2016 09:55:55 +0000 (18:55 +0900)]
evas cutouts - quickly avoid huge per issues with large nos of cutouts
i found evas_common_draw_context_apply_cutouts() was procsessing 300+
cutouts and as it's O(n^2)/2 to try and merge adjacent rects for
cutouts this really performs like complete junk. we apply cutout rects
a LOT. this is not the best solution, but it's quick and much faster
than doing the clipouts which drop framerate to like 1-2fps or so in the
nasty case i say (tyls -m of photos in a dir with a 2160 high
terminal).
this figures out the target area to limit the count of rects
significantly so O(n^2) is far far better when n is now < 10 most of
the time. and for the few operations where it's a high value this now
uses qsort to speed up merges etc. etc.
@optimize
Sungtaek Hong [Mon, 2 Jan 2017 06:41:20 +0000 (15:41 +0900)]
elm_naviframe: resize previous view before item pop transition.
Summary:
- In commit rEFL9f5e9ec7ca120242a92ac97fb20016263c152d8e
previous view is raised after item pop transition
so that current view's pop animation can be shown.
- But, previous view has to be in it's proper size
during transition because some of animation might
show previous view.
Reviewers: Jaehyun_Cho
Subscribers: cedric, conr2d, jpeg
Differential Revision: https://phab.enlightenment.org/D4535
Minkyoung Kim [Mon, 2 Jan 2017 06:29:48 +0000 (15:29 +0900)]
Evas GL:Bind texture to correct one.
Summary:
If user bind textureA and want to use it continuously, do not call glBindTexture(textureA) again.
But expect that textureA will be binding.
So EvasGL sould not change binded texture silently.
Restore texture to previous bound one after allocating new texture.
And when destroy texture, reset texture to 0 if it is current bound texture.
Test Plan: Tizen 3.0
Reviewers: wonsik, dkdk, cedric, jpeg
Reviewed By: jpeg
Differential Revision: https://phab.enlightenment.org/D4524
Jiwon Kim [Mon, 2 Jan 2017 06:22:04 +0000 (15:22 +0900)]
evas: initalize orient property in file_set()
Summary:
Someone calls evas_object_image_file_set() and set orient,
and then re-set another file.
At that time, there is a mismatch between Evas_Image_Data's
cur->orient and engine's orient data.
So, "file_set(a) -> orient_set(90) -> file_set(b) -> orient_set(90)"
is not working now.
Therefore, when a file_set() is finished, initialization is needed.
@fix
Reviewers: jypark, jpeg
Reviewed By: jpeg
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D4515
Sungtaek Hong [Mon, 2 Jan 2017 06:19:51 +0000 (15:19 +0900)]
elm_index: apply mirrored layout for index box
Summary:
- When mirrored is set, horizontal box packs item
reversely, from right to left. However, index box
packs index item the same as before, from left to right.
This commit changes index box custom layout to sync
with other box.
Test Plan:
- enable mirrored UI, or use elm_config_mirrored_set(EINA_TRUE);
run elementary_test, "Index Horizontal".
- Observe index item packs in a same direction with box contents.
Reviewers: cedric, Hermet, jpeg
Subscribers: conr2d
Differential Revision: https://phab.enlightenment.org/D4512
Hosang Kim [Mon, 2 Jan 2017 06:17:40 +0000 (15:17 +0900)]
evas_events: add checking NULL logic to source mouse event.
Summary:
When the proxy's source is updated, the proxy's event list will be
updated, too. But there is no way now. So add defensive code for
protecting segment fault.
@fix
Reviewers: woohyun, raster, jpeg
Reviewed By: jpeg
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D4508
Alok Mishra [Mon, 2 Jan 2017 06:14:13 +0000 (15:14 +0900)]
elm_config: fix for dereferencing after comparing to NULL
Summary:
arr has been checked earlier so as to avoid when it is NULL.
If there is a possibility of being NULL earlier
then it should be checked even when freeing.
So added the NULL check before free.
@fix
Reviewers: singh.amitesh, bu5hm4n, tasn, cedric, raster, atulfokk, hyunseok, minkyu, Hermet, jpeg
Reviewed By: jpeg
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4537
Andy Williams [Sun, 1 Jan 2017 20:10:07 +0000 (20:10 +0000)]
elm_code: remove unneeded init code.
Move elm_code init to the main elementary as that's where it lives
Andy Williams [Sun, 1 Jan 2017 18:48:13 +0000 (18:48 +0000)]
elm_code: select when navigating or clicking with shift
test plan: hold shft whilst using a cursor key or mouse click with shift pressed
maxerba [Sun, 1 Jan 2017 15:30:36 +0000 (16:30 +0100)]
Updating italian translation
YeongJong Lee [Sun, 1 Jan 2017 14:29:43 +0000 (14:29 +0000)]
elm_code: refactor auto indent about brace matching
Summary: return value of brace matching function no longer need free().
Test Plan:
1. run elementry_test - Code Editor or Edi.
2. Type some code with braces.
3. Check that closing brace has correct indent.
Reviewers: ajwillia.ms
Reviewed By: ajwillia.ms
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4540
Jaeun Choi [Fri, 30 Dec 2016 07:30:34 +0000 (16:30 +0900)]
elm_panel: decide whether a scrollable panel is open or not only when it has a size
in _state_sync() function, scrollable content's position is used to tell
whether the panel is open or not. in case of a top panel, for example,
it is considered to be open when the content's vertical position equals to zero.
however, this logic has a defect in that the position is always zero
if the content size is zero - not resized properly yet. it caused unwanted results.
this patch added some codes to check
1. if the panel's width or height is bigger than zero
2. if the box which contains panel contents is visible (resizable)
@fix
Mykyta Biliavskyi [Thu, 29 Dec 2016 14:14:23 +0000 (16:14 +0200)]
Edje_cc: update images.set.image names when write edj file.
There are few image formats that converted into *.png on data writing
stage (*.svg, *.tgv). After converting image, this image entry name
changes by <name>.<vector format ext>.png. This make possible save
vector images into edj file.
Because images set could contain vector images too - after save on
disk set image entry name wasn't updated. And still have original name:
<name>.<vector format ext>. This commit update image set entries
name accordingly to the global pool of images.
@fix
Marcel Hollerbach [Tue, 27 Dec 2016 21:25:30 +0000 (22:25 +0100)]
ecore_thread: reset waiter and worker when we have failed
otherwise the func_end and func_cancel can get into a endless recursion.
Carsten Haitzler (Rasterman) [Wed, 28 Dec 2016 10:01:38 +0000 (19:01 +0900)]
edje_cc - fix warning about freeing a const char ptr
yes - the type is const char * for edje runtime (the library) but in
edje_cc we strdup these strings and yes - assign them to a const char *
thus the warning and the need to cast. it's specific co edje_cc only
and so this is correct.
Carsten Haitzler (Rasterman) [Wed, 28 Dec 2016 09:51:33 +0000 (18:51 +0900)]
eldbus - fix warning for possibly undefined value being sent
this ensures the integer "id" is at least set before using it, though
reality is it will be set, it's better to have less warnings and there
isn't any other way to silence this warning other that setting it.
Carsten Haitzler (Rasterman) [Wed, 28 Dec 2016 03:56:08 +0000 (12:56 +0900)]
evas - clean up whitespace and 80 column wrapping and commented out code
this doenst change functionality but just cleans up the file
whitespacing and formatting and removed commented out junk, 80 column
wrapping/overflow etc.
Carsten Haitzler (Rasterman) [Wed, 28 Dec 2016 03:40:14 +0000 (12:40 +0900)]
evas - use freeq for common and cache images
this makes software rgba images and cache images use freeq to try and
minimize possible bugs and crashes if we hit use of freed data for
images.
Andy Williams [Tue, 27 Dec 2016 22:17:01 +0000 (22:17 +0000)]
elm_code: Fix another public API using the wrong order
Andy Williams [Tue, 27 Dec 2016 21:12:49 +0000 (21:12 +0000)]
elm_code: Fix filename/path for non-file based instances
And add tests appropriately
Daniel Kolesa [Tue, 27 Dec 2016 20:53:00 +0000 (21:53 +0100)]
eolian: enable cyclic dependencies between classes
Daniel Kolesa [Tue, 27 Dec 2016 18:37:15 +0000 (19:37 +0100)]
eolian: remove old property impl syntax and clean up parsing
Daniel Kolesa [Tue, 27 Dec 2016 18:33:12 +0000 (19:33 +0100)]
eolian: allow new property impl syntax with auto/empty
Daniel Kolesa [Tue, 27 Dec 2016 18:15:41 +0000 (19:15 +0100)]
elm: use new property implement syntax everywhere
Marcel Hollerbach [Tue, 27 Dec 2016 16:49:35 +0000 (17:49 +0100)]
ecore_thread: null out the struct before returning it
it can contain old callback values which are not overwritten in every
case. This just ensures that in both cases, empty trasher or none empty
trasher, are returning the same state of the struct.
Daniel Kolesa [Tue, 27 Dec 2016 16:48:44 +0000 (17:48 +0100)]
emotion: use new property impl syntax
Daniel Kolesa [Tue, 27 Dec 2016 16:47:00 +0000 (17:47 +0100)]
eio, edje: use new property impl syntax
Daniel Kolesa [Tue, 27 Dec 2016 16:16:17 +0000 (17:16 +0100)]
eolian gen: properly deal with __eolian wrappers and mixed prop impls
Daniel Kolesa [Tue, 27 Dec 2016 16:00:05 +0000 (17:00 +0100)]
ecore audio: use new property impl syntax
Daniel Kolesa [Tue, 27 Dec 2016 15:58:07 +0000 (16:58 +0100)]
ecore con: use new property impl syntax
Daniel Kolesa [Tue, 27 Dec 2016 15:39:52 +0000 (16:39 +0100)]
eldbus: use new property impl syntax
Daniel Kolesa [Tue, 27 Dec 2016 15:37:41 +0000 (16:37 +0100)]
evas: use new property impl syntax
Daniel Kolesa [Tue, 27 Dec 2016 15:19:06 +0000 (16:19 +0100)]
ecore: use new property impl syntax
Daniel Kolesa [Tue, 27 Dec 2016 15:12:25 +0000 (16:12 +0100)]
ector: use new property impl syntax
Daniel Kolesa [Tue, 27 Dec 2016 15:06:19 +0000 (16:06 +0100)]
efl: move some eo files to new property impl syntax
Daniel Kolesa [Tue, 27 Dec 2016 15:05:22 +0000 (16:05 +0100)]
eolian: require semicolon after get/set in new property impl syntax
Ivan Furs [Tue, 27 Dec 2016 14:20:58 +0000 (16:20 +0200)]
eio: Correct deletion backend
Summary:
This patch fixes the bug Fileselector.
When backend is deleted need to remove event handler from the list.
This commit adds ecore_main_win32_handler_del for correct clean
handlers for cases when monitor backend was created by
eio_monitor_backend_add(Windows method) or eio_monitor_fallback_add. To
remove them needed to use eio_monitor_backend_del(Windows method) or
eio_monitor_fallback_del. To identify the method which should free
backend was added flag monitor->fallback instead of using static
_eio_monitor_win32_native. This solves conflicts if 2 monitors was
created and the second monitor changed the _eio_monitor_win32_native
variable value. When 1 monitor removed it will be deleted correctly .
@fix
Reviewers: NikaWhite
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4518
Andrii Kroitor [Tue, 27 Dec 2016 13:52:30 +0000 (15:52 +0200)]
ecore_main: don't wait on marked to delete handlers on Windows
This could lead to greedy wait with 100% CPU consumption because on wait
error we never reach actual handlers deletion.