aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* wayland: hook engine data from elm_win and update rect with evas sizeMike Blumenkrantz2016-04-074-20/+29
| | | | | | | | | | | | | | | the only way to accurately calculate the "evas" size in the engine from window geometry is to have the size of the frame available to subtract from window geometry window geometry is NOT framespace--framespace is the entire csd region, possibly containing a shadow, and window geometry is explicitly the region occupied by the window, ie. not the shadowed part. not my ideal solution to the synchronization issue here, but I guess this is a benefit of the unified tree fix T3396
* ecore-wl2: redo Ecore_Wl2_Event_Window_Configure entirelyMike Blumenkrantz2016-04-073-25/+43
| | | | | | | | | | | | | | this is an event representing the "new" state of the surface after a configure event. it must contain the exact states which could potentially have changed in the configure in order to ensure synchronization between csd states and window size. ecore events for xdg-shell configures must be sent only upon receiving a configure event since states are set by the compositor and not by the client @fix #hoorayforbeta
* elm_win: handle icon object lifetimes more accurately, use icon_name in csd iconMike Blumenkrantz2016-04-071-10/+24
| | | | | | | | in the case where an icon existed upon having an icon object set, the previous icon object would be orphaned while still being visible. the new icon would then never be set into the csd. @fix
* elm_win: move frame obj creation/deletion for fullscreen property to state ↵Mike Blumenkrantz2016-04-071-30/+32
| | | | | | | | | | change cb this was broken if the compositor unset fullscreen without being prompted by the client (eg. ctrl+alt+f). it also created timing differences for csd calcs based on when the fullscreen call occurred in the render cycle @fix
* ecore-wl2: remove maximized/fullscreen/transient from window types enumMike Blumenkrantz2016-04-072-35/+0
| | | | | | these aren't real window types and only complicate internals/api #hoorayforbeta
* ecore_x: fix emission of ECORE_X_EVENT_XKB_NEWKBD_NOTIFYMarcel Hollerbach2016-04-072-9/+40
| | | | | | | | | | | | | | | | | | Summary: the event XkbNewKeyboardNotify was never selected with XkbSelectEventDetails so the event type could never occur. The event is now each time emitted when a new event to the keyboard happens. To clarify a bit: A new keyboard is always detected in x when the set of keymaps changes. @fix Reviewers: raster, devilhorns, zmike Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D3867
* Elm_image: remove elm_image_sizing_eval from eo to legacy.Ji-Youn Park2016-04-074-16/+27
| | | | elm_image_object_get api will be deprecated, so moved sizing eval func to legacy
* efl.progress: Rename property from value to progress_valueYeshwanth Reddivari2016-04-075-8/+8
| | | | | | | | Reviewers: jpeg, singh.amitesh Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3872
* elm_nstate: introduce nstate widget and inherit check from itAmitesh Singh2016-04-0714-139/+478
| | | | | | | | | | | | | Test Plan: elementary_test -to "nstate" @feature Reviewers: yashu21985, tasn, Hermet, seoz, smohanty, felipealmeida, JackDanielZ, jypark, woohyun, herdsman, raster, cedric, jpeg Subscribers: saurabhbunty, seoz Differential Revision: https://phab.enlightenment.org/D3786
* Efl: Rename flip and orient enumsJean-Philippe Andre2016-04-0711-40/+40
| | | | | | | | | Efl.Flip is now the enum, the interface is Flipable. We could even use names like Efl.IFlip a la Java. eo_prefix is used to have pretty names in C. legacy: null is removed from the enums. orient_x0 is removed and only defined in C with #define
* Interface: Progress - Add common interface for Slider and ProgressbarYeshwanth Reddivari2016-04-0712-413/+780
| | | | | | | | | | | | | | | | | Summary: Implement common interface efl_ui_progress and inherit slider and progressbar from common interface. Currently legacy APIs will also call interface functions and later it can be deprecated. This interface will be moved to EFL in src/lib/efl/interfaces when elementary is merged into efl. Test Plan: elementary_test -to 'slider' elementary_test -to 'progressbar' Reviewers: singh.amitesh, raster, tasn, felipealmeida, woohyun, cedric, jpeg Subscribers: saurabhbunty, alok25 Differential Revision: https://phab.enlightenment.org/D3759
* Eo: Try to fix windows buildJean-Philippe Andre2016-04-071-7/+6
| | | | | | | | | | | For windows, EAPI needs to be redefined as dllexport/dllimport. Since we marked all EO APIs as weak, we had two different EAPI macros: EAPI and EWAPI. Unfortunately, EWAPI was never redefined (only declared inside Eo.h). See also a1a506e13e276d8ef6e522ae9. See T3423. Thanks @vtorri for the report.
* Eo: Mark class_get() as weak APIsJean-Philippe Andre2016-04-071-1/+1
| | | | | | | | | While eolian-gen was generating EWAPI (weak) class_get() symbol declarations, they were implemented as EAPI (strong). Not sure if this mismatch had any significant effect. This patch tries to address T3423 (windows build). The mismatch between EAPI and EWAPI might be the problem.
* Ecore: Try to fix build for windowsJean-Philippe Andre2016-04-071-1/+1
| | | | | Move efl.h above ecore.h to not mess with EAPI's dllimport vs. dllexport definition. This addresses T3423.
* Efl: Add internal strong symbol to fix build on GCC < 5.3Jean-Philippe Andre2016-04-073-0/+12
| | | | | | | | | | | | | | | | | | | | | | This fixes a crash in ecore_init, calling a weak function from libefl that was resolved to NULL. So, here's a fun thing happening with GCC < 5.3. Since a1a506e13e2 all EOAPI and EO class_get() functions are weak symbols. This means that all APIs inside libefl.so are weak. As a result, gcc linker with --as-needed skipped linking to libefl since not a single strong symbol from libefl was required by libecore. This is actually a bug in gcc linker since we do in fact use symbols from libefl, just weak ones. GCC 5.3 seems to be fixed, so people with GCC 5.3+ will not experience any build/runtime issue. The current patch is a workaround that bug, by artifically creating a strong symbol required by ecore. Other libraries than ecore might also need to call __efl_internal_init, if they end up not being linked to libefl.
* ecore: attempt to fix windows build by putting header in a more logical place.Cedric Bail2016-04-061-1/+1
|
* eolian: add Eolian support for Eina PromisesFelipe Magno de Almeida2016-04-068-13/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add a promise object to allows Eolian interface to include promises as a way to have asynchronous value return and composibility. The usage is like this in a .eo file: class Foo { methods { bar { params { @inout promise: Promise<int>; } } } } Which will create the following API interface: void foo_bar(Eo* obj, Eina_Promise** promise); and a Eina_Promise_Owner for the implementation, like this: void _foo_bar(Eo* obj, Private_Data* pdata, Eina_Promise_Owner* promise); Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
* eo: add before and after macro hooks for API generation functionsFelipe Magno de Almeida2016-04-0621-129/+139
| | | | | | | Add two parameters for macros that generate API functions in Eo so that the generation can be customized with macros used by Eolian. Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
* Revert "Eo: Fix rare crash after call_resolve"Tom Hacohen2016-04-061-7/+4
| | | | | | | | | | I'm reverting this because according to jpeg it was possibly fixed in 5284b62e930f0bef0ed3125b3a485e0599451ef8. I reverted this patch after his fix and followed his reproduction cases and it seems that his second patch does indeed fix this issue so this patch is no longer needed. This reverts commit 0862b9d08384bc1d862b90952130ec988f56b33b.
* Eo tests: Also test function calls in reinit test.Tom Hacohen2016-04-063-1/+46
| | | | | | | | Since we cache ops we also need to check function calls work when we reinit eo, not just class_get functions. This commit essentially verifies that 5284b62e930f0bef0ed3125b3a485e0599451ef8 was done correctly.
* elm_test: Fix warning with clangJean-Philippe Andre2016-04-061-1/+1
| | | | Invalid enum type
* elm_glview: Fix warning with clangJean-Philippe Andre2016-04-061-1/+1
| | | | | I'm using the same gcc construct to initiliaze a complex struct with {} instead of {0}.
* elm_config: Fix typo and warningJean-Philippe Andre2016-04-061-6/+6
| | | | | | | A major typo (hard to find with the naked eye) was present in elm_config's list of text & color classes. See D3487. I'm pretty sure this feature has not been used at all.
* els_box: Fix warning with clangJean-Philippe Andre2016-04-061-1/+1
| | | | | | warning: comparison of constant 100 with expression of type 'Evas_Aspect_Control' is always true [-Wtautological-constant-out-of-range-compare]
* elm: Fix some warnings with clangJean-Philippe Andre2016-04-064-6/+6
| | | | | | | | | | | | warning: missing field 'desc' initializer [-Wmissing-field-initializers] Solution: use gcc extension to init structs with {}. This is a bit ugly, but having too many warnings leads to ignoring them and not noticing valid ones. The warning is triggered because the first member of Eo_Event is not a primitive type (it's a struct _Eo_Opaque *).
* elm_web: Fix warning (missing initializer)Jean-Philippe Andre2016-04-061-0/+2
|
* elm_image: Fix warning (wrong enum type)Jean-Philippe Andre2016-04-061-1/+1
|
* Eo: Fix function cache after eo reinitJean-Philippe Andre2016-04-061-1/+4
| | | | | | | | | | The function call resolve cache may be broken after an eo shutdown + init cycle, leading to calls to invalid functions. This adds an static uint for each and every single EO API entry point, as well as an extra if() check. Now I'm not sure if the previous commit 0862b9d08384bc1d8 is still necessary.
* Efl vpath: Fix usage of @class functionJean-Philippe Andre2016-04-061-1/+1
| | | | | Calling an @class function with a real object is not safe. Missing check somewhere? I believe this should have failed safely.
* Eo: Fix rare crash after call_resolveJean-Philippe Andre2016-04-061-4/+7
| | | | | | | | | | It seems that calling a @class function with an EO object (that was not the required Eo_Class) lead to a situation where func->func was NULL. And that meant a crash after call_resolve. The proper fix is to properly call a @class function with a class object.
* Interface: Flip and orientation interfaceYeshwanth Reddivari2016-04-0618-51/+458
| | | | | | | | | | | | | | | Summary: Added flip and orientation interface and used them in evas_image. Removed efl_image_orientation_set API and used efl_orientation_set and efl_flip_set API. In implementation part, converted enums back and forth in order to keep current implementation as it is. Test Plan: src/examples/evas/evas-images5.c Reviewers: singh.amitesh, raster, tasn, herdsman, woohyun, cedric, felipealmeida, jpeg Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D3844
* elm_layout: Attach object to iteratorJean-Philippe Andre2016-04-061-5/+6
| | | | | | This is part of a new API, not a fix This was missing in 3c40ebb99887ba4c74c40e4509c49cc675877886
* elm_box: Minor fixesJean-Philippe Andre2016-04-061-5/+3
|
* elm_win: update wayland opaque region during pre-flush...alwaysMike Blumenkrantz2016-04-051-7/+5
| | | | @fix
* eo-cxx: Fix warning on weak symbols with inline functionsFelipe Magno de Almeida2016-04-051-1/+1
| | | | Removed the EOAPI which is not necessary as the function is already inlined
* ecore: add tests for promises with ecore_thread_promise_runFelipe Magno de Almeida2016-04-054-0/+406
| | | | Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
* ecore: add promise for Ecore_ThreadFelipe Magno de Almeida2016-04-053-0/+158
| | | | | | | | | | | | | | | | Add ecore_thread_promise_run function that returns a Promise and runs function in another thread which you can set the value on a Eina_Promise_Owner. Eina_Promise* promise; Ecore_Thread* thread = ecore_thread_promise_run ( &function_heavy, &cancellation_function, private_data, sizeof(ValueType), &promise); This calls function_heavy on another thread and returns the Ecore_Thread and a Eina_Promise as an out-parameter. Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
* eina: add tests for promisesFelipe Magno de Almeida2016-04-054-0/+200
|
* eina: add promiseFelipe Magno de Almeida2016-04-054-0/+1084
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a promise object that will allows Eolian interface to include promises as a way to have asynchronous value return and composibility. To understand better, let see the coming usage in a .eo file: class Foo { methods { bar { params { @inout promise: Promise<int>; } } } } Which will create the following API interface: void foo_bar(Eo* obj, Eina_Promise** promise); and the equivalent declaration for implementation. However, the API function will instantiate the Promise for the user and the implementer of the class automatically. So the user of this function will treat it as a @out parameter, while the developer of the function will treat it like a @inout parameter. So, the user will use this function like this: Eina_Promise* promise; // No need to instantiate foo_bar(obj, &promise); eina_promise_then(promise, callback); Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
* ecore-xcb: Add implementation for missing API functionChris Michael2016-04-051-0/+54
| | | | | | | | | This patch adds an xcb implementation for missing ecore_x_randr_crtc_panning_area_set function @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
* ecore-xcb: Add implementation for missing API functionChris Michael2016-04-051-0/+21
| | | | | | | | | This patch adds an xcb implementation for missing ecore_x_randr_edid_display_interface_type_get function @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
* ecore-xcb: Add implementation for missing API functionChris Michael2016-04-051-1/+18
| | | | | | | | | This patch adds an xcb implementation for missing function ecore_x_randr_screen_backlight_level_set @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
* ecore-xcb: Add implementation for missing API functionChris Michael2016-04-051-1/+17
| | | | | | | | | This patch adds an xcb implementation for missing API function ecore_x_randr_edid_dpms_off_available_get @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
* ecore-xcb: Add implementation for missing API functionChris Michael2016-04-051-1/+17
| | | | | | | | | This patch adds an xcb implementation for missing ecore_x_randr_edid_dpms_standby_available_get function @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
* ecore-xcb: Add implementation for missing API functionChris Michael2016-04-051-3/+32
| | | | | | | | | This patch adds an xcb implementation for missing ecore_x_randr_edid_display_serial_get function @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
* ecore-xcb: Add implementation for missing API functionChris Michael2016-04-051-0/+32
| | | | | | | | | This patch adds an xcb implementation for missing ecore_x_randr_edid_display_ascii_get function @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
* ecore-xcb: Add implementation for missing API functionChris Michael2016-04-051-3/+18
| | | | | | | | | This patch adds an xcb implementation for missing API function ecore_x_randr_edid_dpms_standby_available_get @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
* ecore-xcb: Add implementation for missing API functionChris Michael2016-04-051-2/+20
| | | | | | | | | This patch adds an xcb implementation for missing function ecore_x_randr_edid_dpms_available_get @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
* ecore-xcb: Add implementation for missing API functionChris Michael2016-04-051-2/+15
| | | | | | | | | This patch adds an xcb implementation for missing API function ecore_x_randr_edid_manufacturer_serial_number_get @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
* ecore-xcb: Add implementation for missing Ecore_X APIChris Michael2016-04-051-0/+6
| | | | | | | | | This patch adds an xcb implementation for ecore_x_randr_edid_model_get function which was missing from ecore-xcb. @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>