Commit Graph

169 Commits

Author SHA1 Message Date
Lukasz Stanislawski 2ca1f8a75a atspi: properly include at-spi headers.
Summary:
Change requested by TAsn. Previuosly AT-SPI headers were kept private
and included directly into elementary source code. From now on,
AT-SPI headers can be included from Elementary.h public header, however
will be marked as beta APIs.

Commit includes following changes:
* include all atspi headers into new elm_interfaces.h header.
* marking all at-spi interfaces methods/properties as @protected.
* wrap all common headers with EFL_BETA_API_SUPPORT.
* make some common APIs visible in lib, by adding EAPI attribute
  (if someone decides to use beta APIs).

Test Plan: out-off tree build with gcc, g++

Reviewers: tasn

Reviewed By: tasn

Subscribers: seoz, q66, kuuko

Maniphest Tasks: T1721

Differential Revision: https://phab.enlightenment.org/D1528
2014-10-17 16:57:26 +01:00
Tom Hacohen 7629c147eb Eo related: Change according to recent changes in eo_add().
For more info check out a7560dbc61 in
the EFL tree.
2014-09-25 17:39:34 +01:00
Stefan Schmidt 9cf70c353a elm_index: Also free last on error path.
If we can't realloc label we need to free last before we can return
or we leak it.

CID: 1193240
2014-06-17 11:12:04 +02:00
Zbigniew Kosinski 9ce23f0004 atspi:Set roles for widgets
Reviewers: stanluk, m.jagiello, raster

Differential Revision: https://phab.enlightenment.org/D930
2014-06-11 11:07:16 +09:00
Tom Hacohen efa41c7d75 Elm: Update code to use the new class names generated by eolian. 2014-06-03 11:54:44 +01:00
Tom Hacohen 19b2a1d3dd index: Adjusted to Eo2. 2014-04-10 09:35:01 +01:00
Daniel Zaoui 5a9067953d Eolian: Integration of Index 2014-03-23 14:17:38 +02:00
Daniel Juyung Seo b9a1047845 flip, index: Renamed smart data member 'down' to 'mouse_down' and used
EINA_TRUE/FALSE.

This commit is for consistency inside elementary.
2014-03-22 17:54:49 +09:00
Daniel Juyung Seo 8f7c12fef7 index: Set variable to NULL after free.
Then NULL check for this variable is not valid.
This fixes coverity CID 1193250:  Use after free  (USE_AFTER_FREE).

@fix
2014-03-21 00:55:31 +09:00
Daniel Zaoui e2206a1a22 Eolian: Integration of Elm Widget 2014-03-17 09:03:56 +02:00
Jaeun Choi 0e6364aeef elm_index: disable indicator when the selected item is unselected
Summary:
in current code, indicator is disabled only when mouse up event happens.
if the selected item is unselected through API before mouse up,
the indicator will remain active while no item is selected (highlighted).

Test Plan: None

Reviewers: Hermet, seoz, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D560
2014-02-17 20:24:18 +09:00
Jaeun Choi ec676a543f index: send active signal(elm,state,active) to selected item in auto_fill
Summary:
when index box is cleared and refilled, selected item's status still remains as selected
but not highlighted. should send active signal to the selected item so that it is highlighted.

Test Plan: None

Reviewers: Hermet, seoz

Reviewed By: seoz

Differential Revision: https://phab.enlightenment.org/D559
2014-02-17 00:54:56 +09:00
Jaehwan Kim db23689614 access: Add smart signal "access,changed"
It occurs that access mode is changed.
Application can add this callback for each widget.
2014-02-08 14:05:14 +09:00
WooHyun Jung 0a1179dde4 elm_layout now supports focused/unfocused smart callback
by itself for widgets that inherit layout class.
If it uses elm_widget's, smart callback will be called at the
beginning or smart_on_focus function.
2014-02-06 16:18:57 +09:00
ChunEon Park dbacb2fef9 elementary - send signal "language,changed" with one way in the widget.
Call the smart callback in the widget infra so that each widget don't need to hook the smart_translate only for the smart call.

