Commit Graph

7266 Commits

Author SHA1 Message Date
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
zmike 5d33b9af68 move slider track functions up 2014-03-02 15:04:07 -05:00
zmike f3f83a64fd @fix homogeneous genlist recalc on theme change
fix T1023
2014-03-02 15:04:07 -05:00
Daniel Juyung Seo 8afae8de2e widget: removed unused widget item member 'focused'. 2014-03-02 01:24:23 +09:00
Daniel Juyung Seo 1a29ad5679 elm: removing trailing white space ceremony for 1.9 release. 2014-03-02 00:52:26 +09:00
Daniel Juyung Seo 3c23a57e2e list: Run focus set/unset routine only when the focus status is changed.
I didn't tag this as 'fix' because this feature was added after 1.9
release.
2014-03-02 00:26:08 +09:00
Daniel Juyung Seo 5f3fedeff5 focus: Refactor mouse tracking code for focus.
- Reduced the if statement depth.
- Introduced new macro ELM_RECTS_POINT_OUT that checks if the point(xx,
yy) stays out of the rectangle(x, y, w, h) area.
2014-03-01 15:55:03 +09:00
Ryuan Choi ff2aa6e679 els_cursor: Fix crash when changing cursor since rELMb515c7477910
Extracted cursor_set from _elm_cursor_mouse_in() to call it without ev.

test case: elemntary_test -to cursor
2014-02-28 20:16:20 +09:00
Gustavo Sverzut Barbieri 9f6a9a51e8 elm_list/focus: @bugfix crashes with empty lists and unfocused elements. 2014-02-28 01:57:23 -03:00
Jaeun Choi 78accca4db elementary key binding feature implementation
Summary: This patch implements elementary key binding feature.

Test Plan: None

Reviewers: Hermet, raster

CC: seoz

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

Conflicts:

	src/lib/elm_config.c
2014-02-28 10:47:03 +09:00
Sohyun Kim d1e7e15601 [elm_config] support color classes
Summary:
support color classes for runtime color changes.
It works like text classes and is also added in configuration files.

Reviewers: seoz, Hermet, cedric, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D541
2014-02-28 07:16:45 +09:00
Daniel Juyung Seo 770e87bcdf fileselector: added more description to is_save_set api. 2014-02-28 02:45:28 +09:00
Jihoon Kim 3011093658 entry: Add ELM_INPUT_PANEL_LAYOUT_EMOTICON 2014-02-27 14:58:36 +09:00
Daniel Juyung Seo f5750399b3 hover: Made hover itself unfocusable.
@fix

Hover itself does not get key event. It should just forward the event to
the internal objects. So make it unfocusable.
Special thanks to Woohyun Jung.
2014-02-27 11:56:50 +09:00
Amitesh Singh 38ac88d9d5 list: focus highlight is handled by item theme.
Summary:
Problem: list theme (elm/list/base/default) is an alias of scroller
base theme (elm/scroller/base/default) in which focus_highlight is set to "on".
Solution: Now focus highlight in_theme is set by list item theme.

Test Plan: elementary_test->"List Focus"

Reviewers: seoz, woohyun

Reviewed By: seoz

CC: nirajkr

Differential Revision: https://phab.enlightenment.org/D572
2014-02-26 01:27:05 +09:00
Amitesh Singh ff3521ba9e list: Code refractoring of _item_focused_next()
Summary:
  # Added code to handle the case of disabled items.
  #  Code refractoring of _item_focused_next().

Test Plan: elementary_test->"list focus"

Reviewers: seoz, woohyun

CC: nirajkr

Differential Revision: https://phab.enlightenment.org/D571
2014-02-26 01:26:57 +09:00
Amitesh Singh d8ec1e5dde hoversel: Added "item,focused" and "item,unfocused" smart events for widget items.
@feature

Test Plan: elementary_test->hoversel focus

Reviewers: seoz, woohyun

CC: nirajkr

