1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-24 07:02:30 +01:00
Files
wmaker/WindowMaker/appearance.menu.fy.in
Doug Torrance 7c89ca2551 menu: Fix broken "Save Theme" option.
This option had been broken for several reasons:
* The getstyle utility does not replace the #usergnusteppath# macro which
  was passed to it by the menu.
* When processing the USER_THEMES_DIR macro, the menu inserts a space
  afterwards, and so the directory and filename were passed to getstyle
  as two separate arguments.
* It used the old, pre-0.50.0 theme format.

By using the -p option to getstyle, we can avoid these issues, as we don't
need to specify the directory *and* it uses the 'new' (since 1999) themepack
format.
2018-05-15 19:43:25 +01:00

13 lines
480 B
Plaintext

#include "wmmacros"
Uterlik MENU
"Eftergrûn" OPEN_MENU background.menu.fy
"Stilen" OPEN_MENU -noext STYLES_DIR USER_STYLES_DIR WITH setstyle
"Tema's" OPEN_MENU -noext THEMES_DIR USER_THEMES_DIR WITH setstyle
"Ikoanesets" OPEN_MENU -noext ICON_SETS_DIR USER_ICON_SETS_DIR WITH seticons
"Ikoaneset bewarje" EXEC geticonset USER_ICON_SETS_DIR/"%a(Ikoanesetnamme)"
"Tema bewarje" EXEC getstyle -p "%a(Temanamme)"
"Foarkarrehelpmiddel" EXEC #wprefs#
Uterlik END