This makes reducing duplicated code and supporting language,chagned from all widgets.
2014-01-23 19:30:34 +09:00
ChunEon Park aebdcff513 elementary - use the focused/unfocused string in widget defined.
Now, it will share the strings so that reduce the binary size also user uses it in one way.
2014-01-23 17:27:17 +09:00
Daniel Juyung Seo db5fe2581d elm: Removed unnecessary null check for evas_object_del. 2014-01-22 10:54:52 +09:00
Daniel Juyung Seo a4f3074f9c elm: Removed unnecessary null check for ecore_timer_del,
ecore_animator_del, and ecore_job_del.

As all efl public free apis get null as valid parameter, we do not need
to check null. I also removed some null check for other free apis which
were right next to timer/animator/job del. After this job code got
cleaner.
2014-01-21 23:18:16 +09:00
Yakov Goldberg 3379c124df all widgets: change Eo API for "elm_widget_theme()" to "theme_apply"
There are elm_widget_theme/theme_set/theme_get functions.
    In Eolian these functions will be described as "theme" method and
    "theme" property. There is clash here.
    So add suffix "_apply" to Eo API for "elm_widget_theme".
2014-01-21 11:08:29 +02:00
Ryuan Choi 6a8f33b298 els_box: Used Eina_Bool instead of int for the parameters of _els_box_layout 2014-01-14 03:26:16 +09:00
Daniel Juyung Seo 01f2f195ba diskselector, entry, index: Refactoring by reducing unnecessary redundant function calls
and removed unnecessary local variable.

- Do not need to call the same function with same parameter many times.
Use local variable for them.
- Remove unnecessary local variable if it is not needed.
2014-01-08 17:42:55 +09:00
Daniel Juyung Seo fd5c046dfe elm: Changed __UNUSED__ to EINA_UNUSED. 2014-01-06 23:33:57 +09:00
Daniel Juyung Seo e63dd3110a elm: Unified eina critical manro to CRI.
Being annoyed by different types of eina critical macros - CRI, CRIT,
 CRITICAL -, I concluded to unify them to one. Discussed on IRC and
 finally, CRI was chosen to meet the consistency with other macros -
 ERR, WRN, INF, DBG - in terms of the number of characters.
If there is any missing bits, please let me know.
2013-12-26 13:03:55 +09:00
Daniel Juyung Seo e7479334c6 elm_index.c: removed unused empty function. 2013-11-28 17:07:44 +09:00
Jihoon Kim 9e99a7f579 fix typos in doxygen and comments 2013-11-22 11:06:37 +09:00
Daniel Juyung Seo 754cda11a5 elm_index.c: changed internal smart data variable name more descriptive.
- event -> event_rect
- and added a comment for that variable.
2013-11-15 22:32:58 +09:00
Daniel Juyung Seo a876201c28 elm_index.c: internal refactoring as a code cleanup.
- removed unnecessary duplicated parameter passing.
- moved smart callback add to a proper place not to be confused with other object's smart callback addition.
- removed unnecessary sub object add. it's done automatically in elm_layout_content_set.
2013-11-15 21:50:40 +09:00
Daniel Juyung Seo bc5ce5c5b0 elm_index.c: Removed unused local variables. 2013-11-08 21:52:37 +09:00
Jaeun Choi 2f5b83982f bug fix: clear index omit info for omit disabled case as well
Summary:
In the original code, omit related information was cleared and recalculated
only when omit function was enabled. So dynamic omit mode change didn't work in elementary_test.
The information should be cleared everytime the index box is filled. fixed it.

Test Plan: None

Reviewers: seoz, Hermet, raster

CC: raster