Differential Revision: https://phab.enlightenment.org/D564
2014-02-26 01:26:49 +09:00
Amitesh Singh 64370c24f3 popup: Added descriptions for the newly introduced item,focused/item,unfocused smart callbacks.
@feature

Reviewers: seoz

CC: nirajkr

Differential Revision: https://phab.enlightenment.org/D568
2014-02-26 01:26:42 +09:00
Daniel Juyung Seo 0492223206 list: Added descriptions for the newly introduced item,focused/item,unfocused smart callbacks.
@feature
2014-02-26 01:26:31 +09:00
Amitesh Singh 069a3de27d list: implemented widget item focus feature.
@feature

Summary:

  #    Added "item,focused" and "item,unfocused" smart callbacks.
  # Added elm_object_focused_item_get() in elm_widget
  # Added elm_object_item_focus_set and elm_object_item_focus_get() APIs for
  # Added one argument in existing _focus_highlight_geometry_get(...,is_next)
  This is required to find out previous and current widget item.
  # Added a elm_win function _focus_highlight_start() which starts the focus

Test Plan: elementary_test->List Focus , List Horizontal Focus

Reviewers: seoz, woohyun

Reviewers Comments: SeoZ - there are some known bugs. we will actively
fix them in a near future.

CC: nirajkr

Differential Revision: https://phab.enlightenment.org/D532
2014-02-26 01:26:22 +09:00
Amitesh Singh b22dd17eed popup: implemented widget item focus feauture.
@feature

Summary:
1. Added "item,focused" and "item,unfocused" callbacks for widget item since
  VIEW(item) is a elm layout.
2. Added sd->box into focus chain to enable the focus movement on widget items.

Test Plan: elementary_test -> popup -> "popup-center-title + items + 3 buttons"

Reviewers: seoz, woohyun

CC: nirajkr

Differential Revision: https://phab.enlightenment.org/D563
2014-02-26 01:26:02 +09:00
Daniel Juyung Seo fe9a0ec73a elm_authors.h: sync with AUTHORS. 2014-02-25 01:34:16 +09:00
Daniel Juyung Seo ff18fac8e7 list: fixed list to emit elm,state,list,single signal when there is only
one item.

This is a fix of a commit 44495f6431cdc5dbe6e8cb257cf73a69563ec67c.
2014-02-25 00:58:54 +09:00
Yakov Goldberg f863057d21 menu: add NULL checks to elm_obj_menu_item_add()
Function returns newly created item through last param
   Elm_Object_Item**. Add checks to make possible to pass NULL,
   if return is not needed.
2014-02-24 14:25:37 +02:00
Andy Williams 6e71ec05f7 Revert "oops, a mistake in T966 fix that could cause a segv"
This reverts commit b7d1cb531d1e196dee5f93dd4457e68df2692ed3.
2014-02-22 12:40:20 +00:00
Thiep Ha 8f92069a63 [Elm_Entry] Fix bug: magnifier position is incorrect when mouse down on selection handler
Summary:
Magnifier is displayed incorrectly when mouse down on selection handler

Reproduce way: Right click on entry (eg Entry), choose Select, select some text, press left mouse
on selection handler (do not move the mouse), take a look at magnifier position.
Reason: Magnifier position is set to mouse down position in entry.
Fix: Check mouse down status and place correct position for magnifier.

Reviewers: seoz, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D573
2014-02-22 12:06:31 +09:00
Daniel Juyung Seo aba69c4c5f elm_authors.h: Sync with AUTHORS. 2014-02-22 11:36:55 +09:00
Daniel Juyung Seo 05998a7730 tooltip: Fixed wrong API names. elm_tooltip -> elm_object_tooltip.
This was added in 1.9, so it should be changed before 1.9 release.
Thank god I found this out just right before the release.
2014-02-22 05:22:35 +09:00
Gustavo Lima Chaves c80868da12 Elm list, like genlist, should emit 1st/middle/last signals to its items.
So that one is able to theme these cases accordingly.
2014-02-20 14:10:10 -03:00
ChunEon Park 577d29a484 transit - fix the double free obj_data case.
if the object is added twice to the one transit,
the obj_remove_cb would be called twice.

