Commit Graph

7266 Commits

Author SHA1 Message Date
Daniel Juyung Seo 13e4e1d7d0 cnp: Fixed cnp build warning by adding ifdef to cnp_debug.
This looks better.
Special thanks to barbieri for the suggestion.
2014-03-20 04:08:52 +09:00
Daniel Juyung Seo 90024102fd elm_widget: Call widget APIs only for widgets.
'cur' object can be non-widget object when calling
elm_widget_focus_direction_get and elm_widget_parent_get.
2014-03-20 04:04:12 +09:00
Daniel Juyung Seo 4e30fa3b6f toolbar: Fixed wrong parameter for elm_widget_sub_object_del.
Remove the icon from the sub object list for a widget not for an edje object.
2014-03-20 02:13:41 +09:00
Daniel Juyung Seo 77dfd41b76 scroller: Fixed wrong widget call to non-widget object.
content can be a non-widget object.
2014-03-20 02:13:03 +09:00
Daniel Juyung Seo fc2f1d58d7 cnp: Fixed build warning.
elm_cnp.c: In function '_x11_dnd_leave':
elm_cnp.c:1547:69: warning: unused parameter 'ev' [-Wunused-parameter]
2014-03-20 02:10:08 +09:00
Thiep Ha a71fc8cbb8 [Elm_Dnd] Fix type matching of drag and drop target objects in X11.
Summary:
Type matching for drag and drop targets does not consider drop target objects' types.

For example, we have drag object which provides image type and drop target object which only accepts text type.
For current code, in _x11_dnd_drop function, we only check savedtypes.types with _x11_atoms.
As result, we allows the image to be dropped into text. You can refer to the test in D617.

This path fixes this issue by matching drag object's type with drop targets' types to find suitable one.
@fix

Reviewers: raster, JackDanielZ, seoz, woohyun

Differential Revision: https://phab.enlightenment.org/D628
2014-03-19 16:26:46 +09:00
Daniel Zaoui 966227a602 Eolian: Integration of App Client View 2014-03-19 07:04:35 +02:00
Daniel Zaoui dd39b373d3 Eolian: Integration of App Client 2014-03-19 07:04:34 +02:00
Daniel Zaoui 45dc4cd461 Eolian: Fix ctor/dtor generation 2014-03-19 07:04:34 +02:00
Daniel Zaoui c9c4286ea6 Eolian: Integration of Actionslider 2014-03-19 07:04:34 +02:00
Daniel Zaoui cbae1d7cba Eolian: Integration of Access 2014-03-19 07:04:34 +02:00
Flavio Ceolin b364f7d9ba list: Avoiding the same item receive focus twice
When the item was activated by double click it received the focus twice
and the second is after had emitted the activated signal.
2014-03-18 17:43:14 -03:00
Flavio Ceolin 6c996a057d list: Fixing the focus on keyboard movement
Problem introduced on: fb13ad2
2014-03-18 17:15:36 -03:00
Daniel Juyung Seo 9dd3112f15 genlist: Fixed annoying autoscrolling bug in genlist item focus.
Now, genlist does not autoscroll to last focused/selected item when the genlist
is focused. It tries to find the nearest visible item instead of the
last focused/selected item.
2014-03-19 00:48:07 +09:00
Daniel Zaoui 61103864fe Accessibility: unref the object only if it exists.
If the type returned by evas_object_type_get is "", no object will be
created. There is no reason why unref would be invoked.
It removes all the bad prints in accessibility tests about obj_id NULL.

@fix
2014-03-18 14:03:34 +02:00
Daniel Juyung Seo 1c5f5ade61 list/genlist: Fixed Home and End key event handling routine.
Move focus and selection when Home or End key is pressed.

@fix
This needs a partial backport to elementary-1.9
2014-03-18 19:14:39 +09:00
Daniel Juyung Seo 5b3908a454 elm_widget: Removed unnecessary if statement. 2014-03-18 19:05:24 +09:00
Daniel Juyung Seo d596a0768f elm_widget: Call elm_widget functions only for widgets. 2014-03-18 19:05:24 +09:00
Daniel Juyung Seo c08c20aac3 Revert "genlist no longer scrolls crazily"
This reverts commit 7a653914ad048c00871d2ef71a56185e5a7fb1ca.

