Commit Graph

12152 Commits

Author SHA1 Message Date
Stefan Schmidt fd063a336b tests: disable new atspi parent test for me as it breaks
Breaking distcheck for me and delaying the alpha1 tarballs. The API is still
marked as unstable but we might want to look into it during the beta's.
2015-10-05 15:46:24 +02:00
Chris Michael bcc0cd758a elementary: Comment out (#if 0) unused functions
Summary: Unsure whether these are left-over, or are going to be
implemented in the near future...but for now, #if 0 out these 2
functions as they are currently unused.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-10-05 09:11:25 -04:00
Carsten Haitzler 956a05ff8d elm run - be explicit about elm run not nesting in docs
@feature
2015-10-05 16:09:58 +09:00
Lukasz Stanislawski 0c8a75442a atspi: add new relationship append/remove/clear API
Allow to add some extra contextul information about accessibility objects
which can be used by Assistive Technology to provide better user experience.

API is still marked as beta.

@feature
2015-10-05 08:58:12 +02:00
Lukasz Stanislawski 83fd91edf5 atspi: support org.a11y.atspi.Collection interface
org.a11y.atspi.Collection interface allows to perform fast search
queries on accessibility objects tree.
Due to lack of specification of collection interface this implementation
base on gnome project implementation from https://git.gnome.org/browse/at-spi2-atk/.

@feature
2015-10-05 08:06:51 +02:00
Tom Hacohen 2299d98139 Revert "Genlist: only get item data if needed."
This actually doesn't work for coverity, I guess we just need to mark it
as false-positive, as it will never be null.

This reverts commit 178e7e6ac9419742d1bbe583fd252fc6536e5649.
2015-10-04 17:52:18 +01:00
Stefan Schmidt 80559cbec7 doc: make sure we actually run the command to get the example screenshots
These screenshots are used in the documentation but we never made sure that we
have them actually. This resulted in our docs missing image links.

Thanks to Jean Rene Dawin for reporting it at the Enlightenment Developer Day.
2015-10-04 18:35:22 +02:00
Tom Hacohen a06105d8dd Genlist: only get item data if needed.
Moved the data fetching to be after the tests. This doesn't really
matter and is mostly there to silence coverity. Coverity was complaining
about "it" being dereferenced before the null check (implicit in
EO_OBJ), so reordering it will fix it.

CID 1040000
2015-10-04 15:12:35 +01:00
Cedric BAIL 44425a748d config: fix NULL access on invalid config loading
CID 1308381
2015-10-04 16:00:54 +02:00
Jee-Yong Um b0bdabff51 elm_hover: delay hover dismiss while handling edje signal
Summary:
elm_hover_dismiss() doesn't hide hover directly, but sends signal only.
It can be translated that "dismiss" do not hide hover only, but handles
some works. (EDC program, callbacks etc.)
However, "dismiss" sends signals after hide hover itself, so following
edje signals are ignored. (Hover cannot be seen already!)
This patch makes hover dismiss delayed while handling edje signal.

@fix

Test Plan: elementary_test hover2

Reviewers: Hermet, cedric

Reviewed By: cedric

Subscribers: woohyun

Differential Revision: https://phab.enlightenment.org/D3068

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-04 15:38:57 +02:00
Shilpa Singh 2ad050a5bc elc_naviframe: fix crash in strcmp, if text_set is NULL issue
Summary:
Issue: If text set is NULL to naviframe, crash happens in strcmp
Soln: Check for text if NULL,  before passing to strcmp

@fix

Test Plan:
//Pass the text as NULL
elm_object_part_text_set(nf, "title", NULL);

Reviewers: Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3052

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-04 15:26:13 +02:00
Jee-Yong Um 60ff0a3c6e elm_hoversel: add elm_hoversel_label_auto_changed_set/get() API
Summary:
Hoversel can be used like dropdown or pulldown menu.
In that case, changing hoversel label into selected item lable can be
considered as common usage of hoversel.
This API automatizes changing label.

Reviewers: SanghyeonLee, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2963

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-04 15:10:29 +02:00
Jee-Yong Um 9a9cc71a8a elm_hoversel: refine hoversel scrollability function
Summary:
Some modifications for hoversel scrollability are applied.
For example,
The logic for generating scroller is changed. (newly added during activation)
If hoversel's contents are larger than hover,they will be resized to fit hover.
If hoversel is moved (by window rotation etc.), scroller will be resized.
Reduandant code are removed from popup for scrollability.

Test Plan:
You can see the sample for scrollable hoversel in second one
of "elementary_test hoversel".

Reviewers: Hermet, SanghyeonLee, cedric

Reviewed By: cedric

Subscribers: godlytalias, Hermet

Differential Revision: https://phab.enlightenment.org/D2926

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-04 14:56:54 +02:00
Vivek Ellur ecd5530376 elm_video: port eo_event callbacks to use eo_event arrays
Summary:
Changed eo_event_callback_add to use eo_event_callback_array_add
in elm_video.c

Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com>

Reviewers: cedric

Differential Revision: https://phab.enlightenment.org/D3096

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-04 12:05:55 +02:00
Lukasz Stanislawski d1ec64205d atspi: add translation domain for name and description.
@feature
2015-10-02 21:56:14 +02:00
Lukasz Stanislawski 61845ef600 atspi: properly set parent.
Set proper atspi parents in cases when AT-SPI object tree structure
should be different then elementary tree (mostly in cases of elm_widget_items)

Add regression tests for those cases.
2015-10-02 16:49:15 +02:00
Lukasz Stanislawski c7955e54f1 widget_item: emit atspi children-changed only for non-destroyed parent. 2015-10-02 11:41:02 +02:00
Lukasz Stanislawski 67f49ac0ad atspi: fix state macros after extending Elm_Atspi_State_Type. 2015-10-02 11:33:46 +02:00
Lukasz Stanislawski ca134076eb atspi: encapsulate common behaviour in atspi mixin class.
This patch moves some duplicated implementation from elm_widget
and elm_widget_item classes into atspi base mixin. It allows to
better share code and reduce maintainability.

Change-Id: I8d264661e7ffade7da72299f29075a536d71eaa3
2015-10-02 11:32:04 +02:00
Tom Hacohen 6606ad372a Revert "elm_calendar: weekdays do not get translated when language is ..."
As agreed on the ML, eina_tmpstr_strftime() should be removed.

This reverts commit 10b94fb1409487e256a01b3c45ff5a9cd9f678da.
2015-10-02 09:28:56 +01:00
Amitesh Singh d4729368bb test_genlist: remove check for array comparision against NULL
CID: 1324955
2015-10-02 00:26:16 +05:30
Lukasz Stanislawski 4feac51786 Merge branch 'devs/stanluk/perf'
Serie of patches reducing overall memory overhead of atspi mode.

The main changes include:
* use recently fixed eldbus_service_register_fallback function instead
  of regular ones.
* use global accessibility events emitter and handler to avoid registering array
  of callbacks on every accessible object.
* do not keep strings with object paths
2015-10-01 16:09:43 +02:00
Lukasz Stanislawski f15796036e atspi: add global event emitter
Introduce global event emitter for accessibility events. With such emitter
there is no need to register array of callbacks on every accessibility object.
2015-10-01 16:00:28 +02:00
Lukasz Stanislawski 59fc5e1643 atspi: use eldbus fallback interface
Fallback eldbus interface allows to handle dbus method call on
multiple object paths only with single callback. This greatly
reduces a ammount of memory since there is no need
to register eldbus interface for every accessible object.
2015-10-01 15:30:12 +02:00
Lukasz Stanislawski 37a7d7cbf6 atspi: reduce memory footprint
Use pointer hash instead of string hash to account information
about accessible objects.
Use statically allocated string to return object paths.
2015-10-01 15:30:07 +02:00
Mike Blumenkrantz 5afd4e7521 build: remove colorclass generated files 2015-10-01 08:34:12 -04:00
Shilpa Singh ab20dd4b39 elc_multibuttonentry: add item disable support
Summary:
Add item disable support in multibuttonentry widget

@feature

Test Plan: elm_object_item_disabled_set on MBE item

Reviewers: CHAN, Hermet

Reviewed By: Hermet

Subscribers: CHAN, Hermet, navnbeet

Differential Revision: https://phab.enlightenment.org/D3084
2015-10-01 19:55:02 +09:00
woochan lee a191fdb908 multibuttonentry: Fix MBE item box min size calc error.
Summary:
Before item packed again in mbe box. box calc own min height.
In this case, there is no need to increase line number when  entry is box item.
Actually the min height of box calculated wrong here.

@fix

Test Plan:
Give a color to internal box.
Then items add.
Check the internal box area got a wrong height value.

Reviewers: Hermet, cedric

Differential Revision: https://phab.enlightenment.org/D3102
2015-10-01 19:50:23 +09:00
ChunEon Park 4d3a21fb44 multibuttonentry: code refactoring.
remove duplicated computations.
2015-10-01 19:41:06 +09:00
woochan lee 6f46c328a3 multibuttonentry: Fix padding to be affected by base_scale in edc.
Summary:
MBE internal box get its padding size from edc.
Previously, it does not consider when calculating the padding size.
In this commit, the padding size from edc is divided by its base_scale
so that desirable size can be calculated.

@fix

Reviewers: Hermet, cedric

Differential Revision: https://phab.enlightenment.org/D3103
2015-10-01 19:35:59 +09:00
ChunEon Park 972d418377 entry: remove evas_object_propagate_events_set() calls on buttons in test.
Seems unnecessary in test code.
It just looks  copied & pasted from wrong code.
2015-10-01 19:23:58 +09:00
Stefan Schmidt de6bbca4cc po: update po files 2015-10-01 12:19:00 +02:00
Thiep Ha 0eb936a728 test/entry: add editable set
Summary:
There is no good entry test for changing editable mode.
This patch adds a test for changing editable in entry.

Reviewers: Hermet, tasn, herdsman

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D3112
2015-10-01 19:12:34 +09:00
Shilpa Singh 3f40e53fbf elc_multibuttonentry: Memory leak fix.
Summary:
If item filters are appended and multibuttonentry is deleted, the
filter list is not freed causing leak
Signed-Off By: Kumar Navneet <k.navneet@samsung.com>
Signed-Off By: Shilpa Singh <shilpa.singh@samsung.com>

Test Plan:
append item filters and when multibuttonentry is deleted leak is
observed, run valgrind in this scenario.

Reviewers: Hermet, cedric, CHAN

Subscribers: navnbeet

Differential Revision: https://phab.enlightenment.org/D3118
2015-10-01 19:03:29 +09:00
Mike Blumenkrantz aa60751341 colorclass: fix leaks on editor creation 2015-09-30 16:14:26 -04:00
Mike Blumenkrantz 783aeefeeb colorclass: remove remote editor, make base api public
the remote editor needs to be rewritten to use x11 client messages
and wayland shell extensions at some point. need to make this stable
now to use in e20 release
2015-09-30 16:04:43 -04:00
Thiep Ha 3aa16297cc po: Add Vietnamese translation
Summary: Add translation for Vietnamese.

Reviewers: seoz, stefan_schmidt, Hermet

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D3116
2015-09-30 14:10:56 +09:00
Amitesh Singh d22b8a1724 test_gengrid: Add test case for elm_gengrid_at_xy_item_get 2015-09-29 14:09:20 +05:30
Andrii Kroitor 6e5440705e spinner: fix extra callback calls
After a52a53802aebf03d297aa857f0cb6a9779949a49 callback was called after every
spinner value change even if it was made from code.
This commit fixes unfocus issues without breaking callbacks logic

@fix

Reviewers: CHAN, ajwillia.ms

Subscribers: CHAN, ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D3107

Signed-off-by: Andy Williams
2015-09-29 08:58:29 +01:00
Amitesh Singh 93c4754808 fix typo in elm_map_overlay_group_members_get API doc 2015-09-28 15:22:21 +05:30
Amitesh Singh ccadf49b98 fix typos in APIs doc 2015-09-28 15:06:48 +05:30
Amitesh Singh 14e39cfd48 genlist: refractor item focus update code
Add duplicate code into a new local function _elm_genlist_item_focus_update
2015-09-28 13:34:56 +05:30
Woochan Lee af6fb9dc02 Revert "index: fix index object got a wrong min value."
Summary:
I need to think more about item omitted case, horizontal case as well.
Now i'm working on this. It may need to refactoring internal logic.

Please revert this commit it break view when index item omitted.

@fix

This reverts commit 560338c5c31bda8912938074cb736eabdb9f1f31.

Reviewers: Hermet, cedric, woohyun

Differential Revision: https://phab.enlightenment.org/D3062

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-26 08:34:44 +02:00
Woochan Lee 8fa0d0059b flipselector.edc: array size +1 to prevent loosing last character.
Summary:
Flipselector lose last character when 50 characters showing case.

This defined value will using in snprintf, fetch_str(_edje_embryo_fn_fetch_str).
As you already know, we have to give the location in array for '\n'.

Test Plan: Give the 50 characters for flipselector text.

Reviewers: Hermet, cedric

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D3064

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-26 08:34:44 +02:00
Woochan Lee 59a14b4a81 multibuttonentry: fix MBE item clear, item delete logic error.
Summary:
elm_multibuttonentry_clear API not worked well.
It deleted only odd items. Because of the sd->items has been modified inside elm_widget_item_del().

Then we don't have to search target item inside of _item_del().

@fix

Test Plan:
Add MBE items.
Call elm_multibuttonentry_clear API.
Check the bug state.

Reviewers: Hermet, cedric

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D3065

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-26 08:34:44 +02:00
Shilpa Singh fe71ea324a elm_calendar: weekdays do not get translated when language is dynamically changed issue fix
Summary:
When calendar widget is already created and if we change language,
weekdays do not get translated because weekday string is statically
stored only during create.
Update the weekdays again when object is changed.

Test Plan:
1. Create and show calendar widget
2. Change the language
Weekdays do not get translated

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3035

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-26 08:34:44 +02:00
Jaehwan Kim fd5b78b7da focus: change the focus don't stay to scroller.
The focus go to scroller only when it needs.
If the focusable object isn't in the current viewport of the scroller,
the scroller should have the focus.
If not, the focus move to the focusable object in the scroller.

@feature.
2015-09-25 15:45:03 +09:00
Jaehwan Kim 3265eb51cd focus: add the focus_direction feature about item.
When the focus is moved, it uses focus_direction instead of
focus_origin.
It can get the focus by using the geometry of previous focused object or item

@feature
2015-09-25 15:42:45 +09:00
Daniel Kolesa afca611101 toolbar_item: use actual doc refs 2015-09-24 14:22:22 +01:00
Woochan Lee 932a52370e spinner: Fix internal logic about special value show instead of number.
Summary:
If there is a special value for current spinner value, just jump to apply and show up the special value for entry text.
There is no need to check format.

@fix

Test Plan:
Add special value for each spinner value.
Spinner editable set as true.
Click the button layout for activated spinner entry.
Check the entry text.

Reviewers: cedric, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2976
2015-09-24 17:06:18 +09:00