Commit Graph

14524 Commits

Author SHA1 Message Date
Jinyong Park 3271ec8d18 theme: return enum from elm_widget_style_set instead of bool
Summary:
if trying to apply incorrect theme, widget apply default theme and return TRUE.
so there is no way to check it really apply correct theme.
To resolve this problem, _elm_theme_set return three type enum

* related history : 4ca3ef4514
* elm_object_style_set is public api, so I didn't change it.
* typedef name [ Theme_Apply ] is temporarily, please suggest better one.

@fix

Reviewers: singh.amitesh, herb, Hermet, cedric, jpeg, raster

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4073
2016-07-01 15:09:43 +09:00
Amitesh Singh 1c358205d0 elm: fix compilation
"
make[1]: *** No rule to make target 'efl_ui_text.h', needed by 'all-am'.  Stop.
"
2016-07-01 09:55:51 +05:30
Jaehwan Kim 3b349e9d71 edje_pick: load just used images.
If the edj is made by partial groups, the images that groups use
should be included.

@fix
2016-07-01 11:33:21 +09:00
Derek Foreman 10f2e9c15f wayland_shm: free dmabuf resources on fallback
Add destructors for the buffer managers, and clean up properly when
falling back.

Fixes Coverity CID1357163 and CID1357162
2016-06-30 13:44:51 -05:00
Vitalii Vorobiov 744fa9bba1 elc_hoversel: just little fix of expand/noitem behavior
when hoversel has no item at all and use clicks on it, then it goes into
state called "expanded".
and so then, no matter how many items user would try to add, hoversel won't work
anymore.

@fix
2016-06-30 21:14:26 +03:00
Stefan Schmidt 61afb3360e examples: update various gitignore files for new example binaries
These have been forgotten to be added recently.
2016-06-30 18:15:44 +02:00
Stefan Schmidt 86525c3dcf atspi_image: improve existing documentation
Mixin and property descriptions.
2016-06-30 18:15:44 +02:00
Stefan Schmidt 63e1a87bc7 atspi_widget_action: add mixin description 2016-06-30 18:15:44 +02:00
Stefan Schmidt b2385840d3 elm_scrollable: add mixin description 2016-06-30 18:15:44 +02:00
Stefan Schmidt fca0105b02 atspi_component: improve existing documentation
Ad more descriptions, consolidate property descriptions and fix smaller
problems.
2016-06-30 18:15:44 +02:00
Stefan Schmidt 740e438627 atspi_action: improve existing documentation
Fix typos, add parameter descriptions and consolidate property describtions.
2016-06-30 18:15:44 +02:00
Stefan Schmidt 6248d70606 atspi_accessible: improve existing documentation
Make sure we describe whole properties and not getters and setters only. Adding
some more docs while being there.
2016-06-30 18:15:43 +02:00
Daniel Kolesa ab2e608239 eolian: add support for static and terminated arrays
Adds two new type types, STATIC_ARRAY and TERMINATED_ARRAY. Static arrays are
only allowed as struct members right now - they translate to regular C static
arrays (allowing them elsewhere wouldn't be good, as C isn't very good at
working with the size information). Terminated arrays are basically sequences
of data terminated at the end. The base type of static arrays can be any type
that is not marked ref (explicit ref may get allowed later). The base type of
terminated arrays has the same restriction plus that it has to be either
implicitly reference type (i.e. translating to pointer in C), integer type
or a character. In case of ref types, the terminator is NULL. In case of
integer types, the terminator is a zero. In case of character types, the
terminator is also a zero (null terminator like C strings).

@feature
2016-06-30 16:59:21 +01:00
Chris Michael ff7a5e4f1b ecore-wl2: Fix issue where hash would not get destroyed on error
Coverity reports that we could not reach the eina_hash_free here on
erorr condition. This was due to an erroneous return NULL above the if
(hash_create) check.

Fixes Coverity CID1357171

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-06-30 11:14:40 -04:00
Chris Michael 7b0a1933a0 ecore-drm2: Don't leak return from _output_name_get function
Coverity reports that we end up leaking the return from
_output_name_get as the storage is never freed.

Fixes Coverity CID1357161

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-06-30 11:11:22 -04:00
Chris Michael 79277d1cb4 ecore-wl2: Fix issue of passing negative number to close() and read()
We should be checking the return value of ecore_main_fd_handler_fd_get
calls as they can return a negative number...which cannot be passed to
the close() or read() functions.

Fixes Coverity CID1357152 and CID1357153

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-06-30 11:09:11 -04:00
Chris Michael 35f76fe8a8 ecore-wl2: Check the return value of ecore_main_fd_handler_fd_get
This patch fixes an issue where ecore_main_fd_handler_fd_get could be
returning a negative number and passing that to close() which cannot
accept negative numbers.

