Commit Graph

8408 Commits

Author SHA1 Message Date
Tom Hacohen 12d383709d Elm win: Fix added internal parameter to the win constructor.
Internal hacks should not affect user facing API. This commit adds a new
API to do the internal hack. This is still bad, but it's much less than
what was there before.

This fixes the main issue introduced by commit:
63a5cdf0f8516c16a62233da0c2af0e10a13264b
2015-01-12 10:13:34 +00:00
Tom Hacohen a65c98c151 Elm win: Fix elm_win_fake()'s name to follow conventions. 2015-01-12 10:13:00 +00:00
Daniel Zaoui 689b4f3fc5 DnD: fix callbacks deletion for inline windows.
During deletion of a window, widgets considered as droppable targets
have to remove their DnD callbacks. To achieve this, elm_drop_target_del
is called from the DEL callback (destructor). This function has to
determine if X11 or Wayland is used. Since the parent is already unknown
at this stage, only checking the engine name can give this
information.
On a regular window, the engine name is related to the target display.

The problem happens when an inline window is used. The engine is a
buffer and no information is given regarding the target display.

The patch fixes it by checking the nature of the Ecore Evas parents. It
supports nested windows (inline inside inline... inside XWin).

@fix
2015-01-12 08:23:35 +02:00
Jee-Yong Um a83e01cad3 elm_colorselector: Fixed to make palette_box have proper height
Summary:
palette_box had stretched height exceeding its items size.
Now it will have proper height fitting to own items.

Reviewers: Hermet, Jaehyun, raster

Reviewed By: raster

Subscribers: raster, Hermet

Differential Revision: https://phab.enlightenment.org/D1840
2015-01-12 13:36:55 +09:00
Carsten Haitzler 94a00854b6 elm - fix build problem with examples - elocation api
this fixes build of location_example_01.c as per fix in D1863 but done
properly so people can't use elm  elocation unless they enable beta apis
2015-01-12 12:08:46 +09:00
VBS db5d4aff45 Scroller : Fix elm_scroller_last_page_get API wrong return value
Summary:
When first page is last page, elm_scroller_last_page_get need to return 0.
         But if pagesize is bigger then current content height or width, value will be returned -1.
         So fix this cases to return 0.

Test Plan: If set elm_scroller_page_set bigger then current content size, then issue is occurred.

Reviewers: seoz, jaehwan, raster

Reviewed By: raster

Subscribers: eagleeye

Differential Revision: https://phab.enlightenment.org/D1860
2015-01-12 11:51:42 +09:00
Carsten Haitzler 97e625c68c elm - elm image orientation api fix - major bug in implementation
@fix

The elm image orient_set api looks like it is a state, and it is
documented to SET the orietnation, but the code actually DOEs that
orientation when you set it. so docs and api name didnt match
functionality at all. this was bad an an oversight. you didn't notice
until you set orientation multiple times to an image. this fixes the
implementation to be as documented - a state that is applied and
remains that way until set to something else. setting to the same
orientation has no efect as with color, size, etc. etc. in evas.

you could look on this as an api break, but then either the docs
change AND api name changes to match the code, or code changes to
match the docs. we don't keep bug compatibility in efl and in this
case i'm making the call to break the behavior of a  function as it
was broken already with respect to name and docs.
2015-01-12 11:31:43 +09:00
ChunEon Park ab0e050102 genlist: recommit 1879cc39258c63c24f0abcff56558b1f1b60167a with correction. 2015-01-12 10:00:04 +09:00
Mike Blumenkrantz 79efce849d elm_table now supports alignment 2015-01-11 18:17:19 -05:00
Mike Blumenkrantz 65db0dc1cd fake win should not perform widget focus setting on canvas focus-in 2015-01-11 15:18:27 -05:00
Yakov Goldberg 89133c8f58 Revert "genlist: use eina bool"
This reverts commit 1879cc39258c63c24f0abcff56558b1f1b60167a.

  Hermet, please check this commit it makes Fileselector crash,
  looks like you inverted the values: 1 should be EINA_TRUE.
  I recommend you to use Exactness to run all the tests automatically.
2015-01-11 16:59:50 +02:00
ChunEon Park 95494c3a98 genlist: remove unnecessary null check. 2015-01-10 17:47:14 +09:00
ChunEon Park 42dc29b87b genlist: revert 6f177e5db01553276058235a81cbfcc9b2cd4e23
this broke decoration item text. reverted.
2015-01-10 17:27:48 +09:00
ChunEon Park 8e2647ea16 genlist: send decoration active signal to view item.
emit signal to view item to do something additional.
2015-01-10 16:58:45 +09:00
ChunEon Park 8cd8ea50cb genlist: fix regression bug. (T1986)
newly added in 2955ebc5dd01fbfb5a3286b724c8a40915864ad8
2015-01-10 16:44:38 +09:00
Mike Blumenkrantz c66c698e43 ELM_WIN_FAKE types should allow focus callbacks on windows 2015-01-10 01:36:27 -05:00
Mike Blumenkrantz 7bebf6b3f8 entry now finds its window object more effectively for cnp init 2015-01-10 00:48:33 -05:00
Mike Blumenkrantz 28872897b5 +elm_win_fake(), ELM_WIN_FAKE type
this is a giant hack to provide widget parenting in e. do not use this function, do not use this type, do not even read the related documentation.

@feature
2015-01-10 00:36:17 -05:00
ChunEon Park 20a933e044 genlist: code refactoring.
clean up decorate_item_realize() function.

use macro and remove old debug code.
no actual logical change.
2015-01-10 14:14:57 +09:00
ChunEon Park 2f66bfc417 genlist: clean up genlist_smart_del() func.
removed unnecessary calls.
2015-01-09 23:27:33 +09:00
ChunEon Park fd5e859149 widget: remove redundant internal macros
we don't need these macros anymore since eo has introduced.
2015-01-09 23:04:39 +09:00
Jean Guyomarc'h ab0a1bda94 Do not call ecore_x_init() when not using X display.
Summary:
On some systems (e.g. OS X), both Apple's windows manager and X11 can cohabit,
therefore we need to check for the DISPLAY environment variable only when ELM_DISPLAY
is not specified.

Reviewers: cedric, devilhorns, seoz, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D1721
2015-01-09 14:41:04 +09:00
ChunEon Park 91d42b500d genlist: if the item was selected, then skip item_select() procedure. 2015-01-08 23:58:11 +09:00
ChunEon Park 54b221703b genlist: simple code clean up
no logic change.
2015-01-08 23:54:37 +09:00
ChunEon Park 8c5231ca80 genlist: use eina bool 2015-01-08 23:41:29 +09:00
ChunEon Park 5cdcdf5c71 genilst: descriptive comment++ 2015-01-08 23:37:06 +09:00
ChunEon Park e7ab25d3ce genlist: remove internal callback usage.
there were multiple ports for item procedures.
one port is enough.
2015-01-08 23:23:44 +09:00
ChunEon Park a045ca8289 genilst: get rid of lazy deletion.
delete genlist item directly.
instead, remove the bunch of code that was related to lazy deletion.

we can success, if we clean up the resources and callback calls properly.
here i only found item focus callback that (may) required the lazy deletion.
2015-01-08 23:07:39 +09:00
ChunEon Park 59b32785e1 genlist: send signal to deco_all_view additionally. 2015-01-08 19:50:52 +09:00
ChunEon Park 293c5dbb13 genlist: +warning 2015-01-08 19:49:39 +09:00
ChunEon Park 6a92dc4058 genlist: make up lack of behaviors in item_disable 2015-01-08 19:47:14 +09:00
ChunEon Park 51cca32085 genlist: replace to internal call 2015-01-08 19:45:17 +09:00
vivek aa41261430 elm_win: Fixed the issue of updating ecore_wl_window location
Summary:
@Fix

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

