Commit Graph

7926 Commits

Author SHA1 Message Date
Sanghyeon Lee 8531b7aeed [Gengrid] Enable Scroll To Type when item bring in or show region.
Scrollto positions are divided 4 type
NONE : do not scrollto.
TOP : scrollto position is always top viewport.
MIDDLE : scrollto position is always middle of viewport.
IN : scrollto position to fully visible in viewport.
2013-12-02 15:52:35 +09:00
abhi 35e1e6a988 tooltip: Adding elm_object_tooltip_orient_set API
Summary: Eight fixed orientations provided to orient tooltip around event area

Test Plan: elementary_test -to tooltip, elm_object_tooltip_orient_set

Reviewers: seoz, singh.amitesh, Anusha

Reviewed By: seoz

CC: Anusha

Differential Revision: https://phab.enlightenment.org/D326
2013-12-02 00:12:56 +09:00
Cedric Bail fafb90676c autotools: improve build system to be able to correctly pick outside and inside tools. 2013-12-01 23:35:43 +09:00
Daniel Juyung Seo 9efa212975 elm_genlist.c: return "elm.swallow.icon" part's object when the part parameter is null on _item_content_get_hook().
Now elm_object_item_content_get() works fine.
+ avoid ambiguous if-else statement by using braces.
2013-11-30 18:28:47 +09:00
Daniel Juyung Seo 00bd27a883 elm_genlist.c: return "elm.text" part's text when the part parameter is null on _item_text_get_hook().
Now elm_object_item_text_get() works fine.
2013-11-30 17:02:24 +09:00
ami 7dbda5f2d3 [hoversel] - Removed focus_direction since focus_cycle is applied on sd->hover.
Summary: removed focus_direction

Test Plan: elementary_test -> hoversel

Reviewers: seoz, raster

CC: nirajkr

Differential Revision: https://phab.enlightenment.org/D359
2013-11-30 15:34:55 +09:00
Daniel Juyung Seo 8a7de8df34 elm_widget.c: fixed formatting while reading the code. 2013-11-30 15:28:44 +09:00
nirajkr 98b0383451 elm_genlist.c: Fix to decorate the item if it is set
Summary: Changes in the _item_realize to decorate the item T576 test_genlist10

Reviewers: seoz, singh.amitesh

Differential Revision: https://phab.enlightenment.org/D358
2013-11-29 19:18:00 +09:00
Gustavo Sverzut Barbieri 085e644c49 genlist: clear 'rel' pointer when it becomes unused during del_pre_hook.
If we're walking an item and it's deleted, the memory won't go away
immediately in _item_del_pre_hook() as would in _item_del(), then it's
not enough to remove ourselves from the reverse-relative list of the
item we were relative to, we also need to clean our own relative
pointer so we won't touch it later when the item is not being walked
anymore and _item_del() is called.

I was getting this annoying error with espionage application, opening
an interface of an object and then closing the window or selecting
another bus name (whatever would call elm_genlist_clear()).

During the clear process genlist will flag the next item as "walking"
so it's not gone when the current item dies (would happen if next item
is a subitem). The item would run _item_del_pre_hook() but not
_item_del(), but on the next loop iteration the next item would be the
current, then not walking anymore and during _item_del() it would
access it->item->rel which would point to the now-dead item.
2013-11-28 20:42:16 -02:00
Tom Hacohen 877abee7fe Elm scroller: prevent usage of uninitialized vars as reported by valgrind.
This improves the terminology crash rate a bit.
2013-11-28 16:33:46 +00:00
Tom Hacohen be207937f5 Elm scroller: _movement_block_get fix return val on error.
It was returning ELM_SCROLLER_SINGLE_DIRECTION_NONE instead of
ELM_SCROLLER_MOVEMENT_NO_BLOCK.
Looks like a c&p error.
2013-11-28 16:17:15 +00:00
Daniel Zaoui cfdb3eec4d Add callback when drag start in item containers 2013-11-28 16:24:01 +02:00
Daniel Zaoui d0375f8550 Rename DnD test 2013-11-28 16:24:01 +02:00
Daniel Juyung Seo 3c418bdad3 track_example_01.c: internal refactoring of track example code.
- removed unnecessary box.
- fixed a typo of gcc build command.
2013-11-28 19:59:39 +09:00
Carsten Haitzler 594d99934f elm - diskselector - fix min height to at least be min height of items
diskselector needs a major rewrite effort, BUT... until that happens
this fixes minbimum height and that fixes T506
2013-11-28 19:24:26 +09:00
Daniel Juyung Seo 2921e851e1 elm_spinner.c: support mouse wheel in spinner.
Spinner didn't work with mouse wheel which is a bug.
This fixes T587.
2013-11-28 17:07:44 +09:00
Daniel Juyung Seo e7479334c6 elm_index.c: removed unused empty function. 2013-11-28 17:07:44 +09:00
Carsten Haitzler f6b66cc1d3 genlist - fix show item if list manipulation changes shown item position
this fixes T38 - it's a bit brute force but the only way i can think
of that is not too invasive before release.
2013-11-28 16:36:55 +09:00
Rafael Antognolli a68ad7f735 elm_win/wayland: Call frame update after rotation changed.
This will update the opaque region, that was set to a different
orientation.

