Commit Graph

187 Commits

Author SHA1 Message Date
Kim Woelders 5ce609cca7 Change formatting style
No tabs, more like K&R.
Also switch to indent 2.2.13.
2023-11-26 10:03:45 +01:00
Kim Woelders 40d17e7a51 definitions: Change value of __NORMAL to remove weirdness
This does require all themes to be re-parsed.
2023-10-23 18:48:56 +02:00
Kim Woelders edc06f4950 text: Drop unused fsize argument in Text functions 2023-09-21 14:32:11 +02:00
Kim Woelders b26c137bc3 iclass: Drop image border adjustment
In the switch from imlib to imlib2 (a couple of decades ago) an
adjustment of image borders was introduced to accommodate for a
difference between the old and new imlibs.

Without this adjustment a few themes have incorrectly rendered elements
(unintended window border fading, opaque pager area highligt frame, more?).

It turns out that the origin of the problem is in the scaling code of
imlib2, and will be fixed in imlib2 (most likely v1.12.0).
2023-08-09 19:53:28 +02:00
Kim Woelders 6c784dc73b iclass: Make active state more visible in fallback icon class 2022-05-28 07:53:02 +02:00
Kim Woelders dabf1ba150 Fix imageclass flip/rotate for real
The fix in 9d678fc554 forgot to call
EImageOrientate() in the !Conf.memory_paranoia case.
2022-03-31 13:52:04 +02:00
Kim Woelders 358b60baf9 Introduce E_ARRAY_SIZE() and MOD_ITEMS()
Just a bit tidier.
2021-03-19 06:36:46 +01:00
Kim Woelders 9d678fc554 Fix handling of imageclasses with flipped/rotated images
Each modified image needs its own file to avoid getting in trouble with
pixmap caching.

The trouble in question was only seen if misc.memory_paranoia was set
to 0 (is 1 by default).
2021-03-06 21:02:10 +01:00
Kim Woelders 9d235a1ecd Remove some (duplicated?) configuration identifiers that are not in definitions 2020-09-26 17:17:25 +02:00
Kim Woelders 22b5e58dcd Refactor/rename/use _EFREE type macros 2018-12-22 11:44:22 +01:00
Kim Woelders 2f0b4464fc Enable using ImageClass as menu icon
Before 00c261652e the menu item icon
was always an ImageClass name.
After changing this to be a file name some themes defining menus
(e.g. Ganymede with button tweaks) did not work as intended wrt. button
menus.
So now we accept both.
2018-02-04 13:45:15 +01:00
Kim Woelders ca5040e643 Remove pseudotransparency support - 3
- Remove obsolete image type argument.
2018-02-04 13:32:59 +01:00
Kim Woelders fda39df73d Remove pseudotransparency support - 1
Has been disabled by default for 5 years.