Reviewers: devilhorns

Differential Revision: https://phab.enlightenment.org/D1856
2015-01-08 19:46:52 +09:00
VBS fdfde0d5e0 Gengrid: fix gengrid reorder animation bug
Summary: When gengrid reordering by thumb scroll, some items disapear on screan.

Test Plan:
1. Enabled thumb scroll in elm config
           2. Launch gengrid test in elementary_test
           3. Check reorder mode enabled
           4. Try to move reordering item to upon or lower area by thumb scrolling,
              items disapear.

Reviewers: seoz, raster

Reviewed By: raster

Subscribers: bluezery

Differential Revision: https://phab.enlightenment.org/D1852
2015-01-08 19:36:19 +09:00
Shinwoo Kim e649486e58 [spinner] use strncmp, not strcmp to support styles starting with vertical
Summary: Use strncpm, not strcmp to support styles starting with vertical

Test Plan: Define spinner style which has 'vertcial' as a prefix

Reviewers: raster, cedric, seoz, woohyun, jaehwan, Hermet, jpeg

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1839
2015-01-08 18:54:30 +09:00
ChunEon Park 6f293dcf5f genlist: +parent validation check 2015-01-08 18:10:12 +09:00
ChunEon Park 94f530fca9 genlist: code refactoring.
there are 2 variables that has same purpose.
cut off one dependency.
2015-01-08 17:55:11 +09:00
shilpa.singh 92deae574a elm_widget: elm_object_disabled_set API fix
Summary:
When elm_object_disabled_set API is called on any widget, All the
subobjects of the widget also has to be disabled issue fix.
@fix

Test Plan:
Call the API elm_object_disabled_set on any container widget like box,
layout etc:-, fix can be tested with test_box.c and test_layout.c test
codes.

Reviewers: Hermet, seoz, raster

Subscribers: govi, rajeshps

Differential Revision: https://phab.enlightenment.org/D1778
2015-01-08 16:06:35 +09:00
Jee-Yong Um 4ade3552db elm_image: Fixed to have exact size using elm_image_fill_outside_set()
Summary:
There was a problem that image is stretched over its size
when elm_image_fill_outside_set() is applied.
This patch fixed that.

@fix

Reviewers: Hermet

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D1854
2015-01-08 15:47:24 +09:00
ChunEon Park a87021aba0 genlist: fix crash issue.
"selected" list has the eo list, not elm_gen_item.

this is side effect caused while on refactoring genlist.
2015-01-08 11:13:02 +09:00
Nibha Sharma 60e70654ea elm_font: Fixed resource leak in function elm_font_available_hash_add
Summary: @Fix

Reviewers: raster, singh.amitesh, seoz, kimcinoo, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D1849
2015-01-08 10:46:05 +09:00
Carsten Haitzler 80c7f3bd74 elm filesel - fix eio access of widget data after de in eio threads
@fix
2015-01-07 19:34:15 +09:00
ChunEon Park b92ba5eeaa genlist: add more arguments validation checks 2015-01-07 18:12:33 +09:00
Carsten Haitzler b0e3cfd52e elm progressbar - fix invalid access to freed units string
@fix
2015-01-07 17:23:29 +09:00
Marcel Hollerbach e265fead91 fileselector: added a search icon
Summary:
fileselector: redirect keystrokes to the searchbar

Keystrokes like a-z A-Z 0-9 are redirected to the searchbar, so you dont
need to click arround to search files in the fileselector.

The search icon is from ApB (Apostolos B.), thx for that! :)

@feature Improved the searchbar

Reviewers: raster, seoz

Subscribers: ryuan.choi, cedric, seoz

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

Conflicts:
	src/lib/elc_fileselector.c
2015-01-07 17:23:29 +09:00
ChunEon Park accdefce6f genlist: + parent validation check 2015-01-07 15:49:19 +09:00
ChunEon Park 2dd465215e genlist: code refactoring.
type check than boolean(to be removed)
2015-01-07 15:20:45 +09:00
ChunEon Park 4e8f373b7c genlist: use simple macro 2015-01-07 15:18:01 +09:00
ChunEon Park 34732967eb genlist: null check++ 2015-01-07 14:39:34 +09:00
ChunEon Park 115bfee81f genlist: clean up missing resources in genlist_clear() 2015-01-07 14:38:25 +09:00
ChunEon Park b34df7d58c genlist: cancel multi selected items.
cancel multi selected items if the multi-select mode is canceled.

@fix
2015-01-07 14:10:18 +09:00
ChunEon Park 625a299e4a colorselector: memory leak fix in _color_bars_add
Summary:
this function is called at least twice: in _smart_add and every time _theme_apply is called.
so we need either correctly free sd->cb_data or reuse it

@fix

Reviewers: seoz, cedric, raster, Hermet

Subscribers: reutskiy.v.v

Projects: #elementary

Differential Revision: https://phab.enlightenment.org/D1841
2015-01-07 11:42:08 +09:00
Nak-Gyeong Kim 2e64b49bd2 elm_segment_control: Fix elm_object_item_text_set bug.
Summary:
Cause : When part name is NULL, edje_object_part_text_escaped_set is not called.
Measure : Add code for each conditions.

@fix

Reviewers: Hermet

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D1847
2015-01-07 11:22:07 +09:00
woochan lee acf58903b4 elm_diskselector.c: idle enterer add condition changed.
Summary:
The idle enterer added even after deleted sd for diskselector.
it makes crash.

@fix

Test Plan:
1. Run elementary_test
2. Execution diskselector.
3. Close diskselector sample window.
4. Crash occured.

Reviewers: Hermet, seoz, Jaehyun

