aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Efl.Ui.List_View: precise layout asyncLarry Lira2019-01-114-125/+122
| | | | | | | | | | | | | | | | Summary: fixed precise layouter to work with create asynchronous fixed example theme signal Reviewers: cedric, felipealmeida, SanghyeonLee, lauromoura Reviewed By: SanghyeonLee Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7476
* efl_ui_win: make win work for evas_norenderShinwoo Kim2019-01-101-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The evas_norender updates the canvas internal objects. But efl_ui_win does not evaluate its internal objects, when evas_norender is called before showing, after resizing as below. evas_object_resize(win, 300, 600); evas_norender(evas_object_evas_get(win)); evas_object_show(win); This problem could be verified by checking if a resize function of internal object is called or not. minw,h is 0 in _elm_win_resize_objects_eval but deferred_resize_job is TRUE. evas_norender -> _window_layout_stack -> _elm_win_resize_objects_eval So if _elm_win_resize_objects_eval does not return if deferred_resize_job is TRUE even if minw,h is 0, and calls _elm_win_resize_job, then it will work. _elm_win_resize_objects_eval -> _elm_win_resize_job -> evas_object_geometry_set -> _efl_canvas_group_group_need_recalculate_set -> _window_layout_stack -> evas_object_geometry_set -> resize function. I have checked this behavior without elementary. It seems that evas_norender works between resize and show in this case. Let me share examples. ecore_evas_resize(ee, 100, 100); evas_norender(evas); ecore_evas_show(ee); Differential Revision: https://phab.enlightenment.org/D7425
* meson: add a option to config the base directory name for elm dataWonki Kim2019-01-101-1/+1
| | | | | | There is a option(--with-elementary-base-dir) on autotools this patch provides the exactly same thing that autotools does on meson Differential Revision: https://phab.enlightenment.org/D7580
* efl: remove warning due to unused variable/parameters.Cedric BAIL2019-01-091-7/+7
| | | | | | | | | | | | Reviewers: #committers, felipealmeida, zmike Reviewed By: #committers, felipealmeida, zmike Subscribers: zmike, YOhoho, Hermet, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7554
* elementary: enable caching for Efl.Ui.LayoutFactory.Cedric BAIL2019-01-092-17/+21
| | | | | Reviewed-by: Felipe Magno de Almeida <felipe@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D7445
* elementary: enable caching for Efl.Ui.ImageFactory.Cedric BAIL2019-01-092-16/+22
| | | | Differential Revision: https://phab.enlightenment.org/D7444
* elementary: add a factory that handle caching for you.Cedric BAIL2019-01-095-2/+273
| | | | | | | | | | | | | | | This factory handle caching of one type of object and automatically empty the cache when the application goes into pause. Creating object is costly and time consuming, keeping a few on hands for when you next will need them help a lot. This is what this factory caching infrastructure provide. It will create the object from the class defined on it, set the parent and the model as needed for all items a Factory create. The View has to release the Item using the release function of the Factory interface for all of this to work properly. This is copying what Elm_Genlist was doing for you in the background and bring Efl interface to parity. Reviewed-by: Felipe Magno de Almeida <felipe@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D7443
* elm dnd/selection - only query wl things if thje window is a wl one...Carsten Haitzler (Rasterman)2019-01-093-45/+23
| | | | | check at RUNTIME not just with ifdefs at compile time. less ERR noise for sure.
* efl_ui_text: remove duplicated empty string initializationYeongjong Lee2019-01-091-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: string of text_obj is already initialized in evas_object_textblock_init. also, this patch fixes text_set bug. Test Plan: ``` efl_add(EFL_UI_TEXT_CLASS, parent, efl_text_set(efl_added, "string")); ``` or elementary_test -to 'efl.ui.slider' Reviewers: herdsman, zmike Reviewed By: zmike Subscribers: zmike, segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7561
* elm win - we forgot to add gl_drm to possible elm win enginesCarsten Haitzler (Rasterman)2019-01-083-4/+18
| | | | | this was forgotten it seems, so add it alongside drm engine etc. so we can do accelerated gl in the "fb" via drm too for elm app windows.
* elementary genlist: make it sure object type.Hermet Park2019-01-081-3/+6
| | | | | | | | | | | | | | | | | Summary: elm has some cases that resize_obj is not the group object. That case, efl_canvas_group_need_recalculate_get() prints annoying type-check errors. Reviewers: #committers, SanghyeonLee Reviewed By: #committers, SanghyeonLee Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7557
* elementary selection_manager: remove unused paramter warning.Hermet Park2019-01-081-1/+2
|
* elementary: rename Efl.Ui.Translatable -> Efl.Ui.L10nCedric BAIL2019-01-0247-96/+96
| | | | | | | | If we are to choose Efl.Ui.I18n for the internationalization support, the localization API should be named accordingly L10n. Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D7507
* efl: rename Efl.Ui.Base -> Efl.Ui.I18n as that is really what it does.Cedric BAIL2019-01-0210-15/+15
| | | | | Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D7506
* elementary: rename Efl.Selection -> Efl.Ui.Selection as it is only usable ↵Cedric BAIL2019-01-0219-526/+526
| | | | | | | with User Interface related element. Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D7505
* efl gfx_path: remove EFL_GFX_PATH_EVENT_CHANGEDHermet Park2018-12-282-12/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Here is an additional optmization patch for removing unnecessary updation of path, For instance, let's assume this scenario: If one vg object has 20 path nodes(shapes), and every single nodes would have 50 path changes. (like, append_cubic, append_rect, append_xxx ...); There would 1000 events triggering. Furthermore, if there are 20 vector objects in one view, hese events would be triggered 20000 in one frame. It's insane, actually I could figured out that happens. and it took a lot of cpu consumption in some vector usages. efl_gfx_path_commit() is my idea to avoid this. When path is ready, the path need to get this api call in the last to make object changed properly. @feature Reviewers: #committers, cedric Reviewed By: #committers, cedric Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7494
* Revert "Revert "ecore: make efl_loop_promise_new a function of ↵Carsten Haitzler (Rasterman)2018-12-261-2/+2
| | | | | | Efl.Loop_Consumer."" This reverts commit 42e886d8d61d551bb544b777e6d254ce4dd3fcf1.
* efl_ui: activate widget focus on efl.ui.item.SangHyeon Jade Lee2018-12-261-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Summary: Unlikely efl.ui.Layout, Item need to be focusable, so it may traverse list by your command of focus moving. Test Plan: tested in efl_ui_list_example_1.c efl_ui_grid_example_1.c check whether item show their focus properly. scroll feature is not yet supported by efl_ui_scroll itself. Reviewers: eagleeye, cedric, Hermet, felipealmeida, bu5hm4n Reviewed By: bu5hm4n Subscribers: bu5hm4n, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7465
* Revert "ecore: make efl_loop_promise_new a function of Efl.Loop_Consumer."Marcel Hollerbach2018-12-261-2/+2
| | | | | | | | | | | This reverts commit 9b5155c9f135f9ef450a817979f5884352b2d4c0. For now lets revert this, this breaks copy and paste, further more it has the potential to break a lot more things, as eio_model tends to use efl_loop_promise new, and then eina_promise_data_set, which is explicitly forbidden. This fixes crashing terminology instances.
* Revert "efl gfx_path: remove EFL_GFX_PATH_EVENT_CHANGED"Hermet Park2018-12-262-5/+12
| | | | | | This reverts commit 7c38c0c9154b0971ccb8ecf5ea8f15467cfb6662. Oops, didn't intend this patch.
* efl gfx_path: remove EFL_GFX_PATH_EVENT_CHANGEDHermet Park2018-12-262-12/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Here is an additional optmization patch for removing unnecessary updation of path, For instance, let's assume this scenario: If one vg object has 20 path nodes(shapes), and every single nodes would have 50 path changes. (like, append_cubic, append_rect, append_xxx ...); There would 1000 events triggering. Furthermore, if there are 20 vector objects in one view, hese events would be triggered 20000 in one frame. It's insane, actually I could figured out that happens. and it took a lot of cpu consumption in some vector usages. efl_gfx_path_commit() is my idea to avoid this. When path is ready, the path need to get this api call in the last to make object changed properly. @feature Reviewers: #committers, cedric Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7494
* ecore: make efl_loop_promise_new a function of Efl.Loop_Consumer.Cedric BAIL2018-12-201-2/+2
| | | | | | | | I am not sure this is the right way to do it as binding would have to likely to bind it manually. Reviewed-by: Lauro Neto <Lauro Moura <lauromoura@expertisesolutions.com.br>> Differential Revision: https://phab.enlightenment.org/D7492
* elementary: switch to the new efl_future_then syntax.Cedric BAIL2018-12-202-22/+16
| | | | | Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D7448
* elementary: make all view generate an event when the item is created.Cedric BAIL2018-12-202-2/+2
| | | | | Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D7447
* efl_app: introduce app_main for getting the app objectMarcel Hollerbach2018-12-201-2/+2
| | | | | | | | | | This brings in the possibility to receive the app object from bindings. With the app object you can listen to pause / args / terminate / resume events. fix T7509 Differential Revision: https://phab.enlightenment.org/D7480
* elm_widget: remove defines that are not implementedMarcel Hollerbach2018-12-201-63/+0
| | | | | | | | | | | | | | | | Summary: they are not implemented - so using them would not work, to me it looks like they can be dropped. Reviewers: cedric, raster, stefan_schmidt, Jaehyun_Cho Reviewed By: Jaehyun_Cho Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7455
* Intruduce Efl.Ui.Panel (Create Efl Ui Widget from elm widget(elm_panel))Woochanlee2018-12-205-0/+1566
| | | | | | | | | | | | | | | | Summary: Create Efl Ui Widget from elm widget(elm_panel) Test Plan: elementary_test -> efl_ui_panel Reviewers: woohyun, Jaehyun_Cho, segfaultxavi Reviewed By: Jaehyun_Cho, segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7238
* doc: Remove misplaced blank lineXavi Artigas2018-12-191-1/+0
|
* silence most left over compiler warningsJérémy Zurcher2018-12-184-10/+10
| | | | | | | | | | | | | | Summary: silence -Wshadow -Wunused-variable -Wunused-parameter Reviewers: segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7473
* elm_gengrid: improve genlist behaviourMarcel Hollerbach2018-12-172-0/+44
| | | | | | | | | | | | | the new behaviour is (as genlist in the previous commit): - focus the first item when down is pressed - focus the last item when up is pressed - do not go into the widget with tab or ctrl+tab and just return immidiantly fixes T6805 Reviewed-by: YeongJong Lee <yj34.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D7454
* elm_widget_item_static_focus: fix ERR printsMarcel Hollerbach2018-12-171-3/+9
| | | | | | | | | | | There is the case that the deletion of the adapter can cause another registeration, which then calls another time prepare, which then deletes the adapter, before the actaul deletion of the first efl_del happened, which means it will throw an error. To avoid this we track if we are in process of a unrealization, and if so, do not delete the item there. Reviewed-by: YeongJong Lee <yj34.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D7453
* elm_genlist: behaviour fixes for genlistMarcel Hollerbach2018-12-172-0/+44
| | | | | | | | | | This implements the behaviour in case no item is yet focused, but the genlist is focused. ref T6805 Reviewed-by: YeongJong Lee <yj34.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D7452
* elm_gen****: fix focus restoring on window focus changesMarcel Hollerbach2018-12-174-3/+28
| | | | | | | | | this ensures that if there is no focused item, that at least the container is focused. This leads to the fact that the elm_genlist /elm_gengrid is refocused when a window is unfocused and focused again. Reviewed-by: YeongJong Lee <yj34.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D7451
* efl_ui_focus_manager: performance optimize order settingMarcel Hollerbach2018-12-172-14/+19
| | | | | | | | | | | | | | setting the order is a little bit expensive, this performance optimizes order setting in the focus manager. We don't need to set the order each time something is registered, it is enough to set it once we need the correct order. We don't need to evalulate the state in the Manager_Root_Focus if the rect is not registered. If its not, then another new element cannot cause the rect to be registered. Reviewed-by: YeongJong Lee <yj34.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D7450
* elm_focus: implement legacy targets for logical widgetsMarcel Hollerbach2018-12-171-7/+54
| | | | | | | | | | | they are now handled. The list of parents is walked until a possible candidate is found or the parent chain is the same then in the next focused element. fix T7389 Reviewed-by: YeongJong Lee <yj34.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D7404
* elm_focus: implement elm_object_focus_next_item_set / getMarcel Hollerbach2018-12-171-3/+18
| | | | | | | | | | | | | | you can use this now to let the focus move to the widget container of the passed item. I know this patch contains a whitespace change, but i have to get out this whitespace each & every time i am editing the file - which is annoying. So remove it once, which makes further work easier. fixes T6183. Reviewed-by: YeongJong Lee <yj34.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D7408
* elm_config: fix valgrind warningsMarcel Hollerbach2018-12-171-1/+1
| | | | | | | buf is only initializied, if on_flush is true. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D7449
* efl_ui_win: Don't allow the frame object to change size before first drawDerek Foreman2018-12-141-4/+4
| | | | | | | | | | | | | | | | | | This fixes a bug where calling: evas_object_show(win); evas_object_resize(win, 400, 400); elm_run(); Would show a much smaller than 400,400 window on wayland, as the CSD calcs would set the size smaller. It also fixes some differences in startup size between X and wayland for some trivial test clients. Signed-off-by: Derek Foreman <derek.foreman.samsung@gmail.com> Reviewed-by: Chris Michael <cp.michael@samsung.com> Differential Revision: https://phab.enlightenment.org/D7438
* elementery: fix mouse selection of items in efl.ui.list_viewLeonardo Loch2018-12-071-1/+11
|
* meson: add inital support for windows compilationMarcel Hollerbach2018-12-071-1/+6
| | | | Differential Revision: https://phab.enlightenment.org/D7416
* elementary: make Efl.Ui.Factory.create asynchronous.Cedric BAIL2018-12-076-40/+197
| | | | | | | | | | | | | | Reviewers: felipealmeida, SanghyeonLee, vitor.sousa, bu5hm4n, segfaultxavi Reviewed By: felipealmeida, vitor.sousa, segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Maniphest Tasks: T7472 Differential Revision: https://phab.enlightenment.org/D7332
* efl: fix misspelt focused in API and documents.Alastair Poole2018-12-063-6/+6
| | | | | Fix spelling in elm_code API and other documents too where this occurs. Differential Revision: https://phab.enlightenment.org/D7299
* efl_ui_tab_bar: fix error about double freeBowon Ryu2018-12-051-1/+0
| | | | | | | | | | | | | | | | | | | Summary: tab is the parent of the icon. so deleting the tab causes deleting the icon automatically. in this case, it can cause double-freed problem once icon has deleted. Test Plan: elementary_test -to efl.ui.tab_pager Reviewers: cedric, Jaehyun_Cho, jpeg Reviewed By: Jaehyun_Cho Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7407
* efl_ui_win: enable bg color set although alpha is setJaehyun Cho2018-12-051-1/+8
| | | | | | | | | | | | | | | | | | | | Summary: This patch sets background transparent if window supports alpha. If alpha window does not emit signal to show background rectangle, then the background color set by _efl_ui_win_part_color_set cannot be applied because the background rectangle remains hidden. This patch fixes the side effect of D6569. Test Plan: Run Efl.Ui.Win (Bg part) in elementary_test. Reviewers: zmike, devilhorns, woohyun Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7302
* elm config - fix warnings about unused vars and paramsCarsten Haitzler (Rasterman)2018-12-041-5/+4
|
* elm main - fix unused param in cb warnCarsten Haitzler (Rasterman)2018-12-041-1/+1
|
* elm toolbar - fix unused param warnCarsten Haitzler (Rasterman)2018-12-041-1/+1
|
* elm colorselector - fix unused param warnCarsten Haitzler (Rasterman)2018-12-041-1/+1
|
* efl ui focus manager - fix unused param warnCarsten Haitzler (Rasterman)2018-12-041-1/+1
|
* efl ui focus manager - remove unused local vars warnCarsten Haitzler (Rasterman)2018-12-041-1/+1
|