- Remove autofoo stuff.
- Unifdef ENABLE_TRANSPARENCY and ENABLE_THEME_TRANSPARENCY.
- Remove transparency settings from docs/e16.xml.
2018-02-04 13:27:31 +01:00
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 a9a568ffe3 Debug printout cleanups. 2014-10-17 21:25:12 +02: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 b3d41f5229 Fix potential use of freed pixmap. 2014-04-21 11:28:38 +02:00
Kim Woelders b78ee6c0b5 Minor simplifications in ImagestateDraw...() functions. 2014-04-21 11:24:59 +02:00
Kim Woelders a14e2978d8 Wrap some calls to XFillRectangle. 2013-12-29 08:59:39 +01:00
Kim Woelders e1f062fff5 Use NoXID in stead of None. 2013-12-29 08:59:38 +01:00
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 629dd93f63 Disable pseudo-transparency by default.
SVN revision: 82007
2013-01-02 19:27:25 +00:00
Kim Woelders ba7d9cc4a9 Fix various issues reported by clang. Minor cleanups.
SVN revision: 81671
2012-12-24 10:41:50 +00:00
Kim Woelders 288a6c0541 FreePmapMask() -> PmapMaskFree().
SVN revision: 53806
2010-10-23 10:22:50 +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
Kim Woelders 0466673fbf Trim whitespace from translatable strings.
SVN revision: 48723
2010-05-09 19:03:19 +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 3ad157b9c8 Avoid some memory leaks with incorrect themes.
SVN revision: 45018
2010-01-10 17:17:06 +00:00
Kim Woelders 2aa7e385e2 Enable showing mini icon in border part (suggested by Don Harrop).
SVN revision: 43124
2009-10-17 08:04:48 +00:00
Kim Woelders 06ad39dc25 Remove forgotten debug printout.
SVN revision: 43123
2009-10-17 08:04:45 +00:00
Kim Woelders 3a706d50c5 Avoid wasting some space.
SVN revision: 42465
2009-09-13 13:45:46 +00:00
Kim Woelders 6fea34c637 Remove useless cursor, imageclass and textclass create, delete, and modify ipc functions.
SVN revision: 42462
2009-09-13 13:45:39 +00:00
Kim Woelders bfefc200cd EColor->COLOR32
SVN revision: 42460
2009-09-13 13:45:34 +00:00
Kim Woelders e548e23db1 Correct break->continue. Cosmetics.
SVN revision: 41508
2009-07-27 16:46:48 +00:00
Kim Woelders e9ac46b3de Expose bevels for theming.
SVN revision: 38628
2009-01-18 11:17:28 +00:00
Kim Woelders 7026d408d2 Prevent error message from loading imageclass without image file.
SVN revision: 38625
2009-01-18 11:17:20 +00:00
Kim Woelders d4c8938aad Avoid potential crashes in imageclass parsing.
SVN revision: 38624
2009-01-18 11:17:17 +00:00
Kim Woelders 0c0658fad7 Trivial cleanups.
SVN revision: 37553
2008-11-08 17:00:06 +00:00
Kim Woelders 5a88e79163 Fix various issues noted by Don Harrop
- Fix using tiles in iconbox background
- Fix breaking window group using winops menu
- Fix virtual desktop configuration area when SETTINGS_AREADESK_AREA is shaped


SVN revision: 37548
2008-11-08 12:21:10 +00:00
Kim Woelders 699130fc73 Enable rotating imageclass images (suggested by Don Harrop).
SVN revision: 37078
2008-10-24 19:24:53 +00:00
Kim Woelders b2c37aafc2 Free imagestate image file name when no longer needed.
SVN revision: 37074
2008-10-24 19:13:43 +00:00
Kim Woelders 51e2b745fb Fix certain cases of text rendering on tiled pixmap (noted by Don Harrop).
SVN revision: 36683
2008-10-15 15:21:50 +00:00
Kim Woelders b15a1fe53a Disable localization of theme files.
SVN revision: 36682
2008-10-15 15:20:20 +00:00
Kim Woelders 15a40d62aa Fix ImageclassApplySimple for imageclasses without image.
SVN revision: 35395
2008-08-07 23:22:47 +00:00
Kim Woelders 0ef2024991 Move function.
SVN revision: 35394
2008-08-07 23:21:51 +00:00
Kim Woelders dfadac95c6 Remove colormodifier stuff (this has afaict never worked in e16).
SVN revision: 34941
2008-06-28 19:08:35 +00:00
Kim Woelders 2d2bd07136 Trivial cleanups.
SVN revision: 34939
2008-06-28 18:54:59 +00:00
Kim Woelders e28c5c3362 Fix rendering of imageclasses not based on images.
SVN revision: 34886
2008-06-22 13:36:28 +00:00
Kim Woelders e82903882a Theme element fallback cleanups
- don't create fallback classes before they are needed.
- use of fallbacks was missing a number of places.
- setting theme to "-" will run entirely on fallbacks.


SVN revision: 34885
2008-06-22 13:34:42 +00:00