Differential Revision: https://phab.enlightenment.org/D1843
2015-01-07 11:16:38 +09:00
Mike Blumenkrantz 799171a0c8 elm_image now inherits edje signal emit
@feature
2015-01-06 15:19:26 -05:00
Stephen Houston 9ba9877060 thumb: Make sure to stop pulse animation on thumbs that failed to generate 2015-01-06 13:49:55 -06:00
ChunEon Park 57bf376c91 genlist: refactor code.
select/unselect items by using common select function.
2015-01-06 20:20:19 +09:00
ChunEon Park 0e939442d0 genlist: use macro as possible. 2015-01-06 15:50:30 +09:00
ChunEon Park 1b2401849a gelnist: unswallow makes sense. not smart member del. 2015-01-06 15:46:35 +09:00
Chris Michael 4be7250569 elementary: Fix issue with event data causing an invalid free
Summary: Since we end up calling free on the event->data parameter
after a drop is completed, we should actually be allocating a string
for this data (to be free'd later). This also fixes an issue where the
event length was not being set.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-05 13:48:45 -05:00
Chris Michael 4a07808590 elementary: Fix return values to use Eina_Bool
Summary: This function is expecting Eina_Bool as the return value, not
ints so let's use EINA_FALSE here.

NB: this just fixes a copy/paste issue

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-05 12:17:03 -05:00
Chris Michael 5f325de444 elementary: Fix DnD to work again in wayland
Summary: In order for ecore_wl to start a drag, we need to send the
parent window of the object being dragged. Previous code was not
getting the parent window properly.

NB: This patch also fixes an issue where the data being sent to the
drop callback was being incorrectly sent.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-05 12:05:50 -05:00
ChunEon Park fa6e06a450 genlist: keep the item class as given argument. 2015-01-05 22:17:12 +09:00
ChunEon Park b79e3e4ffa genlist: Fix genlist index get bug
Because not all item block have "max_items_per_block" number of items in it's block.
So the calculation is not correct when items are added & removed in each block.

Anyhow, we need more efficient way for this API because genlist uses inlinst.
2015-01-05 20:43:58 +09:00
ChunEon Park 3695c3c0b3 genlist: add some comment in code. 2015-01-05 20:21:26 +09:00
ChunEon Park a898ca295f genlist: use macro as possible. 2015-01-05 15:56:27 +09:00
ChunEon Park a831b625b9 genlist: use ELM_NEW 2015-01-05 15:55:39 +09:00
ChunEon Park e608c88448 genilst: unselect items if the genlist select mode is display only or none.
make it behavior same with elm_genlist_item_select_mode_set()

@fix
2015-01-05 15:42:22 +09:00
ChunEon Park a0b170c2a3 genlist: unselect item if the select mode is display only or none.
@fix
2015-01-05 15:37:41 +09:00
ChunEon Park 28ac4ffe65 ggenlist: code refactoring.
don't do anything if same mode is applied.
2015-01-05 15:03:37 +09:00
Daniel Hirt e3baf4d3c1 Elm_Entry: Fix dropped text data insertion
Fixes bad drag&drop into entry widgets, since the drop callback
assumed that the dropped text ends with a NULL character.

How to reproduce:
1. Open 'elementary_test -to Entry'
2. Open some application (e.g. Firefox)
3. Select some (preferably short) text, and drag&drop it to the entry
widget. This sometimes pastes additional corrupted text (better try
with a 1-3 characters text).

@fix
2015-01-04 14:14:54 +02:00
Davide Andreoli d4f5df772d Added the elm_win_util_dialog_add() API function
This new @feature is just a convenient way to create dialogs, It
mimic the elm_win_util_standard_add() function but crete a
standard dialog, with background and the parent set.

WinDialog test changed to use the new function.
2015-01-03 14:13:35 +01:00
Davide Andreoli 62ef7d3465 Icon: added documentation for the new fdo icon names 2015-01-03 12:49:21 +01:00
ChunEon Park f3efe45e5e genlist: remove useless deco texts. 2015-01-02 20:18:24 +09:00
ChunEon Park 30a74e27da genlist: + null check 2015-01-02 20:04:55 +09:00
ChunEon Park 2ede0112bd genlist: code refactoring
refactor _item_content_realize() prototype to keep the consistency with state,text_realize()
2015-01-02 19:59:39 +09:00
ChunEon Park e89125754e genlist: code refactoring.
apply facade at _view_inflate() for simple item realization.
2015-01-02 19:45:48 +09:00
ChunEon Park a1b36ae6ee genlist: code refactoring.
remove contents_obj but use contents instead.
2015-01-02 19:04:34 +09:00
ChunEon Park 4cdcfac116 genlist: code refactoring.
remove target states strings in the widget item.
2015-01-02 17:34:05 +09:00
ChunEon Park 1470572cef genlist: code refactoring.
just clean up code. no logic change.
2015-01-02 16:54:01 +09:00
ChunEon Park a41e9d8044 genlist: refactoring code.
removed invalid content string free call.
and renamed flip_content_objs -> flip_contents.
2015-01-02 16:48:29 +09:00
ChunEon Park 60202b7f0a genlist: code refactoring.
remove contents string list that doesn't needed to keep in widget data.

next code refactoring based on this patch will be coming.
2015-01-02 16:17:16 +09:00
ChunEon Park 67e4baf1df genlist: exceptional handling.
just be hidden if contents are failed to swallow.
2015-01-02 12:14:41 +09:00
Mike Blumenkrantz 8265a01c2a box layout should not silently fail when size is less than min size hint
this broke box display in any case where the user had manually changed size hints, eg. when using box align

@fix
2014-12-31 15:32:29 -05:00
ChunEon Park 2dd05e1580 genlist: free selected items when genlist is cleared. 2014-12-31 19:55:09 +09:00
ChunEon Park ff9de8bea8 genlist: send reorder signal to decoration item and views.
Previous logic was too much stick to special case for *tizen*
let decide item styles in theme as possible.

This might break reorder group item ui, but it won't be critical.
because tizen ui only depeneded on the scenario and they don't use them anymore.

This will be much better for multiple scenario in the future.
2014-12-31 19:10:40 +09:00
ChunEon Park 4f1b1bcb9f genlist: let group item set reorder style as it needs.
we don't need to limit the group item it's reorder style.
2014-12-31 18:59:28 +09:00
Daniel Juyung Seo 8db407f89c Revert "gesture_layer: Remove unnecessary value assignment."
This reverts commit d389a44b42d482414d1bfb2f4d0ccebbda510d7b.

Tasn said this value needs to be used. Let's fix it correctly later.
Thanks Tom.
2014-12-31 01:05:11 +09:00
Daniel Juyung Seo 27a8502959 gesture_layer: Remove unnecessary value assignment.
This fixes coverity CID 1261280.
But this is not critical.
2014-12-31 00:13:01 +09:00
ChunEon Park 66d78a4512 genlist: + warning msg for user notice
don't unrealize reordering item.
2014-12-30 17:56:24 +09:00
ChunEon Park 7dc5c3863c genlist: use convenient macro. 2014-12-30 17:36:14 +09:00
ChunEon Park 0e5b3f32d5 Revert "genlist: return as possible as soon."
This reverts commit ef56ed167206612f146d2c70f5b35a7bcd62c4c6.

This caused logic change. should not be changed.
2014-12-30 15:44:46 +09:00
ChunEon Park 10ac198400 Revert "genlist: return as possible as soon"
This reverts commit 1e6736c3a13d58c4e1a01d7e23983c721051be08.

This caused logic. should not be changed.
2014-12-30 15:43:20 +09:00
ChunEon Park 65de16477c genlist: return as possible as soon 2014-12-30 15:32:41 +09:00
Jee-Yong Um c890310c01 elm_colorselector: Fixed to get proper min size with picker only mode
Summary:
Fixed to make colorselector have proper min size
when colorselector is in ELM_COLORSELECTOR_PICKER mode

@fix

Reviewers: Hermet

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D1832
2014-12-30 13:11:50 +09:00
ChunEon Park f86dbe4854 genlist: removed unnecessary check 2014-12-30 11:17:46 +09:00
Daniel Juyung Seo f14fa87c84 genlist: Fix internal comments. 2014-12-30 01:31:43 +09:00
ChunEon Park f9cc9863a3 genlist: return as possible as soon. 2014-12-29 22:58:38 +09:00
ChunEon Park f2b7e575f0 genlist: clean up code.
repositioned function and remove unnecessary prototype declaration.
2014-12-29 22:51:39 +09:00
ChunEon Park fb8af1004c genlist: remove duplicated signal registration. 2014-12-29 22:34:45 +09:00
ChunEon Park 1f73409844 genlist: send an additional signal
send flip disabled signal when it's state is switched.
2014-12-29 22:27:28 +09:00
ChunEon Park cce9511130 genlist: send a signal internally.
send a signal so that item set it's style according to it's depth
2014-12-29 22:16:34 +09:00
Davide Andreoli 02b5c7065d Fileselector: beautify the search entry
Entry moved to the top-right corner and added the guide text
2014-12-29 13:47:31 +01:00
ChunEon Park 5b2493b7af genlist: send a disabled signal when the decorated item is unrealized. 2014-12-29 21:44:50 +09:00
Davide Andreoli 62fe9c4964 List: new signal: clicked,right with simple test
@feature
2014-12-29 12:18:04 +01:00
ChunEon Park b4fe364f1b genlist: code refactoring
declare/use const strings for internal signals
2014-12-29 19:50:39 +09:00
Davide Andreoli a6486bc1b6 Gengrid: new signal: clicked,right with proper test
@feature
2014-12-29 11:38:17 +01:00
Davide Andreoli 9988b752c7 Genlist: do not fire clicked,right while dragging in progress 2014-12-29 11:19:21 +01:00
ChunEon Park eb229ae0e2 genlist: add "scroll" smart call
@feature
2014-12-29 19:02:08 +09:00
Davide Andreoli 69b6310954 Improve -clicked- detection code by accept only if the mouse do not move too much
Too much in this case is a fixed 4px. As fingers do not have a right button I think
that taking into account finger size is not needed here.

Also someone argued about the signal name is not really correct...
should I change it to somethig like: clicked,secondary ?
2014-12-26 18:46:28 +01:00
Davide Andreoli 536c5de134 Genlist: added the clicked,right event on items
@feature
2014-12-26 17:29:51 +01:00
Amitesh Singh fc1579020c list/genlist/gengrid: Fix memory leak.
Summary: @Fix

Reviewers: kimcinoo, SanghyeonLee, raster, seoz

Reviewed By: seoz

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1825
2014-12-26 20:22:57 +09:00
Daniel Juyung Seo 748f86feff gengrid: Enhance realized_items_get performance. 2014-12-26 18:45:29 +09:00
Daniel Juyung Seo d47a4adae4 gengrid, genlist, list, toolbar: Fix memory leak and enhance performance.
1. Fix memory leak by freeing eina_list.
2. Enhance performance by getting the item list when it is really
needed.

@fix
2014-12-26 18:41:48 +09:00
Daniel Juyung Seo 9b038471bf genlist: Return the correct pointer for object item.
No backport needed.
2014-12-26 14:36:36 +09:00
Daniel Juyung Seo 4e6ce7da7a gengrid: Add missing "moved" callback call on item reorder by key.
This is a gengrid version of de75e6c0e852a2664c0ed022a6f79d6f431f64a0.

@fix
2014-12-26 14:33:32 +09:00
Andrii Kroitor 8148de6e17 elm_genlist: add missing callback call
Summary:
Added missing "moved" callback call when reordering items with keyboard
"up" and "down" arrows

@fix

Reviewers: cedric, raster, seoz

Reviewed By: seoz

Subscribers: reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D1818
2014-12-26 14:23:42 +09:00
Andrii Kroitor c55e8ccac4 elm_toolbar: fix memory leak in _elm_toolbar_nearest_visible_item_get
@fix

Reviewers: cedric, seoz, Hermet, raster

Subscribers: reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D1822
2014-12-26 11:27:07 +09:00
Mike Blumenkrantz c201ec6c87 genlist should ignore no-select items when moving with the keyboard
@fix
2014-12-25 20:39:17 -05:00
jiin.moon c3397d302b image: fix clipped image issue if x or y is less than zero
Summary:
After applying clipping patch about image on outside,
the width or height of the image be decreased
if x or y of an image is less than zero.
The way to calculate width/height has changed.

This fixes a side effect added in 2839881f37ea85b3469d8fd37cfaa4f9d67458fa

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1810
2014-12-24 14:10:05 +09:00
Jee-Yong Um 17552b42b8 elm_colorselector: Fix layout broken in ELM_COLORSELECTOR_ALL mode
Summary:
Fix layout broken in ELM_COLORSELECTOR_ALL mode
due to missing part for layout sizing evaluation

@fix

Reviewers: Hermet

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D1802
2014-12-23 09:50:52 +09:00
Jaehyun Cho ce0e47c917 elm_transit: Support rotation keeping current map effect.
Summary:
Support rotation keeping current map effect.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1806
2014-12-23 09:39:38 +09:00
Jaehyun Cho 6632c7cb30 elm_transit: Support zoom keeping current map effect.
Summary:
Support zoom keeping current map effect.

Reviewers: Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D1805
2014-12-23 09:37:11 +09:00
Jee-Yong Um 8357725dc3 elm_colorselector: fix not intended duplication
Summary:
When colorselector widget is added, there are two align set command on palette_box part,
but that for picker part is omitted.
Apply elm_box_align_set function to picker part correctly.

@fix

Reviewers: Hermet

Reviewed By: Hermet

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D1790
2014-12-19 14:28:15 +09:00
Daniel Juyung Seo 82eb0a210c image: Fix formatting for the latest commit 283988. 2014-12-19 02:36:16 +09:00
jiin.moon fe3bacf30a elm/image: Fix an unclipped issue about image bigger than object size
Summary:
When resizes an image
if "fill_inside" and "aspect_fixed" in Elm_Image_Data struct are "TRUE",
extra width or height go outside of the object area.
The width or height on outside will be clipped.
@fix

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1794
2014-12-18 17:53:44 +09:00
Jaehyun Cho a51561c999 elm_widget: Pass Elm_Object_Item *item as *event_info in item->del_func.
Summary:
Pass Elm_Object_Item *item instead of Elm_Widget_Item_Data *item as
         *event_info in item->del_func to let *event_info be used.
         @fix

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1788
2014-12-18 14:42:45 +09:00
Jee-Yong Um b87b699138 elm_label: Add "slide,end" signal emission
Summary:
In label styles providing slide fuctions (slide_[long|short|bounce])
"slide,end" signal is emitted, when every slide ends.

@fix

Reviewers: raster, Hermet

Subscribers: raster, Hermet

Differential Revision: https://phab.enlightenment.org/D1782
2014-12-18 14:24:12 +09:00
ChunEon Park a26b6fcfc0 transit: fix warning (different types comparing)
added in 8a46bf160273ecda8eac5b60c8c445b5e5a046e3
2014-12-17 19:47:17 +09:00
jiin.moon a40fa2528b Transit: Support BEZIER CURVE
Summary:
Support BEZIER CURVE in elm transit
         @feature

Reviewers: seoz, raster, Hermet

Subscribers: raster, seoz

Differential Revision: https://phab.enlightenment.org/D1759
2014-12-17 19:35:13 +09:00
Daniel Juyung Seo 4a61d3955e genlist: Fix dereference before null check.
This fixes coverity CID 1258636.
No backport needed.
2014-12-16 23:54:13 +09:00
kabeer khan 8d4437b1f9 elm_list : Resolved TODO in elm_list.c and declared corresponding macros in elm_macros.h
Summary:
As mentioned in TODO replaced expressions in if statement with macros in elm_macros.

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: seoz, raster

Reviewed By: raster

Subscribers: raster

Differential Revision: https://phab.enlightenment.org/D1424
2014-12-16 20:01:04 +09:00
Carsten Haitzler 17f411f6be elm - fix warnings added in f99be3a1d6bdc63153598b592b5437c33da44bf0 2014-12-16 19:36:35 +09:00
Hosang Kim 7ca7e06253 gengrid: Fix mirroring issue about key event
Summary:
Originally, key "Left" is mapped elm_gengrid_item_prev_get. But when gengrid is mirrored, key "Left" should remap elm_gengrid_item_next_get.
So I add more condition for checking mirroring.

1. reverse Left and Right key event
2. fix _elm_gengrid_item_edge_check logic
3. fix _item_show_region logic

Test Plan: elementary_test -> gengrid

Reviewers: SanghyeonLee

Subscribers: seoz

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

Conflicts:
	src/lib/elm_gengrid.c
2014-12-16 19:34:39 +09:00
Jyotiprakash Sahoo 17419ec81c genlist: added reorder feature on key events
Summary: This feature allows user to reorder items using up/down keys.

Test Plan: elementary_test -to "Genlist Reorder Mode"

Reviewers: singh.amitesh, raster, seoz, SanghyeonLee

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

Conflicts:
	src/bin/test_genlist.c
	src/lib/elm_genlist_legacy.h
2014-12-16 18:20:32 +09:00
taehyub be15a0dc33 change elm_naviframe_itepm_pop_to api document
Summary:
Naviframe: modify elm_naviframe_item_pop_to api's document guide more specific to avoid confusion.

the elm_naviframe_item_pop_to api does not pop all items from the top to the target item.
It destory the items between the top and the target item, after that pop and destory the top item.
so, the descriptions of elm_naviframe_item_pop_to() is modified to avoid cunfusion like above.

Reviewers: Hermet, woohyun, seoz

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1780
2014-12-16 16:13:33 +09:00
Chinmaya a5c8af0493 Gengrid: Focus highlight should move to nearest visible object.
Summary:
If item_loop is not enabled, the focus highlight should move to nearest visible object
with key events.

Test Plan: elementary_test -to "gengrid 2"

Reviewers: seoz, raster

Subscribers: sachin.dev, seoz

Differential Revision: https://phab.enlightenment.org/D1261
2014-12-16 12:22:59 +09:00
Daniel Juyung Seo 400e451f8f win: Add more description for automatic switch to alpha window by theme.
This is a documentation for e07061c5d5a9b1ec79278da82208ad486937b873.
2014-12-16 02:09:16 +09:00
Daniel Juyung Seo ec63fe3ef2 win: Rename the internal variable to avoid confusion.
layout -> edje to explicitly say this is an edje object.
This avoids confusion between elm_layout and edje_object, thus makes
less human mistakes.
2014-12-16 02:03:22 +09:00
Daniel Juyung Seo fe9bd5ae58 win: Support runtime alpha window switch on theme change.
Once the window alpha is on, it would not go back to non-alpha window
automatically.

- non-alpha theme -> alpha theme: switch to alpha window
- alpha theme -> non-alpha theme: stay in alpha window

@feature
2014-12-16 01:57:24 +09:00
Daniel Juyung Seo b1531e71c7 win: Support elm_win style change and runtime theme change.
@feature
2014-12-16 01:45:59 +09:00
Daniel Juyung Seo 74176d08e8 table: Refactor internal codes to keep consistency. 2014-12-16 00:43:31 +09:00
Daniel Juyung Seo b97c0d5934 win: Fix wrong return value of window theme apply.
@fix
2014-12-16 00:40:42 +09:00
Daniel Juyung Seo c71a074a60 entry: Make documentation less confusing.
Entry can be used in different meanings. Use 'str' instead of 'entry' to
explicitly show the exact meaning of a parameter.
2014-12-15 20:59:10 +09:00
Sanjeev BA 00cbb2a2e2 Multibutton entry - handle parent object null case.
Reviewers: seoz, Hermet

Subscribers: Hermet, seoz

Maniphest Tasks: T1379

Differential Revision: https://phab.enlightenment.org/D1254
2014-12-15 17:47:06 +09:00
Carsten Haitzler 69dc603bdb elm - layout - allow elm.txt or elm.text.* parts to signal...
based on D1234 from Bora, but improved.
2014-12-15 17:35:01 +09:00
Anand efe737b3b8 List: Focus highlight when loop is enable
Summary:
Implemented focus highlight feature in list for vertical and horizontal looping
@feature

Test Plan: elementary_test->"List Focus" & "List Focus Horizontal"

Reviewers: singh.amitesh, nirajkr, seoz, eagleeye, raster

Subscribers: sachin.dev

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

Conflicts:
	src/lib/elm_list.c
2014-12-15 17:24:36 +09:00
Daniel Zaoui e8084e322c DnD: fix callbacks call on many DnD operations.
A leave callback is invoked on the drop target of the previous DnD
operation, leading to inconsistency for applications.
The state of the dropable target was not resetted during drop.
This patch fixes that.
2014-12-14 15:49:50 +02:00
Daniel Juyung Seo 14e79451c2 genlist: Fix genlist crash issue when clearing genlist on item focus callback.
This fixes "genlist focus" test sample's crash issue.

@fix
2014-12-14 04:19:42 +09:00
ChunEon Park b647f1350f win: set config engine on higher priority than DISPLAY env var
DISPLAY environment variable may set regardless of Elementary/EFL.
Mostly user has no way to switch their intent engine such as "buffer"

Guarantee work application engine with their intended engine first.

@fix
2014-12-12 21:56:26 +09:00
Cedric BAIL 58a7fa23c5 elm_win: make it possible to specify alpha window in the theme directly. 2014-12-11 06:45:14 +01:00
woochan lee 9648692037 elm_notify: added the notify's edje of popup smart member
Summary:
Summary: after popup layout refactoring, the popup object cant get evas event.

when popup using notify object block layout object will be covered with edje object.
it breaks evas smart member relationship.

Test Plan:
Test Plan:
1. added popup object.
2. key down event callback add for popup object.
3. run the elementary_test.
4. input some key on popup and check whether the registered function is executed or not.

Reviewers: eunue, Hermet, seoz

Differential Revision: https://phab.enlightenment.org/D1706
2014-12-11 00:00:21 +09:00
woochan lee fd0fb71fd0 elm_widget_progressbar.c: added description of Progressbar data
Summary: added description.

Reviewers: Hermet, woohyun, seoz

Reviewed By: seoz

Differential Revision: https://phab.enlightenment.org/D1709
2014-12-10 23:46:19 +09:00
ChunEon Park 2980fad1c0 config: improve doc. 2014-12-10 15:39:12 +09:00
ChunEon Park 7a0a26caa3 elementary/config: improve doc. 2014-12-10 15:07:11 +09:00
Carsten Haitzler f8e8f02d4a elm - UNBREAK BUILD! (#undef... SOMETHING) 2014-12-08 10:23:10 +09:00
Mike Blumenkrantz b3282f5922 tooltips in windows make more attempts to not overlap with pointer
this prevents (in most cases) a race condition where the pointer will continually trigger a show-hide-show loop due to slow X message processing
2014-12-07 20:10:40 -05:00
Mike Blumenkrantz 1e79ddfabb tooltip now calcs position more effectively during ADJUST(FLIP) 2014-12-07 20:10:40 -05:00
Mike Blumenkrantz e39f30ae4a tooltip windows now show themselves offscreen to force size calc before appearing
this improves initial tooltip placement and prevents tooltip warping due to incremental size recalcs after show
2014-12-07 20:10:40 -05:00
Mike Blumenkrantz f9a7f07bac tooltip windows now set shape input rect in elm_win
this fixes a longstanding race condition where tooltip windowss could exist with a shape rectangle due to race conditions between applying window properties (eg. alpha) and reapplying the input rect
2014-12-07 20:10:40 -05:00
Daniel Juyung Seo c3963d06f5 widget: Add/Fix internal documentations. 2014-12-07 15:55:44 +09:00
Daniel Juyung Seo b8e4341c78 slider: Clean up of the previous slider patch.
- This is a first clean up of 65240b5327e5ab1eb8f77835b4729444fe1f02df
- Fix wrong version for since tag.
- Fix indentation and remove trailing whitespaces.
- Make the code more readable.
- Remove a unused variable.
2014-11-29 23:28:14 +09:00
Wonguk Jeong 122403ea44 elm_cnp: decode escaped ASCII-encoded URI for dnd
Summary:
encoded URI is pasted in terminology on dnd with file which has blank in name
ex. Test Blank.avi -> Test%20Blank.avi

Therefore, decode it when we extract file uris from uri list by using efreet.
by the way, copy and paste code likely needs refactoring..

Reviewers: raster, cedric

Subscribers: billiob, seoz

Differential Revision: https://phab.enlightenment.org/D1384
2014-11-29 16:06:50 +09:00
Anil Kumar Nahak 6d1d6dec7c Slider: Added APIs to set/get slider's indicator visibility mode.
Summary:
elm_config_slider_indicator_visible_mode_set
elm_config_slider_indicator_visible_mode_get

The patch will enable the slider's indicator to get

visible always
visible on focus
visible never
visible on slider value change

Reviewers: raster, seoz

Subscribers: sachin.dev

Differential Revision: https://phab.enlightenment.org/D1558
2014-11-29 15:56:45 +09:00
Lukasz Stanislawski d390ddf08d elm config: add key bindings for elm_actionslider
Allow changing value of actionslider with keyboard. Make actionslider
focusable widget.

@feature

Conflicts:
	config/default/base.src.in
	config/mobile/base.src.in
	config/standard/base.src.in
2014-11-29 15:34:08 +09:00
Jaehyun Cho f689b5e05f elm_transit: Apply evas_map_util_object_move_sync_set() to transit
Summary:
Apply evas_map_util_object_move_sync_set() to transit to keep map transformation after object move

please update efl library because evas_map_util_object_move_sync_set()'s been newly added.

Reviewers: Hermet, cedric

Differential Revision: https://phab.enlightenment.org/D1685
2014-11-28 13:36:20 +09:00
Daniel Juyung Seo 726c17b399 widget: Add error message when the parent parameter was set wrongly.
This helps application developers debug their apps easier.
2014-11-25 22:09:58 +09:00
Daniel Juyung Seo cead9c0ba2 index, list, menu: Optimize eo item usage.
Remove unnecessary pointer reference.
2014-11-25 21:55:39 +09:00
Daniel Juyung Seo e31df3372c gengrid, genlist: Optimize eo item usage.
Remove unnecessary pointer reference.
2014-11-25 21:55:14 +09:00
Daniel Juyung Seo 288189ede6 diskselector, flipselector: Optimize eo item usage.
Remove unnecessary pointer reference.
2014-11-25 21:54:54 +09:00
Daniel Juyung Seo fb4b67afb5 hoversel, popup, colorselector: Optimize eo item usage.
Remove unnecessary pointer reference.
2014-11-25 21:54:26 +09:00
Daniel Juyung Seo 9b9a0267b7 list: Optimize eo item usage.
Remove unnecessary pointer reference.
2014-11-24 17:40:28 +09:00
Daniel Juyung Seo d31b51eccc list: Fix wrong eo item porting.
Fix egitu crash issue :)
Special thanks to davemds for letting me know python gdb
usage.
2014-11-24 17:40:28 +09:00
ChunEon Park b91715ec3f didn't intend puhing this patch.
Revert "elm_notify: added the notify's edje of popup smart member"

This reverts commit cecbeb18ac29755f5163dc7860942c045f6ba3e4.
2014-11-24 16:59:27 +09:00
woochan lee 8458f6da2c elm_notify: added the notify's edje of popup smart member
Summary: after popup layout refactoring, the popup object cant get evas event.

Test Plan:
1. added popup object.
2. key down event callback add for popup object.
3. run the elementary_test.
4. input some key on popup and check whether the registered function is executed or not.

Reviewers: seoz, eunue, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D1688
2014-11-24 16:50:31 +09:00
zmike 0c933506a8 widget tooltip creation should also pass the eo item to the callback
ref T1859
2014-11-23 11:30:30 -05:00
Daniel Zaoui dfc3f7ac30 Genlist: Fix previous commit.
The items of an item is a list of Elm_Object_Item and not of Elm_Gen_Item.
Sorry @zmike ;-)