Differential Revision: https://phab.enlightenment.org/D262
2013-11-08 18:11:07 +09:00
Tom Hacohen 2f1e1554e5 Changed Eo class names to be consistent.
All the class names are now of the format: Elm_Type_Subtype_Extra
2013-11-07 11:44:22 +00:00
Daniel Juyung Seo ddb1dbc9a7 elm_index.c: Process signal right away when elm_index_item_selected_set() is called. Patch by Moohyun Shin <moohyun.shin@samsung.com>
Reviewer: SeoZ
2013-11-04 13:16:40 +09:00
Daniel Juyung Seo a5a83e7a66 elm: Removed unnecessary local variable in sizing_eval. 2013-10-17 14:27:01 +09:00
Daniel Juyung Seo c40fbd89b8 elm: Use ELM_LAYOUT_DATA_GET convenient macro instead of calling eo_data_scope_get(obj, ELM_OBJ_LAYOUT_CLASS). 2013-10-05 17:29:13 +09:00
Daniel Juyung Seo 4343a9d73b elm_index.c: adopted ELM_WIDGET_DATA_GET_OR_RETURN macro. 2013-10-05 17:14:38 +09:00
Jaeun Choi f49cb8000d bug fix: fixed memory leak
Summary:
The original code created an edje object temporarily for index calculation
and didn't delete it which caused memory leak. fixed it.

Test Plan: None

Reviewers: Hermet, seoz

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D246
2013-10-01 22:18:57 +09:00
Daniel Juyung Seo 3a9cb2398b elm_index.c: Internal refactoring. Removed unnecessary internal function parameters.
- _index_box_clear()
- _index_box_auto_fill()
2013-09-30 22:15:01 +09:00
Cedric Bail 29af5e1e43 elementary: update to new eo_parent_get/set API. 2013-09-25 13:34:27 +09:00
ChunEon Park d461a8be05 elementary/widgets - set parents before widget constructs their body.
This avoids unnecessary multiple setups when obj and subobj has connected.
2013-08-27 14:19:19 +09:00
Shinwoo Kim c47ef1b7fe [access] use proper name _elm_access_info_get(); not _elm_access_object_get(); to get access information 2013-07-31 12:57:49 +09:00
Daniel Juyung Seo 6cf684f02a elm: added more "focused" and "unfocused" documentations.
genlist, hover, index, list, map, photocam, progressbar, radio, scroller, slider, slideshow, spinner, toolbar, win.
2013-06-10 14:13:55 +09:00
Daniel Juyung Seo d0d4afd590 elm: refactoring. no printf in the library. use eina log instead. 2013-06-05 14:40:03 +09:00
Daniel Juyung Seo c024dee61c elm_index.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:57:58 +09:00
Daniel Juyung Seo 5f053bf79a elm: refactoring. use more ELM_FREE_FUNC. 2013-05-23 15:54:49 +09:00
Cedric Bail c929b33052 elementary: properly sanitize headers order. 2013-05-03 16:07:06 +09:00
Daniel Zaoui 187d6bf8de Elementary: replace eo_data_get for objects data referencing. 2013-05-01 11:04:09 +03:00
Shinwoo Kim 816be82847 Merge branch 'master' of ssh://git.enlightenment.org/core/elementary 2013-04-17 16:40:55 +09:00
Daniel Juyung Seo e25a01ce0c elm_index.c, elm_widget_index.h: flourish the internals of index.
1. added more internal documentation.
2. use EINA_TRUE/FALSE macro for Eina_Bool type.
2013-04-17 15:11:00 +09:00
Ryuan Choi 42fce4830f elm_index.c: Fixed warnings when closed elementary_test "Index horizontal".
In _elm_index_smart_del, _item_free was called twice.
So this patch removed unnecessary _item_free() which called by elm_widget_item_del.
2013-04-17 14:35:34 +09:00
Daniel Juyung Seo ac06f3db82 elm_index: flourish it->select variable.
1. added a comments for it->select variable.
2. used EINA_TRUE/EINA_FALSE for Eina_Bool type.
2013-04-16 16:05:51 +09:00
Jaeun Choi a726c63102 elm_index: register access object in smart theme
Signed-off-by: eunue (Jaeun Choi)
2013-04-12 21:06:54 +09:00