forked from e16/e16
1
0
Fork 0
Commit Graph

5011 Commits

Author SHA1 Message Date
Kim Woelders 988ebc96e8 Trivial cleanups 2018-03-11 19:51:32 +01:00
Kim Woelders 6e3a325980 xprop.c: Fix warnings found with -O3
If num = 0 realloc() below would use uninitialized lst if op != REMOVE.

However, ex_window_prop_xid_list_change() is currently not used by e16.
2018-03-11 19:47:43 +01:00
Kim Woelders 7522a14b80 epp/cpplib.c: Fix warnings found with -O3 2018-03-11 19:46:49 +01:00
Kim Woelders bd9359cf68 Update po 2018-03-03 14:54:28 +01:00
Kim Woelders 6d50041570 Minor win_op help update 2018-03-03 14:54:28 +01:00
Kim Woelders 5e836ea001 On window mode exit close/kill windows instead of reparent to root 2018-03-03 14:21:16 +01:00
Kim Woelders 3e5398789b Add some image cache control
Most of this requires imlib2-1.5.0.

- Enable showing setup and usage.
- Store regular image cache size in configuration.
- Add control for XImage cache item count.
2018-02-22 07:36:36 +01:00
Kim Woelders db6a869b42 Restart cursor: Use in window mode too 2018-02-12 21:26:01 +01:00
Kim Woelders 137ba9f116 Restart cursor: Increase timeout + debug tweaks 2018-02-12 21:26:01 +01:00
Kim Woelders 3ab0c509d2 Print messages for problematic borders (if EDEBUG 1) 2018-02-09 18:16:34 +01:00
Kim Woelders 8fcc2be58a Sort IPC help in columns instead of rows 2018-02-09 18:15:47 +01:00
Kim Woelders e689a03da9 A bit of startup/theme debug 2018-02-09 18:14:08 +01:00
Kim Woelders ab2f3a97c9 Tweak new theming mmacros
By Don Harrop
2018-02-07 16:24:32 +01:00
Kim Woelders 1c20c27481 Update po 2018-02-04 17:25:28 +01:00
Kim Woelders 63169e79d0 Fix theme variant handling
The variant wasn't remembered persistently.

Also change the theme variant delimiter to ':'.
2018-02-04 16:31:25 +01:00
Kim Woelders 92cb89490b Avoid confusing dual use of Mode.theme.path 2018-02-04 16:25:16 +01:00
Kim Woelders cefd067f7d Swap ThemeFind() and ThemePathFind() names
Seems more reasonable.
2018-02-04 16:22:50 +01:00
Kim Woelders 6796b87dff Cosmetics 2018-02-04 16:22:07 +01:00
Kim Woelders 9003da8a0d Remove some cruft 2018-02-04 15:34:57 +01:00
Kim Woelders 1829527170 Tweak theme variant setting
Set "THEME_VARIANT_<variant>=1" instead of "VARIANT=<variant>".
Should be easier to deal with in themes.
2018-02-04 15:34:57 +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 0d97ea5285 Remove pseudotransparency support - 2
- Transparency...() macros
2018-02-04 13:28:54 +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 c20cac547a More new macros for themeing in 'definitions'
Provided by Don Harrop
2018-01-21 10:45:10 +01:00
Kim Woelders e83a7f8e85 Update po 2018-01-04 19:47:14 +01:00
Kim Woelders 61a9a99fe6 theme.c: Fix theme file extraction 2018-01-04 19:46:16 +01:00
Kim Woelders 6ce105da14 theme.c: List .theme files too 2018-01-04 19:44:50 +01:00
Kim Woelders f98c2e9879 theme.c: Tweak theme listing 2018-01-04 19:44:47 +01:00
Kim Woelders a890dc0b70 Update po 2017-12-30 20:16:11 +01:00
Kim Woelders 58a64b8199 theme.c: Fix warning and simplify 2017-12-30 20:15:59 +01:00
Kim Woelders a46849a083 Update po 2017-12-30 19:26:47 +01:00
Kim Woelders bb772b8781 config.c: Cosmetics 2017-12-30 19:26:42 +01:00
Kim Woelders cb725db9d4 Handle ".theme files"
A .theme file is really the same as the usual .etheme file (i.e.
a tarball of the theme files, compressed or not), except that .theme
files may contain themes for multiple applications.