Fixes T1859

Another fix has been added in this commit, related to relative items.
2014-11-23 09:18:42 +02:00
Daniel Zaoui 0f28743080 Genlist: Fix API return value.
elm_genlist_item_subitems_get has to return a list of Elm_Object_Item.
Because of the porting of the genlist item to Eo, this function returns
a list of Elm_Gen_Item.

Thanks to zmike and seoz for catching this.

Fixes T1859
2014-11-22 09:40:37 +02:00
Vitalii Vorobiov ae38b2efa9 DBUS Menu: fixing SIGSEV and SIGBUS when trying to use dbus.
Summary:
Using of dbus menu causes a weird exception that looks
like this (for example in function elm_win_main_menu_get(Evas_Object *win)):
> EINA: Data at address 0x0 is invalid. Replacing with zero page.
> mmap: Operation not permitted
> ERR<22270>:eina_mmap lib/eina/eina_mmap.c:110 _eina_mmap_safe_sigbus()
> Failed to mmap() /dev/zero in place of page. SIGBUS!!!
> Aborted (core dumped)

This issue appears because there is a lot of places where Elm_Object_Item is
used, but it should be Elm_Menu_Item_Data.

This issue could be reproduced with elementary_test:
1. run elementary test with dbus enabled.
2. find "Systray Item" button and click on it.
3. get SIGSEV in your console.