Fix T359.
2013-11-26 14:58:22 -02:00
Daniel Juyung Seo 10d68b4c57 test_icon.c: internal refactoring of test_icon example.
Now it looks like a normal efl app.
- Declare variables at the start of the function.
- Resize and show the window right after its creation.
- Set widgets' parents properly.
2013-11-26 23:44:27 +09:00
Daniel Juyung Seo 5ccc0bbad2 test_icon.c: removed unnecessary box.
This fixes " _smart_need_recalculate_set() Object 0x803db8e8 is not stable during recalc loop" issue which was reported by kuuko.
Special thanks to kuuko.
2013-11-26 23:41:17 +09:00
Carsten Haitzler c0e17c12f0 elm scroller - fix infinite recursion in scroller adjust
there is an infinite recursion in the scroller adjust code that can
happen some times. this fixes T434.
2013-11-26 19:34:36 +09:00
ChunEon Park 08357595c5 elementary/flip - revise the test code.
now flip go works with the current selected item.
2013-11-26 13:03:03 +09:00
Carsten Haitzler 758b1caeb8 printf-- 2013-11-25 21:38:21 +09:00
Carsten Haitzler 799a4a0924 elm - scroller - fix missing large set of signal callbacks on scrollbar
this fixes T138 and a bunch of other missing callback signals
2013-11-25 21:23:11 +09:00
ChunEon Park 45ed80a0c8 image - fix the elm_image_prescale_set() to work properly.
before this, it had the insane logic so the prescale_set() never work.
Now, it works well and the prescale won't be set in default. (before, the default value is 64. why?)
2013-11-25 20:48:22 +09:00
Daniel Juyung Seo 933963517a test_popup.c: added popup example which has a rectangle as its parent.
This shows how the popup and its block event area size are decided.
2013-11-25 14:06:47 +09:00
Daniel Zaoui bd79c328f3 DnD: safe inlist elements removal 2013-11-24 08:54:57 +02:00
Carsten Haitzler aff098868b wayland - fix cnp segv
this ACTUALLY fixes T471
2013-11-23 22:45:15 +09:00
Daniel Juyung Seo 782c54cee0 general_funcs_example.c: fixed wrong window's resize object addition logic in general_funcs sample code.
Do not use elm_win_resize_object_add() if that object is already a child of another object.
2013-11-22 22:49:19 +09:00
ChunEon Park e520c4f519 elementary/mapbuf - reset the mapbuf correctly when the content is removed(unset)
When the content is removed(or unset) the mapbuf didn't clean up the some stuff such as removing event callback for the content.
So the unset content would be tracked still by mapbuf dangling callbacks.
2013-11-22 19:48:24 +09:00
ChunEon Park 2ec0b6556f elementary/mapbuf - set NULL if the content is empty. 2013-11-22 17:41:03 +09:00
Jihoon Kim 9e99a7f579 fix typos in doxygen and comments 2013-11-22 11:06:37 +09:00
Sanjeev BA 1a4f8a0979 T531 - Elemntary_popup does not respond to 'close' event
Reviewers: seoz, raster

Reviewed By: seoz

