Commit Graph

11232 Commits

Author SHA1 Message Date
divyesh purohit 07404215a9 combobox: add Multiple selection feature
Summary:
This patch focuses on Combobox widget customization,
Multibuttonentry widget is used instead of entry for taking user input.
The idea is to make the widget look like  {F28112} {F28115} when the multiple_selection is set.
To-DO:
1) Need to add scrollable interface to combobox when MBE is used (need some suggestions on it).
2) focus cycle is still buggy as genlist requires focus otherwise selected item will return NULL (sometimes)
Signed-off-by: divyesh purohit <div.purohit@samsung.com>
@feature

Test Plan: Please run combobox multiple selection example from elementart_test.

Reviewers: raster, shilpasingh, cedric

Subscribers: govi, rajeshps

Projects: #elementary

Differential Revision: https://phab.enlightenment.org/D3570
2016-03-10 14:50:59 -08:00
Cedric BAIL 7078261b44 efl: followup with renaming efl animator. 2016-03-10 13:14:29 -08:00
Jee-Yong Um abdd34e1de colorclass: allocate memory to fit the original size of data type
Summary:
The size of Colorclass is 20 bytes, but that of Elm_Color_Overlay 16 bytes.
Currently, there is no code to access last 4 bytes, but it can cause
seg fault by another patch.

Reviewers: cedric, zmike

Differential Revision: https://phab.enlightenment.org/D3784
2016-03-10 11:04:03 -05:00
Carsten Haitzler 1358879201 elm - genlist item - index get start from 0 - unbreak api break
so in feb 2015 seoz changed elm_genlist_item_index_get to start from 1
rather than 0. going back to elm code in 1.7 - it started at 0. this
is an api break that shouldn't have happend, but did. this fixes that.
yes - it's inconsistent with gengrid's index_get - but gengrid here is
wrong. nth_get starts at 0. this will get fixed with eo api's, and in
fact none of these index/nth api's should be in genlist's eo api.
legacy only. i can see why this was changed - it matches gengrid and
is more consistent, but we can't break things even if stupid.

@fix
2016-03-10 18:29:22 +09:00
Jean-Philippe Andre 72fb43d383 elm_web: Remove eo generated files
eo.h and eo.c were added by mistake.
I couldn't quite test the build since the we still need ewekbit2
for configure to enable elm_web. @cedric has a bit of work left
here :)
2016-03-10 11:03:50 +09:00
Cedric BAIL b7c82bb699 combobox: fix borkage after eo_add change.
toto = titi = eo_add is no longer valid.
2016-03-09 16:57:02 -08:00
Cedric BAIL 9d9c5be62a config: add entry to set web backend.
Will switch later to a combobox using eio_model.
2016-03-09 16:55:49 -08:00
Cedric BAIL 1eae8bc373 config: add API to configure Elm_Web backend. 2016-03-09 16:55:49 -08:00
Cedric BAIL d56e08d824 web: split web into a module.
There is currently no configuration to switch backend. Another patch
will introduce it.
2016-03-09 16:55:48 -08:00
Tom Hacohen 47fbd09ab2 Image test: Migrate to the new event cb signature. 2016-03-09 16:27:01 +00:00
Tom Hacohen c788486398 Automatic migration to the new eo_add syntax. 2016-03-09 16:09:17 +00:00
Tom Hacohen 021a9e0468 Combobox: Semi automatic migration to the new eo_add. 2016-03-09 16:09:17 +00:00
Hermet Park 4fb304c08c Revert "list: set internal box as homogeneous if no separator items are present"
This reverts commit 9f4c43c20dfa36e7a8be18278acf4336c13574d7.

I'm sorry but this causes a side effect(list sizing issue) at enventor.
And I couldn't find any mis-usage in enventor side.

We can't not accept this patch unless we figure the exact reason out.
2016-03-08 21:00:19 +09:00
shashank.p 38608b3c33 elm_genlist: Added elm_genlist_filtered_items_count API
Summary: This clarifies the documentation of the new api.

Reviewers: SanghyeonLee, shilpasingh, cedric

Reviewed By: cedric

Subscribers: bu5hm4n, buds