@fix

Reviewers: cedric, raster, seoz, Hermet

Reviewed By: Hermet

Subscribers: reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D1681
2014-11-22 11:08:36 +09:00
Daniel Juyung Seo 78fea1b7f5 win: Fix and clean up doxygen documentation. 2014-11-22 00:38:45 +09:00
Daniel Juyung Seo b1808e5ad7 thumb, toolbar, web: Fix and clean up doxygen documentation. 2014-11-22 00:38:45 +09:00
Daniel Juyung Seo 92cc579a25 scroller, slider, slideshow: Fix and clean up doxygen documentation. 2014-11-22 00:38:44 +09:00
Daniel Juyung Seo a4f4fdc936 panel, prefs, progressbar: Fix and clean up doxygen documentation. 2014-11-22 00:38:44 +09:00
Daniel Juyung Seo 720855f2ad layout, list, map: Fix and clean up doxygen documentation. 2014-11-22 00:38:44 +09:00
Daniel Juyung Seo a19d5c2c21 icon, image, label: Fix and clean up doxygen documentation. 2014-11-22 00:38:44 +09:00
Daniel Juyung Seo ff6416e6c3 gesture_layer, glview, hover: Fix and clean up doxygen documentation. 2014-11-22 00:38:44 +09:00
Daniel Juyung Seo 2a39c2f53e colorselector, entry, flip: Fix and clean up doxygen documentation. 2014-11-22 00:38:44 +09:00
Daniel Juyung Seo 864e1263a8 clock, datetime, dayselector: Fix and clean up doxygen documentation. 2014-11-22 00:38:44 +09:00
Daniel Juyung Seo e23421f2e9 box, bubble, calendar: Fix and clean up doxygen documentation. 2014-11-22 00:38:44 +09:00
Daniel Juyung Seo 0b820975b6 actionslider, app, bg: Fix and clean up doxygen documentation. 2014-11-22 00:38:44 +09:00
Amitesh Singh 2b40551740 multibuttonentry: use !strcmp() instead for comparison.
Reviewers: seoz

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1680
2014-11-21 13:38:12 +09:00
Hosang Kim 008f37e18e Scroller: Add step size set API
Summary:
Application do not change step size because only interface API is existed.

