Commit Graph

92 Commits

Author SHA1 Message Date
Derek Foreman 73aecd73ab Replace all timer_add with timer_loop_add
So yeah, I've literally used sed to replace every occurrence of
ecore_time_add() with ecore_timer_loop_add() because I'm reasonably
confident that no part of E has a legitimate need for timer based on the
exact current time.

It would be really nice if I'm not wrong. :)

The reason for this is the incredible spew of clock_gettime() calls I'm
seeing on an ARM system (that should have a vdso for gettime, but...)
This can amount to thousands of system calls per second.

 #YOLO
2017-02-03 15:52:28 -06:00
Mike Blumenkrantz ad631964f8 remove unused variables in ilist widget 2015-09-17 19:08:27 -04:00
Mike Blumenkrantz ce78226c0e add ilist method for setting disabled state
ilist widget adds items in a deferred queue, resulting in attempts to
immediately toggle the disabled state having no effect. now there is
a flag so that items added after the disabled flag have been set will
have the correct state

fix T2730
2015-09-15 13:05:21 -04:00
Yomi 0dc33a5aeb Fix misspellings in E's files.
Summary: Fix misspellings and spaces in E's files.

Reviewers: zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2676
2015-06-16 16:10:21 -04:00
Chris Michael 0a94e8ba71 enlightenment: Make E build again with EFL from git
sed -i 's/EAPI/E_API/g'

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07 15:13:10 -04:00
Mike Blumenkrantz 471dcb24cb __UNUSED__ -> EINA_UNUSED
this has been bugging me forever. __UNUSED__ is no longer a valid macro here.
2015-03-18 18:09:09 -04:00
Mike Blumenkrantz 9e8e755cdf formatting: all at once
SVN revision: 82625
2013-01-11 10:34:29 +00:00
Mike Blumenkrantz 503d7305db Dear all,
As I've said before, I'm attached a patch for minor bugs in the e17 again.
 Please take a look at attached patch.

 01. missing E_FREE(wev) if zone is null
     File: src/bin/e_actions.c: 1467
     Function: ACT_FN_GO_EDGE macro function
     null check of zone and wev, it would be better to separate them.

 02. dead code
     File: src/bin/e_configure.c: 338
     Function: _e_configure_efreet_desktop_update

 03. array buf might be overwritten by "buf[i] = '\0'"
     File: src/bin/e_eap_editor.c: 412
     Function: _e_desktop_edit_user_local_desktop_filename_generate

 04. missing null check
     File: src/bin/e_fm.c
     Function: e_fm2_icon_get: 2196
     It would be better to check ic->info.file in e_fm2_icon_get
     before passing to _e_fm2_file_is_edje because it doesn't check
     null pointer.

 05. array 'path' might be overwritten by "path[i + 1] = XXX"
     File: src/bin/e_fm.c: 4299
     Function: _e_fm2_uri_parse

 06. missing null check
     File: src/bin/e_fm_device.c: 468
     Function: e_fm2_device_mount_find
     If the null pointer is passed to e_fm2_device_mount_find,
     then it attempt to compare string using strncmp without null
     check.
     e.g., e_fm2_path_set
           -> real_path = _e_fm2_dev_path_map: this function could return null.
           -> sd->realpath = real_path;
           -> e_fm2_device_mount_find(sd->realpath)

 07. missing free(fstrip)
     File: src/bin/e_import_config_dialog.c: 34
     Function: _import_edj_gen

 08. missing _module_free(cfm)
     File: src/bin/e_int_config_modules.c: 530
     Function: _load_modules

 09. missing free(class) in for loop
     File: src/bin/e_int_menus.c: 1187
     Function: _e_int_menus_clients_add_by_class

 10. missing free(roots)
     File: src/bin/e_main.c: 1646
     Function: _e_main_screens_init
     Actually only e_win_init function could return 0.
     But I've added free to other codes for the consistency.

 11. missing null check of 'es->cfg'
     File: src/bin/e_shelf.c: 2583
     Function: _e_shelf_bindings_add
     'es->cfg' might be null. please look at e_shelf_position_calc.

 12. no ect->category check before comparing string values
     File: src/bin/e_theme.c: 387
     Function: e_theme_config_remove
     I'm not sure, but inner if block checks ect->category before
     deleting a string.

 13. missing E_FREE(wcb) in while loop
     File: src/bin/e_widget_ilist.c: 146
     Function: _queue_timer

 14. dereferencing freed pointer 'entry'
     File: src/modules/quickaccess/e_mod_quickaccess.c: 583
     Function: _e_qa_event_border_remove_cb

 15. missing E_FREE(trov)
     File: src/modules/tiling/e_mod_tiling.c: 3106
     Function: _do_transition_overlay

 Thanks & Regards,
 Gwanglim