Differential Revision: https://phab.enlightenment.org/D3725
2016-03-08 07:50:07 +01:00
Jee-Yong Um bbba3c24b5 fileselector: clarify the condition statement for checking ok button
Summary:
elm_fileselector_buttons_ok_cancel_set() API checks the existence of
ok button before adding it.
This patch makes condition statement more intuitive.

Reviewers: cedric, bu5hm4n

Differential Revision: https://phab.enlightenment.org/D3770
2016-03-07 11:26:15 +01:00
Marcel Hollerbach 9e3ddc1aff remove duplicated typedef
this is already defined in elm_layout.eo.h.
2016-03-05 20:00:56 +01:00
Amitesh Singh a16b4135f3 atspi intf: image - fix compilation warnings after eo4 migration changes
======
  CC       libelementary_la-elm_interface_atspi_value.lo
  elm_interface_atspi_image.c: In function '_elm_interface_atspi_image_description_set':
  elm_interface_atspi_image.c:36:9: warning: 'old_descr' may be used uninitialized in this function [-Wmaybe-uninitialized]
           eina_stringshare_del(old_descr);
                    ^
                    ======
2016-03-05 06:54:00 +05:30
Jee-Yong Um 612949cc90 genlist: fix item sizing error
Summary:
Sometimes genlist expands its items' width over viewport,
so horizontal scrollbar is shown unnecessarily.
This will correct item sizing calculation.

@fix

Test Plan:
elementary_test -to "genlist tree"
elementary_test -to "fileselector"

Reviewers: SanghyeonLee, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-03-04 16:14:37 -08:00
SungTaek Hong 2222590f1d map: fix memory leak
Summary:
- in dump_cb buf is allocated by malloc() ->strdup() -> free.
  This is needless.
- And buf allocated in dump_cb is strdup again.
  This may cause memory leak.

Reviewers: Hermet, woohyun, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-03-04 16:14:37 -08:00
Shinwoo Kim 69785a72e4 config: handle is_mirrored, and translate are not part of EET file, when config flush occurs
Summary: is_mirrored, and translate value is reset, when config flush occurs.

Reviewers: raster, cedric, jpeg, tasn

Subscribers: seoz

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-03-04 16:14:37 -08:00
Minkyu Kang a5c5057201 image: fix the wrong return value
Summary: Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>

Reviewers: Hermet, cedric

Reviewed By: cedric

Subscribers: seoz

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-03-04 16:14:37 -08:00
godly.talias 79a0cdd9ce Genlist: fix for an item width calculation issue on item show / scrolling
Summary:
When item_show / scrolling is happening, _item_block_position will be
called from smart_calculate where item width is set as block width.
If items are not realized _item_realize will be called and if items are
getting realized for first time we set mincalcd as false. So later
item width gets overwritten by min width of item and so issue is happening.

@fix T2603

Signed-off-by: godly.talias <godly.talias@samsung.com>

Test Plan: elementary_test -> Genlist Group -> show 480

Reviewers: prince.dubey, shilpasingh, SanghyeonLee, cedric

Subscribers: rajeshps, seoz, govi

Maniphest Tasks: T2603

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-03-04 16:14:37 -08:00
Hosang Kim 4fd06a2f7e notify: delete unnecessary smart move/resize.
Summary:
elm_notify's size is dependent on parent's size.
So _elm_notify_evas_object_smart_move/resize() are not necessary.

Reviewers: woohyun, jypark, Hermet, minkyu, cedric

Reviewed By: cedric

Subscribers: minkyu

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-03-04 16:14:37 -08:00
shashank.p 5d08cbad2d genlist: add elm_genlist_filtered_items_count API
Summary: This API will return the number of items that have passed the filter at a given point of time. If the API is called before "filter,done" callback comes, it may or may not give the filtered count for the complete genlist.

Test Plan: Updated Genlist_filter example to print the output from filtered_count_get API in "filter,done" callback.

Reviewers: SanghyeonLee, shilpasingh, cedric

Reviewed By: cedric

Subscribers: buds

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-03-04 16:14:37 -08:00
Jee-Yong Um ecc4e26236 fileselector: refine code and theme
Summary:
refine code and theme, hopefully solve the issue
that the height of file list (genlist) is calculated wrong.