@feature

Test Plan: elementary_test -> scroller -> change step size

Reviewers: seoz, Hermet

Differential Revision: https://phab.enlightenment.org/D1677
2014-11-20 20:29:41 +09:00
ChunEon Park d2e026db57 transit: free the map resource.
@fix

Submitted-By-Off: Seung-Wan Woo <s-w.woo@samsung.com>
2014-11-20 09:16:55 +09:00
Daniel Juyung Seo 7fc83c54b5 genlist: Fix build warning for uninitialized variable.
elm_genlist.c:1916:15: warning: 'eo_it' may be used uninitialized in
this function [-Wuninitialized]
2014-11-19 19:53:40 +09:00
Daniel Juyung Seo 4406302421 elm: Modify document for APIs.
Retrieve -> Get as the API says.
This is not a critical change but was done due to the consistency.
2014-11-19 19:51:57 +09:00
Daniel Juyung Seo 202232523b segment_control: Fix shadow declaration build warning.
warning: declaration of 'select' shadows a global declaration [-Wshadow]
2014-11-14 15:30:08 +09:00
Daniel Juyung Seo e9fbc706ac bg: Flourish bg documentations and comments. 2014-11-14 15:27:54 +09:00
Daniel Juyung Seo fc41978cc2 panel, segment_control: Use ev->canvas instead of ev->output.
Even they are same it is recommended to use ev->canvas as it was
actually intended for that purpose.
2014-11-14 15:19:23 +09:00
Daniel Juyung Seo 757eea9588 elm: Remove unnecessary elm_shutdown() while using ELM_MAIN().
elm_shutdown() is automatically called when you use ELM_MAIN() since
elementary 1.12.
2014-11-14 14:17:54 +09:00
Daniel Juyung Seo 07bb653dd4 label: Add more comments for the unclear internal data. 2014-11-13 09:45:45 +09:00
Andrii Kroitor 81bd6ed6e1 elm_box: inappropriate size_hint_align value usage fix
Summary:
size_hint_align was used instead of evas_box's internal value for aligning
of internal items. Because of that layout functions of elm_box and evas_box
were incompatable
Fixed elm_box, els_box layout and widgets that used this behaviour.

