Commit Graph

64 Commits

Author SHA1 Message Date
Lucas De Marchi c6a4ea9d2f Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Iván Briano 530a645192 Don't drop selection when dragging from selected item
SVN revision: 50841
2010-08-05 18:17:05 +00:00
Brett Nash de54ffcf23 eina_list: Return false on error.
Maybe Eina_Bool needs a 'file not found' error or something.

SVN revision: 50799
2010-08-04 02:03:45 +00:00
Gustavo Sverzut Barbieri a6be0ef49c Oops, add missing .h and minor issues.
* add const to getter
 * enforce bool is 0/1
 * remove trailing whitespace



SVN revision: 49982
2010-07-01 23:53:17 +00:00
Gustavo Sverzut Barbieri 3a91ec26fb Elm_List separator support.
By: Leandro "acidx" Pereira <leandro@profusion.mobi>


SVN revision: 49981
2010-07-01 23:48:10 +00:00
Cedric BAIL bdf6efa129 * elementary: fix Ecore API changes.
SVN revision: 49860
2010-06-25 09:58:14 +00:00
Iván Briano 99ff1921a9 Standardizing elm_<widget>_{icon,content}_set API
elm_<widget>_icon_set was changed to the better form and the signals
was passed to hidden icons when one icon is changed/removed.
Moreover, when changed by {icon,content}_set the old {icon,content}
will be deleted.

By: Fabiano Fidencio <fidencio@profusion.mobi>



SVN revision: 49706
2010-06-16 20:58:09 +00:00
Luis Felipe Strano Moraes 8e692f5686 Create elm_list_item_sorted_insert
Function that include items to an elm list in a sorted way defined by
an Eina_Compare_Cb function.

Author: Bruno Dilly <bdilly@profusion.mobi>




SVN revision: 48777
2010-05-12 15:43:54 +00:00
Carsten Haitzler d888b71dba theme -> can specify a new theme for an object andit gets inherited. need to
add tests.



SVN revision: 48771
2010-05-12 01:03:46 +00:00
Carsten Haitzler 63f9c12ad1 fix list scroller to use ppropeer internal scroller calls.
remove commented out code from elm_scroller



SVN revision: 48712
2010-05-09 10:46:49 +00:00
Iván Briano 2bec9f57d8 Set evas focus for some objects when focused. More will come later.
SVN revision: 48179
2010-04-20 20:03:05 +00:00
Boris Faure 1ca26086db elm: add lots of doc! Thanks to Mike (zmike/discomfitor)
SVN revision: 47944
2010-04-12 08:12:02 +00:00
Iván Briano 07d91767cd Expose elm_list as external
Patch by Thiago Masaki


SVN revision: 47847
2010-04-08 20:53:01 +00:00
Gustavo Sverzut Barbieri 06d14ed245 const and -Wextra, come on guys! :-/
SVN revision: 47409
2010-03-24 03:06:00 +00:00
Carsten Haitzler 9705f7dbe1 (remove useless edje_object_scale_sets's on objects that are not edje objects)
but more importantly - fix list to actually have a specific theme/base for it



SVN revision: 47381
2010-03-23 04:46:53 +00:00
Gustavo Sverzut Barbieri abe1f4275a Typedefs to help bindings, type less and make things easier to identify.
SVN revision: 47292
2010-03-16 15:31:38 +00:00
Carsten Haitzler 5ceae54321 fix more runtime wornings... added ELM_ERROR_ABORT! :)
SVN revision: 47195
2010-03-14 03:48:22 +00:00
Carsten Haitzler 27a1fc9a9c more warning--
SVN revision: 47099
2010-03-10 06:46:28 +00:00
Vincent Torri b07e49d435 remove unused parameter in the library.
I won't do this everyday, and i won't touch the tests.


SVN revision: 47093
2010-03-09 17:51:30 +00:00
Carsten Haitzler d32e700fe3 more warning fixes!
SVN revision: 47076
2010-03-09 11:42:53 +00:00
Carsten Haitzler 91e01aa86e patch from discomfitor <- check type of widget on api call and return if not
the right type



SVN revision: 47073
2010-03-09 06:15:39 +00:00
Carsten Haitzler 6a7271084d slight change in drag events vs scrolling on_hold to fix small "distance
race" issue.



SVN revision: 46505
2010-02-26 06:30:17 +00:00
Tiago Rezende Campos Falcao 448f5e60bc Scroller Policy for List. By Masaki
Author:    Thiago Ribeiro Masaki <masaki@profusion.mobi>

SVN revision: 45337
2010-01-19 18:46:48 +00:00
Carsten Haitzler 5da6adb481 use specific scroller edje groups for list and genlist - add aliases.
SVN revision: 45278
2010-01-18 06:56:06 +00:00
Carsten Haitzler d574bf68f7 1. fix list theme adapting - simply never got callbac ks to handle iot,
that's why!
2. make cmd-line tool to set scale, theme, finger size (more later) - used
this to test this and fix it.
3. cmd-line tool... also uses elm - and... as a result... also has a dialog
sayint its doing something - and... it can get a gui config later too!



