Commit Graph

148 Commits

Author SHA1 Message Date
Mike Blumenkrantz 6d0a11236f fix possible buffer overflow in module config dialog
SVN revision: 80832
2012-12-13 12:03:41 +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 d444728457 all dialogs EXCEPT module config dialog are not resizable. this is just too frustrating
SVN revision: 80075
2012-12-03 14:59:39 +00:00
Mike Blumenkrantz 68e6b07cd7 all dialogs are no longer resizable
SVN revision: 80032
2012-12-03 09:24:12 +00:00
Mike Blumenkrantz c244e1f9b7 module config dialog now listens for module status update events and adjusts module status accordingly
ticket #1816


SVN revision: 79693
2012-11-26 10:58:58 +00:00
Mike Blumenkrantz 5f4f3c2cb4 e finally remembers the module config dialog and reopens it on restart
SVN revision: 77563
2012-10-08 07:36:17 +00:00
Mike Blumenkrantz d16172a0df igor was right...should localize the display name, not the internal usage
SVN revision: 76105
2012-09-04 05:21:41 +00:00
Mike Blumenkrantz f384b3a1b3 localize the name of module categories so they can later be matched properly
SVN revision: 76008
2012-09-03 12:20:18 +00:00
Mike Blumenkrantz 315cc1a353 more module config debug
SVN revision: 76001
2012-09-03 11:40:45 +00:00
Mike Blumenkrantz 9ad8698ef1 debug info for locale module crash
SVN revision: 75997
2012-09-03 10:45:45 +00:00
Mike Blumenkrantz 058635072b fix longstanding leak in module config dialog
SVN revision: 75878
2012-08-30 12:21:30 +00:00
Mike Blumenkrantz 1546ae67a8 remove awful idler from module config dialog and simplify all related code
ticket #856


SVN revision: 73148
2012-07-02 10:29:55 +00:00
Mike Blumenkrantz 57cfa862f5 formatting
SVN revision: 72991
2012-06-28 10:14:25 +00:00
Chidambar Zinnoury ef3bb217b4 e modules: categories also need some translation lovin'.
SVN revision: 72785
2012-06-25 08:09:25 +00:00
Vincent Torri c3b0637802 e17: whitespaces--
SVN revision: 72561
2012-06-21 06:19:43 +00:00
Vincent Torri 2fff3dd83a E17: fix mixed declarations and code
SVN revision: 70975
2012-05-13 17:45:44 +00:00
Mike Blumenkrantz 2e4b8b9901 add explicit null check (for hahas?)
SVN revision: 55728
2010-12-23 00:41:19 +00:00
Christopher Michael 1ebb13c4a8 Adjust min sizes of ilist and textblock so that Modules dialog fits
nicely into 240x320 (without these changes, the toolbar is partially
obscured by illume indicator).



SVN revision: 55132
2010-12-02 08:05:52 +00:00
Christopher Michael 4b7b3742c8 Remove 'declared' function that was never defined.
SVN revision: 54558
2010-11-15 06:15:42 +00:00
Miculcy Brian abee1825dd Apply new module categories.
SVN revision: 53600
2010-10-19 12:28:07 +00:00
Carsten Haitzler e6fc3f6170 that actually can be a bit longer due to i's and l's... :)
SVN revision: 53551
2010-10-18 00:39:02 +00:00
Carsten Haitzler 59766e3464 "shorter text... that's MUCH better!"
SVN revision: 53550
2010-10-18 00:38:02 +00:00
Miculcy Brian dd641e9259 New categories for modules.
To be continued soon...