@fix

Test Plan:
Run "elementary_test". All buttons should be left-aligned
"elm_box_align_set(tbx2, 0.0, 0.5);" (test.c:332)

Reviewers: cedric, Hermet, stefan_schmidt, seoz

Reviewed By: seoz

Subscribers: shilpasingh, reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D1512
2014-11-13 00:14:57 +09:00
Daniel Zaoui 7e396432ef Object Items: replace most of del_pre functions with destructor.
This change is not simple because Elementary has not been built from the
first day to work with Eo. Code had to be adapted to fit the new design.

The del_pre that have not been replaced yet can return FALSE and
prevent deletion. For these classes, code modification has to be deeper
and will be done later.
2014-11-12 12:03:58 +02:00
Daniel Zaoui 05225b162e Object Items: remove data variable from widget item.
Now, data is stored in Eo layer via eo_key_data_set/get.

Two macros have been added to facilitate access.
2014-11-12 12:03:58 +02:00
Daniel Zaoui 9d50d391a0 Object Items: Adapt del callback to Eo.
Because of widget item design, it is hard to make it fit to Eo as it
should be:
- _eo_del_cb should have the callback pointer as data but pre_notify
function forces its storage into the item data because we need to be
able to call the cb before del is really triggered.
- only one cb is supported for an item, meaning replacing it would mean
we have to save the function pointer inside the item, delete the
callback with the previous function as data and then add the new
callback. Instead of it, we just add our own wrapper as Eo callback that
will invoke the function pointer stored in the item data.
2014-11-12 12:03:58 +02:00
Daniel Zaoui ef03bc098e Object Items: remove legacy APIs.
They are now generated by Eolian.
2014-11-12 12:03:58 +02:00
Daniel Zaoui b01d01528a Object Items: remove casts that are no more needed.
It includes casts to Eo, Elm_Object_Item and to specific items data.
This belongs to the cleaning phase of the object items porting to Eo.
2014-11-12 12:03:57 +02:00
Daniel Zaoui 81becebfa6 Object Items: remove temporary files used for the porting to Eo. 2014-11-12 12:03:57 +02:00
Daniel Zaoui 4618dab968 Object Items: remove old inheritance mechanism. 2014-11-12 12:03:57 +02:00
Daniel Zaoui 5f62b784a3 Object Items: Elm_Object_Item becomes Eo 2014-11-12 12:03:57 +02:00
Daniel Zaoui 56bb6d71c2 Object Items: remove last invocations to elm_widget_item_ APIs 2014-11-12 12:03:56 +02:00
Daniel Zaoui f0ede508f8 Elm Popup Item: Migrate to Eo 2014-11-12 12:03:56 +02:00
Daniel Zaoui 99971686d3 Elm DiskSelector Item: Migrate to Eo 2014-11-12 12:03:56 +02:00
Daniel Zaoui d1db1d81dc Elm Toolbar Item: Migrate to Eo 2014-11-12 12:03:56 +02:00
Daniel Zaoui fffa035895 Elm List Item: Migrate to Eo 2014-11-12 12:03:56 +02:00
Daniel Zaoui ae4c43d2ee Elm Gengrid Item: Migrate to Eo 2014-11-12 12:03:56 +02:00
Daniel Zaoui ca286ea1cb Elm Genlist Item: Migrate to Eo 2014-11-12 12:03:56 +02:00
Daniel Zaoui 15b23e94f9 Elm Naviframe Item: Migrate to Eo 2014-11-12 12:03:55 +02:00
Daniel Zaoui aaf2ecf9e9 Elm Multibuttonentry Item: Migrate to Eo 2014-11-12 12:03:55 +02:00
Daniel Zaoui 3db20f53ea Elm Index item: Migrate to Eo 2014-11-12 12:03:55 +02:00
Daniel Zaoui 1db002db3a Elm Ctxpopup item: Migrate to Eo 2014-11-12 12:03:55 +02:00
Daniel Zaoui 0308cb0993 Elm Menu Item: Migrate to Eo 2014-11-12 12:03:55 +02:00
Daniel Zaoui c12cdc1af5 Elm Flipselector Item: Migrate to Eo 2014-11-12 12:03:55 +02:00
Daniel Zaoui 574a41dc22 Elm Slideshow Item: Migrate to Eo 2014-11-12 12:03:55 +02:00
Daniel Zaoui a6d6a7beeb Elm Segment Control Item: Migrate to Eo 2014-11-12 12:03:55 +02:00
Daniel Zaoui 4f67061872 Elm Hoversel Item: Migrate to Eo 2014-11-12 12:03:54 +02:00
Daniel Zaoui 1a56647934 Elm Dayselector Item: Migrate to Eo 2014-11-12 12:03:54 +02:00
Daniel Zaoui e1d7009ff3 Elm Colorselector Item: Migrate to Eo 2014-11-12 11:56:02 +02:00
Daniel Zaoui a9b13f7633 Elm Widget Item: Migrate to Eo
Since we want to support legacy inheritance mechanism, code is not
finished and will have to be cleaned when all the items are ported.
2014-11-12 11:52:10 +02:00
Mike Blumenkrantz bae7104b14 config font hinting api added
needed for e's internal use, not sure if worth exposing since there's an env variable

@feature
2014-11-10 16:02:28 -05:00
Youngbok Shin 40bc9198aa label: Reset sd->lastw as '-1' in some elm_label APIs for ensure the sizing_eval.
Summary:
In some cases, elm_label doesn't calculate its min size if it is not resized from outside.
It is happened when only elm_label used with elm_label_line_wrap_set API.
The following APIs can change min size of the widget, so we can't skip the sizing_eval func.