Fixes Coverity CID1357152

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-06-30 11:05:14 -04:00
Chris Michael 0da58a8d78 ecore-evas-wayland: Fix issue of passing wrong values to resize
Coverity detected that the same code was being passed to resize
regardless of canvas orientation. This patch fixes the issue by
passing the proper values to window_resize.

Fixes Coverity CID1357150

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-06-30 11:03:07 -04:00
Chris Michael 0eac1e4372 ecore-wl2: Fix derefence after null check
'window' here could potentially be null so we should be checking that
it is valid before trying to assign event window

Fixes Coverity CID1357148

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-06-30 11:01:22 -04:00
Chris Michael dce25efef4 elementary: Fix explicit null dereference
This patch fixes an issue reported by coverity where 'type' variable
could be null and passing null to strcmp is not good ;)

Fixes Coverity CID1357147

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-06-30 10:59:28 -04:00
Chris Michael 59a09e04aa evas-wayland-shm: Remove logically dead code
Coverity reports that this bpp check is actuall dead code due to the
fact that bpp can never be < 0.

Fixes Coverity CID1357144

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-06-30 10:56:01 -04:00
Chris Michael 0f965446a8 elput: Check return of read function call
If we fail to read any bytes from the fd, then we should be returning
a failure here.

Fixes Coverity CID1357143

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-06-30 10:54:22 -04:00
Chris Michael 1fb3c33286 ecore-evas: Fix error handling issues in wayland_shm engine
This patch fixes 2 Coverity issues where engine_info_set was being
called, but the return was never being checked.

Fixes Coverity CID1357141 and CID1357142

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-06-30 10:51:29 -04:00
Chris Michael 837108050b ecore-input: Check return fo ecore_main_fd_handler_fd_get
This patch fixes 2 coverity Error handling issues.
ecore_main_fd_handler_fd_get can return a negative fd on error so we
should be checking that return before trying to make use of the fd.

Fixes Coverity CID1356632 and CID1356624

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-06-30 10:47:56 -04:00
Daniel Hirt 6df439b3e9 edje: fix return type for part_text_cursor_content_get
Another spot that should've stayed "char *" and not "string". Also added the
missing 'own'.
Found due to a warning after ee36fdc218.
2016-06-30 17:05:13 +00:00
Stefan Schmidt 9f43ef3fd9 ector: add basic description to renderer mixins 2016-06-30 15:17:58 +02:00
Stefan Schmidt dcb7751f35 ector: further document gl buffer base class 2016-06-30 15:17:58 +02:00
Stefan Schmidt 159171a073 efl: gfx_shape: add some more documentation and improve existing one 2016-06-30 15:17:58 +02:00
Stefan Schmidt ee18b418e2 efl: gfx_shape: document property itself and not the getters and setters 2016-06-30 15:17:58 +02:00
Vitalii Vorobiov 9a2ad54681 edje_edit: remove useless pointer grab as it conflicts with elementary combobox
Summary:
So currently having an issue related to clip_to function from
EdjeEdit API. I am not sure about how and why combobox use pointer grabbing
(just started to use it) but when setting NULL into clip_to of edje edit it
suddenly block entire screen away from mouse. Only when point is moved out of
window and back, only then it will be able to access widgets again.

Take a look at video and maybe try example to reproduce problem

I am not sure if deleting those functions from edje_edit is actually right
decision. But it will fix the problem of course.

Test Plan: See attached video and examples in attached files

Reviewers: NikaWhite, reutskiy.v.v, Hermet, cedric, raster

Subscribers: jpeg

Differential Revision: https://phab.enlightenment.org/D4081
2016-06-30 12:08:46 +03:00
Daniel Hirt ee36fdc218 Revert "elm: Fix wrong use of char instead of string and void out parameter"
This reverts commit 61f52a26fb.

This fixes the reported break on T4000.
2016-06-30 11:32:02 +00:00
Jean-Philippe Andre fd63a2c80d elm_widget: Fix mouse wheel event propagation
The wrong type was propagated. Luckily it didn't crash.

Thanks @Hermet for the report.
2016-06-30 15:33:39 +09:00
Jean-Philippe Andre 197c036306 edje: Lower ERR to INF for message about non fixed parts
This message really is just informational at best, since it's
not an error, and we even implemented an optimization.

It should be done at compile (edje_cc) time though.
See comments on D3801
2016-06-30 14:34:59 +09:00
Jean-Philippe Andre d04ff8d69b evas object: Move display_mode to Efl.Gfx.Size.Hint 2016-06-30 14:34:59 +09:00
Jean-Philippe Andre 2065aedc44 win: Remove font & image cache functions
Those actually belong to elm_config, or rather Efl.Config:
  efl_config_int_set("cache_image_cache_size", 42);
  efl_config_int_set("cache_font_cache_size", 1337);
