summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* elm_code: finally get the theme loading from the default EDC.devs/netstar/elm_code_from_themeAl Poole2017-11-252-76/+38
| | | | Thanks Andy for finding a working API!!!
* elm_code: Start loading the palette colours from the themeAndy Williams2017-11-251-4/+25
|
* Merge branch 'master' into devs/netstar/elm_code_from_themeAndy Williams2017-11-24747-10623/+16082
|\
| * elua: correctly wrap gettext funcsDaniel Kolesa2017-11-242-21/+38
| | | | | | | | | | | | Now, we cannot directly register funcs defined by a different signature than the lua standard (int (*)(lua_State *)) so we have to correctly wrap those with proper conversions etc.
| * elua - use safeptr with lightuserdata to work around luajit 64bit issueCarsten Haitzler (Rasterman)2017-11-242-14/+13
| | | | | | | | | | | | | | luajit only supports 47bits on 64bit for lightuser data (bad! don't mess with opaque pointers... really unexpected and bad and probably should be fixed in luajit by doing things like on 32bit where pointers are not messed with etc.)
| * eina safepointer - mimic 47 bit eoid patchCarsten Haitzler (Rasterman)2017-11-241-7/+20
| | | | | | | | same thing as b209b9a92286209281c12e81fd9dd72dc28c7495 but for safeptr
| * eo - by default on 64bit only use 47 bits because of luajitCarsten Haitzler (Rasterman)2017-11-241-9/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | luajit wants to check the upper 17 bits of pointers and assume they are all 0 if on a 64bit architecture. it will panic and barf if they are used. we have been using them in our eoid's for a long time. my take on this is that this is unportable. assuming how many bits are or are not valid in an opaque pointer (void *) that is simply passed to you and you cannot dereference or use (no size information even for what amount of data it points to etc.), is just wrong. it's not portable and it's trying to be too smart and creating such issues. my take is that luajit needs a fix for this in the longer term. but for now let's have a 47 bit mode and go with that. it does mean i have to drop our generation counter to 10 bits on 64bit (from 27 bits) which increases likelihood of eoid re-use being falsely detected as valid (before on 64bit it was 1 in 130 million or so chance, with this 47 bit change it's 1 in 1000. but to be fair on 32bit it's 7 bits for gen count so 1 in 127 ... so still more than 10x "safer" than on 32bit... but still...). the relevant check in luajit is: (((uint64_t)(p) >> 47) ? (lj_err_msg(L, LJ_ERR_BADLU), NULL) : (p)) it ONLY does this on 64bit. on 32bit pointers are not checked for validity at all. as an aside, armv8.2 seemingly will bring 52bit addresses so luajit is going to fall over flat on a newer rev of armv8. it may be x86 also uses more bits. last i knew it was 48bits so the 47 bit check luajit does i think is even wrong for x86-64. to be detailed i read: amd64 arch == 48 bits (so luajit is wrong). even better In addition, the AMD specification requires that the most significant 16 bits of any virtual address, bits 48 through 63, must be copies of bit 47 (in a manner akin to sign extension). so if the upper bit of 48 is set THEN all the 16 upper bits must be 1... breaking luajit, even if it were 47bit and this rule applied. I read the architecture allows for up to 52bits of actual addresses so architecture-wise this is even wrong... So I smell a core bug here in luajit. Certainly in the number of bits it insists must be 0 (the upper 17 bits where on amd64/x86-64 it should be the upper 16 bits... and even then these may NOT be 0 if bit 47 (the upper bit of the lower 48 is 1).... so the whole check is invalid... :( at least the above is at a theoretical level. i believe that the addresses divide the 48 bits into 2 chunks (thus 47)... but at the PHYSICAL level with no mmu and virtual memory. arm64 has this: https://www.kernel.org/doc/Documentation/arm64/memory.txt note in all cases the 2nd chunk of memory has at leats some upper bits of physical addresses beign 1 ... which makes luajit invalid tyo use without virtual memory remapping these away from high bits. @fix
| * mbe: Fix invalid part handlingJean-Philippe Andre2017-11-242-33/+12
| | | | | | | | | | Only the text parts need special handling. Ping @CHAN :)
| * win: Fix window background EO APIsJean-Philippe Andre2017-11-241-2/+0
| | | | | | | | Broken in a previous commit
| * elm: add custom access state for Elm.HoverLukasz Stanislawski2017-11-242-0/+11
| | | | | | | | | | | | | | | | Reviewers: jpeg Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5523
| * layout: Fix erroneous warnings (from earlier patch)Jean-Philippe Andre2017-11-241-4/+5
| | | | | | | | Oops. Bad check :)
| * elm_part: Mark as auto-unref before finalizeJean-Philippe Andre2017-11-241-6/+10
| | | | | | | | | | | | This simplifies the IMPLEMENT macro, which can now be a proper function. Also, do not set a parent for the part object, as it's not useful and could mess up the refcount.
| * eo: Make sure auto_unref only applies after finalizeJean-Philippe Andre2017-11-241-3/+3
| | | | | | | | | | | | It would be pretty stupid to create an object that dies before it even gets created. Auto-unref is for parts and should probably not be used anywhere else :)
| * part bg: Fix up some unnecessary complexityJean-Philippe Andre2017-11-247-120/+76
| | | | | | | | | | | | | | See previous commit :) Note: right now the background part has a small 3d indent which comes from the legacy theme being used. This will be fixed soon.
| * efl_ui_layout: create efl_ui_bg when efl_part for background is called.Sungtaek Hong2017-11-2411-5/+411
| | | | | | | | | | | | | | | | Reviewers: woohyun, jpeg, cedric Subscribers: felipealmeida, cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5151
| * Efl.Ui.Format: add string format checking for user inputAmitesh Singh2017-11-241-0/+76
| |
| * widget: Add EINA_UNUSEDJean-Philippe Andre2017-11-241-1/+1
| |
| * efl_ui_widget: secure elm_legacy_add flagSungtaek Hong2017-11-242-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: _elm_legacy_add goes back to EINA_FALSE after setting sd->legacy. if constructor get called again after going back to EINA_FALSE, sd->legacy should remain EINA_TRUE. also, elm_legacy_add() should not be called non-elm_widget. Test Plan: Run elementary test->Efl.Ui.Text.Label. Check legacy flag in _elm_theme_object_set() for efl_ui_win. Check legacy flag for efl_ui_text after scrollable text is added. Reviewers: jpeg, woohyun Reviewed By: jpeg Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5529
| * evas: remove warning from image_loaders/png/evas_image_load_pngPawel Aksiutowicz2017-11-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Reviewers: stanluk, lukasz.stanislawski, cedric Reviewed By: cedric Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5501 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
| * efl_ui_bg: fix unclipped image on EFL_UI_IMAGE_SCALE_TYPE_NONESungtaek Hong2017-11-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | @fix Summary: efl_ui_bg has internal image and image may be larger than resize_obj when EFL.UI.IMAGE.SCALE_TYPE is none. Now resize_obj clips the internal image. Test Plan: 1.Run elementary_test, part background(will be added soon) 2.Create a bg in a box with other widgets. Set bg as EFL_UI_IMAGE_SCALYE_TYPE_NONE. Reviewers: jpeg, cedric Reviewed By: cedric Subscribers: woohyun Differential Revision: https://phab.enlightenment.org/D5509 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
| * elementary: fix typos in elm_win_legacyPawel Aksiutowicz2017-11-231-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | Reviewers: stanluk, lukasz.stanislawski, cedric Reviewed By: cedric Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5511 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
| * elementary: fix typos in elm_gesture_layerPawel Aksiutowicz2017-11-231-20/+20
| | | | | | | | | | | | | | | | | | | | Reviewers: stanluk, lukasz.stanislawski Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5512 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
| * elementary: fix typos in elm_atspi_bridgePawel Aksiutowicz2017-11-231-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | Reviewers: stanluk, lukasz.stanislawski Reviewed By: lukasz.stanislawski Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5513 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
| * ecore_con: quiet 2 "clobbered" warnings in ecore_conPawel Aksiutowicz2017-11-231-2/+2
| | | | | | | | | | | | | | | | | | | | Reviewers: stanluk, lukasz.stanislawski Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5514 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
| * evas: fix typos for canvasPawel Aksiutowicz2017-11-232-3/+3
| | | | | | | | | | | | | | | | | | | | Reviewers: stanluk, lukasz.stanislawski Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5516 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
| * elementary: fix compilation of cxx examplesLauro Moura2017-11-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Summary: Missing ecore_con library Reviewers: felipealmeida, jpeg Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5517 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
| * elementary: Windows requires EAPI for the legacy .eo.hLauro Moura2017-11-231-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: After the reorganization of elm eos, some sources include the .eo headers directly instead of through Elementary.h. This causes problems on windows as the declarations won't be decorated with the dllexport attributes. Reviewers: cedric, felipealmeida, jpeg, vtorri Subscribers: jenkins Tags: #windows, #efl Differential Revision: https://phab.enlightenment.org/D5519 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
| * ecore_evas: use access() instead of stat()Lauro Moura2017-11-231-14/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: stat() wasn't working on Windows due to some msys2/mingw quirk. Reviewers: felipealmeida, cedric, vtorri Subscribers: jenkins, jpeg Tags: #windows Differential Revision: https://phab.enlightenment.org/D5520 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
| * elementary: fix compilation of elm_code test on windowsLauro Moura2017-11-234-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Added some guards to avoid redefinition of functions. Partially fixes T5866, as there is still the question whether we should test internal functions or not, as stated by jpeg in the comments. Reviewers: vtorri, felipealmeida, jpeg, cedric Reviewed By: cedric Subscribers: jenkins, cedric Maniphest Tasks: T5866 Differential Revision: https://phab.enlightenment.org/D5521 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
| * ecore: during fd cleanup we didn't remove freed fd handler from the ready fd ↵Cedric Bail2017-11-231-2/+27
| | | | | | | | list.
| * elm: Add hack to make test case workJean-Philippe Andre2017-11-232-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Because of the way elm_code test case is written, by directly including the C file, we end up with two symbols for the internal _elm_legacy_add flag. This makes some test case fail (after applying a pending patch). Solution found by Sungtaek Hong. elm_code test case needs to be fixed. Don't include the C files directly, testing static inlines should be done through a common .x or something, but not by including the C file itself. This has led and will lead to many issues.
| * eolian: Add API's for part enumerationJean-Philippe Andre2017-11-236-1/+130
| | | | | | | | @feature
| * bg: Remove trailing \n in ERR messageJean-Philippe Andre2017-11-231-1/+1
| |
| * efl_access: Add reading_info_type set/get APIsShilpa Singh2017-11-232-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Information obtained by atspi client is name, role, description, state of an object. reading_info_type_set/get APIs give control to application to decide on the information that can be exposed. Test Plan: The reading info is added as an attribute of an accessible object, on query of attribute, reading_info_type and corresponding character buffer should be given to ATSPI clients. Reviewers: kimcinoo Subscribers: cedric, govi, rajeshps, jpeg Differential Revision: https://phab.enlightenment.org/D5524
| * elm_code: don't crash on NULL scopeAndy Williams2017-11-221-1/+1
| | | | | | | | This could be triggerd with the cursor was not in the file
| * efl_ui_focus_manager: remove unnecessary debugging printf.Al Poole2017-11-221-1/+0
| |
| * efl_ui_focus_manager: fixup previous commitMarcel Hollerbach2017-11-221-2/+2
| | | | | | | | i forgot to git commit --amend ... i am sorry :[
| * efl_ui_focus_manager: try to error out instead of a infinit recusrionMarcel Hollerbach2017-11-221-1/+6
| |
| * elm_gengrid: jump back to the last selected item on gengrid focus jumpMarcel Hollerbach2017-11-222-0/+36
| | | | | | | | | | this moves the item into selection and focus that was last focused or selected.
| * efl_ui_win: use new apiMarcel Hollerbach2017-11-221-20/+7
| | | | | | | | | | we can just call the manager to prepare itself in the direction we have, this means we dont need this loop here.
| * efl_ui_focus_manager: move preparing of the manager to its own apiMarcel Hollerbach2017-11-223-39/+43
| | | | | | | | | | | | with this some imlpementations can decide if they want to fallback to some older focused item once they need to prepare themself for this call.
| * elm_gengrid: respect item configMarcel Hollerbach2017-11-221-2/+5
| |
| * elm_gengrid: remove on_focus_updateMarcel Hollerbach2017-11-222-55/+0
| | | | | | | | | | this hook is not executed anymore, code for remembering the last focused item will be added in the following commits.
| * docgen: Correct title plugin usageAndy Williams2017-11-221-1/+1
| |
| * Efl.Ui.Calendar: fix wrong define - again!Amitesh Singh2017-11-221-1/+1
| |
| * efl_ui_calendar: fix wrong defineWooHyun Jung2017-11-221-1/+1
| |
| * elm_genlist: Add signals to communicate drag start and stop to atspi client.Prasoon Singh2017-11-221-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Send signal EFL_ACCESS_STATE_ANIMATED when dragging starts and stops to atspi clients and also set EFL_ACCESS_STATE_ANIMATED when reorder mode is enabled. Test Plan: When reorder happens atspi client should receive object:state-changed:animated signal. Reviewers: kimcinoo, shilpasingh Reviewed By: shilpasingh Subscribers: cedric, govi, rajeshps, jpeg Differential Revision: https://phab.enlightenment.org/D5515
| * elm: efl access: fix the warnings.Amitesh Singh2017-11-221-2/+2
| | | | | | | | | | | | | | | | | | | | There were many warnings while building elm. ---> ./src/lib/elementary/efl_access.eo.h:433:55: warning: duplicate ‘const’ declaration specifier -Wduplicate-decl-specifier] EOAPI void efl_access_attribute_append(Eo *obj, const const char *key, const const char *value); <---
| * efl_access: Add attribute_append, attributes_clear APIsShilpa Singh2017-11-224-15/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Add attribute append and attributes clear API, attributes of widget/widget_item helps in adding additional information about the widget/widget item in the form of key-value pair. Test Plan: Query the attributes using atspi_accessible_get_attributes in atspi_client and an hash table consisting of updates attributes should be returned. Signed-Off By: Shilpa Singh <shilpa.singh@samsung.com> Signed-Off By: Lukasz Wlazly <l.wlazly@partner.samsung.com> Reviewers: kimcinoo, lukasz.stanislawski Subscribers: cedric, govi, rajeshps, jpeg Differential Revision: https://phab.enlightenment.org/D5510
| * wayland_shm: Fix partial redrawsDerek Foreman2017-11-211-1/+8
| | | | | | | | I accidentally the age tracking.