Test Plan: elementary_test -to fileselector

Reviewers: SanghyeonLee, jpeg, cedric

Subscribers: taxi2se

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-03-04 16:14:37 -08:00
Jee-Yong Um 91e5ecd075 win: add check for focus object before adding new one
Summary:
Focus object is added repeatedly, when focus is enabled.
This patch checks existing focus object.

Test Plan:
elementary_test -to focus
check/uncheck "Focus Highlight Enable" with spacebar

Reviewers: Jaehyun_Cho, jpeg, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-03-04 16:14:37 -08:00
Jee-Yong Um 1341f8c250 fileselector: add backspace key binding to move to previous path.
Summary: Add backspace key to move to previous path.

Test Plan:
remove /home/username/.elementary (to apply new elementary config file)
elementary_test -to fileselector

Reviewers: cedric, jpeg

Subscribers: bu5hm4n

Differential Revision: https://phab.enlightenment.org/D3685
2016-03-04 16:14:37 -08:00
Amitesh Singh 83bdc9f0a8 combobox: store eo_constructor() return value into obj
This is what we do in every widget's base constructor.

@fix
2016-03-04 15:44:19 +05:30
Shinwoo Kim 319247d2a8 elm_access: remove duplicated line, ELM_SAFE_FREE handles NULL assign 2016-03-04 16:02:13 +09:00
Jonghee Choi 9ae36cf791 elm_access: mapi have to be set NULL after free(m->api)
Summary: mapi have to be set NULL after free(m->api)

Reviewers: kimcinoo

Reviewed By: kimcinoo

Differential Revision: https://phab.enlightenment.org/D3756
2016-03-04 15:34:56 +09:00
Amitesh Singh 4232af03bc hoversel: remove EINA_UNUSED since data is getting used 2016-03-04 11:14:20 +05:30
Tom Hacohen ca6cf069a3 Genlist test: Adjust according to the recent eo event changes.
Thanks to zmike for letting me know.
2016-03-03 13:44:07 +00:00
Tom Hacohen 75569ec561 Fix warnings following migration to Eo4.
Mostly unused variables.
2016-03-03 10:08:27 +00:00
Tom Hacohen 26ee9f0afb Map: Correct broken migration.
The script failed migrating some code, so I needed to fix it manually.
2016-03-03 10:08:27 +00:00
Tom Hacohen d16aa5956b Automatic migration to Eo4.
I just ran my script (email to follow) to migrate all of the EFL
automatically. This commit is *only* the automatic conversion, so it can
be easily reverted and re-run.
2016-03-03 10:08:27 +00:00
Tom Hacohen 1546c9c107 App client/server and entry: Mix of automatic migration and manual adjustments.
The script couldn't handle everything correctly on its own.
2016-03-03 10:05:00 +00:00
Tom Hacohen 8b45a1dc94 Manually migrate some eo_do for the migration script
The script doesn't handle a few corner cases well. Update the code
manually so it doesn't have to deal with those.
2016-03-03 10:05:00 +00:00
Tom Hacohen daa42878ca Remove redundant defines. 2016-03-03 10:05:00 +00:00
Daniel Zaoui dbd03c0881 Scaling test: reorder instructions to set the correct scale
If the scale is set on an object before contents are set, it will not
pass to them. Because of this, in the test, scale of the first label
remains 1.0, i.e the window scale, instead of 0.5.
The patch modifies the order of the instructions by setting the scale
after setting the label as content of the frame.
2016-03-03 10:54:16 +02:00
Amitesh Singh a9c6193bf1 radio: inherit from elm check
Summary: Radio inherits from Check now and remove the duplicate codes

Reviewers: yashu21985, cedric, tasn, raster

Reviewed By: raster

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D3747
2016-03-03 11:59:36 +05:30
Jean Guyomarc'h 4935289db6 elm_cursor: don't include Ecore_Cocoa_Cursor.h (deleted in EFL) 2016-03-02 16:56:06 -08:00
Tom Hacohen 8a28471372 Spinner: Swap abs with fabs because we're dealing with doubles. 2016-03-02 15:29:17 +00:00
Lauro Moura 445ba5a638 Fix example with new event api.
Summary: Fix build after changes.