2016-06-30 14:34:59 +09:00
Jaeun Choi 92a67f1a61 layout: Add NULL check in _elm_layout_text_set function
When the parameter 'text' is NULL in elm_layout_text_set function,
the sub object data with the same part name is removed
from the layout's sub object list and the function returns immediately.
However, if the text part doesn't exist in the list,
a new sub object data is appended to the list even though the text is NULL.
This patch adds NULL check so the function can return in such cases.
2016-06-30 14:20:44 +09:00
Amitesh Singh 366b24726c photocam: add missing EOLIAN prefix 2016-06-30 10:42:18 +05:30
Chris Michael bbdb4e5a53 ecore-wl2: Fix formatting
NB: No functional changes

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-06-29 13:08:26 -04:00
Chris Michael f024234090 elementary: Fix erroneous usage of EINA_UNUSED
'data' parameter is actually used in this function, so remove mis-use
of EINA_UNUSED in function

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-06-29 11:48:53 -04:00
Chris Michael 8fb9c91d8f elementary: Fix over-zealous optimization attempt
This is a fix for some over-zealous optimization attempt. Basically,
we cannot optimize out multiple calls to ecore_wl2_window_input_get as
the window can change in the for loop.

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-06-29 10:52:34 -04:00
Chris Michael 2c85f3b525 elementary: Fix bug in wl dnd where all subsequent mimetypes would be
accepted

This fixes an issue where in wl dnd, if one mimetype was accepted by a
drop, then all subsequent types would have been accepted also..

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-06-29 09:59:32 -04:00
Chris Michael 0addbf9b44 elementary: Reformat elm_cnp to be readable
NB: No functional changes, just formatting so I can read this hot mess

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-06-29 09:27:17 -04:00
Jaeun Choi 921dba8457 Revert "layout: Add NULL check in _elm_layout_text_set function"
This reverts commit e3fd84d1de.

NULL checking point is wrong.
2016-06-29 18:25:17 +09:00
Jaeun Choi e3fd84d1de layout: Add NULL check in _elm_layout_text_set function
When the parameter 'text' is NULL in elm_layout_text_set function,
the sub object data with the same part name is removed
from the layout's sub object list and the function returns immediately.
However, if the text part doesn't exist in the list,
a new sub object data is appended to the list even though the text is NULL.
This patch adds NULL check so the function can return in such cases.
2016-06-29 16:15:46 +09:00
Jean-Philippe Andre 2b9e9b3667 ecore: Add basic test case for efl version
Not very useful test but still good to make sure we
preserve the API.
2016-06-29 15:01:34 +09:00
Jean-Philippe Andre f44235d088 elm: Add app's EFL information to EFL_MAIN and ELM_MAIN
Bindings should do the same.
2016-06-29 15:01:34 +09:00
Jean-Philippe Andre 45cd0465a4 efl: Add Efl.Version struct and APIs
The original idea behind knowing the app's version of EFL is not
a great story. It comes from the fact that some bugs exist in
earlier versions of EFL, and some things need to be fixed. But
those fixes may break behaviour for older apps. This patch is
opening the way to the slippery slope of bug compatibility.

Unfortunately this is a requirement if we want to be able to move
forward and not break apps when we fix bugs (behaviour or ABI).

I hope we will not need to implement too many (if any) workaround
such issues. For now, this will only be used as debugging info.

EFL_MAIN() and ELM_MAIN() will both set the app's EFL version
automatically at startup time. Some internal helpers can be added
later to check how the app build-time and run-time version of
EFL differ.

@feature
2016-06-29 15:01:34 +09:00
Jean-Philippe Andre a73e51136f loop: Add main class property to return the main loop
Note: this is both @class and @property. Hope that's ok for
all bindings.

This returns same as ecore_main_loop_get() (which now uses the eo
api instead).

Ping @cedric (so he can check this patch).
2016-06-29 11:17:44 +09:00
Jean-Philippe Andre 50ff649c1d win: Change type of composite interface for Efl.Config
Use Efl.Config.Global instead, since it's what the window will
expose, and it provides access to the "profile" config options.
2016-06-29 11:08:51 +09:00
Jean-Philippe Andre 136a6b4464 evas: Add & fix legacy APIs for text filters
Those are marked as EINA_DEPRECATED since they are for legacy only,
and EDC is the preferred method.
Note: these are new in EFL 1.18.

I would rather have not added them as legacy APIs. This patch is
here to align to Tizen which added them by mistake. Also, remove
the "name" argument from filter_program_set as it's not required,
and also not there in Tizen's code base.

Sorry for the mess.
2016-06-29 11:02:41 +09:00