Commit Graph

6749 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
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
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
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
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 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
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
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 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
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
ChunEon Park 2afb6e40ac elementary - added a warning for elm_widget_item_track(). 2013-11-18 13:15:56 +09:00
Yakov Goldberg 5bed747f58 thumb: typo in Eo OP_ID name 2013-11-17 13:23:17 +02:00
Yakov Goldberg 656fd97988 widget: typo in Eo OP_ID name 2013-11-17 13:23:17 +02:00
Daniel Juyung Seo d518a2b7a8 elm_authors.h: escape ryuan from email crawler. 2013-11-17 20:21:00 +09:00
Carsten Haitzler a59f0d83ec check + radio - fix sizing evals and emits on content set
this should fix T261
2013-11-17 11:46:52 +09:00
Carsten Haitzler e045d28cfc list - fix separators to be the correct direction 2013-11-17 09:40:17 +09:00
Carsten Haitzler 4f4982663c list - fix item disable and infinite loop on next select 2013-11-16 17:50:11 +09:00
Carsten Haitzler caaf444d9b entry - fix autosave timer del on shutdown
this fixes T509
2013-11-16 13:21:36 +09:00
Andrii Kroitor cf2ae7397e Elm_menu: fixed item disable hook for elm_dbus_menu
Summary:
Menu items in dbus-mode (in Ubunut/Unity) were not updated on
disabled/enabled state changes. They were applied only after
adding/removing an item.

Reviewers: cedric, seoz, raster

Reviewed By: raster

CC: reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D333
2013-11-16 09:50:32 +09:00
Daniel Juyung Seo a480745321 scroller, slider: fixed wrong changed I made by 6a683df1598a4c3293a33765cc60dd
I caused by c&p bug.
Special thanks to stefan and coverity.
This fixes coverity CID 1128353 and 1128354.
2013-11-15 22:51:10 +09:00
Daniel Juyung Seo 754cda11a5 elm_index.c: changed internal smart data variable name more descriptive.
- event -> event_rect
- and added a comment for that variable.
2013-11-15 22:32:58 +09:00
Daniel Juyung Seo ca210a2d66 elm_main.c: use a direct variable check instead of unnecessary additional function call like other lines of code. 2013-11-15 21:53:39 +09:00
Daniel Juyung Seo 16e2c0779f elm_win.c: removed build warning when there is no wayland support. 2013-11-15 21:52:19 +09:00
Daniel Juyung Seo a876201c28 elm_index.c: internal refactoring as a code cleanup.
- removed unnecessary duplicated parameter passing.
- moved smart callback add to a proper place not to be confused with other object's smart callback addition.
- removed unnecessary sub object add. it's done automatically in elm_layout_content_set.
2013-11-15 21:50:40 +09:00
Chris Michael a43489f6de Make routines to get the wayland window from an ecore_evas be more
inline with their X counterparts. Also, remove some EINA_UNUSED where
parameters were being used.

The previous code to get the Ecore_Wl_Window from an Ecore_Evas did
not check to make sure the Ecore_Evas Engine was a wayland engine, and
thus elm_tests like Window Inline would spew CRIT & ERR messages from
ecore_evas about the interface.

This fixes Phab Ticket T502

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-11-15 10:16:00 +00:00