Commit Graph

12281 Commits

Author SHA1 Message Date
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
Shashank Pandey fb4b8ec146 [Genlist] Added correct container_get callback for filter iterator.
Summary: Warning fixed: Container_get mechanism was wrong. Fixed it.

Test Plan: elementary_test => Genlist => Genlist filter

Reviewers: singh.amitesh, cedric, shilpasingh, SanghyeonLee

Subscribers: shilpasingh

Differential Revision: https://phab.enlightenment.org/D3105
2015-09-24 16:42:37 +09:00
woochan lee a80331c26c calendar: weekday update when first day of week changed.
Summary:
When user call elm_calendar_first_day_of_week_set() to change first day of week.
the marked day has to update.
But, it's not updated, because of internal logic error.
I fixed internal logic for update specific day mark.

@fix

Test Plan:
Called elm_calendar_mark_add()
Then called  elm_calendar_first_day_of_week_set(
Check the mark in not updated.

Reviewers: Hermet, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-23 15:30:18 -07:00
Vivek Ellur c73814da24 elc_popup: ported eo_event callbacks to use eo_event arrays
Summary:
Changed eo_event_callback_add to eo_event_callback_array_add function

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

Reviewers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-23 15:30:18 -07:00
Vivek Ellur c1b05df5a4 elc_player: ported eo_event callbacks to use eo_event arrays
Summary:
Changed eo_event_callback_add to use eo_event_callback_array_add

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

Reviewers: cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-23 15:30:18 -07:00
Vivek Ellur 9f6821d161 elc_multibuttonentry: ported eo_event callbacks to use eo_event callback array
Summary:
Changed eo_event_callback_add to use eo_event_callback_array_add

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

Reviewers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-23 15:30:18 -07:00
Vivek Ellur eedeedaf6e elm_spinner: ported eo_event_callbacks to use eo_event arrays
Summary:
Ported eo_event_callback_add to use eo_event_callback_array_add

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

Reviewers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-23 15:30:18 -07:00
woochan lee 0819e80a3f spinner: delete longpress timer when scroller enabled.
Summary:
If there is a spinner on scroller.
User can scrolling and spinner button longpress at the same time.

Prevent this weird action, delete longpress timer when scroller enabled.

@feature

Reviewers: Hermet, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-23 15:02:29 -07:00
Amitesh Singh 234cc584b4 test_genlist: fix compilation warnings 2015-09-23 22:21:39 +05:30
Shashank Pandey c4a558dd13 Elm_genlist: Add Item filtering support
Summary:
Add Filtering support in genlist based on filter function set by application.

@feature

Test Plan: Genlist filter sample added in elementary_test

Reviewers: raster, shilpasingh, cedric, SanghyeonLee

Subscribers: SanghyeonLee, divyesh, rajeshps, govi, prince.dubey, poornima.srinivasan

Differential Revision: https://phab.enlightenment.org/D2514
2015-09-23 20:50:05 +09:00
Hosang Kim bfff68bb45 elm_toolbar: fix elm_toolbar_select_mode_set API
Summary: Item is unselected when I changed select mode "ELM_OBJECT_SELECT_MODE_DEFAULT" to "ELM_OBJECT_SELECT_MODE_ALWAYS".

Reviewers: Hermet, cedric, raster, seoz, woohyun

Reviewed By: woohyun

Differential Revision: https://phab.enlightenment.org/D3086
2015-09-23 16:20:45 +09:00
Amitesh Singh 3a5f8759e8 gengrid: rename function _elm_gengrid_item_focus_raise to _elm_gengrid_item_focus_update
In function _elm_gengrid_item_focus_raise, we are doing more than just focus_raise.
Rename it to something more meaningful.
2015-09-23 12:46:24 +05:30
Amitesh Singh 91ce72b72a gengrid: move item focus related code to internal _elm_gengrid_item_focused() 2015-09-23 12:42:19 +05:30
Amitesh Singh b5a99fcf46 gengrid: fix duplicate edje signal (elm,state,focused) to item on focus
@fix
2015-09-23 12:22:21 +05:30
Shilpa Singh 4c271ad347 elm_conformant: display mode set fix
Summary:
Set the display mode to none only when both clipboard and keypad is
hidden.

Signed-Off By: Shashank Pandey <shashank.p@samsung.com>
Signed-Off By: Shilpa Singh <shilpa.singh@samsung.com>
@fix

Test Plan: Keypad opened, Clipboard opened, close clipboard

Reviewers: woohyun, CHAN, Hermet

Reviewed By: Hermet

Subscribers: CHAN, Jaehyun, shashank0990

Differential Revision: https://phab.enlightenment.org/D2968
2015-09-23 09:51:04 +09:00
Prince Kumar Dubey b145c9c759 [elm_win] Possible memory leak Fixed.
Summary: Memory assigned to variable "sd->wm_rot.rots" is not freed on window deletion.

Test Plan: Valgrind catch this memory leak.

Reviewers: raster, cedric, Hermet

Reviewed By: Hermet

Subscribers: govi, rajeshps

Differential Revision: https://phab.enlightenment.org/D3041
2015-09-23 09:40:32 +09:00
Carsten Haitzler 97ead86a39 elm - fix focus set on focus in on window due to previous focus fix
this fix is a fix due to the fix in
933dfca5bcda4943ecdd81ab09dc34989234f7f3 whihc fixed other issues. now
focus is properly set where it should be. this affected rage

@fix
2015-09-21 16:13:41 +09:00
Andy Williams a45c1c802c [spinner] Notify when value is edited directly
Previously an edit would trigger internal save but not notify
until the up/down button was tapped.
Now notify when value applied (unfocus). @fix
2015-09-20 11:47:39 +01:00
Amitesh Singh e96771e383 fix typos in APIs doc 2015-09-19 09:13:09 +05:30
Daniel Zaoui ef530149b6 Eo: move Focus Direction to elm_general.eot 2015-09-18 12:40:06 +03:00
Thiep Ha b2772fa5c1 test_dnd: transfer text without markup when drag label
Summary:
In Types Dnd test, if we drag from label to entry, the text is inserted
with "<br/>". The reason is that we drag with type ELM_SEL_FORMAT_TEXT
but the transferred data is markup.
This patch fixes it by changing the transferred data to text.

@fix

Reviewers: JackDanielZ

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D3072
2015-09-18 11:38:39 +03:00
Thiep Ha ea7caad9f4 dnd/x11: correct coordinates in pos callback
Summary:
The x, y coordinates in pos callback should be relative to
the top-left of the object.
This patch corrects the x,y coordinates and adds poscb to elementary test
to clearly show the bug case.

Test:
      Run Genlist Dnd Dflt Anim with the change in this patch.
      Drag an item to other genlist and see the printed out item, x, y.

@fix

Reviewers: JackDanielZ

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D3063
2015-09-18 11:30:23 +03:00