in this case it will try to access the freed obj_data and crashed up.

now it's fixed.
2014-02-20 23:51:38 +09:00
ChunEon Park 390d70d95b tooltip - renamed the new tooltip apis until 1.9 release.
Before
elm_tooltip_move_lock_set()
elm_tooltip_move_lock_get()

After
elm_tooltip_move_freeze_push()
elm_tooltip_move_freeze_pop()
elm_tooltip_move_freeze_get()

we're likely to use the freeze rather than lock among the entire apis.
it's already discussed in the mailing list.
2014-02-20 20:49:01 +09:00
Yakov Goldberg d95f67d9c9 widget: remove OP_ID ELM_WIDGET_SUB_ID_DISPLAY_MODE_GET
elm_widget_display_mode_get() was removed in
   2aca940f040df01364301fe7b024be1f6d89a9d6.
   So OP_ID is not needed.
2014-02-20 09:56:26 +02:00
Andy Williams a5f38fe810 oops, a mistake in T966 fix that could cause a segv 2014-02-19 18:32:58 +00:00
Andy Williams 72191ab692 Fix T966, sort order of child folders.
Comparison was being incorrectly applied for child elements - they need to be treated differently if there are no siblings
2014-02-19 10:30:50 +00:00
Carsten Haitzler 9b23d6e02b calendar - fix unstable calc complaint
thios fixes T951
2014-02-19 19:25:32 +09:00
Bora Hwang 30e14a3a65 spinner: it has to be recalculated when its style is changed
Summary:
when style is set to be different one, spinner didn't update its min size.
So there was an issue that spinner has wrong position since it wasnt' check the updated size

Reviewers: Hermet, seoz

Reviewed By: seoz

CC: raster, cedric

Differential Revision: https://phab.enlightenment.org/D569
2014-02-19 14:02:44 +09:00
Daniel Juyung Seo bb9c784880 genlist: Added a small description 'Generic list' like gengrid does. 2014-02-19 13:45:27 +09:00
Thiep Ha 771887df2b [Dnd] Fix double text insert issue in elm_entry, drop at disable, non-editable entry
Summary:
Issue 1: If you drop text to elm_entry, text is inserted twice.
Reason: Drop callbacks are registered multiple times in elm_entry.
Resolve: Register only one drop callback at entry side.

Issue 2: Even thought entry is disabled, non-editable, you still can drop text, image file. (Example, run Entry Scrolled and drop text, image file to disabled or non-editable entries).
Reason: Drop callback are registered but not remove when entry is set to disabled, non-editable mode.
Resolve: Correct registering and removing drop callbacks in entry.

Reviewers: JackDanielZ, raster

Reviewed By: raster

CC: woohyun

Differential Revision: https://phab.enlightenment.org/D565
2014-02-19 12:25:08 +09:00
Yakov Goldberg 8a312631e6 app, atspi: add comments for Eo API
Add minimum comments for Eo API to make Eolian correctly
   process methods and parameter directions
   There are still exist not/half implemented functions, for which
   I didn't add comments.
2014-02-18 18:12:40 +02:00
Yakov Goldberg f40c6044a7 interface scrollable: fix doxygen 2014-02-18 16:27:52 +02:00
Yakov Goldberg 0d8777306a slider: fix doxygen 2014-02-18 16:27:52 +02:00
Yakov Goldberg 6345941ef3 elm widget container: fix doxygen 2014-02-18 16:27:52 +02:00
Yakov Goldberg 549e8cf8f0 elm atspi: add comments for Eo API
add minimum comments for Eo API to make Eolian correctly
    process methods and parameter directions