Reviewers: felipealmeida, cedric, tasn

Differential Revision: https://phab.enlightenment.org/D3744
2016-03-01 12:23:26 -03:00
Daniel Zaoui 2535e721fb Elm_Hoversel: import elm_icon
The icon type is needed by item_add
2016-03-01 08:27:32 +02:00
Carsten Haitzler 8eb6483d99 elm map: silence uninit var warnings that new gcc versions show
gcc thinks the vars may in theory be uniitiialized. it's right but it
won't actually happen. but having noise in warning output is bad, so
fix the warnings so we can focus on the real bugs/issues/warnings
2016-03-01 13:37:39 +09:00
Jee-Yong Um d0d6a96aee elm_gen: update highlight geometry after clearing items
Summary:
After genlist/genrid items are cleared, item highlight still
remains in blank space. This patch fixes this by updating highlight.

Test Plan:
elementary_test -to fileselector
enter blank directory and see highlight still remains

Reviewers: jpeg, SanghyeonLee, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-29 15:40:06 -08:00
Minkyu Kang 175905ce94 image: remove EINA_UNUSED
Summary:
parameter is used

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>

Reviewers: Hermet, seoz, cedric

Reviewed By: cedric

Subscribers: seoz

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-29 15:40:06 -08:00
Shilpa Singh 2182918ed3 spinner: add label format validator
Summary:
Check for all error conditions case in elm_spinner_label_format_set
and set label format only if its valid.

Signed-off-by: Shilpa Singh <shilpa.singh@samsung.com>

@feature

Test Plan:
1. Launch elementary test spinner
2. Set invalid formats e.g. formats with out %, formats with more than
one format specifier "%d %s" etc:-

Reviewers: jpeg, cedric

Reviewed By: cedric

Subscribers: govi, buds, subodh6129

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-29 15:40:06 -08:00
Tom Hacohen 9316ab5bf2 Eo events: Migrate all of elm to the new event callback signatures 2016-02-29 11:33:41 +00:00
Mike Blumenkrantz b22392d937 list: set update hints on item edje objects
without size hints on the edje object, a list item will never be sized
accurately, meaning that the size hints set on subobjects (icon, end) are
ignored in nearly all cases, and any previous sizing which was accurate was,
in fact, merely coincidentally accurate

@fix
2016-02-26 12:48:33 -05:00
Mike Blumenkrantz e348a26359 list: set internal box as homogeneous if no separator items are present
this is a significant performance optimization since all non-separator
items should always be sized identically
2016-02-26 12:43:38 -05:00
Mike Blumenkrantz 3316520c23 list test: use 1.0 instead of EVAS_HINT_EXPAND
these are functionally identical but semantically different
2016-02-26 12:40:56 -05:00
Mike Blumenkrantz b6827260ce list: do not change scr_min flags when setting an unenforced list mode
only LIMIT and EXPAND modes prohibit manually setting these flags. changing
them in any other scenario can result in overriding user-set flags

@fix
2016-02-26 11:56:21 -05:00
Amitesh Singh 32c64f5d6c entry: send focus/unfocus signals to scroller interface
In case of scrollable entry, send focus/unfocus signals to scroller
interface edje.
2016-02-26 20:00:12 +05:30
Amitesh Singh 9032eb1c3c view list: free style in base destructor.
typecast const char * to void * and pass ptr to free() since it doesn't modify the value pointed to,
either conceptually or in practice, it merely looks up the memory block using the pointer and deallocates it.

@fix
2016-02-26 19:41:19 +05:30
Hermet Park 13f5ea6c5f genlist: fix a typo. 2016-02-26 21:50:19 +09:00
Larry 35cef36868 elm_web: define elm_web_zoom_mode in eolian file elm_web.eo 2016-02-25 23:16:09 -03:00
Larry 010c06f5a6 elm_toolbar define elm_toolbar_item_state in elm toolbar eolian files 2016-02-25 23:16:09 -03:00
Larry 6d9293cbeb elm_thumb_animation: moved Elm_Thumb_Animation_Settings to elm_thumb.eo 2016-02-25 23:16:09 -03:00
Larry dc8f73fee2 moved eolian undefined enums to elm_systray.eo and elm_slider.eo 2016-02-25 23:16:09 -03:00
Larry f53ac2533f elm_prefs: move Elm Prefs_Reset_Mode to elm_general.eo 2016-02-25 23:16:09 -03:00
Mike Blumenkrantz b0695e712c list: always apply new size hints for subobjects
if a content's size hints change, reapplying the list's size hints
to override existing hints is required to prevent some list items from
having a bad layout