I will fix this in another way.
2014-03-18 19:05:24 +09:00
Daniel Juyung Seo 699b01bcb2 Revert "genlist now uses uniform item showing behavior when selecting items with keyboard"
This reverts commit 85332555e8d3e5b981cde10ba9a1675ef6a4936e.

I will fix this in another way.
2014-03-18 19:05:24 +09:00
Carsten Haitzler 53e1698ab8 warning-- 2014-03-18 17:34:30 +09:00
Subhransu Sekhar Mohanty 576984c0ca elm_theme: Added a cache in elm_theme for styles that are failed to load.
Summary:
Currenlty loading a style that is not present in the system hits the worst case path in elm_theme as it searches through all hirarchy before
reporting that the style is not there. if those styles requested frequently it will be a overhead as it will goes through all the theme files again.
To avoid that I have added a cache which will keep track of the styles whose loading were not sucessfull so that for future request we can simply check the
cache before looking into the hirarchy of theme files.

Reviewers: seoz, raster

Reviewed By: raster

CC: raster

Differential Revision: https://phab.enlightenment.org/D601
2014-03-18 17:34:30 +09:00
Daniel Zaoui 22287cae27 Eolian: Integration of Hover 2014-03-18 09:02:03 +02:00
Daniel Zaoui c3fecd2782 Eolian: Integration of Frame 2014-03-18 09:01:28 +02:00
Daniel Zaoui 6ef8dc7502 Eolian: Integration of Pan 2014-03-18 08:14:44 +02:00
Daniel Zaoui 7460467419 Eolian: Integration of Scrollable Interface 2014-03-18 08:14:44 +02:00
Daniel Zaoui 8c29f2a77b Focus: fix segfault due to bad call to Eo function.
Due to Eolian auto-generation, legacy parameters are directly
transferred to Eo functions without conversion.

In this case, is_next was Eina_Bool in legacy and Eina_Bool * in Eo.
The logic code was expecting a pointer but was receiving a Eina_Bool.

The fix consists in giving the logic code the Eina_Bool instead of the
pointer.

@fix
2014-03-18 08:14:44 +02:00
Daniel Juyung Seo 5cc111934e author: Added Subhransu to authors list.
Thanks for the contribution Subhransu.
2014-03-18 13:16:42 +09:00
Flavio Ceolin 7eef2ca491 elm:list: Avoiding two items be focused at same action
On a list that have not received focus yet a mouse down gives the focus
for the list (that gives the focus for the first item) and the mouse
up the item is selected and receive the focus.

The problem:  if the list is scrolled the focus given for the
first item makes the list scroll to the top and not for the item
selected by the user.
2014-03-17 19:11:59 -03:00
Mike Blumenkrantz 05a1bd01d9 genlist now uses uniform item showing behavior when selecting items with keyboard 2014-03-17 14:57:07 -04:00
Ryuan Choi ba5a6d08a2 elm_web: Moved legacy APIs from elm_web_common.h to elm_web_legacy.h
elm_web_add and elm_web_zoom_mode_{get|set} are legacy APIs so they should be
in elm_web_legacy.h
2014-03-18 02:42:58 +09:00
Mike Blumenkrantz f04c347985 genlist no longer scrolls crazily
fix T1090
2014-03-17 13:25:06 -04:00
Daniel Zaoui cc7a670a7d Eolian: Integration of Layout 2014-03-17 09:03:56 +02:00
Daniel Zaoui aa318f3079 Eolian: Integration of Container 2014-03-17 09:03:56 +02:00
Daniel Zaoui e2206a1a22 Eolian: Integration of Elm Widget 2014-03-17 09:03:56 +02:00
Davide Andreoli f5a4489a62 elm_list: check sd not being null before access its members.
If the list is deleted/recteated the _elm_list_item_focused/unfocused() is
called and the sd pointer is null.