2014-02-18 16:27:52 +02:00
Yakov Goldberg 8a3e75f6c2 fileselector interface: fix doxygen 2014-02-18 14:57:33 +02:00
Carsten Haitzler a4cbdd7c39 fix more complaints on inwin shutdown and focus stuff
this fixes the rest of T958
2014-02-18 16:15:55 +09:00
Carsten Haitzler 7201bf91ff elm win - on shutdown some objects become null during shutdown so be quiet
so don't complain so much about it - it's normal. don't use the noisy
macros to do so. this fixes much of T958
2014-02-18 15:58:57 +09:00
Thiep Ha ae8c65f968 [DnD] Fix bug of hard-coded type when drag
Summary:
When we start dragging, the type is always set to "text/uri-list" no matter the format type set by application.
This patch fixs this hard-coded type issue. It will set types corresponding to the format type set by application.
For example, if application set format as ELM_SEL_FORMAT_TEXT, it will set types UTF8_STRING, STRING, COMPOUND_TEXT, TEXT,
text/plain, text/plain;charset=utf-8.

Reviewers: JackDanielZ, raster

Reviewed By: raster

CC: woohyun, seoz

Differential Revision: https://phab.enlightenment.org/D546
2014-02-18 15:47:08 +09:00
Yakov Goldberg be9053f343 fileselector interface: fix doxygen 2014-02-17 18:02:19 +02:00
Daniel Hirt 6248f9c0fa els_cursor: Fix mouse_out changing cursor to wrong image
Summary:
Fixes a bug when having a mouse_out event from elm objects that had a cursor set to them.
For example, Entry has a specific cursor set to it.
The bug is observable in Entry Test, and in any other test that has anchors (markup) in the entry widget.
Just take your mouse in an anchor, and out of it, to see that the entry now has the wrong cursor.

The old way of handling this asssumed that the triggering object had an elm-parent.
However, this is not the case for anchors.
Instead, it was agreed that the simplest way was to determine if there is any elm object,
with a cursor set to it, under the current mouse position.
If one is found, then use the cursor assigned to it.
Fixes T878.

Reviewers: tasn, raster

CC: raster, JackDanielZ

Maniphest Tasks: T878

Differential Revision: https://phab.enlightenment.org/D551
2014-02-17 21:34:59 +09:00
Ryuan Choi 7c4288548b colorselector: Do not add custom palette color to the palette of config
Summary:
elm_colorselector_palette_color_add() clears the palette if config_load is true.
It means that this API will add paletter color only for this colorselector object.

Fixes T786

Test Plan: Added elm_colorselector_palette.

Reviewers: seoz, raster

Maniphest Tasks: T786

Differential Revision: https://phab.enlightenment.org/D557
2014-02-17 21:26:14 +09:00
Jaehyun Cho bd7c5cbbff naviframe: Fix elm_naviframe_item_pop_to not to attempt to remove removed item
Summary:
Previously, the following error message is shown.
         eina_inlist_remove() safety check failed: item does not appear to be part of an inlist!
         Now, eina_inlist_remove() is removed from elm_naviframe_item_pop_to
         because eina_inlist_remove() is called in _item_del_pre_hook.

Reviewers: seoz, raster

Reviewed By: raster

CC: Hermet

Differential Revision: https://phab.enlightenment.org/D553
2014-02-17 21:09:53 +09:00
Jaehyun Cho 934113bc20 naviframe: Fix to set only top view to be focusable
Summary:
Previously, all views were focusable except during transition.
         Now, only top view is focusable.

Reviewers: seoz

CC: Hermet