@fix
2016-02-25 18:03:18 -05:00
Mike Blumenkrantz b7e27caae8 list: do not constantly reset scr_min flags
these get set during mode_set and when directly changing the flags.
at no other time should they be changed

@fix
2016-02-25 18:03:18 -05:00
Mike Blumenkrantz db1102d98e hoversel: set hover layer to layer of hover_parent
ref T3203

@fix
2016-02-24 15:02:11 -05:00
Jee-Yong Um d81757b873 examples: fix evas3d example's "compile with" comment correctly
Summary: In "compile with" comment, filenames are different from the actual ones.

Reviewers: cedric, Oleksander, Hermet

Reviewed By: Oleksander, Hermet

Differential Revision: https://phab.enlightenment.org/D3722
2016-02-23 20:49:33 +09:00
Jee-Yong Um 7908a9a57c genlist: focus out by pressing "up" key when no item is selected
Summary:
move focus out of genlist by pressing "up" key when no item
is selected.

Test Plan: elementary_test -to fileselector

Reviewers: SanghyeonLee, cedric, Jaehyun_Cho, Hermet

Reviewed By: Hermet

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D3721
2016-02-23 20:46:35 +09:00
taehyub adc17dfb97 fix the wrong operation of mirrored set
Summary:
fix the wrong operation of mirrored set.
when mirrored set is applied, notify change the theme using mirrored flag.
however, it is unnecessary operation.

@fix

Reviewers: Hermet, kimcinoo

Reviewed By: kimcinoo

Differential Revision: https://phab.enlightenment.org/D3700
2016-02-23 20:44:24 +09:00
Subodh Kumar 12480dcc6f Elm entry: No use of top object if not editable.
Summary: No use of top object if not editable.

Reviewers: cedric, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3719
2016-02-23 20:33:24 +09:00
Minkyu Kang b08c67580e elm_image: fix wrong API call for scaling
Summary: Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>

Reviewers: cedric, Hermet

Reviewed By: Hermet

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D3724
2016-02-23 20:28:21 +09:00
Vitor Sousa 76c45e2b2c elm widget: move some types used in elm_widget.eo to Eolian files
Move declarations of types used in elm_widget.eo to elm_general.eot and
elm_widget.eo.
Give them a Eolian name and use it instead of the old ones.

Correct the type name of some other types used as method parameters, by
using the Eolian names instead of legacy/generated names.

Reorganize the positions of elm_widget.eo.h inclusion and
of callback type declarations in elm_widget.h.
This make a clearer distinction of the types in elm_widget.h that are
still required in elm_widget.eo.h.
2016-02-22 10:38:26 -03:00
Vitor Sousa 144135d896 elm widget: add documentation from elm_focus.h to elm_widget.eo 2016-02-22 10:38:26 -03:00
Larry ccd53a7c77 Elm_photocam: moved enum Elm_photocam_Zoom_mode to elm_photocam.eo 2016-02-22 10:38:26 -03:00
Larry 597a142622 elm_layout: moved Elm_Layout_Part_Alias_Description to elm_layout.eo 2016-02-22 10:38:26 -03:00
Larry fb7d0cabb7 elm.Image: use eolian eva.images enum values in elm_image.eo and remove unused elm_image_common.h 2016-02-22 10:38:26 -03:00
Carsten Haitzler 69e4eb576d elm win: use actual window size not requested to resize child objects
using requested size may not be correct, so use real size. this should
solve issues in some wm's and actually also solved some kind of object
size lag in wayland too.

@fix - onward from 79b6edd1a6ad763258337b7aac5bd7799411bb44
2016-02-20 23:07:36 +09:00
Stefan Schmidt a9d5bca3ad genlist: remove unused variable
In 4c86a66f this var was added without any user. Remove it.
2016-02-19 12:56:35 +01:00
SungTaek Hong 0b8fe93c51 edje_external: check icon param after other param is set in entry
Summary:
- icon param add an elm_icon and content set to icon part.
- entry's style is changing as other params are set and
  icon part may not exist in certain condition(default has no icon part)
