Commit Graph

72 Commits

Author SHA1 Message Date
Kim Woelders 9c31fe29ed Clean up header file inclusion order.
Fixes building with e.g. -std=c99 and c11 by always including config.h
(which defines _GNU_SOURCE) first.
2015-01-17 19:33:42 +01:00
Kim Woelders 4d1bde02ae Wrap XID and some other X types.
Mostly to change longs to ints to reduce memory footprint a bit on 64
bit systems.
2014-04-23 19:13:00 +02:00
Kim Woelders 2a95307f44 Eliminate BordersForeach().
Also let BordersGetList() do alphabetic sorting.
2013-07-07 23:17:11 +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 34910b33bc Eliminate EwinIsMapped() and EwinGetDesk().
SVN revision: 59969
2011-06-05 14:53:55 +00:00
Kim Woelders c44f92ab1c Swap names in directory cache file (and rename it).
(preparing to enable background file names containing blanks).

SVN revision: 59081
2011-05-01 10:52:01 +00:00
Kim Woelders 674ae16616 Add const to Quicksort compare function prototype.
SVN revision: 55273
2010-12-05 05:38:39 +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 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 a7e538be10 Trivial fixes (clang).
SVN revision: 45718
2010-01-29 19:45:04 +00:00
Kim Woelders 35c6792623 Add MenuCreateFromBackgrounds, eliminate menus.cfg.
SVN revision: 44129
2009-12-02 19:20:32 +00:00
Kim Woelders d2880aba94 Minor fixes, cleanups.
SVN revision: 44038
2009-11-29 10:35:52 +00:00
Kim Woelders a942ab1f65 Avoid reading uninitialised memory.
SVN revision: 43740
2009-11-16 20:55:18 +00:00
Kim Woelders 3b51bcd980 Fix bug causing bogus image cache directory files to be written.
SVN revision: 43062
2009-10-13 19:20:22 +00:00
Kim Woelders ff60719c9d Look up menu icons in ~/.e16/icons too (patch by Pietro Cerutti, ticket 328).
SVN revision: 40952
2009-06-07 20:00:55 +00:00
Kim Woelders b985bcb78a Don't disable background scan progress bars when restarted.
SVN revision: 40608
2009-05-12 21:21:28 +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 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 c7be420b38 Remove generation of menus from dirs with .desktop files.
SVN revision: 37133
2008-10-26 11:18:37 +00:00
Kim Woelders b15a1fe53a Disable localization of theme files.
SVN revision: 36682
2008-10-15 15:20:20 +00:00
Kim Woelders e03908dc05 Look for theme in <path>/<themename>/e16 too (suggested by Don Harrop).
SVN revision: 36575
2008-10-10 20:55:26 +00:00
Kim Woelders 9acd352563 Eliminate dup in fullfileof().
SVN revision: 36574
2008-10-10 19:49:06 +00:00
Kim Woelders 6c308cef4c Provide strcase functions if not available.
SVN revision: 35487
2008-08-14 18:44:23 +00:00
Kim Woelders adb154253a Simplify image extension check.
SVN revision: 34837
2008-06-16 21:24:02 +00:00
Kim Woelders 48cda6622e Remove more unused stuff.
SVN revision: 34534
2008-05-10 23:29:01 +00:00
Kim Woelders 4ef9558c14 Forgot 2008.
SVN revision: 34083
2008-03-22 14:51:24 +00:00
Kim Woelders 0a05aafc82 Assume free(0) is ok (if not HAVE_FREE_NULL_BUG will have to be defined).
SVN revision: 33818
2008-02-23 12:09:38 +00:00
Kim Woelders 7cc406ee84 Prepare to move menus in menus.cfg to simple files - continued.
SVN revision: 30212
2007-06-03 11:55:29 +00:00
Kim Woelders 60800f3067 Prepare to move menus in menus.cfg to simple files.
SVN revision: 30190
2007-06-02 10:01:34 +00:00
Kim Woelders 49b0eefe30 Use new destructive line parser to avoid a lot of strdup/free's.
SVN revision: 30132
2007-05-28 22:05:29 +00:00
Kim Woelders 2941e25297 Eliminate use of word() and atword() + fixups.
SVN revision: 28484
2007-02-26 04:16:29 +00:00
Kim Woelders 184b6faede Don't scan background directory at startup but when needed (menu or config dialog).
SVN revision: 28467
2007-02-25 01:38:30 +00:00
Kim Woelders f53600e1e8 Cleanups, enable compiling everything as if it were C++.
SVN revision: 28022
2007-01-17 01:10:44 +00:00
Kim Woelders f600c9bce5 Refactor various file property test functions.
SVN revision: 27987
2007-01-15 02:43:54 +00:00
Kim Woelders 83bcbbaee1 2007.
SVN revision: 27952
2007-01-13 19:14:29 +00:00
Kim Woelders d31b01dfee EwinGetName -> EwinGetTitle.
SVN revision: 27212
2006-11-26 11:30:59 +00:00
Kim Woelders 63a8acc721 Split up, shuffle around, rename.
SVN revision: 27181
2006-11-19 21:55:52 +00:00
Kim Woelders 32eed4b5a2 Rename some macros (_Ewin...) for consistency.
SVN revision: 24442
2006-08-07 20:20:16 +00:00
Kim Woelders 5bd5afe9cc Split up, shuffle around file.c (no real changes).
SVN revision: 24166
2006-07-24 21:10:59 +00:00
Kim Woelders 65341833e2 Fix setting border style using winops menu.
SVN revision: 24163
2006-07-24 20:21:13 +00:00
Kim Woelders 6294a3448e Cleanups.
SVN revision: 23053
2006-06-01 19:09:37 +00:00
Kim Woelders 203d91bd09 Allow omitting menus/ in menu path. May make migration from <16.8 less painful.
SVN revision: 21605
2006-03-30 21:07:10 +00:00
Kim Woelders e052f9aceb Move lists to Ecore_List.
SVN revision: 20557
2006-02-18 08:30:09 +00:00
Kim Woelders cea01c13ca Fix parsing menu files without newline at end of file.
SVN revision: 20549
2006-02-17 19:16:32 +00:00
Kim Woelders 5014886a1f No longer use convert (ImageMagick) to create scaled icons in menu generation,
but scale internally according to configuration setting.


SVN revision: 19857
2006-01-16 12:45:56 +00:00
Kim Woelders 056248c884 2006.
SVN revision: 19591
2006-01-07 07:20:58 +00:00
Kim Woelders ff86323831 Split off borders.h.
SVN revision: 19238
2005-12-22 18:43:15 +00:00
Kim Woelders c24b411115 Split off groups.h. Fix certain hint updates. Cleanups.
SVN revision: 18538
2005-11-19 15:47:10 +00:00
Kim Woelders 0dfa113313 General bug hunt - Found a few, pedantic cleanups, dead code removal.
SVN revision: 18153
2005-10-30 19:40:49 +00:00