Differential Revision: https://phab.enlightenment.org/D554
2014-02-17 21:03:01 +09: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
Ryuan Choi 83d00b0ab5 elm_web2: Fix possible crash when loaded the contents which contains form elements
ewebkit requires webkit theme to draw form elements so elm_web might be crashed
when ewebkit didn't get theme path at debug build.
2014-02-16 21:19:17 +09:00
Andy Williams d1534e4aa9 Fix issue where items added into tree with more than 2 levels could be rendered at the wrong location in the list.
Fix this by ensuring items are attached after all items below the current node rather than only below those at the current level of children
2014-02-15 20:23:18 +00:00
Davide Andreoli 4ae7078e0f Label doc: add a note about the conversion duration->speed and viceversa. 2014-02-15 12:42:27 +01:00
Carsten Haitzler 1d4b74e1de elm scroller - fix self feeding reconfigure to bail out on many loops 2014-02-14 17:32:13 +09:00
Carsten Haitzler c45fd8aff3 list - fix mode set to have override power over scroll limit api 2014-02-14 12:19:40 +09:00
Daniel Juyung Seo 9ec7fd7dec menu: Fixed wrong internal variable name.
It should be 'it' not 'subitem'. It was wrong and confusing.
2014-02-13 15:40:21 +09:00
Carsten Haitzler 0fb094063b entry - fix scroller hide/show signal when changing style (edje obj) 2014-02-12 20:39:39 +09:00
Cedric BAIL 8392c0346e gitignore: ignore newly generated file. 2014-02-12 17:00:00 +09:00
Cedric BAIL e49a249ec9 elementary: use autotools to generate version number and avoid future mistake. 2014-02-12 16:59:57 +09:00
Jihoon Kim 5ecc689064 fix version and date in doxygen 2014-02-12 08:07:57 +09:00
Davide Andreoli 33cd0f930d Label: better speed/duration calculation.
This fix the speed calculation with slide_short and slide_bounce
animation. Previously the calc was right only for slide_long.
2014-02-10 22:53:26 +01:00
Davide Andreoli b79fe302a0 Label: formatting 2014-02-10 22:31:58 +01:00
Daniel Juyung Seo 192a9e80e7 elm: fixed up the comments after the struct member.
It should be /**< not /*<<
2014-02-10 22:27:08 +09:00
Seunghun Lee 2f2741f981 elm_win: added the window manager rotation feature and a sample.
Summary: since to control the rotation of application windows by WM, already added related feature in Ecore_Evas. Added related API for it.

Reviewers: raster, seoz

CC: gwanglim

Differential Revision: https://phab.enlightenment.org/D542
2014-02-10 22:09:45 +09:00
Davide Andreoli 2711a225ba Label: add 2 new api for setting the slide animation speed.
Added API:
void elm_label_slide_speed_set(Evas_Object *obj, double speed);
double elm_label_slide_speed_get(const Evas_Object *obj);

This work is based on the previous reverted commit by nirajkr, thanks!
I hope this will fullfill his requirement, please let me know of
any problems.
2014-02-10 00:13:03 +01:00
Davide Andreoli 3e5e4f6039 Revert "label : Added the API to match the speed of label to different label"
As discussed I will try to implement the same functionality but with a different api.

This reverts commit 56a2c96ea7a731d6066aa7cb0964a633c5bed35c.
2014-02-09 20:21:21 +01:00
Daniel Juyung Seo 5837174fab hoversel: Added more description about elm_hoversel_item_add's callback
function.
2014-02-10 00:59:47 +09:00
nirajkr 29069fe9c5 label : Added the API to match the speed of label to different label
Summary:
Currently we do not set the speed of two label same
         This patch fetch the information of the previous
         label to set it to the next label to match the speed
         of the previous label

Reviewers: seoz, raster

Reviewed By: raster

CC: singh.amitesh

Differential Revision: https://phab.enlightenment.org/D531
2014-02-09 22:55:38 +09:00
Carsten Haitzler 1e35d4bab0 oops. 2014-02-09 22:55:13 +09:00
Carsten Haitzler 5ad19f6f4b remove unreachable code (coverity) 2014-02-09 22:43:03 +09:00
Daniel Juyung Seo 3dbe6404df atspi_bridge: unref ret if iter_struct is null
This fixes coverity CID 1170201.
2014-02-09 22:15:02 +09:00
Davide Andreoli d31d409c7d Docs: actually show the functions. Missed doxy group. 2014-02-09 12:44:22 +01:00
Daniel Hirt 41b6a932fe elm cnp: fix freeing selection buf
Moved a misplaced ELM_SAFE_FREE of the selection buffer,
 as valgrind still showed lost bytes with selection.
2014-02-09 13:22:24 +02:00
Amitesh Singh 431b15cd48 focus: Added focus_highlight_geometry_get() into elm_widget.
Summary:
Currently, elm_win was handling focus_highlight geometry of widgets.
Removed elm_win_focus_highlight_geometry_get() from elm_win and now elm_widget handles focus highlight geometry.
This is required to support the focus highlight on elm widget items.

Test Plan: elementary_test -> focus

Reviewers: seoz, raster, woohyun

CC: nirajkr

Differential Revision: https://phab.enlightenment.org/D530
2014-02-09 19:56:07 +09:00
Carsten Haitzler 1f0567af98 config - feature add - audio muting config and controls 2014-02-09 19:17:01 +09:00
Bora Hwang 12a6a48e72 ctxpopup: add a new api for ctxpopup which makes ctxpopup not to hide automatically
Summary:
Developer can use this API for the case when he/she wants ctxpopup not to hide
automatically when parent of ctxpopup is resized or language is changed.
Default value of "disabled" is EINA_FALSE. So if user sets "disabled" EINA_TRUE
and parent size changes, ctxpopup recalculates its size and position.
Since size of bg is set when setting parent only, it should be resized again.

Reviewers: Hermet, seoz, thiepha, raster

CC: c

Differential Revision: https://phab.enlightenment.org/D510
2014-02-09 18:11:47 +09:00
zmike 7899534662 +elm_genlist_item_subitems_get() 2014-02-08 16:03:25 -05:00
Davide Andreoli 1329c89dc3 docs for the new entry style tags 2014-02-08 20:40:34 +01:00
zmike a3ff700982 +genlist_item_subitems_count()
group apis are currently pretty lacking. there should probably be functions for iterating over subitems in addition to this one
2014-02-08 01:16:06 -05: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
Shilpa Singh 9151befe0d Colorselector: Item Selection/Unselection logic changes and corresponding API additions.
SUMMARY
Item should remain selected once pressed.
When one item is selected other items should be unselected.
No special behavior on long press, item gets selected on mouse up.
APIs added are to get current selected item and to programmatically
control the selection/unselection of an item.

This is patch D515 (had to do by hand).
2014-02-08 13:33:58 +09:00
Andrii Kroitor 3771a6d473 Elementary menu item: handling hidden icon
Summary:
Added noicon menu item state to default menu theme.
Now you can hide icon by setting it to "" (empty string)
Removed check for resetting the same icon name. This allows setting an icon
after it was hidden.

Reviewers: cedric, seoz, raster

Reviewed By: raster

CC: reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D522
2014-02-08 13:17:24 +09:00
Carsten Haitzler a31944daa4 elm-menu - fix style to use current when setting menu bar 2014-02-08 13:13:45 +09:00
Andrii Kroitor 7aa326c4a7 Elmementary menu styling fixed
Summary:
When custom style is applyed to menu the same style will be applyed to
its internal hover object.
Moved hover styles used by menu from hover.edc to menu.edc

Reviewers: cedric, seoz, raster

Reviewed By: raster

CC: reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D514
2014-02-08 13:13:45 +09:00
Jaehwan Kim 9d4a9dae02 access: Add elm_widget_access_highlight_in_theme_set/get.
This is for widget to draw the access highlight itself in theme.
2014-02-08 12:27:41 +09:00
Carsten Haitzler 36a373ce1c Revert "Revert "atspi: event broadcast added. Orca screen reader now ables to read UI.""
This reverts commit 803553c253bc4ee140a4b447c29ffe35c31288ab.

This also removes the unused enum typedef in the header. only c++
seems to care (or -ansi or -pedantic or something)
2014-02-08 11:28:58 +09:00
U. Artie Eoff 2ac7caba96 Revert "atspi: event broadcast added. Orca screen reader now ables to read UI."
Breaks elementary applications compilation

See https://phab.enlightenment.org/T917

This reverts commit 71cd5a1a077807bc32a67d309fba9e1474fffa4d.
2014-02-07 10:49:10 -08:00
Shilpa Singh b2d43d4cf4 Colorselector: Palette_items_get API added.
Summary:
Summary:
Issue:Colorselector adds default palette items by reading colors
from config, application do not have any way to get that color list.
Solution: API added to get the palette's item list.
Signed-off by: Shilpa Singh(shilpa.singh@samsung.com)

Test Plan:
Test Plan: Create a list pointer and call palette_items_get API to get
the list of color items. Change the color of any item to confirm
whether the list has been returned correctly.

Eina_List *list = elm_colorselector_palette_items_get(cs);
Eina_List *list2 = eina_list_last(list);
Elm_Object_Item *color_item = eina_list_data_get(list2);
elm_colorselector_palette_item_color_set(color_item, 0, 0, 0, 255);

Reviewers: seoz, Hermet, raster

CC: govi, myoungwoon

Differential Revision: https://phab.enlightenment.org/D503
2014-02-07 23:35:13 +09:00
Tom Hacohen 5174961edd Elm entry: Set initial select mode for non desktop entries.
Initial select mode was not properly set, as was just left to default.

This, in combination with the following from the efl repo:
commit 211845c885
commit c061e76927
fixes T861.
2014-02-07 14:22:37 +00:00
Jaehyun Cho 4aeb779a48 naviframe: Hide inserted view if the view is not a top view
Summary:
Although an inserted view is not a top view, the inserted view is shown
         because it is not received invisible signal.
         To resolve the problem, the invisible signal is emitted if the inserted
         view is not a top view.

Reviewers: Hermet, raster

Reviewed By: raster

CC: seoz

Differential Revision: https://phab.enlightenment.org/D494
2014-02-07 23:21:31 +09:00
Lukasz Stanislawski 74fbb2c8ea atspi: event broadcast added. Orca screen reader now ables to read UI.
Summary:
added broadcast of focus, window activate/deactivate events on a11y bus
Orca screen reader is now able to read elementary application.

Reviewers: raster, seoz, z.kosinski, kimcinoo

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D508
2014-02-07 23:03:07 +09:00
Tae-Hwan Kim a9aec7a43e [Widget] Prevent widget item API calls while item is deleting except data_get API call. The data by data_set is user_data. So it can be needed inside deleting function trace.
Reviewers: raster, cedric, Hermet, seoz

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D525
2014-02-07 18:09:46 +09:00
Carsten Haitzler 07a4f33868 datetime - fix warning! 2014-02-07 18:08:29 +09:00
Tae-Hwan Kim 8025cb8b46 [Icon/Layout] Clean-up signal callbacks when signal is freed or layout is deleted. If not, dangling edje callback can be remained at some moment.
Reviewers: raster, cedric, seoz, Hermet

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D509
2014-02-07 18:06:06 +09:00
Shinwoo Kim 7de1c8e8cf [access][layout] sort focus list based on geometry value
Conflicts:
	src/lib/elm_layout.c
2014-02-07 15:17:38 +09:00
ChunEon Park b7cf4d8503 win - +null check.
we don't sure target always has clipper.
2014-02-07 14:32:04 +09:00
Daniel Juyung Seo cf3399ffd6 elm: Fixed some typos in the documentations.
- Put @c in front of constants on doxygen.
- Used @p for the parameter.
- Put comma(,) in appropriate places.
2014-02-07 02:53:24 +09:00