Commit Graph

362 Commits

Author SHA1 Message Date
Daniel Juyung Seo c66f21a87a elm genlist: Changed int to Eina_Bool in case it uses 1 or 0.
SVN revision: 65679
2011-11-29 08:54:19 +00:00
ChunEon Park 43c470e6b9 elementary/genlist - patched by PRINCE KUMAR DUBEY<prince.dubey@samsung.com>
Hi,

On behalf of Rajeev Ranjan, I am submitting the elm_genlist patch.

Change Log:
a. Dead code removal in function _sizing_eval
b. Memory leak fix in function elm_genlist_item_insert_before due to return when wd->items is NULL and in this case, memory allocated for item was not getting free.
c. Memory leak fix in function elm_genlist_item_insert_after due to return when wd->items is NULL and in this case, memory allocated for item was not getting free.

Please review it.
I'd appreciate any comments on this.

Thank you,



SVN revision: 65662
2011-11-29 00:06:55 +00:00
Mike Blumenkrantz d37f2891dd add promote/demote functions for genlist
SVN revision: 65599
2011-11-25 20:27:27 +00:00
Daniel Juyung Seo 2a477fe8af elm gengrid/genlist: Remove deprecated signals.
This was already announced a month ago.
http://trac.enlightenment.org/e/changeset/64200


SVN revision: 65474
2011-11-21 08:06:40 +00:00
Daniel Juyung Seo d71872473a elm genlist: Refine codes.
SVN revision: 65380
2011-11-18 09:12:27 +00:00
Bluezery 84f0b47a95 From: Bluezery <ohpowel@gmail.com>
Subject: [E-devel] [elm_map] ecore_file_download_full() should be used
properly

elm_map only checked that returned job is NULL.
But ecore_file_download_full() returns EINA_FALSE when error occurred.
So return value should be checked for proper usage.
Please review this simple bug fix



SVN revision: 64794
2011-11-06 06:11:57 +00:00
Iván Briano d1a4b05805 Init state for inlist sorted insert with current items.
SVN revision: 64747
2011-11-04 20:34:41 +00:00
Mike Blumenkrantz f7aaa3aeff better use of internal variables
SVN revision: 64352
2011-10-24 03:40:54 +00:00
Daniel Juyung Seo 23de0435b9 elm genlist/gengrid: Applied genlist/gengrid icons -> contents changes
to themes. Changed detour-elm and darkness theme as well.
Tips) Change genlist/gengrid's "icons" to "contents" in edc.


SVN revision: 64345
2011-10-24 02:27:04 +00:00
Daniel Juyung Seo 2bb2b1f0ee elm gen/gengrid/genlist: Changed item class's icon_get to content_get.
Do not limit the swallowed objects to icon. This had to be done before
elm 1.0 and now it's time to break. This will break all applications
which are using gengrid/genlist. Please fix it icon_get -> content_get.

TODO
1. fix theme as well.
2. fix documents.


SVN revision: 64344
2011-10-24 02:10:35 +00:00
Daniel Juyung Seo 110ab53953 elm genlist: Removed dead code. Patch by Hyoyoung Chang
<hyoyoung@gmail.com>

On Sun, Oct 23, 2011 at 8:44 PM, Hyoyoung Chang <hyoyoung@gmail.com>
wrote:
> Dear developers
>
> When i compile elementary, i found something to remove.
> And this is for removing unused values in elm_genlist.
>
> Thank you.


