Commit Graph

164 Commits

Author SHA1 Message Date
Kim Woelders e287b37e78 Switch to new list implementation.
Faster, less code, less memory usage.
Not that it matters much - mostly for fun.
2013-08-09 11:43:48 +02:00
Kim Woelders 4858f55da9 Fix background dialog issues.
Various properties weren't properly updated when selecting a different
background.
2013-07-11 22:40:39 +02:00
Kim Woelders a0034a6f70 Discard broken backgrounds (bg file missing) on exit. 2013-07-11 17:50:39 +02:00
Kim Woelders 18b47b5d8a Disable moving "None" background to front.
Also some cosmetics.
2013-07-11 17:50:38 +02:00
Kim Woelders 307d86f555 Cosmetics - paving the way for other changes. 2013-06-14 19:47:07 +02:00
Kim Woelders 1d2dd98f98 Eliminate Quicksort(), use libc qsort() in stead.
Might as well use libc function - saves some bytes of code.
2013-03-26 22:24:39 +01:00
Kim Woelders 7fd4f7a71d Cosmetics.
SVN revision: 78407
2012-10-24 17:20:38 +00:00
Kim Woelders af5dcb3987 Change some longs to ints where long is not needed.
SVN revision: 66973
2012-01-08 12:54:08 +00:00
Kim Woelders 4ceb809f74 Minor debug printout cleanups.
SVN revision: 60483
2011-06-19 14:36:47 +00:00
Kim Woelders 89d43e4f1b Move variable into scope where it is used.
SVN revision: 59968
2011-06-05 14:53:52 +00:00
Kim Woelders a15f23b71d Fix solid color backgrounds.
SVN revision: 59311
2011-05-10 15:43:37 +00:00
Kim Woelders 1a27875781 Fix having background file names with spaces (Daniel Manjarres).
SVN revision: 59310
2011-05-10 15:43:34 +00:00
Kim Woelders d4dfea8125 Enable having background files with whitespace in name.
Suggested by Daniel Manjarres.

In order to avoid compatibility issues with older e16 versions
the backgrounds file is renamed from e_config-<something>.backgrounds to
e_config-<something>.bg.

SVN revision: 59082
2011-05-01 10:52:05 +00:00
Kim Woelders 3d8e1d431c Show backgrounds in settings dialogs with same aspect ratio as screen.
Make the background images (also used in background selection menu)
screen size/12, which normally will be somewhat larger than the old 64x48.

Based on patches by Daniel Manjarres.

SVN revision: 59080
2011-05-01 10:51:59 +00:00
Kim Woelders f0c0a4519c Change TimerAdd() and TimerSetInterval() time to ms.
SVN revision: 55891
2011-01-05 18:05:57 +00:00
Kim Woelders 674ae16616 Add const to Quicksort compare function prototype.
SVN revision: 55273
2010-12-05 05:38:39 +00:00
Kim Woelders 5a98c9373e Indent.
SVN revision: 51725
2010-08-29 13:45:57 +00:00
Sebastian Dransfeld 652510db74 Check y component too
SVN revision: 51722
2010-08-29 10:59:26 +00:00
Lucas De Marchi ed721d79ca Apply double_condition_check.cocci
The offending projects were:

 E16/e/src/backgrounds.c                 |   10 ++++------
 PROTO/eon/src/lib/layout/eon_stack.c    |    4 +---
 ecore/src/lib/ecore_win32/ecore_win32.c |    3 +--
 ecore/src/lib/ecore_wince/ecore_wince.c |    3 +--
 edje/src/lib/edje_edit.c                |    3 +--
 evas/src/lib/cache/evas_cache_image.c   |    2 +-
 exalt/src/lib/libexalt_private.c        |    2 +-


This patch assumes code in these places were insane and the fix is to remove
one condition check. Most likely this is not true, but there's no automatic fix
for that.

Looking at the patch, it seems that some places should use "x" and "y" vars but
used just one of them and therefore they were caught by coccinelle.




SVN revision: 51666
2010-08-26 20:45:09 +00:00
Kim Woelders 7aab9bea4b Indent.
SVN revision: 51490
2010-08-21 14:39:55 +00:00
Lucas De Marchi f287759d3e 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
Kim Woelders c517a00f0b Indent.
SVN revision: 51100
2010-08-13 21:05:00 +00:00
Lucas De Marchi 4d4401c5d3 Apply badzero.cocci, badnull.cocci and badnull2.cocci
Since badzero.cocci depends on coccinelle knowledge about a variable being a pointer
and about a function returning a pointer, maybe there are false negatives.



SVN revision: 51092
2010-08-13 17:04:13 +00:00
Kim Woelders 4ac03926da Adjustments for indent 2.2.11.
SVN revision: 50909
2010-08-08 19:03:34 +00:00
Lucas De Marchi 118b441611 Remove unneeded code with notnull.cocci script
The notnull.cocci script from Coccinelle finds places where you check if a
variable is NULL, but it's known not to be NULL. The check can be safely
removed. For example, this code would be caught by notnull:

