summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* eolian: properly skip the struct keyword in inlist structsDaniel Kolesa2019-02-281-0/+2
| | | | This was missed as a part of an incorrect merge.
* eolian: add support for inlist structsDaniel Kolesa2019-02-288-15/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for inlist structs, a special type of struct that can only be used with inlists. This differs from regular structs in a couple ways: 1) They are stored separately. Just like structs, enums, aliases have their own storage, so do inlist structs. 2) They can't be @extern, nor they can be opaque. 3) They are their own type of typedecl. 4) When they contain only one field, this field must be a value type always, cannot be a pointer. Like regular structs, they can have arbitrary fields, and they can have a pre-set free function via @free(). In C, the inlist structs will be generated exactly like ordinary ones, except they will have EINA_INLIST before the first field. Other binding generators can deal with them as they wish, for example to provide high level interfaces to them. This does not yet do the plumbing necessary to hook these into the type system, nor it adds generator support. @feature
* tests: add test for elm_layout_text_setMike Blumenkrantz2019-02-271-0/+13
| | | | | | | | | | | | | | | | Summary: ref T6931 Reviewers: stefan_schmidt, cedric Reviewed By: cedric Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T6931 Differential Revision: https://phab.enlightenment.org/D7603
* efl_ui_layout: check part existence in text_setMike Blumenkrantz2019-02-271-0/+1
| | | | | | | | | | | | | | | | Summary: fix T6931 Reviewers: bu5hm4n, cedric, segfaultxavi Reviewed By: bu5hm4n Subscribers: #reviewers, #committers Tags: #efl_widgets Maniphest Tasks: T6931 Differential Revision: https://phab.enlightenment.org/D7888
* efl_container: remove content_removeYeongjong Lee2019-02-2723-90/+12
| | | | | | | | | | | | | | Most of classes implements Efl.Container.content_remove are just calling "unpack" except of "Efl.Canvas.Layout" and "Efl.Ui.Layout". This patch remove the asymmetrical API and add content_remove API of "Efl.Canvas.Layout" and "Efl.Ui.Layout" that child can be remove without efl_part APIs. ref T7576 Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de> Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D7913
* meson: modify install path of bqmgr binaryWonki Kim2019-02-271-4/+5
| | | | | | | | | | | bqmgr is installed under ${libdir}/ecore_buffer/bin/ on autotools. and it's not on meson. this patch modify the install path on meson to a place that autotools installs outputs under and this contains file name of binary also Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de> Differential Revision: https://phab.enlightenment.org/D7836
* meson: modify install pathes for modules of ecore_bufferWonki Kim2019-02-273-9/+15
| | | | | | | | there are differences between meson and autotools. autotools installs them under ${libdir}/ecore_buffer/modules/module/version/ as module.so Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de> Differential Revision: https://phab.enlightenment.org/D7837
* efl_canvas_layout_part_external: implement missing functionsMarcel Hollerbach2019-02-272-1/+16
| | | | | | | | | | | | | | | | | | | | | Summary: this just prints a error, manipulating the content here is not permitted. As it is created by edje externals, which are owned by edje. ref T5719 Depends on D7757 Reviewers: cedric, zmike, segfaultxavi Reviewed By: zmike Subscribers: q66, #reviewers, #committers Tags: #efl Maniphest Tasks: T5719 Differential Revision: https://phab.enlightenment.org/D7759
* test/ui_table: add unittest for Efl.Ui.TableYeongjong Lee2019-02-275-0/+368
| | | | | | | | | | | | | | | | | | | | | | | Summary: {F3627728} {F3627729} ref T5487 Depends on D7892 Test Plan: make check Reviewers: jpeg, Jaehyun_Cho, zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T5487 Differential Revision: https://phab.enlightenment.org/D7840
* ui.table: implement homogeneous modeYeongjong Lee2019-02-274-8/+118
| | | | | | | | | | | | | | | | Summary: Homogeneous mode means children are of the same weight and of the same min size which is determined by maximum min size of cells. Depends on D7841 Reviewers: Jaehyun_Cho, jpeg, zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7892
* efl_ui_table: refactor layout_updateYeongjong Lee2019-02-2710-265/+653
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: There are three reasons to refactor layout_update of Efl.Ui.Table. === 1. Inconsistency of hint behavior. === Some hint property is often not respected. for example, hint_min is ignored in Table when it is used with hint_max even if hint_weight is 0. hint_aspect is always ignored in Table. The ambiguous behavior make it hard to layout widgets in container. of course, we documented 'it's just a hint that should be used whenever appropriate.' but i don't think it means that 'hint API is sometimes respected and we also don't know when that API is respected.'. at least there is rule for consistent behavior and we should be able to explain why a widget is located here and why some hint property is ignored. So, i'll suggest priority of hint property. this refactoring support following priority. 1) HintMin 2) HintMin + HintAspect 3) HintMargin 4) HintMax 5) HintAspect 6) HintWeight, HintFill 7) HintAlign ref T5487 Please check with unit test D7840 === 2. To Enhance usability. === Efl.Ui.Table is using homogeneous mode of evas_table which have same columns, rows size. but i think a table can generally change columns, rows size and we can provide homogeneous mode option.(D7892) In this patch - table columns(rows) min size is decided by maximum size among its cells width(height) min size. - table columns(rows) weight is decided by maximum weight among its cells horizontal(vertical) weight. Also, pack_align is implemented. it is used if no item has a weight. === 3. To remove internal evas_table. === This is low priority work. however, i guess is is necessary for lightweight container widget. there are two size_hint callback to adjust table size and efl_canvas_group_calculate is called twice when it is resized. This patch is first step to remove internal evas_table. Test Plan: make check elementary_test -to 'efl.ui.table' Reviewers: jpeg, Jaehyun_Cho, zmike Reviewed By: zmike Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T5487 Differential Revision: https://phab.enlightenment.org/D7841
* efl_ui_widget: child_can_focus is not needed anymoreMarcel Hollerbach2019-02-272-84/+2
| | | | | | | | | | | | | | | | | | | | summary_: pd->logical.child_count is a counter where focusable children do register themself in the parent if they can be focused or not. With this we don't need the updating of this internal flag nor the flag itself anymore. Depends on D8027 Reviewers: woohyun, cedric, Jaehyun_Cho, zmike, segfaultxavi Reviewed By: segfaultxavi Subscribers: #reviewers, #committers Tags: #efl Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D8030
* efl_ui_widget: make interest_region_mode legacyMarcel Hollerbach2019-02-276-44/+20
| | | | | | | | | | | | | | | | | | | | | | | | summary_: interest_region_mode makes it possible, that interest_region_get either returns WIDGET or ITEM coordinates. However, efl-api does not have items. That means, this can be legacy. ref T7553 Depends on D8026 Reviewers: woohyun, cedric, Jaehyun_Cho, zmike, segfaultxavi Reviewed By: segfaultxavi Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T7553 Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D8027
* efl_ui_widget: move show_region to legacyMarcel Hollerbach2019-02-272-113/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | summary_: show_region is simular to focus_region. However, it builds up on setting custom functions per setter to the widget, which are then executed. This can be solved better by overwriting the interest_region getter, and using a function like elm_widget_focus_region_show (This function still needs to find its place in the eo api). ref T7553 Depends on D8025 Reviewers: woohyun, cedric, Jaehyun_Cho, zmike, segfaultxavi Reviewed By: segfaultxavi Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T7553 Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D8026
* efl_ui_widget: move focus_highlight to the windowMarcel Hollerbach2019-02-2710-282/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | summary_: the widget implementation just redirected calls from efl_ui_widget to efl_ui_win. Which makes the properties unncessesary on the widget. This commit moves them now to the window. The legacy implementation of the window can now go away, as this is taken care of by eolian directly. ref T7553 Depends on D8017 Reviewers: woohyun Reviewed By: woohyun Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7553 Reviewed-by: WooHyun Jung <woohyun0705@gmail.com> Differential Revision: https://phab.enlightenment.org/D8025
* efl_ui_widget: redo disable handlingMike Blumenkrantz2019-02-2722-169/+159
| | | | | | | | | | | | | | | | | | | | | | before the disable property was a bit weird. Setting something to disabled=true will disable all children of the widget that is changed. However, only the update function of the children will get the false flag, not the flag itself. Which means, to query the real disabled state, we need to walk up the parent relations. With this patch, every change to disabled will go through the disabled property, which mean, a implementor can just overwrite the disabled property, and adjust its internal state there. Just be carefull, a set to disabled=true still might result in disabled=false. This makes the function on_disable_update unneccesary. Which also cleans up the Efl.Ui.Widget class. ref T7553 Depends on D8016 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D8017
* elementary: remove unnecessessary disabled setterMarcel Hollerbach2019-02-277-47/+2
| | | | | | | | | | | | | | | | | | | | summary_: those objects are disabled anyways, because disabled is applied to the objects in a tree. Which means, subobjects of a widget are disabled whenever the widget is disabled anyways. Depends on D8015 Reviewers: cedric, zmike, segfaultxavi, stefan_schmidt Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D8016
* efl_ui_widget: move orientation to the specific users of this widgetMike Blumenkrantz2019-02-279-215/+178
| | | | | | | | | | | | | | | The new api is moved into either Efl.Ui.Win or Efl.Ui.Layout. Only Efl.Ui.Layout is interested in the rotation, as this is the only widget that can actaully apply it to the theme. The value itself however is unique to the window, which means, the window is the only point where the rotation is stored, and this is the point, where rotation changes are brought to the layouts. ref T7553 Depends on D8014 Differential Revision: https://phab.enlightenment.org/D8015
* efl_ui_widget: introduce a new APIMarcel Hollerbach2019-02-279-0/+399
| | | | | | | | | | | | | | | | | | | | Summary: this new API can be used to get a easy to use iterator, to iterate through all the children of a specific widget. ref T7553 Reviewers: stefan_schmidt, zmike, cedric, segfaultxavi Reviewed By: segfaultxavi Subscribers: woohyun, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7553 Differential Revision: https://phab.enlightenment.org/D8014
* efl.canvas.object: clip -> clipper && clipees -> clipped_objectsMike Blumenkrantz2019-02-2718-88/+109
| | | | | | | | | | | | | | | | | | | | | Summary: also clipees_has -> clipped_objects_count ref T7555 Depends on D8039 Reviewers: segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7555 Differential Revision: https://phab.enlightenment.org/D8040
* efl.file_save: rework save flagsMike Blumenkrantz2019-02-277-73/+76
| | | | | | | | | | | | | | | | | | | | | | | Summary: instead of passing a string which requires reading docs to know which arbitrary string key=value sets can be passed, use an extensible struct which contains more easily referenced values ref T7672 Depends on D8035 Reviewers: segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7672 Differential Revision: https://phab.enlightenment.org/D8039
* efl.canvas.group: group_member_del -> group_member_removeMike Blumenkrantz2019-02-278-14/+14
| | | | | | | | | | | | | | | | | | | | | | Summary: api naming in efl uses 'del' when deleting an object and 'remove' when removing something from an object ref T7554 Depends on D8034 Reviewers: segfaultxavi, bu5hm4n Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl_api Maniphest Tasks: T7554 Differential Revision: https://phab.enlightenment.org/D8035
* efl.canvas.group: add events for member add/removeMike Blumenkrantz2019-02-272-0/+7
| | | | | | | | | | | | | | | | | | | Summary: ref T7554 Depends on D8032 Reviewers: segfaultxavi, bu5hm4n Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl_api Maniphest Tasks: T7554 Differential Revision: https://phab.enlightenment.org/D8034
* efl.ui.layout: split into abstract and real classMike Blumenkrantz2019-02-2718-155/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: most widgets inherit from layout to provide implementations for common functionality such as content/text/theme get+set. one of the things that layout also brings into its inheritance hierarchy is efl.file and implementations for its methods. this becomes a problem when the widget which inherits layout also wants to provide implementations for efl.file methods (e.g., entry, which uses efl.file to load text files) as it will result in calling all of the efl.file implementations up the chain. in the case of entry, this could result in the 'file' property eventually being set to the current theme file in use by the entry's layout object, and then the entry will attempt to autosave its content to the default theme file when it is destroyed, corrupting the theme file and breaking everything to solve this: * efl.ui.layout remains an instantiable class which implements efl.file * efl.ui.layout_base is the abstract class which provides all the methods of layout but should be inherited by all widgets which want to implement efl.file functionality Depends on D8018 Reviewers: bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl_api Differential Revision: https://phab.enlightenment.org/D8032
* efl.file: improve api a bitMike Blumenkrantz2019-02-27116-956/+1371
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: the previous implementation/api had a number of issues: * "file" property contained both "file" and "key" values - also performed file loading operation * "load_error" property which was specific to image objects * no methods for controlling file loading/unloading this patch attempts the following changes: * split "file" property into "file" and "key" properties - also remove "key" from existing "mmap" property * remove "load_error" * directly return error codes from operations * add "load" and "unload" methods for directly controlling load state * add implicit file loading if file/mmap is set during construction * rewrite all efl.file implementations to move file loading into load() method * rewrite all usage of efl.file api based on these changes * add C extension functions to mimic previous behavior ref T7577 Reviewers: segfaultxavi, bu5hm4n, cedric Reviewed By: segfaultxavi Subscribers: vitor.sousa, #reviewers, #committers Tags: #efl_api Maniphest Tasks: T7577 Differential Revision: https://phab.enlightenment.org/D8018
* elua tests: fix distcheckDaniel Kolesa2019-02-271-22/+26
| | | | | | | | The elua tests need to create a temporary file, so chdir'ing first will not work, as the tests source dir is immutable during distcheck. Therefore, only chdir once absolutely necessary, and before that make sure that all file accesses are to temporary ones.
* meson: edje: setup edje_codegen for cross-builds as wellStefan Schmidt2019-02-272-2/+10
| | | | | | | | We had it all setup for edje_cc, but missed edje_codegen which is used in the examples. Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de> Differential Revision: https://phab.enlightenment.org/D7963
* eio: fix not to overflow data by performing arithmetic.Hermet Park2019-02-271-1/+1
|
* evas vg: don't access a dangling pointer.Hermet Park2019-02-271-1/+2
|
* edje: free more data descriptors on shutdownMike Blumenkrantz2019-02-261-0/+3
| | | | | | | | | | | | | | Summary: fix some leaks Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8022
* examples/graphical: Mark unused parameters with EINA_UNUSEDChristopher Michael2019-02-261-3/+3
|
* examples/camera_light: Mark unused parameters with EINA_UNUSEDChristopher Michael2019-02-261-7/+7
|
* examples/sphere_hunter: Mark unused parameters with EINA_UNUSEDChristopher Michael2019-02-261-2/+2
|
* examples/performance: Mark unused parameters with EINA_UNUSEDChristopher Michael2019-02-261-29/+28
|
* examples/location_example: Mark unused parameters with EINA_UNUSEDChristopher Michael2019-02-261-1/+1
|
* examples/efl_canvas_layout_text: Mark unused parameter with EINA_UNUSEDChristopher Michael2019-02-261-1/+1
|
* examples/efl_ui_list: Mark unused parameters with EINA_UNUSEDChristopher Michael2019-02-261-9/+9
|
* examples/filemvc: Mark unused parameter with EINA_UNUSEDChristopher Michael2019-02-261-1/+1
|
* efl_ui_scroller: apply handling focus.Hosang Kim2019-02-266-4/+477
| | | | | | | | | | | | | | | | Summary: Focus manager is applied to process key events. Test Plan: elementary_test -> efl.ui.scroller Reviewers: SanghyeonLee, YOhoho, marcelhollerbach, bu5hm4n Reviewed By: bu5hm4n Subscribers: woohyun, Jaehyun_Cho, bu5hm4n, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7776
* efl-csharp: Use proper conversion functions.Lauro Moura2019-02-255-25/+25
| | | | | | | | | | | | | | | | Summary: PtrToStringAuto may switch between ANSI and UTF16 encodings in a not so clear way, leading to decoding errors when getting messages from DBus. Reviewers: vitor.sousa Reviewed By: vitor.sousa Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8023
* efl-csharp: Remove legacy Evas bindings.Lauro Moura2019-02-2516-700/+1
| | | | | | | | | | | | | | Summary: Pave the way to correct beta classes handling. Reviewers: vitor.sousa, segfaultxavi, bu5hm4n Reviewed By: vitor.sousa, bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8004
* eina: free vpath hash on shutdownMike Blumenkrantz2019-02-251-0/+2
| | | | | | | | | | | | | | Summary: this resolves a considerable number of leaks in unit tests Reviewers: bu5hm4n Reviewed By: bu5hm4n Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8020
* elm_map: Make more robust elm_mapMichaƫl Bouchaud (yoz)2019-02-251-12/+32
| | | | | | | | | | | | | | | | | | | | Summary: Make more robust elm_map even if the user wipe is cache directory or import an already filled tile cache. @fix T7443 Reviewers: zmike, cedric Reviewed By: zmike Subscribers: thierry1970, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7443 Differential Revision: https://phab.enlightenment.org/D7617
* efl.gfx.entity: combine show/hide events into visibility,changedMike Blumenkrantz2019-02-257-30/+34
| | | | | | | | | | | | | | | | | | | | | | Summary: this requires some internal hackery to preserve legacy compatibility and correctly translate the single new event into two legacy events ref T7558 Depends on D8018 Reviewers: segfaultxavi, bu5hm4n Reviewed By: segfaultxavi Subscribers: bu5hm4n, segfaultxavi, cedric, #reviewers, #committers Tags: #efl_api Maniphest Tasks: T7558 Differential Revision: https://phab.enlightenment.org/D8019
* efl.canvas.scene: rename "smart" methods to "group" methodsMike Blumenkrantz2019-02-255-13/+13
| | | | | | | | | | | | | | | | | | | | | Summary: "group" is the name used for interfaces api, so be consistent by using that naming here too ref T7584 Depends on D8019 Reviewers: segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7584 Differential Revision: https://phab.enlightenment.org/D8021
* genlist: fix wrong returns in window tooltip set.SangHyeon Jade Lee2019-02-251-1/+1
| | | | | | | | | | | | | | Summary: tooltip_window_mode_set returns input disable value not a successibility of API actions. when user set window_mode to false, it must return false regardless of item view existence. Reviewers: Hermet, woohyun, eagleeye, cedric, zmike Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7912
* eolian: validate betanessMarcel Hollerbach2019-02-253-6/+32
| | | | | | | | | | | | | | | | | | Summary: if there is a none beta class, then this class should not depend on beta classes in parameters / event types / return types, parent inherits. This adds this validation, so we can start to slowly to unbeta more and more classes. Reviewers: q66, zmike, cedric, segfaultxavi Reviewed By: q66 Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7999
* build: test eo fallback addMarcel Hollerbach2019-02-251-0/+14
| | | | | | | | | | | | | | | | Summary: this enables tests with the fallback implementation of EO. Depends on D7924 Reviewers: stefan_schmidt, cedric, zmike, segfaultxavi Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7931
* efl.content: add event for when content is changed containing content as dataMike Blumenkrantz2019-02-257-4/+14
| | | | | | | | | | | | | | | | Summary: ref T7588 Reviewers: cedric, segfaultxavi Reviewed By: cedric, segfaultxavi Subscribers: bu5hm4n, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7588 Differential Revision: https://phab.enlightenment.org/D7907
* docs: Assorted fixesXavi Artigas2019-02-254-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: - Fix multiple doxygen-style references: Doxygen docs refer to types with #foo whereas Eolian uses @foo. In lots of places the old Doxygen docs have been just copied into eo files without properly translating references. - Add some missing descriptions: Empty doc tags like [[]] should not be used. Please try at least to provide a single-line comment, and we can improve that later. There are still lots of empty doc tags, and their authors will be notified. Test Plan: Only docs change. make doc and DocFX still work. Reviewers: zmike, cedric, bu5hm4n Reviewed By: zmike Subscribers: #reviewers, foo, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7976