This unbreak all my apps that use elm_list
2014-03-15 22:38:28 +01:00
Andy Williams bcf8f05e73 naviframe: Fixing issue with over-generalisation of common code in change: Refactored item_push functionality in naviframe. 2014-03-14 01:32:43 +00:00
Daniel Juyung Seo c69cfdf4de segment_control, toolbar: Fixed broken scale of widget item.
@fix. This needs to be partially backported.
2014-03-16 03:09:56 +09:00
Daniel Juyung Seo 2c0c0c335a entry: Use ELM_SAFE_FREE and fixed indentation. 2014-03-16 03:08:19 +09:00
Daniel Juyung Seo 7100cfea40 list: Reset prev_focused_item when prev_focused_item is deleted.
This is inspired by a2c680d684601d8df725e8293616c880f07d3ca2.
2014-03-16 02:39:09 +09:00
nirajkr be6f406e54 elm_genlist: Handle prev_focused_item if it get deleted
Summary:
Assign the prev_focused_item to NULL it get deleted

Reviewers: seoz, raster

Differential Revision: https://phab.enlightenment.org/D635
2014-03-16 02:35:13 +09:00
ChunEon Park 549fb6019e entry - fixed calc issue of the wrap none mode.
This deferred recalc job is considered for wrap mode.
if the wrap mode is disabled, this job should be discarded.

since the wrap mode is enabled in default.
the job would be performed even the wrap mode was changed later.

@fix.
2014-03-15 15:40:12 +09:00
Carsten Haitzler 781c29c3cb theme overlays - fix to prepend on overlay to be semantically consistent
@fix
2014-03-15 12:01:56 +09:00
Carsten Haitzler 9164ec778c formatting - remove space between return and ; 2014-03-15 11:44:20 +09:00
zmike c2d994e996 gengrid clear should do nothing if there are no items 2014-03-14 14:15:22 -04:00
zmike 91a9805bc4 genlist shouldn't try to focus an item when it has no items 2014-03-14 13:55:11 -04:00
Tom Hacohen b2250c568d Remove silencing of errors when called on non elm widgets.
There was code to silence errors. Removing that exposed a lot of errors.
I fixed them as well. In general, elm_widget functions should only be called
on elm_widgets...

More of commit 5ac398b156e8fb0aa44c6cfe8a2b113eb7229fbf
2014-03-13 15:14:59 +00:00
Tom Hacohen f6fa1ef612 Remove silencing of errors when called on non elm widgets.
There was code to silence errors. Removing that exposed a lot of errors.
I fixed them as well. In general, elm_widget functions should only be called
on elm_widgets...

@fix.
2014-03-13 13:46:53 +00:00
Tom Hacohen 69729d5ff3 Eolian: Fix building of .eo files.
It was incorrectly detected that this is an internal build, which caused issues.
2014-03-13 08:51:10 +00:00
Ryuan Choi 05892abe11 elm_web2: Implemented to support HTML5 fullscreen API
test case : elementary_test -to webui
2014-03-13 00:45:37 +09:00
Tom Hacohen 01186b6e66 Ship missing headers, and remove wrong includes
elm_gen_common.h was not installed, but is needed by installed headers.
Remove dependencies on internal headers from shipped headers.
2014-03-12 14:30:21 +00:00
Guilherme Iscaro de Godoy c4cad315ae Bug fix: Elm_List was not correctly setting the highlight theme for its items.
With the introduction of the patch 3628a8c4ea2485ee7ee5a81cfd4e0f0fe62b10d6,
it is possible to highlight focused Elm_List and Elm_Genlistenlist items.
However, this feature does not work correctly if one wants to create a custom
highlight theme for Elm_List items.
The whole problem was happening, because the function
_elm_widget_item_highlight_in_theme() was being called in a incorrect
location. This function must be called at _items_fix(), because
there the Elm_List already set the item theme and then it's possible
to check if the one wants a custom highlight or not.
2014-03-12 11:06:49 -03:00
Subhransu Sekhar Mohanty 8d05e3657e naviframe : Refactored item_push functionality in naviframe.
Summary:
Added item_push_helper function, so that both item_push as well as item_promote
will reuse the same functionality.

Reviewers: seoz, Hermet, Jaehyun