if (!var) return;
if (var && var->fld) { ... }

It's needless to check again if var is not NULL because if it's in fact NULL,
it would have returned on the previous "if". This commit removes all the
trivial places where this pattern happens. Another patch will be generated for
the more complex cases.


SVN revision: 50241
2010-07-14 02:05:47 +00:00
Kim Woelders 0466673fbf Trim whitespace from translatable strings.
SVN revision: 48723
2010-05-09 19:03:19 +00:00
Kim Woelders 490dff5974 Remove some trailing spaces from bg show command output.
SVN revision: 48722
2010-05-09 19:03:16 +00:00
Kim Woelders 203247f8a2 Silence clang.
SVN revision: 48559
2010-05-02 20:26:47 +00:00
Kim Woelders 29a5b4489d Centralise file loading, based on file type.
Change install paths:
- menus: <datadir>/config/menus -> <datadir>/menus
- icons: <datadir>/config/pix   -> <datadir>/icons
- pix:   <datadir>/config/pix   -> <datadir>/pix

SVN revision: 47695
2010-04-02 15:27:58 +00:00
Kim Woelders d5175a9574 Change some functions to macros, simplify setup stuff.
SVN revision: 46932
2010-03-07 07:05:18 +00:00
Kim Woelders c5f4373649 Fix various background file issues
- Avoid a lot of file system access.
- Fix deleting a background including its files.
- Discard broken backgrounds (bg file cannot be found).

SVN revision: 46320
2010-02-19 19:30:54 +00:00
Kim Woelders a7e538be10 Trivial fixes (clang).
SVN revision: 45718
2010-01-29 19:45:04 +00:00
Kim Woelders 2a4d0e3fbd Dialog cleanups.
SVN revision: 43638
2009-11-12 20:48:21 +00:00
Kim Woelders acf3c63ef9 DialogDrawItems should not have to be called explicitly.
SVN revision: 43637
2009-11-12 20:48:18 +00:00
Kim Woelders 02a82cf6f3 Last change was not good in certain themes.
Instead, use DIALOG_BUTTON and fall back to DIALOG_WIDGET_BUTTON.

SVN revision: 43021
2009-10-11 17:54:40 +00:00
Kim Woelders 076edda7aa Use DIALOG_WIDGET_BUTTON in stead of DIALOG_BUTTON in background selector.
DIALOG_BUTTON can now be eliminated from themes.

SVN revision: 42891
2009-10-05 16:43:34 +00:00
Kim Woelders bfefc200cd EColor->COLOR32
SVN revision: 42460
2009-09-13 13:45:34 +00:00
Kim Woelders 42ad2b8836 Add missing newlines on IPC messages.
SVN revision: 42288
2009-09-06 09:59:40 +00:00
Kim Woelders 24e0a0d7e8 Forgot some 2008->2009's.
SVN revision: 40605
2009-05-12 21:21:21 +00:00
Kim Woelders a9b5c1cf6a Background scanning tweaks and cleanups.
SVN revision: 40529
2009-05-06 17:17:31 +00:00
Kim Woelders 7b2001825a Always destroy startup backgrounds as intended (noted by Don Harrop).
SVN revision: 40481
2009-05-01 17:14:05 +00:00
Kim Woelders 287bbf4c3b Enable building without dialogs.
SVN revision: 38754
2009-01-24 08:31:50 +00:00
Kim Woelders e42a80764f Play sounds by number in stead of by name. Enable disabling specific sounds.
SVN revision: 38142
2008-12-14 16:44:45 +00:00
Kim Woelders f75c54f44d Enable not scanning backgrounds when starting background dialog.
SVN revision: 37751
2008-11-22 21:17:02 +00:00
Kim Woelders 349a5a268c Discard only generated background duplicates.
SVN revision: 37750
2008-11-22 21:16:59 +00:00
Kim Woelders b85d1f0533 Make coordinate system in vertical sliders same as in horizontal.
SVN revision: 37628
2008-11-14 18:30:45 +00:00
Kim Woelders a3e97e347f Enable specifying theme default desktop background (suggested by Don Harrop).
SVN revision: 37077
2008-10-24 19:21:55 +00:00
Kim Woelders 6e0986a40c Don't look for background image files until actually used.
SVN revision: 37076
2008-10-24 19:16:38 +00:00
Kim Woelders b15a1fe53a Disable localization of theme files.
SVN revision: 36682
2008-10-15 15:20:20 +00:00
Kim Woelders 70a6cc695c Simplify activating configuration dialogs.
SVN revision: 36681
2008-10-15 15:19:12 +00:00