The difference in the handling of a .theme file is only the location
where it is extracted.

A normal theme file, say FOO.etheme (or FOO.tar, FOO.tar.gz, FOO.blah),
is (normally) extracted to ~/.e16/themes/FOO/.
e16 now expects the theme files to be located in
~/.e16/themes/FOO/*.cfg or ~/.e16/themes/FOO/e16/*.cfg.

A .theme file, e.g. FOO.theme, is extracted to ~/.themes/FOO/.
e16 now expects the theme files to be located in
~/.themes/FOO/*.cfg or ~/.themes/FOO/e16/*.cfg (the first one
should probably never be used, but it's how it works).

In order to find this new theme path it is added to the default theme
search path.

Suggested by Don Harrop.
2017-12-30 19:03:20 +01:00
Kim Woelders 5ead9362a5 Correct various theme path checks 2017-12-30 18:52:54 +01:00
Kim Woelders dfdcbe273e theme.c: Add debug 2017-12-30 18:52:54 +01:00
Kim Woelders b5ad2a0256 Some refactoring in theme look-up
- Split _ThemeExtract() so it now just handles actual theme file
  extraction.
- No longer require full path name when extracting theme file.
2017-12-30 18:52:10 +01:00
Kim Woelders 11d6bbb3f4 theme.c: Cosmetics
- Rename _ThemeCheckPath() to _ThemeCheckDir() and let it return a
  "boolean".
- Change some 4096 to FILEPATH_LEN_MAX.
2017-12-30 16:41:09 +01:00
Kim Woelders e1bcf7dee4 theme.c: Mark some static functions as such 2017-12-30 16:41:09 +01:00
Kim Woelders cb3a873b97 Drop special handling of DEFAULT theme link.
e16 hasn't installed one since 3a394ad52a
(2004).
2017-12-30 16:41:00 +01:00
Kim Woelders 783e4ec79f Make Esystem() take argumments 2017-12-30 16:40:22 +01:00
Kim Woelders 6c4a143e97 Add (disabled) window/pixmap dump commnd 2017-12-17 06:39:18 +01:00
Kim Woelders e23ddddb9f Fix EDrawableDumpImage()
Same issue as previous commit when grabbing windows.
2017-12-17 06:39:04 +01:00
Kim Woelders b87e99e02e Fix magnifier pixel value display
Apparently, when using XShmGetImage to get an XImage for a window,
the image no longer includes subwindows (like when using
IncludeInferiors in GC).
When using XGetImage the XImage still includes subwindows.

Changing EImageGrabDrawable() to EImageGrabDrawableScaled() means that
we use imlib_create_scaled_image_from_drawable() instead of
imlib_create_image_from_drawable().

imlib_create_scaled_image_from_drawable() is implemented in such a way
that the drawable to be grabbed is always copied to a pixmap first.
2017-12-17 06:38:11 +01:00
Kim Woelders 00c261652e Do proper rendering of transparent icons in menus 2017-12-12 21:13:16 +01:00
maxerba e7b98aaa97 Updating danish translation 2017-11-29 12:42:14 +01:00
Kim Woelders def1f32eeb Update the restart cursor, which looked a bit dated.
By Don Harrop.
2017-11-18 22:50:45 +01:00
Kim Woelders c0aa55d156 Add new macros for themeing in 'definitions'
Provided by Don Harrop
2017-11-18 22:15:29 +01:00
Kim Woelders 47676afc1c Update po. 2017-11-18 22:15:29 +01:00
Kim Woelders 659a8b0455 Fix issue with initially shaded windows in certain cases.
At least in initially shaded SHADE_RIGHT pagers the client window would
be placed at a non-zero y offset in the container.
Not sure exactly why but this (WestGravity -> NorthWestGravity) fixes it.
The other cases got a similar treatment mostly because it seemed right.
2017-10-28 13:50:30 +02:00