Differential Revision: https://phab.enlightenment.org/D627
2014-03-12 19:13:36 +09:00
Daniel Juyung Seo 55c065f0cc elm_win: Unbreak the ABI break of window type.
@fix
2014-03-12 12:42:59 +09:00
Carsten Haitzler 85a57c393b config - remove old engines not supported in evas anymore. 2014-03-11 20:55:55 +09:00
Tom Hacohen a3f75d0e04 Eolian: Fixed build.
Needed to initialize CLEANFILES.
2014-03-11 10:39:51 +00:00
Tom Hacohen d509e8cf05 Added Eolian support.
This adds needed support for compilation of .eo files.
2014-03-11 09:51:15 +00:00
Daniel Juyung Seo 01224a2641 actionslider: Fixed wrong signal names but still support backward
compatibility.

- "elm.drag_button,mouse,up" -> "elm,action,up,drag_button"
- "elm.drag_button,mouse,down" -> "elm,action,down,drag_button"
- "elm.drag_button,mouse,move" -> "elm,action,move,drag_button"

This is not the target of backport.
2014-03-11 02:27:26 +09:00
prashant deab06f4bd actionslider: Fixed mouse movement issue.
@fix

Summary:
The name of the signal in edc (elm,right,mouse,down) was
         different from c (elm.right,mouse,down). After changed
         the signal name, mouse event is working as expected.

Test Plan: elementary_test -to actionslider (click right left & center by mouse)

Reviewers: seoz, singh.amitesh

Differential Revision: https://phab.enlightenment.org/D618
2014-03-10 23:33:41 +09:00
Daniel Juyung Seo 7be8bc132e author: added Anand to author file. 2014-03-10 17:58:10 +09:00
zmike daaa801013 @fix slider overlay parenting
this broke stacking and clipping of the indicator
2014-03-09 17:03:34 -04:00
Carsten Haitzler badb1ae200 fix pulg/socket/inline to work again 2014-03-09 21:18:25 +09:00
Daniel Juyung Seo cdb21fd556 genlist: Initialized local variables and removed unnecessary local
variable.

This fixes coverity CID 1191580 ~ 1191583
2014-03-09 19:36:17 +09:00
Daniel Juyung Seo 7284e448f4 focus: Added comments for recently introduced internal functions.
elm_widget_focus_highlight_geometry_get
elm_widget_focus_highlight_focus_part_geometry_get
2014-03-09 19:17:30 +09:00
Carsten Haitzler 382fb3b444 oops. printf-- 2014-03-09 14:37:29 +09:00
Carsten Haitzler 202ce6046b make actual accel preference work without diplay system set 2014-03-09 14:28:37 +09:00
Carsten Haitzler f168bea0fc add @since (missing) 2014-03-09 12:55:44 +09:00
Ryuan Choi a72f3c3c11 elm_web2: Implemented window_create / window_close
In addition, improved test_webui to check close scenario.
2014-03-09 12:23:44 +09:00
Daniel Juyung Seo 0a31f91b20 genlist: Refactor event_block_rect handling routine.
- Changed wrong name alpha_bg to event_block_rect.
- Added more comments to the smart data variable.
- Changed wrong function name _tray_alpha_bg_create to
_event_block_rect_update.
2014-03-09 04:48:21 +09:00
Daniel Juyung Seo e25fbe9768 genlist: Internal refactoring for the code readability.
Added one more internal variable to reduce unnecessary pointer
redirection too much.
Elm_Genlist_Smart_Data *sd is used many times in those functions but it
was always redirected from psd->wsd. I just cut down the step and made
the code more readable and consistent with other lines of code.

psd->wsd --> sd
2014-03-09 04:48:12 +09:00
Daniel Juyung Seo c01aeabf65 config: Added more documentations to focus configuration APIs. 2014-03-09 03:51:55 +09:00
Daniel Juyung Seo 7e35760942 focus: Added focus highlight clip disable feature.
focus highlight is clipped by the clipper of focus target object.
But many of the times, this clipping looks weird so I made this
configurable.

This fixes T1056 but as this fix was done by adding a new feature, this
patch would not be backported.