- checking icon param later than other params will set icon part
  after the style is changed.

Reviewers: cedric, woohyun, jpeg, herdsman, tasn

Reviewed By: tasn

Subscribers: conr2d

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-18 13:31:28 -08:00
Oleksandr Shcherbina d302375c98 examples: fix evas3d_object_on_button_example
Summary:
Remove mirror map tranformation (needn't, we had already fixed inverted texture
in evas.canvas3d).
Use hardware pick instead of cpu pick

Reviewers: cedric, Hermet, raster

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-18 13:24:33 -08:00
Mike Blumenkrantz 997a7f2c3d scrollable: multiply default step values by elm scale
bigger scale = bigger objects = bigger scrollers = more wheeling needed
2016-02-18 13:37:13 -05:00
Mike Blumenkrantz 8866722cdb config: set larger vertical step size for Scrolling tab scroller
scrollers with lots of large items need larger or configurable step sizes to
make them usable
2016-02-18 12:53:52 -05:00
Mike Blumenkrantz e76b9a63b5 config: add option to modify scroll acceleration factor
when using a touchpad or frictionless mouse wheel, it becomes impossible
to accurately use a scroller which accelerates as scrollers on mobile devices
do. by setting this new option to 0, acceleration can be disabled and regular
behavior can be restored

ref 2ac2628612060114cf6e5205e5331044221178c6

@feature
2016-02-18 12:53:52 -05:00
Mike Blumenkrantz 0116e07288 scrolling: add option to disable scroll animations
when I scroll on a computer, I want my app to respond immediately. I don't
want to wait for it to finish scrolling and I don't want to have to guess
where the scroll will end.

ref 2ac2628612060114cf6e5205e5331044221178c6

@feature
2016-02-18 12:53:52 -05:00
Mike Blumenkrantz fd6f12de5d config: add more frames for scrolling options
this looked weird having options outside a frame

@fix
2016-02-18 12:53:52 -05:00
Carsten Haitzler f60527f3ff elm win: fix window redraw if norender is enabled on withdrawn windows
we dont set this config by default so we dont see this - but a window
starts as withdrawn then becomes normal. this means the window starts
not rendering and may take 0.5 seconds to START because the eval is
deferred by 0.5 sec to avoid rapid switch to/from norender and other
states.

@fix
2016-02-18 18:17:27 +09:00
Carsten Haitzler 09d51174ad elm win: fix excess resize callbacks on windows when not really resizing
this fixes excess callbacks on window (and content) objhects resizing
down then back up again when windows are forcibly resized like
fullscreen, maximized and remembered windows.

@fix
2016-02-18 18:17:27 +09:00
Vyacheslav Reutskiy 0822ad2195 elm_widget: do not set NULL as parent for object
When widget has no parent object, it breakes usage of a custom
Elm_Theme. This commit fixes it.

@fix
2016-02-18 10:59:36 +02:00
SungTaek Hong 25a8ada79a map: add scale_cb for map module
Summary:
- in elm_map's _source_mod_cb(), scale_cb is needed to
  load MAP tile module.
- currently, test_map mod.c lacks this scale_cb
  and fails to load Map Tile source.

Reviewers: woohyun, Hermet, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-17 17:05:39 -08:00
Jee-Yong Um f34b1d40fa elm_gen: highlight itself when there are no items
Summary:
When there are no items in genlist/gengrid, highlight stays at one dot of
top-left corner. This patch makes genlist/gengrid itself highlighted
when there are no items.

Reviewers: jpeg, SanghyeonLee

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-17 17:05:39 -08:00
SungTaek Hong 89f07527cd edje_external: fix wrong logic in index
Summary:
- Eina_Bool active_exists is to check whether Eina_Bool active
  is valid or not.
- Setting active_exists to autohide_disabled_set is apparently wrong.

Reviewers: Hermet, cedric, jpeg, woohyun