SVN revision: 53514
2010-10-17 17:33:44 +00:00
Miculcy Brian 1a7b1c2624 Cleanup
SVN revision: 53456
2010-10-15 16:30:34 +00:00
Miculcy Brian 6cbec60a86 Modules Dialog loads faster now and uses category tabs instead of a huge list. Stay tuned, module category renaming and reordering comes soon...
SVN revision: 53455
2010-10-15 15:57:20 +00:00
Christopher Michael 7dda2eb780 Fix a little formatting.
SVN revision: 51864
2010-09-03 16:53:06 +00:00
Mike Blumenkrantz 439be6643a error messages: now in english!
SVN revision: 51854
2010-09-03 03:26:22 +00:00
Lucas De Marchi 121f40d86f Revert and re-apply badnull patch
Revert previous patch generated by badnull.cocci script, and apply the new one.
The main difference is that assert and assert-like functions are not touched
anymore.




SVN revision: 51650
2010-08-26 01:34:13 +00:00
Lucas De Marchi 63f07459a0 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
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
Christopher Michael 3c8d951719 Small formatting fix.
SVN revision: 48929
2010-05-17 00:04:12 +00:00
Hannes Janetzek 19ecf36e1b use 'Everything Launcher' category for modules
SVN revision: 47914
2010-04-11 04:02:45 +00:00
Christopher Michael 72a851477e Fix modules dialog to work w/ smaller resolutions (ilist was too tall).
Add some missing wrapper functions for slider widget (used in new temp
config dialog).



SVN revision: 47797
2010-04-07 01:30:03 +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
Sebastian Dransfeld 080b8eda6c formatting
SVN revision: 47189
2010-03-13 21:56:25 +00:00
Gustavo Sverzut Barbieri 1b712ba617 no need fro frame in the module list, the dialog title says it all.
SVN revision: 46975
2010-03-08 02:39:44 +00:00
Sebastian Dransfeld 66b667f273 Use efreet_desktop_new where appropriate
efreet_desktop_get (will in time) setup a lot of stuff to monitor
changes. If we just use the results from efreet_desktop_get within one
function and then free, this is unneeded overhead. efreet_desktop_free
will more lightweight (but require a bit more mem alloc).

SVN revision: 46847
2010-03-03 22:10:55 +00:00
Gustavo Sverzut Barbieri 75e97e144c postpone module list construction to idler.
Create the list later so the dialog shows up immediately and is later
populated. The creation of the list is quite expensive, with disk,
efreet and later computation of the final list.

It seems good now, but if required it could be split a bit more,
instead of doing one directory per idle run, do one file.



SVN revision: 46843
2010-03-03 21:37:52 +00:00
Gustavo Sverzut Barbieri b7e7f44bc9 better sizing
SVN revision: 46815
2010-03-03 04:42:22 +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
Christopher Michael dcd6a62380 Don't set a min width that is too large. Just use min width returned from
the function. This makes module dialog work nicely w/ smaller resolutions.



SVN revision: 46673
2010-03-01 00:57:06 +00:00
Christopher Michael 56178c136b Use e_scale when calculating window width/height.
SVN revision: 44907
2010-01-05 05:28:05 +00:00
Christopher Michael 46387d608c Remove wasted whitespace. Fix some formatting.
SVN revision: 44835
2009-12-31 22:45:34 +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
Chidambar Zinnoury 60244fba6c Try to use FDO icons as some modules (screensaver, for instance) use them.
SVN revision: 40363
2009-04-25 08:03:53 +00:00
Gustavo Sverzut Barbieri a16a2e3d73 config modules now have better size.
it will now fit into 640x480 and also will look better since
horizontal size will be a bit bigger.



SVN revision: 40178
2009-04-18 18:14:03 +00:00
Davide Andreoli eb2d1db1dc Icon rename finished. Now we have a fully compliant icon theme :)
now I'm going to fix E-MODULE-EXTRA...


SVN revision: 39495
2009-03-15 17:41:46 +00:00
Davide Andreoli 3d41cbb20d More icon works, this commit include changes to the icons on the desktop.
You will probably loose desktop icons until you get a fresh profile. Or you can edit the
.desktop files in .e/e/fileman/favorites (new icons name are: user-desktop, user-home, computer and user-temp)

Sorry for bothering... the next commit should be the last ;)



SVN revision: 39419
2009-03-08 23:09:48 +00:00