SVN revision: 80231
2012-12-05 11:13:09 +00:00
Mike Blumenkrantz ef7cd7af5f prevent attempts to remove negative number ilist items
SVN revision: 78507
2012-10-26 08:10:08 +00:00
Christopher Michael 13615eaba8 E: Fix up ilist_custom_edje set to properly set theme for scrollframe
also.



SVN revision: 76815
2012-09-18 12:52:38 +00:00
Mike Blumenkrantz ce2186f31c ilist widget custom edje setting thingy also sets scrollframe theme
SVN revision: 76799
2012-09-18 11:26:36 +00:00
Mike Blumenkrantz 31052004d0 add method for setting a custom theme for ilist
SVN revision: 76797
2012-09-18 10:28:02 +00:00
Mike Blumenkrantz 0a66fa4671 ilist_items_get() now returns a const list
SVN revision: 76524
2012-09-12 13:03:04 +00:00
Mike Blumenkrantz ff67718c15 need to return a value in functions that return values!
SVN revision: 76370
2012-09-10 07:58:58 +00:00
Carsten Haitzler c7753e5e76 protect against null wd's in ilist.
SVN revision: 76355
2012-09-09 12:43:38 +00:00
Mike Blumenkrantz 19b2f51f80 stringshare ilist widget item labels
SVN revision: 76232
2012-09-06 09:22:38 +00:00
Mike Blumenkrantz fe2cfa7e0c ilist now supports disabled state, though it does not indicate this visually yet
SVN revision: 75007
2012-08-08 10:27:51 +00:00
Mike Blumenkrantz 55294aab4a flesh out ilist header api with prepend and relative inserts
SVN revision: 74384
2012-07-25 10:39:16 +00:00
Mike Blumenkrantz 3e160751e3 fix ilist typebuf to reposition on resize
SVN revision: 73915
2012-07-16 09:55:36 +00:00
Mike Blumenkrantz 0fe8872ab7 add mechanism for getting the list of selected ilist items
SVN revision: 73143
2012-07-02 09:56:47 +00:00
Mike Blumenkrantz 329a7b1d03 fix ilist positional scrolling to actually show the item that is supposed to be shown
ticket #570


SVN revision: 72945
2012-06-27 13:16:13 +00:00
Mike Blumenkrantz e595b1da72 when prepending...prepend
SVN revision: 72882
2012-06-26 12:58:25 +00:00
Mike Blumenkrantz 7058a7d2dc formatting
SVN revision: 72868
2012-06-26 10:18:50 +00:00
Vincent Torri c3b0637802 e17: whitespaces--
SVN revision: 72561
2012-06-21 06:19:43 +00:00
Carsten Haitzler 9464f17dd1 warnings--
SVN revision: 63829
2011-10-05 09:37:59 +00:00
Hannes Janetzek dc4b226de9 e17: use timer instead of idler again
SVN revision: 58699
2011-04-16 12:22:57 +00:00
Hannes Janetzek e4d3144cac e17: e_widget_ilist: do reveal(show) item in next idler. if other commands were in queue list geomentry is not up to date anymore
fixes: showing the right area with e_widget_ilist_show after items were removed


SVN revision: 57792
2011-03-16 09:34:46 +00:00
Hannes Janetzek acfadd535b e17: e_widget_ilist: avoid too much idling
SVN revision: 57791
2011-03-16 09:07:01 +00:00
Hannes Janetzek a1ad9a0f81 e17: e_widget_ilist make queue command codes being an enum
SVN revision: 57789
2011-03-16 08:25:40 +00:00
Hannes Janetzek 37781161a2 e17: e_widget_ilist return correct list count. only count queue commands that add something
SVN revision: 57788
2011-03-16 08:22:09 +00:00
Hannes Janetzek 75388beeb5 e17: e_widget_ilist:
- fix return e_widget_ilist_count: return listcnt + queue
- dont add artificial upadte delay, use idler.


