summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_object_table.c
Commit message (Collapse)AuthorAgeFilesLines
* evas table - use geom set instead of move+resize for fewer oe callsCarsten Haitzler (Rasterman)2019-08-211-14/+5
|
* evas: remove all legacy usage from eo filesMike Blumenkrantz2019-03-061-1/+1
| | | | | | | | | | | | this takes the current generated output from eolian for legacy code in evas and adds it to the tree, then removes legacy references from the corresponding eo files. in the case where the entire eo file was for a legacy object, that eo file has been removed from the tree ref T7724 Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de> Differential Revision: https://phab.enlightenment.org/D8107
* api: efl.gfx.hints.change,size,hints -> efl.gfx.hints.hints,changedMike Blumenkrantz2019-02-211-1/+1
| | | | | | | | | | | | | | | | | | | | | Summary: this is consistent with other "changed" event naming ref T7563 Depends on D7977 Reviewers: segfaultxavi, cedric, bu5hm4n Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7563 Differential Revision: https://phab.enlightenment.org/D7978
* api: efl.gfx.size_hints -> efl.gfx.hintsMike Blumenkrantz2019-02-211-1/+1
| | | | | | | | | | | | | | | | | | | | Summary: these hints are not strictly size-related, so renaming them is more consistent with their actual function ref T7563 Depends on D7968 Reviewers: segfaultxavi, cedric, bu5hm4n Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7563 Differential Revision: https://phab.enlightenment.org/D7977
* Remove individual class BETA guardsXavi Artigas2019-02-131-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Eolian adds a per-class BETA guard (like EFL_UI_WIN_BETA) to any method tagged as @beta. This means that any app (and the EFL code) wanting to use BETA features has to enable them class by class, which is cumbersome. This commit replaces the individual guards with the global EFL_BETA_API_SUPPORT guard, so apps only need to define one symbol to access BETA features. Any usage of the per-class guards has been removed from the EFL code and examples. When building EFL the global guard is defined by configure, so all EFL methods already have access to BETA API. Efl_Core.h and Efl_Ui.h no longer define EFL_BETA_API_SUPPORT. Apps wanting to use BETA API have to define this symbol before including any EFL header (It has been added to the examples requiring it). Test Plan: make && make check && make examples still work, but there's a lot less #defines in the code Reviewers: zmike, bu5hm4n, q66 Reviewed By: q66 Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T6788 Differential Revision: https://phab.enlightenment.org/D7924
* gfx: Add size hint fill (EO)Yeongjong Lee2019-01-161-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: If widget use both hint_align(HINT_FILL) and hint_max together, there is no way to set to hint_align. See, elementary_test -to 'efl.ui.box' - "Button with a quite long text." button. you can control button position using "Box align" slider, but this is not proper implementation. When there are two widget which have hint_align(HINT_FILL) and hint_max, those positions are determined by box_align rather than hint_align. it means widget align cannot be set individually. To solve this problem, this patch add hint_fill property. in order to avoid conflict with legacy API named evas_object_size_hint_fill_set(), it only works for EO widgets(made by efl_add). Also, EFL_GFX_SIZE_HINT_FILL is removed. @feature Test Plan: elementary_test -to 'efl.ui.box' elementary_test -to 'efl.ui.table' Reviewers: jpeg, Hermet, Jaehyun_Cho, raster, barbieri Reviewed By: Jaehyun_Cho Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T3912 Differential Revision: https://phab.enlightenment.org/D7409
* efl: rename Efl.Ui.Base -> Efl.Ui.I18n as that is really what it does.Cedric BAIL2019-01-021-2/+2
| | | | | Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D7506
* evas: call evas_find before safety checkYeongjong Lee2018-08-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: edje_edit_object_add edje_object_add emotion_object_add evas_object_xxx_add These APIs had allowed to set parent to EFL_CANVAS_OBJECT(Evas_Object) before 8bb11a17. we should call evas_find before safety check for backward compatibility. Test Plan: win = elm_win_add(NULL, "main", ELM_WIN_BASIC); 1. `rect = evas_object_rectangle_add(evas_object_evas_get(win));` 2. `rect = evas_object_rectangle_add(win);` Check that 1. and 2. works. Reviewers: Hermet, zmike Reviewed By: Hermet Subscribers: cedric, #reviewers, CHAN, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6909
* evas: check evas class instead of using evas_findYeongjong Lee2018-08-161-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | Summary: A object that is not evas class shouldn't use evas_find. it may occurs segfault. ref c2e8b492b18bdecc2300ad051ba1406e40ad068f Test Plan: Evas *evas = evas_new(); evas_free(evas); evas_object_line_add(evas); Check weather there is segfault. Reviewers: Hermet, raster, zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6816
* evas_object_table: adjust to recent EFL_EVENT_DEL changesMarcel Hollerbach2018-05-291-2/+2
| | | | | | | | | | | | | | | | Summary: EFL_EVENT_DEL is wrong here, as the callback uses a parent, which is gone at the time of EFL_EVENT_DEL. Reviewers: zmike, cedric, stefan_schmidt Reviewed By: zmike Subscribers: cedric, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6225
* evas: enforce legacy parent to be the canvas.Cedric Bail2018-05-241-1/+1
|
* Efl.Gfx.Entity (from Efl.Gfx)Xavi Artigas2018-04-241-5/+5
| | | | | | Ref https://phab.enlightenment.org/T6847 Reviewed-by: Cedric Bail <cedric@osg.samsung.com>
* eolian gen: enable constness generation on property getter implsDaniel Kolesa2018-04-171-7/+7
| | | | | | | | | | This changes a lot of things all across the EFL. Previously, methods tagged @const had both their external prototype and internal impl generated with const on object, while property getters only had const on the external API. This is now changed and it all has const everywhere. Ref T6859.
* evas_table: remove mirrored propertyMike Blumenkrantz2018-02-151-2/+14
| | | | use efl_ui_base.mirrored instead
* Use ERR instead of CRI if *DATA_GET* returns NULLShinwoo Kim2018-02-011-2/+2
| | | | This patch set is for remains.
* efl: drop deprecated Encoding key from desktop filesRoss Vandegrift2017-12-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | Summary: The Encoding key is no longer required, all desktop files are assumed to be UTF-8 encoded. See details at: https://standards.freedesktop.org/desktop-entry-spec/1.1/apc.html Fix various typos and misspellings lintian, Debian's package checker, uses strings to check for common typos in compiled binaries. This change fixes the ones it identified in 1.20.6. Reviewers: cedric Reviewed By: cedric Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5584 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* efl: Use Eina.Size2D for size hint combined minJean-Philippe Andre2017-09-181-3/+3
| | | | | | | For this patch I decided to add a pseudo legacy wrapper as the function is called in a very large number of places. Fixing all those calls to use the size2d form is a lot of work and a greater risk of b0rking something.
* efl: Use Eina.Size2D for Efl.Gfx.sizeJean-Philippe Andre2017-09-181-3/+3
| | | | | Big patch as a lot of things call or reimplement size_set. Hopefully I got it right... fingers crossed.
* efl: Use Eina.Position2D for Efl.Gfx.positionJean-Philippe Andre2017-09-181-3/+3
| | | | | Note: This is a little bit more cumbersome in some places but in most it's more convenient than (x,y).
* evas: Fix crash with smart objectsJean-Philippe Andre2017-09-131-1/+1
| | | | This is due to the previous patches.
* evas/edje/elm: Remove all uses of clipped groupsJean-Philippe Andre2017-09-131-0/+1
| | | | | This removes the uses of the *EO* class, obviously not the use of the clipped smart objects.
* evas,edje,elm: Mark all legacy objects as suchJean-Philippe Andre2017-07-071-2/+1
|
* evas/elm: Make group_add/group_del internal functionsJean-Philippe Andre2017-05-191-0/+5
| | | | This hides those two legacy functions from the EO API.
* Evas.Table: Apply mirrored correctly when align is setJeeyong Um2017-04-191-1/+3
| | | | | | | | | | | | | | | | Summary: When table items are left aligned and mirrored is set, items should be placed from the right side, but align is not changed. (still left-aligned) @fix Test Plan: make and run attached example Reviewers: cedric, jpeg Subscribers: thiepha, woohyun Differential Revision: https://phab.enlightenment.org/D4758
* evas - table - remove logically dead codeCarsten Haitzler (Rasterman)2017-04-181-1/+0
| | | | | | this is right - it is dead code. this fixes CID 1372487 @fix
* evas table: CRI when attempting to pack a table child into another tableMike Blumenkrantz2017-03-171-2/+10
| | | | @fix
* Revert "evas_table: abort when there is already the option struct"Mike Blumenkrantz2017-03-101-5/+0
| | | | | | | This reverts commit 008711b3b0f0b33e47e6b2fae7f925a0a9fb76ee. this breaks elm_table_pack_set() as well as other valid usage and is not a valid change to the code
* evas_table: abort when there is already the option structMarcel Hollerbach2017-02-121-0/+5
| | | | | | | | | | | | otherwise we would just reuse that struct. This results in freeing/writing/reading the memory twice. This error message should give the dev a tip on what went wrong, instead of leaving cryptic valgrind messages and crashes. This fixes the sysinfo desktop gadget in enlightenment. ref T5173
* evas: fix child position when the container is movedMarcel Hollerbach2017-02-121-0/+10
| | | | | | | | when the position of the container is changed the children should also be repositioned, so setting the changed flag. The visual effect where you saw that was in luncher where items of the bar did not get fully up.
* eina: rename EINA_{FLT,DBL}_CMP to EINA_{FLT,DBL}_EQ.Cedric BAIL2017-01-061-2/+2
|
* evas: remove float comparison warning for evas_object_tableChris Michael2016-12-201-1/+2
| | | | Signed-off-by: Chris Michael <cp.michael@samsung.com>
* evas: Mark group_add/del as internalJean-Philippe Andre2016-10-121-0/+2
| | | | | | | | | | | | | Lacking a proper internal tag, I'm using both protected (it is in fact a protected access function) and beta (to mark as unstable, not real API). New smart objects based on EO only should rely on constructor, finalize and destructor exclusively. In theory, this should be fine. Unfortunately it may be impossible to inherit from the Efl.Ui.Win class as it uses a really bad hack and calls super.constructor inside the finalize method.
* evas/elm: Remove function group_resizeJean-Philippe Andre2016-10-121-4/+5
| | | | | | | | | | | | | | | | | | | This is an override of efl_gfx_size_set. Same as before, the order of operations matter so it is possible that a corner case will break. In particular, legacy code was: - intercept - smart resize (do stuff), super, super, super - evas object resize The new code is more like: - intercept - super, super, super, evas object resize - do stuff But unfortunately this broke elm_widget (read: all widgets) as the internal resize was done before the object resize. So, inside the resize event cb, the resize_obj size would not match the smart object size. >_<
* Efl object: Rename Eo_Event -> Efl_Event.Tom Hacohen2016-08-301-2/+2
| | | | This is the last step of the Eo renaming efforts.
* elm,evas: Remove use of EFL_CANVAS_OBJECT_EVENT_DELJean-Philippe Andre2016-08-261-1/+1
| | | | | | | | This event should not be exposed at all, it's not necessary anymore, EFL_EVENT_DEL already exists and should be good enough. This does move the callback call a little bit ealier in the del process, but at first glance, this shouldn't have any impact.
* Eo: Finish the renaming of Eo to the EFL.Tom Hacohen2016-08-151-6/+6
| | | | | | | This renames all the rest of the API to the EFL namespace except for Eo_Event that will follow soon. Obviously breaks both API and ABI.
* evas table - handle recursive access to cols/rows where child freesCarsten Haitzler (Rasterman)2016-08-151-2/+8
| | | | | | | | thsi fixes invalid memory access to already freed memory in a parent call where a child freed it by reference counting the struct to ensuire it stays alive in the parent func using it. @fix
* Change the EFL to follow the new Eo rename.Tom Hacohen2016-08-111-5/+5
|
* evas object: Hide "del" eventJean-Philippe Andre2016-06-271-0/+2
| | | | In EO world, we should stick to EO_EVENT_DEL.
* evas: Rename Evas.Object to Efl.Canvas.ObjectJean-Philippe Andre2016-06-211-2/+2
| | | | | One step closer to make the EO inheritance tree look like it's all Efl.
* Adjust the code according to the eo event stop changes.Tom Hacohen2016-06-201-7/+3
| | | | This was changed in the previous commit.
* Evas: Rename smart object into Efl.Canvas.GroupJean-Philippe Andre2016-06-171-7/+7
|
* Evas: Add smart_ prefix to all smart functions (eo)Jean-Philippe Andre2016-06-171-4/+4
| | | | | This is a first step at separating legacy smart object features away from standard efl interfaces.
* Evas: Fix usage of callback arraysJean-Philippe Andre2016-06-161-6/+5
| | | | | | | | This should fix compilation of EFL for Windows (at least this is one more step...) - evas box - evas table
* evas object: Move some events to efl_gfx and efl_imageJean-Philippe Andre2016-06-141-1/+1
| | | | | | | | | | | This affects basic evas object events such as: - show, hide, resize, move, - changed size hints, - restack, - image preloaded, resize, unloaded Also, switched names to shorter "present form" like "preload" instead of "preloaded".
* Evas/Edje/Elm: Use combined_min instead of min everywhereJean-Philippe Andre2016-06-091-3/+3
| | | | | | | | This allows apps to set the objects min size with hint_min, while letting the rest of EFL define the minimum size with rstricted_min. I don't like the property names much...
* eo: for consistency use object like all our API.Cedric Bail2016-05-181-1/+1
|
* Edje: Replace edje part_table with a fake eo proxyJean-Philippe Andre2016-04-261-0/+6
| | | | | | | | | | This is similar to the previous patch for Box, but for Table. Those new EO API as well as the legacy ones still need to be tested (no test case in make check...) @feature
* Revert "Automatic migration to the new eo_add syntax."Tom Hacohen2016-03-111-2/+1
| | | | This reverts commit 4f949a2757b6332306264d7f126b15ba7bfd37d4.
* Automatic migration to the new eo_add syntax.Tom Hacohen2016-03-091-1/+2
|