SVN revision: 64331
2011-10-23 23:15:58 +00:00
Mike Blumenkrantz 81fb2abd7e deprecate all genlist/gengrid functions related to 64281
SVN revision: 64282
2011-10-22 00:26:21 +00:00
Mike Blumenkrantz 9cffa1a766 add bounce settings to genlist wd
SVN revision: 64280
2011-10-21 23:51:26 +00:00
Mike Blumenkrantz e22f36e214 deprecate elm_genlist/grid_item_selected_get -> elm_gen_item_selected_get
SVN revision: 64279
2011-10-21 23:22:26 +00:00
Mike Blumenkrantz b148562870 deprecate elm_genlist_item_selected_set and elm_gengrid_item_selected_set: use elm_gen_item_selected_set instead
SVN revision: 64277
2011-10-21 23:10:56 +00:00
Mike Blumenkrantz 82cfec36d5 deprecate elm_genlist_clear and elm_gengrid_clear: use elm_gen_clear instead
SVN revision: 64276
2011-10-21 23:05:02 +00:00
Mike Blumenkrantz 5852948858 more genlist/gengrid merging: select+clear are now abstracted
SVN revision: 64275
2011-10-21 22:55:45 +00:00
Mike Blumenkrantz ffed36961e even more reordering, also convert some evas coords to int
SVN revision: 64269
2011-10-21 21:04:06 +00:00
Mike Blumenkrantz 72700795f2 more reordering
SVN revision: 64268
2011-10-21 21:00:07 +00:00
Mike Blumenkrantz 132c0994e6 use WIDGET instead of parent for callbacks
SVN revision: 64266
2011-10-21 20:52:29 +00:00
Mike Blumenkrantz c8d41c70e3 reorder gen* wd bools
SVN revision: 64265
2011-10-21 20:45:14 +00:00
Daniel Juyung Seo f596776217 elm genlist/gengrid: No need to call elm_widget_data_get() if we know it. it->wd is a widget data.
SVN revision: 64263
2011-10-21 17:06:46 +00:00
Mike Blumenkrantz 35c8f40547 this commit marks step one of The Gengrid & Genlist Unification Project. these poor widget brothers were separated at birth, never knowing that they were almost exactly the same.
from here, it should be trivial to continually move more and more code into elm_gen.c and reduce duplication.
ideally we should be aiming for an elm_gen_* api where you differentiate between list/grid with style or something since the apis are almost identical


SVN revision: 64245
2011-10-21 08:52:03 +00:00
Mike Blumenkrantz 6026896d03 remove mode_item_style from item class, use genlist_mode_item_style_set() instead
SVN revision: 64228
2011-10-21 03:31:26 +00:00
Mike Blumenkrantz 5f5dd5f9e1 fix breakage #1 of the night
SVN revision: 64227
2011-10-21 03:23:42 +00:00
Mike Blumenkrantz 9744ff9f84 remove gross genlistitemmoved function thingy and implement smart cb
also removed relevant item on TODO


SVN revision: 64222
2011-10-21 01:49:15 +00:00
Mike Blumenkrantz 88bbad2635 add VIEW() and WIDGET() macros for use with Elm_Widget_Items to create more consistency, reduce typing, and increase readability
VIEW(X) = X->base.view (visible evas object)
  WIDGET(X) = X->base.widget (owner widget)

also a demo of the oxford comma for seoz


SVN revision: 64220
2011-10-21 01:08:01 +00:00
Mike Blumenkrantz 4ad1c5f0db create and use ELM_WIDGET_ITEM for elm widget structs to ensure location/name
SVN revision: 64218
2011-10-21 00:45:19 +00:00
Mike Blumenkrantz baf20fbec8 more reordering
SVN revision: 64213
2011-10-20 22:23:29 +00:00
Mike Blumenkrantz 4607b50c5e more unnoticeable internal movements
SVN revision: 64211
2011-10-20 21:49:54 +00:00
Mike Blumenkrantz 3bd72bfe23 rename some internal variables for consistency
SVN revision: 64210
2011-10-20 21:41:24 +00:00
Daniel Juyung Seo a9e92c7bc3 elm genlist/list/gengrid: Changed edge smart callback name. 'edge' callback is not scrolling. So "scroll,edge,up" -> "edge,up". elm_scroller already used this name.
SVN revision: 64200
2011-10-20 16:42:42 +00:00
Iván Briano 057a00829c Get us some nice auto translation scheme
First things first, I'm not sure I'm setting the right variable on
the setlocale() call, so someone more knowledgeable can look at it and fix it.

How this works, you say? Just like elm_object_text_part_set(), except now it
will pass the string given through dgettext() with the given domain (NULL
means it uses whatever the app set with textdomain()), and when changing
language with elm_language_set(), it will re-set the strings with a new
translation.



