Commit Graph

11668 Commits

Author SHA1 Message Date
woochan lee 81d5b99d72 toolbar: content_set function called when user content set to toolbar item.
Summary:
If User want to content set something to item area. there is no way to except elm customizing.
So i added this feature and make the toolbar item object to layout before.

Now user can content set something on item area only call "elm_object_item_part_content_set" API.

Test Plan:
Make some swallow part on toolbar edc.
and content set some layout to that swallow part to using "elm_object_item_part_content_set"

Reviewers: cedric, Hermet

Subscribers: SanghyeonLee, eagleeye, id213sin

Differential Revision: https://phab.enlightenment.org/D2777
2015-07-02 20:07:48 +09:00
woochan lee 2bf248fbc0 toolbar: item object change from edje object to layout.
Summary:
Its for support elm_object_item_XXXX APIs for toolbar item.
Its the pre work for toolbar item content set some layout to toolbar item layout automatically.
(without implement item_content_set with part name.)

I  abandoned for check the other side of this change. but its not has problem so i reclaim this commit
and put on another commit for this. https://phab.enlightenment.org/D2777

Test Plan: To all of the action on elementary toolbar test sample.

Reviewers: cedric, Hermet

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D2768
2015-07-02 20:00:58 +09:00
Thiep Ha f5cf77387c cnp: remove redundant code
Summary: Remove redundant NULL assign code

Reviewers: cedric, Hermet, JackDanielZ

Reviewed By: JackDanielZ

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D2782
2015-07-02 19:58:15 +09:00
Lukasz Stanislawski 4610ccfba2 ctxpopup: enhance atspi state information and actions. 2015-07-02 12:36:32 +02:00
Avi Levin 029a0421fa elm_actionslider, elm_map: porting evas smart callbacks to eo 2015-07-02 08:04:03 +03:00
Avi Levin 04ee4036d0 elm_image, elm_colorselector: porting evas smart callbacks to eo 2015-07-02 08:04:03 +03:00
Avi Levin 437f1f9f28 elm_genlist: porting evas smart callbacks to eo 2015-07-02 08:04:03 +03:00
Avi Levin b5eee8141c elm_toolbar: porting evas smart callbacks to eo 2015-07-02 08:04:03 +03:00
Avi Levin cb4e3f0750 elm_clock, elm_flipselector: porting evas smart callbacks to eo 2015-07-02 08:04:03 +03:00
Avi Levin 4851b666c2 elc_hoversel, elm_interface_scrollable: porting evas smart callbacks to eo 2015-07-02 08:04:02 +03:00
Avi Levin 2f7b600b09 elm_segment_control: porting evas smart callbacks to eo 2015-07-02 08:04:02 +03:00
Avi Levin 6de5045068 elm_panel: porting evas smart callbacks to eo 2015-07-02 08:04:02 +03:00
Avi Levin b4ed9ea161 elm_datetime: porting evas smart callbacks to eo 2015-07-02 08:04:02 +03:00
Avi Levin bd03400e7e elc_naviframe: porting evas smart callbacks to eo 2015-07-02 08:04:02 +03:00
Avi Levin 7c4411630c etc_ctxpopup, elm_gengrid, elm_notify: porting evas smart callbacks to eo 2015-07-02 08:04:02 +03:00
Vitor Sousa 2e7b6d38af elm_entry: use Efl.File in Elm_Entry
Summary:
Also using the second optional string parameter of efl_file_set as the
text format specifier.
Added string constants to represent the possible values.

Address the issue:
- Elm entry and the file interface clash on file_set.
Specified in the page:
https://phab.enlightenment.org/w/efl_interfaces/

Reviewers: felipealmeida, tasn

Reviewed By: tasn

Subscribers: thiepha, raster

Differential Revision: https://phab.enlightenment.org/D2353
2015-07-01 18:30:23 +01:00
Vitor Sousa 5a737f7187 win: Add autohide and ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN
Summary:
Add the "autohide" property to elm_win. This property, when set to
EINA_TRUE, automatically hides the window upon a "delete,request" signal.

Create ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN, a new quit policy that
automatically exit from the elm_run loop when all windows are hidden.
It is an alternative to autodel to conciliates the memory management
framework of Eo with any other memory management model the program may
be using (e.g. RAII principles of C++).

Create the auxiliary function "_elm_win_policy_quit_triggered" to check
triggering of quit policies.
The check in "smart_hide" is now necessary, since
ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN can be triggered when a window
is hidden.

Create the auxiliary function "_elm_win_flush_cache_and_exit" to avoid
code repetition for exiting the elm_run loop.

Make a small update on documentation in elm_win.h to mention the new
autohide property.

@feature

Reviewers: raster, felipealmeida, cedric, tasn

Reviewed By: felipealmeida

