-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi Carlos,
real users don't bother about documentation, but prefer to ask for
help about the obvious on mailing lists. :D
But a related note in the NEWS file definitely liberates developers
from any responsibilities. ;)
On 02/01/2012 10:38 PM, Carlos R. Mafra wrote:
> Hm, there will probably be more people affected by this. Somehow
> we should be more verbose about this required change...perhaps a
> note in NEWS?
>
As i just checked out, the difference for the getstyle -p and -t
options are:
- -t just dumps the style information to sdtout, and if there is no
redirection into any file, it simply goes nowhere without being saved.
- -p saves the complete dumped style information as a theme package in
its own subdirectory adding a .themed suffix, storing it by default in
each users' private ~/GNUstep/Library/WindowMaker/Themes/ directory.
There are multiple possibilities to save the theme information using
getstyle with the -t option. Together with an output redirection into
a file we have possibilities like e.g. the following:
* just redirects output into the given filename:
("Save Theme", EXEC, "getstyle -t >
~/GNUstep/Library/WindowMaker/Themes/\"%a(Theme name)\""),
* redirects into a file and additionall creates a record of used theme
names in the ~/GNUstep/.AppInfo/WindowMaker/History.Themes file:
("Save Theme", EXEC, "getstyle -t >
~/GNUstep/Library/WindowMaker/Themes/\"%A(Theme name,Enter a
descriptive theme name:,Themes)\""),
I am preferring and using the latter way, as it saves formerly created
file names without adding any IMHO superfluous suffix like e.g. -p does.
In my opinion, one of the major new enhancements of WindowMaker, since
it's development was revived, was the addition of the history
mechanism for dialog entries. I have gotten used to apply this in
quite a few areas, in order to save me from having to repeatedly type
entries in dialog boxes. I have attached a file with some examples to
this mail.
Now, for something completely different, albeit still menu related:
Unfortunately, the WMaker menu system is not able to manage nested
external proplist menus as a submenu with something like this:
("Example Menu", OPEN_MENU, "~/GNUstep/Defaults/ExampleMenu"),
If you want to see the menu entries from the attached sample menu, you
have to actually insert its contents into your private
~/GNUstep/Defaults/WMRootMenu file to see its entries.
While we do have the possibility to include external menus, these
unfortunately can't be in WMaker's native proplist format. For
example, in Debian we can easily include an external generated menu in
the user's standard proplist root menu by adding such an entry into it:
(Applications, OPEN_MENU, "/etc/X11/WindowMaker/mymenu.hook"),
But, as you can see, this is in a format which is much different from
the usual proplist menu syntax:
"Submenu" MENU
"First Entry" SHEXEC progname
"Second Entry" SHEXEC progname
"Submenu" END
If i am not mistaken, the equivalent proplist format would be as follows:
(
Submenu,
("First Entry", SHEXEC "progname -options arguments"
"Second Entry", SHEXEC "progname -options arguments"
),
),
It's a pity WMaker doesn't understand its very own proplist menu
format once its entries are included via an external menu file.
Well, this is probably another issue, but it was worth mentioning it. ;)
Thanks
Paul
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQIcBAEBCAAGBQJPKltZAAoJEJO4F8lNKAobcx0P/3xngNEHwsRp9s33Ii3zft+t
Xkkja+2CQPqsnLjJbVIDD1qcB46VKgi8pqKmBnm5/lMdVNLhmZH1mrvTA4K2aTSL
as27pN7WQ9YhzruMMizNzA2DOCa0g/TYmaoi9LevuCBJxC+YaDY9nFBGa+17FZxp
kgi723OUjnat3paeYTiD8grsMe837LJxMoGpQt0Msfg/7bpKD3gQ6JM33zoZndrT
/ACQO7h+BOmfrBq84CU30uWDjtCAq1R6wNheeVB0cIDJTr/HdvJ0jFkSBnPBS2br
xnyoVGn+6nsB1uarolzGUX0dOY82arFt8TMJLvfBeiwVgujW63ebzVfGY3TOuTYZ
raesilM7n3B2RcL9cwRccOOehnuExi2MXu41nU587rpFUGx8vCTBRKO7+RLVtP6/
tC50LMfUsh+J5mJ+3LLT2wUhHIhCBA32N3LfdNKI2RmZsEUtu8UUmSULLQ7PALN6
U32NNJKD+hh9BDh+sBeYo3Uiys6n0BEsRMT894uW/nqtr4DIBkb59Tc6ZRAjod+7
Ni73efcvSMOeazI9YwYUtqiMuXk+WU+Xe0EWJpiBB4j5FnrR10NyIxijYM+Y2LdI
4mzH8lns6v5xY5rpU5qzRSAfTUJ7SdHLicX7dMtVJgLp0yGZwNhkZ2J7NqcCYbG3
I77XVynuOAJ0DM3pJopP
=SZOv
-----END PGP SIGNATURE-----
(
"Command History Samples",
(Execute..., EXEC, "%A(Execute,Type command to run,Commands)"),
(
Help,
(
"Manual page",
SHORTCUT,
"Control+F1",
SHEXEC,
"wterm -fn fixed -g 80x38 -name manual -T \"Manual Page\" +sb -e man
%A(Which Manual Page?,Enter a command name to read its manual:,manpages)"
),
(
Apropos...,
SHORTCUT,
"Control+Mod1+a",
SHEXEC,
"apropos %A(Apropos ...,Insert topic to look for:,Apropos) | gxmessage
-center -wrap -font -*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-* -title
\"Apropos search\" -buttons '' -file -"
),
(
"Debian Package Info...",
SHORTCUT,
"Control+Shift+s",
SHEXEC,
"dpkg -s %A(About Debian Package,Enter the name of the package to show
its info:,Package) | gxmessage -center -wrap -buttons '' -title \"About Debian
Package\" -file -"
),
(
"apt-cache show ...",
SHORTCUT,
"Control+Shift+a",
SHEXEC,
"apt-cache show %A(apt-cache show ...,Enter package name to show its
info:,Package) | gxmessage -center -wrap -buttons '' -title \"apt-cache show
...\" -file -"
),
(
"Debian Package Docs",
SHORTCUT,
"Control+Shift+F1",
EXEC,
"wterm +sb -fn fixed -g 118x35 -rv -name mc -e mc -x
/usr/share/doc/%A(Package Docs,Information about (or hit enter for parent
dir):,Package)"
),
(
"Debian Changelog",
SHORTCUT,
"Control+Shift+c",
SHEXEC,
"zcat /usr/share/doc/%A(Debian Changelog ...,Enter package name to show
its changelog:,Package)/changelog.Debian.gz | gxmessage -center -wrap -buttons
'' -title \"Debian Changelog\" -file -"
)
),
(
Services,
(
Run...,
SHORTCUT,
"Control+Mod1+Return",
EXEC,
"%A(Run,Type command to run,Commands)"
),
(
"Open URL",
SHORTCUT,
"Control+Mod1+u",
EXEC,
"/usr/bin/google-chrome \"%A(Open URL,Enter web link to open,URLs)\""
),
(
"Hidden Shortcuts...",
(
"Midnight Commander",
SHORTCUT,
"Control+Shift+d",
SHEXEC,
"wterm +sb -fn fixed -g 118x35 -rv -name mc -e mc -C
dhotnormal=blue,lightgray:dhotfocus=blue,cyan -x %A(Open directory, Enter the
directory to open:,Directories)"
),
(
"View file...",
EXEC,
"see %A(View file,File name with full path:,Filename)"
),
(Execute..., SHORTCUT, "Shift+Return", EXEC, gmrun),
(
StdOut,
SHORTCUT,
"Control+Mod1+i",
SHEXEC,
"%A(Command output,Enter a command,CmdOutput) | gxmessage -center -wrap
-buttons '' -title StdOut -file -"
),
(
Translation,
SHORTCUT,
"Control+F5",
SHEXEC,
"translate -n %A(Translation,Enter phrase to be translated,Translation) |
gxmessage -center -wrap -title \"Translation\" -buttons '' -file -"
),
(
Traducir,
SHORTCUT,
"Control+Shift+F5",
SHEXEC,
"lynx -nolist -dump
\"http://buscon.rae.es/draeI/SrvltGUIBusUsual?LEMA=%A(Traducir,Entre la palabra
para traducir,Traduccion)\" | gxmessage -center -wrap -title \"Traducir\"
-buttons '' -file -"
)
),
(
Preferences,
("Save Theme", EXEC, "getstyle -t >
~/GNUstep/Library/WindowMaker/Themes/\"%A(Theme name,Enter a descriptive theme
name:,Themes)\""),
(
"Save IconSet",
EXEC,
"geticonset ~/GNUstep/Library/WindowMaker/IconSets/\"%A(IconSet
name,Enter a descriptive icon set name:,IconSet)\""
)
),
),
)