SVN revision: 64179
2011-10-19 14:17:14 +00:00
Daniel Juyung Seo b5969dc2a3 elm genlist: Clear last_selected_item when last_selected_item is
deleted.


SVN revision: 64031
2011-10-13 03:47:57 +00:00
Daniel Juyung Seo 596df1a4fc elm genlist: Added comments for internal variables.
SVN revision: 64020
2011-10-12 15:23:55 +00:00
cnook 7716a26e4a From: cnook <kimcinoo@gmail.com>
Subject: [E-devel] [Patch] elm_diskselector, set icon to added item

If the diskselector is round mode, the scroller of diskselector has
additional items for its rounding(carousel) effect.
Previously, elm_diskselector_item_icon_set(); did not care about
theses additional items.
Please review the attached patch that will care. Thanks.



SVN revision: 63957
2011-10-10 09:45:43 +00:00
Mike McCormack beafec3884 elementary: Improve include file modularity
Move stuff out of elm_priv.h

Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>

SVN revision: 63900
2011-10-07 05:56:07 +00:00
Daniel Juyung Seo de4fb0b5e0 elm genlist: Raise genlist group index when the group's sub item mode
is changed.


SVN revision: 63898
2011-10-07 05:54:29 +00:00
Daniel Juyung Seo 1b3f3822fd elm genlist: Removed unnecessary local variable.
SVN revision: 63638
2011-09-28 05:56:28 +00:00
Daniel Juyung Seo b7a22247f2 elm genlist: Changed internal variable name. old_pan_y ->
reorder_old_pan_y.


SVN revision: 63561
2011-09-23 08:32:32 +00:00
Daniel Juyung Seo 8009f346e9 elm genlist: Added genlist event hook boundary check routine.
SVN revision: 63536
2011-09-22 12:39:49 +00:00
Cedric BAIL 8cd01e8068 elementary: use sorted state to improve gengrid and genlist.
SVN revision: 63217
2011-09-05 20:31:51 +00:00
Daniel Juyung Seo 2ec5417dfb elm genlist: Fixed reordering mode bug.
1. Fixed floating item bug while reordering.
2. Fixed moving an item out of range bug while reordering.


SVN revision: 63195
2011-09-05 12:16:36 +00:00
Daniel Juyung Seo b72f454618 elm genlist: Fixed formatting.
SVN revision: 63194
2011-09-05 12:14:20 +00:00
Daniel Juyung Seo 9e23119e41 elm: Refactoring. Modified elm_{widget}_scroller_policy_set() API.
SVN revision: 62957
2011-08-29 16:30:14 +00:00
Daniel Juyung Seo 24e9083fd6 elm genlist: Reverted r62645 patch. This needs to be refined.
SVN revision: 62855
2011-08-26 11:32:26 +00:00
Gustavo Lima Chaves 22d111e502 [elementary] genlist_nastiness--
http://www.youtube.com/watch?v=YaR9I7CEiJc



SVN revision: 62823
2011-08-25 14:32:02 +00:00
Carsten Haitzler 6c41db98dd fix bug if pan has been deleted - sd wil lbe null.
SVN revision: 62821
2011-08-25 14:22:26 +00:00
Jaehwan Kim 621c8232b5 From: Jaehwan Kim <jae.hwan.kim@samsung.com>
Subject: [E-devel] [Patch] elm_genlist_clear

When items are added right after genlist clear, genlist is scrolled to the previous position.
If all item is deleted, the scroller have to locate 0, 0.
But scroller has wanted position to remembers the scrolled location.
So even if all item is deleted, it locate previous position.
Then I added elm_smart_scroller_child_region_show(wd->scr, 0, 0, 0, 0)
at the end of the elm_genlist_clear.




SVN revision: 62778
2011-08-25 05:20:59 +00:00
Gustavo Lima Chaves 802a12781f [elementary] Fixing list clearing inside item selection for
genlists.
When the items are made invalid, don't access rotten pointers! I think
I did it right, but it exposes a bug on genlist test 2, elementary
test. I'll let that fix to the authors of that specific code
(insert_after() and such).



SVN revision: 62763
2011-08-24 21:03:37 +00:00