@feature
2014-03-09 03:39:23 +09:00
Daniel Juyung Seo e60e43f8f5 list/genlist/gengrid: Clear some internal variables when an item is deleted.
Set last_selected_item, last_focused_item, focused_item to NULL when the
item is deleted.
For genlist and gengrid, clear them in del_not_serious.
2014-03-09 02:57:09 +09:00
Daniel Juyung Seo 80a3eea785 genlist: Removed trailing whitespaces from the previous Niraj's commit.
I aimed to merge this commit to the previous commit but I made git
amend mistake... :(
2014-03-09 02:48:34 +09:00
nirajkr e014fe92f4 genlist: Implemented the item focus support in genlist
Summary:
Implemented the following function
          1. _item_unfocused
          2. _item_focused
          3. _item_focus_up
          4. _item_focus_down
          5. _item_focus_left : Currently this function return EINA_FALSE. It means focus will move out of genlist to the another left widget
          6. _item_focus_right : Currently this function return EINA_FALSE. It means focus will move out of genlist to the right widget
          7. _item_focus_set_hook
          8. _item_focus_get_hook
          9. _elm_genlist_focus_highlight_geometry_get
          10. _elm_genlist_focused_item_get
          11. Changes in the smart_event, smart_on_focus, pan_smart_calculate, mouse up callback.
              Currently selected/focus logic are both present in the smart_event function and its
              will be separate out.

Reviewers: seoz, woohyun

CC: singh.amitesh

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

Conflicts:

	src/lib/elm_genlist.c
2014-03-09 01:55:40 +09:00
Carsten Haitzler 1fbdf7cae0 win - add accel preference option to elm windows
@feature - this adds the ability to hint what engine acceleration to
use that is specific per display system.
2014-03-09 01:22:33 +09:00
Carsten Haitzler e7fc7c23ce win - improve window engine choosing code to be simpler and support display
this isn't a feature or a bug fix - it's a code logic improvement that
also uses an ELM_DISPLAY environment variablew to choose a specific
engine list, and still uses ELM_ENGINE and preferred engine. this
makes it easy to add new api to prefer accel or not etc.
2014-03-09 00:49:33 +09:00
Carsten Haitzler cea2027c75 warning-- if building without x for elm 2014-03-08 23:54:34 +09:00
Carsten Haitzler 3cdeccc324 wtf? returning an _X_ window should not return a win32 window handle!
remove the return of a win32 window handle in getting an x window
handle. wrong wrong wrong!
2014-03-08 23:44:04 +09:00
ChunEon Park 55827d034d entry - send selection,cleared signal if a selection is dismissed.
when the selection none was requested, the selection won't be cleared without the signal callback.

@fix
2014-03-08 03:54:13 +09:00
Daniel Juyung Seo d626f9278f genlist/list: Fixed wrong internal function name.
_list/genlist_item_focus_set --> _list/genlist_item_content_focus_set.
These internal functions set the focus to the item's content objects,
 not the item itself. So the name was wrong and very confusing.
2014-03-08 03:27:09 +09:00
Daniel Juyung Seo 8c5ccaf780 win: Set correct parameter for focus highlight job.
Special thanks to Hosang Kim for the report.
2014-03-07 20:34:44 +09:00
ChunEon Park 7931337952 transit - elm_transit_del() allows null pass. 2014-03-07 13:35:06 +09:00
Jaehyun Cho 698eb0c7fc naviframe: Fix smart_show function to show only top item view
Summary:
Now if evas_object_show is called for naviframe, all item views are shown.
This may cause the previous item view is overlapped to the top item view.
To resolve this problem, fix smart_show of naviframe to show only top item view.
@fix

Reviewers: Hermet

CC: seoz

Differential Revision: https://phab.enlightenment.org/D594
2014-03-07 11:12:06 +09:00
Daniel Juyung Seo 45444cf98c win: Removed unnecessary internal wrapping function. 2014-03-07 03:32:01 +09:00
Gustavo Sverzut Barbieri 85f1474b6e elm_widget: @fix use of uninitialized values.
Valgrind reports n and weight could be read before they were written to.
2014-03-06 11:08:48 -03:00
Shilpa Singh cc69143db6 Avoid Month wrapping by ignoring summer time correction.
Summary:
This patch fixes the issue of month wrapping due to summer time correction is some locales
by ignoring day light saving mode in mktime
Signed-off by: M.V.K Sumanth <sumanth.m@samsung.com>

@fix

Test Plan: Change the date for month were day light saving mode is applied and   observe the wrapping.

Reviewers: seoz, Hermet, raster

Reviewed By: raster

CC: govi, raster

Differential Revision: https://phab.enlightenment.org/D590
2014-03-06 22:00:01 +09:00
Chris Michael e13f85f038 elm: Remove unused variables
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-03-06 12:42:57 +00:00
Carsten Haitzler 0871e2d2fe entry - fix menu to not popup after every time mobile sel handles are clicked
this fixes a behavior bug in entry @fix cherry-pick-me
2014-03-06 20:14:20 +09:00
Thiep Ha fcd164b4b0 Fix bug of moving cursor handler
Summary:
In elm entry, cursor handlers are placed and moved incorrectly if we do selection from bottom to top.
Ex: In elementary_test -> Entry -> Right click -> choose Select -> do selection from bottom to top (or press Shift + <- keys to do selection).
Look at selection handlers: they are incorrectly placed.
Try to move selection handlers: They suddenly move to near each other.

Minor: Remove unused variable.

@fix

Reviewers: seoz

Differential Revision: https://phab.enlightenment.org/D583
2014-03-06 20:14:11 +09:00
Carsten Haitzler 536101fc99 fix ctxpopup getting min size from content immediately on set
this isn't needed and will get recaulcated later when box calcs min
size and sets min size hint.

cherrypick-me @fix
2014-03-06 18:53:57 +09:00
Ryuan Choi 2d4b6cd81b datetime : Enhance launching time more by reducing calls of sizing_eval()
elm_layout_content_set() calls elm_layout_sizing_eval() internally.
So, there are many calls in _field_list_arrange() and it takes long time.
2014-03-06 00:23:37 +09:00
Jaehyun Cho 4002cb2c5a naviframe: Emit visible signal to edc theme when first item is pushed
Summary:
Emit "elm,state,visible" "elm" signal to edc file when first item is pushed.
Above signal can be used if an application wants to do something when the first view is shown on the screen.

@fix

Reviewers: Hermet, seoz, raster

CC: seoz, raster

Differential Revision: https://phab.enlightenment.org/D483
2014-03-05 14:34:49 +09:00
Daniel Juyung Seo 80f077cbec list: Do not call unnecessary external API.
We already know the internals so make it optimized by using internal
data.
2014-03-04 00:33:13 +09:00
Daniel Juyung Seo ae324cfb36 list: Check NULL before calling _elm_list_item_unfocused.
unfocusing NULL item is nonsense. NULL needs to be checked before
calling item unfocus function.
2014-03-04 00:33:13 +09:00
Jaeun Choi 6aa752a679 diskselector: Remove unreachable codes
Summary:
The soon to be deleted item 'it' is removed from the list at line 356.
So the first item of the list can never be the same one with it,
which means else statement is unreachable.

Test Plan: None

Reviewers: raster, seoz, Hermet

Differential Revision: https://phab.enlightenment.org/D597
2014-03-03 23:30:53 +09:00
Daniel Juyung Seo 33a5e33ddb object_item: Check null in elm_object_item_del.
As all EFL del/free APIs handle null as an exception,
   elm_object_item_del() should check null as well.
@fix
2014-03-03 18:19:20 +09:00
Jaeun Choi 295630ed9d diskselector: Fix segmentation fault
Summary:
The code was missing null check of sd->items list.
If the deleted item is the only item of the list,
sd->items becomes empty after removing it.
In that case, sd->selected_item should be set as NULL.
@fix
Fixes T988

Test Plan: execute diskselector_example_02 > click "Delete item" button 3 times

Reviewers: raster, seoz

Reviewed By: seoz

CC: seoz

Maniphest Tasks: T988

Differential Revision: https://phab.enlightenment.org/D595
2014-03-03 18:12:34 +09:00
zmike 7fb6ea14c5 @fix broken slider popup hide logic
setting a flag here made it impossible to have any kind of transition animation on the indicator and was a poor workaround for fixing a theme issue
2014-03-02 15:38:42 -05:00
zmike d07c5c7927 @fix slider popup creation with custom themes 2014-03-02 15:04:07 -05:00