Differential Revision: https://phab.enlightenment.org/D344
2013-11-22 06:16:49 +09:00
Daniel Juyung Seo d88f919cad elm_diskselector.c: reduce item_count number on _item_del. or reducing item_count could be skipped in some cases like elm_index_clear.
This fixes T508.
2013-11-21 14:27:15 +09:00
WooHyun Jung 2920eda9e5 elementary/elm_scroller.c : For checking focus next object, focus_direcion_get function should be changed to focus_next_get function. If there is no focus next object, focus_direction_get will be executed by focus_next_get. 2013-11-21 10:13:40 +09:00
WooHyun Jung cc4a41e641 Fix build warning. 2013-11-20 20:23:49 +09:00
WooHyun Jung 10775281a7 elementary/elc_multibuttonentry.c : Multibuttonentry doesn't need to call parents' on_focus. 2013-11-20 20:17:17 +09:00
Carsten Haitzler 611d38a06e elm - table - protect against invalid cell/row values (16bit overflow) 2013-11-20 18:06:42 +09:00
ChunEon Park d362b574ab elementary/ctxpopup - fix T235 ctxpopup_example_01 can popup many times at once.
I know this is not fundamental fix but there is no solution at this moment unless fixing the evas.
2013-11-20 10:58:05 +09:00
Daniel Juyung Seo fc48b1bf7a genlist_example_04/05.c: initialize pointer variables and check null.
This removes build warnings.
2013-11-20 10:46:10 +09:00
Daniel Juyung Seo 674287da50 index_example_01.c: sample code internal refactoring.
- avoid using unnecessary global variable.
- use common name for item variable, it.
- print out more useful messages on _active_set.
2013-11-20 10:46:10 +09:00
Daniel Juyung Seo 7e53ba272d index_example_01.c: fixed wrong example code. elm_index_level_go() should be called after every index item changes.
This fixes T510.
2013-11-20 10:46:09 +09:00
ChunEon Park 8a09a69acf elementary/transit - fix the T511 "_transit_auto_reverse_get() Elm_Transit transit has already been deleted" 2013-11-20 08:53:20 +09:00
Tom Hacohen 28fee48f35 Hoversel: Fix access to already deleted object.
Thank you eo pointer indirection for detecting this.
The issue is a mix of design choices (will discuss on the ML) and
a bug in hoversel which was probably caused because of the confusing design
choices.
The problem is that while widget_item->view is set by whoever created
the item, it's automatically deleted by elm_widget_item_del. This means
that objects that decided to delete their views, but were too sloppy to
update the widget_item->view pointer to NULL, would trigger an attempt
to deleted an already deleted object. This does not happen in 1.7
because widget_item->view was introduced in 1.8.
The automatic view deletion is problematic, as smart subobjects are
already deleted when the parent subobject (the widget) is deleted. So
clearing the views is redundant. However if the widget item is manually
deleted, the view should be deleted. This causes this mixture of cases
that are problematic at best.

Indication error:
Error:
 ERR<5394>:eo lib/eo/eo_ptr_indirection.x:275 eo_obj_pointer_get()
    obj_id 0x8000002900000149 is not pointing to a valid object. Maybe
    it has already been freed.

This fixes T500.
2013-11-19 17:13:31 +00:00
Tom Hacohen 3a3c18e4f9 Tests: Added elm_suite.h to EXTRA_DIST.
Fixes make dist.
2013-11-19 13:25:11 +00:00
Ryuan Choi c2f2c2101d Introduce check for unit testing framework of Elementary
Reviewers: seoz, tasn

CC: tasn, cedric

Differential Revision: https://phab.enlightenment.org/D91
2013-11-19 13:18:02 +00:00
Carsten Haitzler 872d21341e genlist - fix queue processor to not account for entire loop run in time 2013-11-19 15:10:03 +09:00
Ryuan Choi c2604e46a8 elm_web: Fixed warnings when opened popup for <select>
elm_notify and elm_list should be made using Eo based class as a parent.
2013-11-19 00:19:48 +09:00
Daniel Juyung Seo c70405bdde elc_hoversel.c: use int_ret instead of ret because ret can be null.
This fixes coverity CID 1129609 and 1129610.
2013-11-18 22:33:37 +09:00