Differential Revision: https://phab.enlightenment.org/D2751
2015-07-01 15:40:57 +01:00
Lukasz Stanislawski f0fa3e0709 genlist: broadcast atspi expanded state changes 2015-07-01 10:44:58 +02:00
Amitesh Singh 6e0f4e6134 layout: Fix eo API error while running "Genlist 7" in elementary_test.
In case of naviframe, resize_obj is not edje.

Steps to reproduce:
1. elementary_test
2. Open "Genlist 7" sample.
3. Switch focus between windows ("elementary_test" <---> "Genlist 7").

Eo Errors:
ERR<8720>:eo lib/eo/eo.c:678 _eo_call_resolve() in lib/edje/edje_object.eo.c:430: func 'edje_obj_message_signal_process' (733) could not be resolved for class 'Elm_Layout'.

@fix
Resolves: T2534
2015-07-01 09:47:06 +05:30
Anand 449b9be714 test_focus: Focus should to move layout's entry
Summary:
While going through the test_focus(focus 2-> give focus to layout "entry") code found
focus should move to layout's entry instead of entry outside the layout.
Just change the entry object in callback ;)

Test Plan: elementry_test-->focus2-->give focus to layout "entry".

Reviewers: cedric, Hermet

Differential Revision: https://phab.enlightenment.org/D2611
2015-07-01 11:31:26 +09:00
Umesh Tanwar c68353545d Elm_Interface_Scrollable: Improvement in looping behavior
Summary:
x and y position variable assumes values ranging from min to max.
cw, the content width is larger than max in x axis. Beacause of this
the scroller is not able to loop in rigth/bottom direction. For looping
comparision min and max values should be used instead of content width.

@fix

Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com>

Reviewers: raster, seoz, cedric, Hermet

Reviewed By: Hermet

Subscribers: eagleeye, SanghyeonLee, singh.amitesh, sachin.dev

Differential Revision: https://phab.enlightenment.org/D2731
2015-07-01 11:14:42 +09:00
divyesh purohit ba21064aff elm_datetime: Fix datetime ctxpopup resize issue
Summary:
In elm_datetime, ctxpopup does not resize

@fix

Test Plan:
1) Change the scale value in elementary_config to 2.0 (so that a better size change in the ctxpopup's can be observed)
2) Open elementary_test and then the datetime
3) Click on the first datetime field and observe the ctxpopup's arrow position and then close it
4) Click on the same datetime field again, now observe that the ctxpopup's arrow has concided with the diskselector as it wasn't resized properly.

Reviewers: raster, Hermet, shilpasingh, subodh6129, seoz

Reviewed By: shilpasingh, subodh6129

Subscribers: rajeshps, govi, poornima.srinivasan

Differential Revision: https://phab.enlightenment.org/D2628
2015-07-01 11:02:18 +09:00
woochan lee 6044a5743f multibuttonentry: Delete item size min set when first box resize time.
Summary:
The mbe items has to get own min size to calc each items locate, box size etc...
but when first time box resize it will ignored.
It makes item wrong size issue when mbe located at some part of layout in runtime.

Reviewers: Hermet, seoz, woohyun

Differential Revision: https://phab.enlightenment.org/D2657
2015-07-01 10:54:47 +09:00
Lukasz Stanislawski 0de51626de atspi: enable atspi also in quicklaunch infrastructure 2015-06-30 23:24:34 +02:00
Daniel Zaoui 09d9f9b86b Genlist: use correct variable during realize
VIEW(it) is not set when the function is called. view should be used
instead.

@fix
2015-06-30 13:11:48 +03:00
Lukasz Stanislawski 2254bf710c atspi: fix missing Window signals on AT-SPI2 initialization
Patch adds connected/disconnected elm_atspi_bridge events to avoid
races between window getting focus and AT-SPI2 bus initialization.
When  bridge gets connected windows will reemit all "Created",
"Activated" and "Deactivated" events with regard to window focus.
2015-06-29 16:43:33 +02:00
Daniel Zaoui a7546a2b14 Set file permissions back to 644
Few files permissions have been modified by mistake in the past patches.
2015-06-29 16:34:49 +03:00
Lukasz Stanislawski 0b8adefcea atspi: add org.a11y.atspi.Application interface to root object 2015-06-29 12:55:37 +02:00
Lukasz Stanislawski 4b9308861d atspi: add missing header 2015-06-29 11:39:28 +02:00
Lukasz Stanislawski f75acf75c8 atspi: refactor atspi_bridge to eo object
This will allow to reuse eo events infrastructure
in next patches.
2015-06-29 11:30:26 +02:00
Avi Levin d773097e61 elm_flip: porting evas smart callbacks to eo 2015-06-29 11:02:17 +03:00
Avi Levin 48ee99dec7 elm_photo: porting evas smart callbacks to eo 2015-06-29 11:02:17 +03:00
Avi Levin 3013d6b82e elm_dayselector: porting evas smart callbacks to eo 2015-06-29 11:02:17 +03:00
Avi Levin 3300bdd6ce elc_player: porting evas smart callbacks to eo 2015-06-29 11:02:17 +03:00
Avi Levin cc0dc16409 elc_popup: porting evas smart callbacks to eo 2015-06-29 11:02:17 +03:00
Avi Levin d92d4afbb0 elm_box: porting evas smart callbacks to eo
Replacing  calls of evas_object_smart_callback_add/del/call
with eo_callback_add/del/call.
This will reduce the use of legacy events and callbacks lists in
smart_object which in turn will improve performance and reduce memory
use.
2015-06-29 11:02:17 +03:00
Amitesh Singh 7b3a54fbbd slider: call elm_widget_theme_get instead of elm_object_theme_get.
This reduces one function call and make code more consistent
between widgets.
2015-06-29 11:24:34 +05:30
Amitesh Singh 4ca3ef4514 Revert "theme: return false if elm_object_style_set() failed to set requested style."
This reverts commit 76004dfbec84664e253babc5bf576398a5901395.