elm_label_line_wrap_set
elm_label_line_width_set
elm_object_text_set -> _elm_label_elm_layout_text_set will be called.

@fix

Test Plan:
I put a change to test_notify.c for test.
elementary_test notify
-> click "top" button. -> You can't see elm_label without the patch.

Reviewers: woohyun, tasn, seoz

Reviewed By: seoz

Subscribers: herdsman

Differential Revision: https://phab.enlightenment.org/D1652
2014-11-10 14:06:32 +09:00
Daniel Juyung Seo 34375b9113 macro: Fix wrong macro braces.
This causes unwanted result. Fit it.
2014-11-10 14:05:58 +09:00
shilpa.singh 9cb07eb5fa elm_box_align_set API fix
Summary:
Issue: elm_box_align_set APIs not working well
Solution: hint_set should not be called instead evas box align APIs
have to be used

@fix

Test Plan:
elementary test demo first page, though align is set as 0.0
0.5 it always shows as 0.5

Reviewers: Hermet, raster, seoz

Subscribers: rajeshps, govi

Differential Revision: https://phab.enlightenment.org/D1622
2014-11-09 18:02:37 +09:00
Amitesh Singh 08237a1000 widget: fix the typo. Use win object instead.
Summary: @fix

Reviewers: seoz, raster

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1645
2014-11-07 02:23:30 +09:00
Daniel Juyung Seo 90f62df551 widget: Remove duplicated declarations and clean up them more. 2014-11-07 02:21:02 +09:00
Daniel Juyung Seo f9ec18f586 genlist: Remove unnecessary callbacks when item loop is disabled.
@fix
2014-11-07 02:20:21 +09:00
Tae-Hwan Kim 2afae8dff2 elm_general: Add '*' explicitly for function pointer parameter
Reviewers: raster, cedric, huchi, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D1637
2014-11-05 15:01:15 +09:00
Cedric BAIL 3a9dee52fa elementary: report time correctly when benchmarking time to first frame. 2014-11-03 06:38:48 +01:00
artem.popov 341160133b elm_widget: fix segfaults for _elm_widget_item_style_set/get
Summary:
Changing of styles for widget items isn't realized yet. This fix should
be presented to avoid segfaults when elm_object_item_style_set/get is calling
@fix

Reviewers: seoz, raster, cedric, Hermet

Reviewed By: Hermet

Subscribers: bluezery

Differential Revision: https://phab.enlightenment.org/D1595
2014-10-31 15:24:43 +09:00
ChunEon Park e253be4521 panel: add error messages for user information. 2014-10-31 15:19:35 +09:00
Kateryna Fesyna 69c9b0ecde Elm_Panel: forbid changing of content of "elm.swallow.event" part
Summary:
Because the "elm.swallow.event" part is used for internal needs of Panel widget
setting up or unsetting content of this part can break the behavior of this widget.
Due to the fact that this part is invisible and does not have any use cases for user
it seems acceptable to forbid changing of its content.

@fix

Reviewers: cedric, seoz, raster, Hermet

Reviewed By: Hermet

Subscribers: reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D1587
2014-10-31 15:16:14 +09:00
woochanlee dd354b8dc5 check: deleted typo.
Summary: deleted typo.

Reviewers: seoz, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D1613
2014-10-30 19:39:19 +09:00
Cedric BAIL 3eadbd522f quicklaunch: initialize edje earlier.
We do trigger an edje theme open during the first stage of quicklaunch as part of
config init apparently. So we better init or we will endup with some really bad
memory corruption.
2014-10-30 07:24:08 +01:00
Carsten Haitzler e73b596fc7 elm win - start wins in withdrawn state
this matches 5954289c6c commit on efl -
fixes initial window state so you can detetc when it is shown and
normal.

@fix
2014-10-29 19:35:47 +09:00
Ryuan Choi 4855fa3f71 fileselector: Do not call _populate directly in APIs
Summary:
User application may call some fileselector APIs to configure fileselector instance.
And some of them may call _populate but only last request is needed.
However, T1663 raises that last request might be rejected with expansion option and
multiple requests of _populate.
It's because expansion mode do not allow next _populate until previous one is finished.

So, this patch fixes it via scheduling _populate instead of calling _populate() directly in APIs.

@fix

Maniphest Tasks: T1663
2014-10-29 12:57:31 +09:00
Adrien Nader d5952c875a doc: add API docs in elm_interface_scrollable.
This adds
- gravity_set
- gravity_get
- bounce_allow_set
- bounce_allow_get
- movement_block_set
- movement_block_get
- policy_get
- policy_set
- content_region_get
- content_region_set
- page_size_set
- page_size_get
- page_snap_allow_set
- page_snap_allow_get
- single_direction_get
- single_direction_set
- last_page_get
- current_page_get
- content_size_get

- scroll_up_cb
- hbar_drag_cb
- drag_start_cb
- scroll_left_cb
- vbar_press_cb
- hbar_press_cb
- hbar_unpress_cb
- drag_stop_cb
- page_change_cb
- animate_start_cb
- scroll_down_cb
- scroll_cb
- animate_stop_cb
- scroll_right_cb
- edge_left_cb
- vbar_drag_cb
- vbar_unpress_cb
- edge_bottom_cb
- edge_top_cb

- page_show
- region_bring_in
- page_bring_in
- content_region_show
- content_min_limit
2014-10-20 18:42:21 +02:00
Adrien Nader b5d0f91a9b doc: add API docs in button, container, image, store, general.
This adds API docs for:

- elm_button_admits_autorepeat_get

- elm_container_content_swallow_list_get
-               content_get
-               content_set
-               content_unset

- elm_image_resize_down_set
-           resize_down_get
-           resize_up_set
-           resize_up_get
-           scale_set
-           scale_get
-           fill_inside_set
-           fill_inside_get
-           sizing_eval

Light documentation for enum Elm_Object_Select_Mode, enum
Elm_Object_Multi_Select_Mode and Elm_Store_Item_Mapping_Type.
2014-10-20 18:42:21 +02:00
Adrien Nader bfd57b3d84 doc: fix mismatched variable names between prototypes and doxygen comments.
Several APIs are marked as not documented simply because the doxygen
documentation mentions a parameter named "foo" while the spelling in the
prototype is something like "fooh". An example correction is
  - * @param fsize Finger size
  + * @param sz Finger size

Nothing very complicated and there are also a couple typo fixes I noticed
while going over the files.
2014-10-20 18:42:21 +02:00
Tom Hacohen b12c544d21 Elm cnp: Fix infinite loop on drop target deletions in some cases.
In some cases, like having a drop target inside an inwin (looks like it
can be other containers too) can cause an infinite loop (as described in
the report). The reason for that is that while the drop target was added
when there was an X window available, the X window ws now gone, so the
non X path was being called which didn't have the code to remove the
item from the list being iterated. Yes, definition of spaghetti and
false assumptions.
Elm dnd/cnp need a massive overhaul, they are disgusting.

See the ticket for more information on the issue.

Fixes T1702
2014-10-20 17:24:07 +01:00
Jean-Philippe Andre 78f6a0048c GLView: Add legacy bindings for the new functions
rotation_get and evas_gl_get should have legacy bindings as well
2014-10-20 12:16:43 +09:00
Jean-Philippe Andre cdb6490b70 GLView: Add constructor for GLES 1.1 context glview
This also adds the legacy bindings

@feature
2014-10-20 12:16:43 +09:00