SVN revision: 57755
2011-03-14 23:43:16 +00:00
Christopher Michael f35b6dfbc7 Fix Ticket # 568: Interrogating contents of ilist may return incorrect
response.

Check if the we still have not processed the queue, if so return the
que list count (as this is the number of items we are adding anyway).
If the queue has been processed already, then return the normal
e_ilist_count.



SVN revision: 51866
2010-09-03 17:54:01 +00:00
Lucas De Marchi 6638a10e20 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Cedric BAIL c6a118d738 * e: remove warning due to Ecore API change.
SVN revision: 49833
2010-06-24 16:19:12 +00:00
Davide Andreoli 233042686a Add missed func: e_widget_ilist_selected_data_get(*obj)
SVN revision: 48986
2010-05-18 21:37:05 +00:00
Christopher Michael 125ffd9112 Function to return the 'selected' items value.
SVN revision: 47857
2010-04-09 00:24:33 +00:00
Christopher Michael 6c858bb3b0 Another wrapper function to return an ilist items value using only the index
of selected item.



SVN revision: 47856
2010-04-09 00:08:38 +00:00
Christopher Michael c0bb6d2148 Wrapper functions for getting an items 'value'. To be used in new Shelf
Contents dialog.



SVN revision: 47844
2010-04-08 20:07:11 +00:00
Christopher Michael 4eefa59387 Use Eina_Bool for multi-select of ilist.
Fix formatting issues in some other files.



SVN revision: 47573
2010-03-30 01:05:56 +00:00
Gustavo Sverzut Barbieri 073a946433 new, single list module loader dialog.
This dialog was reworked to have one single list instead of two. This
makes the internals way simpler and also fits small screens.

Extra benefit is that we don't need to reload the list, so it's
flicker-free and you don't loose context. Of course it will save some
cpu cycles not having to do these list fills over and over again.

the ilist had to be changed to include an "end" object, in the default
theme it is at the right. It will use a part named
e/widget/ilist/toggle_end to present the selected state. (The
favorites/heart icon was choosen because it is red and thus easily
visible in both black and white background -- selected/unselected).



SVN revision: 46813
2010-03-03 04:10:04 +00:00
Sebastian Dransfeld c3a71f394d make clang happy
SVN revision: 45184
2010-01-15 12:01:52 +00:00
Christopher Michael 3e1c0d622a Fix API Inconsistency:
e_ilist_min_size_* to e_ilist_size_min_*



SVN revision: 42163
2009-09-01 16:39:10 +00:00
Christopher Michael 6ab63682dd Fix API Inconsistency in regards to e_widget_min_size_* . Renamed to
e_widget_size_min_* . This Large commit should fix everything in svn that is
using those functions.



SVN revision: 42152
2009-09-01 13:34:42 +00:00
Cedric BAIL f8c05999e4 * e: Cleanup use of Eina data structure.
Patch from Peter van de Werken <pwerken-e@a-eskwadraat.nl>.


SVN revision: 41916
2009-08-21 15:08:49 +00:00
Christopher Michael e79f4205ea Add cast to char ** for wd->value to cleanup compiler warning.
SVN revision: 41440
2009-07-19 20:09:38 +00:00
Christopher Michael 590137f924 Fix up some formatting
SVN revision: 39499
2009-03-15 19:26:09 +00:00
Cedric BAIL c979b3f9d5 * e_widget_ilist_add now expect a stringshare.
SVN revision: 39447
2009-03-11 15:13:42 +00:00
Cedric BAIL 72d23b4b0c * e_widget_ilist.c: Ok, this is a quick fix (disable queue for now). A better fix would
be to propagate the delete operation to e_ilist.c and mark the selected entry to be
	deleted and update code listing selected item to not return to be deleted item.

	NOTE: Is it really usefull ? Doesn't evas/edje delay the destruction of Evas_Object anyway ?



SVN revision: 39445
2009-03-11 13:16:01 +00:00
Jonathan Atton 2ce3410d57 Fixed a bug, the callback was add 2 times in the list -> segfault when the list was destroy
SVN revision: 39061
2009-02-17 17:40:24 +00:00
Jonathan Atton 06e0157912 revert relative and use_relative
SVN revision: 39050
2009-02-16 22:32:34 +00:00