We need to change other code also to accommodate this change.
_elm_theme_set should return an enum which tells what failed.
enum {
THEME_APPLY_FAILED,
THEME_DEFAULT_SUCCESS.
THEME_APPLY_SUCCESS
};

Based on that, we decide what needs to be done.
The above code will break the layout theme if incorrect theme are passed.
It should be backported to Elm 1.14.

@fix
2015-06-29 11:00:56 +05:30
Tom Hacohen c8a5ec36ff Wayland cnp: Fix const qualifier discarding following eolian const fixes. 2015-06-26 15:44:46 +01:00
Vitor Sousa e1959ee9b7 Replace C names by Eolian namespaced names in .eo files
Reviewers: tasn, felipealmeida, raster, cedric

Differential Revision: https://phab.enlightenment.org/D2750
2015-06-26 15:36:43 +01:00
jiin.moon 576f77d6e2 elm_config: Add feature to control transition scale for edje
Summary:
If the transition scale flag is enable in edje,
this value affect the transition scale for edje.
@feature

Test Plan: test elementary_config with enventor tool

Reviewers: raster, Hermet

Subscribers: raster

Differential Revision: https://phab.enlightenment.org/D2288
2015-06-26 13:54:48 +09:00
Daniel Juyung Seo ea5519d38e test_focus_policy: Enhance object focus policy test.
- Add more descriptions in the test.
- Set the focus to the first button automatically.
2015-06-26 10:30:21 +09:00
Daniel Juyung Seo e110dccae4 layout: Add more description for layout's internal smart data members. 2015-06-26 10:30:21 +09:00
Daniel Juyung Seo 8908a3df23 elm: Add missing const for getters. 2015-06-26 10:30:21 +09:00
Daniel Juyung Seo b254da1bd5 interface_scrollable: Add more description to animators.
It is surprising that there is no such a comment on a scrollerable
interface considering the complexity of scroller.
2015-06-26 10:30:21 +09:00
Daniel Juyung Seo c92b8e19e6 elm: Remove shadow variable declarations. 2015-06-26 10:30:20 +09:00
Daniel Juyung Seo 0891a4d11d edje_externals: Fix wrong free.
_signal is used after free. _signal will be freed soon any way.
This was introduced in 3da3082.

This fixes coverity CID 1308263.
2015-06-26 10:17:33 +09:00
Daniel Juyung Seo a7518cd19d test_win_keygrab: Fix buffer not null terminated error.
This fixes coverity CID 1308264.
2015-06-26 10:08:10 +09:00
Chris Michael 48fd252c94 elementary: Add rudimentary support for Elm Wayland apps to set border icon
Summary: This is a patch to fix T2453 where elm apps in weston/E did
not display the icon on the border. This is just preliminary support
because it only tries to find the efreet desktop file based on
_elm_appname. This support Could be extended to allow efreet to search
based on window title, etc, etc.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-06-25 13:36:07 -04:00
SangHyeon Lee 9bb528ef09 elm_interface_scrollable: fix wrong mirrored calculation
Summary:
This Patch is regarding D2553, but funtionally independent patch.
D2557 is also related with this patch, so to test working fine,
need to install those all three patches.

1. _elm_interface_scrollable_content_region_show store wx
   into scroll_interface_data without coverting mirrored_x.
   fix to store wx to mirror-converted x if is_mirrored.

2. _elm_scroll_x_mirrored_get return mirroed_x after compare zero not minx.
   so current mirrored_x couldn't be less then 0.
   fix to check min not 0 for set return value.

3.  _elm_scroll_x_mirrored_get calculation need to consider start position of scroller.
some scroller(e.g. gengrid) start from non-zero position, so calculation need to change
like below.
ret = (cw - (x + w - min));

@fix

Test Plan: You can test this after merge D2553 patch and D2557 and test gengrid2.

Reviewers: raster, Hermet, seoz, jaehwan, tanwar.umesh07, cedric

Subscribers: tanwar.umesh07, Jaehyun, anand.km, eagleeye, singh.amitesh

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-25 17:24:08 +02:00