Changed handling of quoted strings in the menu parser for consistency
commit5a3cab3cef8c98bc8de55b29e0d28b20d0baf293
authorChristophe CURIS <christophe.curis@free.fr>
Wed, 14 Nov 2012 21:05:35 +0000 (14 22:05 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Thu, 15 Nov 2012 12:37:16 +0000 (15 12:37 +0000)
treea211a4c21f2a950ace1ebe76726ea8ee4e207b93
parent2eb1107e20f889ef88f0055b8544b950dd5024a5
Changed handling of quoted strings in the menu parser for consistency

As reported by Amadeusz Sławiński, the support for (d)quoted string
in the menu file was not exactly the same as in previous versions
of WindowMaker, so we had a regression which is not acceptable.

This patch propose a consistent handling for (d)quoted text instead
of the previous on-the-title-only code; now all (d)quoted strings
are still kept as-is (as expected) but the (d)quotes are always
removed.
As a side note, it also improve the support for \escaped character
to work correctly as mentioned in the example of the default menu.

Note: This reverts b2e7620868aa18cebb8f6d1e653f8c46dc959a34 which
was an incomplete solution to the problem.
WINGs/menuparser.c
WINGs/menuparser.h
WINGs/menuparser_macros.c