SVN revision: 45175
2010-01-15 09:32:43 +00:00
Tiago Rezende Campos Falcao fb2b5b1c5c Elm_List_Item selected getter
SVN revision: 44951
2010-01-07 16:34:19 +00:00
Tiago Rezende Campos Falcao 5d587ae577 Elm_List multi and horizontal getters
SVN revision: 44913
2010-01-05 19:42:04 +00:00
Carsten Haitzler fe9ba3dd4c add more bounce controls
SVN revision: 44533
2009-12-18 02:30:01 +00:00
Carsten Haitzler 162337ae68 patch from luis moraes to fix list deleted macro checks
SVN revision: 44325
2009-12-09 21:54:06 +00:00
Gustavo Sverzut Barbieri 99c5f101e7 fix couple of list issues while deleting during item usage.
now list marks itself as "walking" every time it's usign wd->items,
this way any call to clear or deletion (elm_list_item_del()) will be
postponed using the wd->to_delete list.

please let me know of any bugs you may find.



SVN revision: 44124
2009-12-02 18:59:41 +00:00
Brett Nash 705ee71f24 elm_list: Call the callbacks _last_. Saves segv when the user deletes stuff.
SVN revision: 44037
2009-11-29 00:01:13 +00:00
Brett Nash 2693774336 elm_list: Delete the timer when deleting an item.
SVN revision: 44036
2009-11-28 23:57:54 +00:00
Boris Faure b2c4f81501 elementary: add del_cb to hoversel items
SVN revision: 43550
2009-11-08 22:20:46 +00:00
Jonathan Atton 7be1d94aa2 Elm: use evas_object_event_callback_del_full() everywhere and improve elm_notify
SVN revision: 43217
2009-10-22 22:10:23 +00:00
Christopher Michael 72db117b71 Formatting.
SVN revision: 42731
2009-09-26 19:23:45 +00:00
Carsten Haitzler d32071097c longpress fix for list
SVN revision: 42666
2009-09-24 07:22:58 +00:00
Carsten Haitzler 3167305fa7 fix scroll freeze and propagate to built-in scrollers. also genlist now knows
about dragging items. callbacks for that.



SVN revision: 42342
2009-09-08 06:20:32 +00:00
Carsten Haitzler 5781ad4a3e 1. add scroller test
2. add pagination concept to scroller (only scroll by pages)
3. add longpress callback for list + genlist
4. scroller docs and some empty api calls. 



SVN revision: 42147
2009-09-01 10:42:52 +00:00
Gustavo Sverzut Barbieri 0179fcdd11 optimization: remove list using it's node pointer.
this makes removal order-1 instead of order-N



SVN revision: 41778
2009-08-14 21:03:09 +00:00
Gustavo Sverzut Barbieri 163d1ce756 elm_list: setters for label, icon and end.
This way we can dynamically change the row contents.



SVN revision: 41746
2009-08-13 17:56:07 +00:00
Gustavo Sverzut Barbieri d65e18c875 data_get returns void*, not const void*
It is the convention for generic user data to get as const and return
as not const to avoid useless casts all around.



SVN revision: 41741
2009-08-13 15:15:18 +00:00
Vincent Torri e2be9d2b24 remove trailing spaces
SVN revision: 41261
2009-07-07 06:46:51 +00:00
Cedric BAIL 29adfe9fc8 * elementary: Full switch to Eina data type.
SVN revision: 41081
2009-06-17 15:35:19 +00:00
Carsten Haitzler b68636289b hmm more select issues - put in hilights
SVN revision: 40724
2009-05-18 14:14:33 +00:00
Carsten Haitzler f2a75b0f05 1. configure.ac finally
2. add docsbuilding infra
3. fix list/genlist on code-based select.



SVN revision: 40667
2009-05-15 11:45:14 +00:00
Carsten Haitzler 26b4f340b6 actually give widgets type name strings and set parent by default
SVN revision: 40618
2009-05-13 12:21:52 +00:00
Carsten Haitzler 0523f39faa make lists handle drag+select logic better
SVN revision: 40598
2009-05-12 10:16:49 +00:00
Carsten Haitzler 5c7e2ec144 1. fix box as it didnt hide clipper when it gets empty
2. add bouncing at ends for scroller and config for it
3. fix quicklaunch to be cserver-freidnly thanks to its fork tricks
4. add signals to scroller when scrolling and hitting edges
5. pants.



SVN revision: 40549
2009-05-08 11:27:32 +00:00
Carsten Haitzler 9af8000740 always_select added to normal list too.
SVN revision: 40406
2009-04-27 01:29:02 +00:00
Carsten Haitzler 73f3de55f4 patch from victor to make styles generic - not all widgets support them
tho... but calls to set style are now. old calls are left in place, but
likely will be phased out.



SVN revision: 40317
2009-04-23 04:03:27 +00:00