Subscribers: conr2d

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-17 17:05:39 -08:00
Youngbok Shin 39f3af47d7 entry: add elm.swallow.background part to all of groups
Summary:
elm.swallow.background part will be a default part for
widget's background image.
When entry widget's scrollable status is changed,
the background object will be moved to scr_edje or entry_edje.

Test Plan: N/A

Reviewers: kimcinoo, woohyun, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-17 17:05:39 -08:00
Shilpa Singh 41a5cb2b04 spinner: add invalid input validity filter
Summary:
Do not allow invalid input in to spinner.
Invalid Input can be:
1. '-' should not be inserted anywhere but the starting position, and no more than one '-' can be inputted.
2.  No more than one '.' can be inserted.

Signed-off-by: Shilpa Singh <shilpa.singh@samsung.com>

@feature

Test Plan:
1. Launch elementary test
2. Run spinner demo
3. Enter invalid inputs like inserting more than one '.', '-' or insert '-' anywhere else part from 1st position.

Reviewers: raster, CHAN, subodh6129, cedric

Subscribers: govi, buds

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-17 17:05:39 -08:00
Mike Blumenkrantz 5caa2df05b cursor: do not unconditionally unset cursor before setting an engine cursor
this is unnecessary: every single engine unsets the cursor when the object
has been deleted

this deletes enlightenment's cursor object

ref 678437003f219f783ba14859a805ea27997470fd

@fix
2016-02-17 18:41:18 -05:00
Mike Blumenkrantz 24a61a25d1 ctxpopup: completely disable focus-setting on show
this was previously disabled for internal list objects, and now
it is disabled for all subobjects of ctxpopup. applying focus here
invokes every possible focus bug in elementary and prevents the application
from being useful in any way

ref 974c8b05a4c97367b636593f5420ff01e8364aac
ref T3088

@fix
2016-02-17 16:00:42 -05:00
Vitalii Vorobiov 440ee69335 elm_spinner: do not SIGSEV on NULL format
Usually NULL was correct value, so lets return it back again
2016-02-16 14:05:16 +00:00
SangHyeon Lee 55e8c3b743 gengrid: add all contents unset API for content unset and reusing
Add elm_gengrid_item_all_contents_unset API for support content reuse
and unset. User can get back content objects in unrealized smart callback in item.
see elm_genlist_item_all_contents_unset also.

@feature
2016-02-16 15:36:51 +09:00
Hermet Park d90f2119de transit: rename from elm_transit_revert_go() to elm_transit_revert()
elm_transit_revert_go() sounds like it triggers animation on reverse way.

but this api acutally just change a current state.
It doesn't trigger the transtion.
2016-02-14 20:48:23 +09:00
Mike Blumenkrantz 486f3d51bc genlist: bump item class version to 3 to fix abi breakage
when adding new methods to public interface structs (such as item class),
the version must be bumped and checked in the new interface method calls
in order to avoid breaking abi for previously-compiled apps

ref 4c86a66f28876b68e92a90c8f741eed1130dd034
2016-02-13 14:38:26 -05:00
Mike Blumenkrantz 23ee7c9843 tooltip: set pass events on the tooltip, not the content
tooltip content is swallowed, meaning that edje will be setting pass events
based on the theme

@fix
2016-02-12 18:24:18 -05:00
Shilpa Singh 135802ad1f spinner: crash on illegal format set issue fix.
Summary:
Set any illegal format, spinner crashes, the format set to spinner
has to be valid hence a check is added initially itself to check for validity of
label formats.

Signed-off-by: Shilpa Singh <shilpa.singh@samsung.com>

Test Plan:
1. Set illegal format to spinner for e.g: elm_spinner_label_format_set(sp, "d");
2. Run spinner demo
Crash is observed

Reviewers: cedric

Subscribers: govi, buds

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-12 21:13:06 +01:00
Subodh Kumar f9f4030433 spinner: fix vertical drag style and logic
Summary:
Fix vertical drag style and logic.

For vertical spinner graggable should move
in y direction and since drag value is inverse
of spinner increment and decrement so delta should be inversed.

@fix

Test Plan:
1. Elementary test
2. Vertical spinner

Reviewers: cedric

Projects: #elementary

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-12 21:00:53 +01:00