George Vlahavas
5bbede96a1
Add test cases for compizboxmenu
9 years ago
George Vlahavas
189331e947
Use applications-other for the main category
Use the applications-other icon as the default for the main category in
compizboxmenu instructions.
9 years ago
George Vlahavas
83ea7c191c
Adjust spacing for compizboxmenu item entries
Add an additional level of spacing for individual menu entries when not
using icons.
9 years ago
George Vlahavas
eda148f75f
Don't use full path for the main menu item
In compizboxmenu, don't use the full path to the "applications" icon in
the main menu item. Compiz boxmenu handles that anyway.
9 years ago
George Vlahavas
56fe1a136e
Add missing parenthesis
Removed by mistake
9 years ago
George Vlahavas
2d0f807207
Revert disallowing compizboxmenu with -n
The --no-submenu option works with compizboxmenu again.
9 years ago
George Vlahavas
c56aad2f17
Edit compizboxmenu section in manpage
Fix minor stuff.
9 years ago
George Vlahavas
515d6783c6
Revert "Always set submenu to False with compizboxmenu"
This reverts commit 469bd16943
.
9 years ago
George Vlahavas
1b0be01194
Move Compiz Boxmenu section
Move the Compiz Boxmenu section towards the top, so that options are
ordered alphabetically.
9 years ago
George Vlahavas
21d2fc3c50
Update manpage for compizboxmenu
9 years ago
George Vlahavas
19768e7652
Update README for compizboxmenu
9 years ago
George Vlahavas
fe6369b379
Adjust --help message for compizboxmenu
Add info about compizboxmenu when running xdgmenumaker -h.
9 years ago
George Vlahavas
469bd16943
Always set submenu to False with compizboxmenu
Since the menu will always show up in a submenu with compizboxmenu,
there's no need to have a nested submenu in there.
9 years ago
George Vlahavas
0e6dbf10d7
Strip icon name for compizboxmenu
This fixes cases when the icon extension would be kept and the icon would
not display in the menu.
9 years ago
George Vlahavas
f1147cf644
Adjust spacing for compizboxmenu
Use spaces instead of tabs for spacing. Also add an additional level of
spacing for each item in the menu.
9 years ago
George Vlahavas
5fec940857
Add separate icon_strip function
This one just strips everything from the icon name. Getting the full
path to the icon according to the gtk theme is now separated.
9 years ago
George Vlahavas
f3b9d0e74e
Revert editing ../desktop-directories location
It won't work when xdgmenumaker is run in place for within the source tree.
9 years ago
George Vlahavas
7af24ed8bd
Merge pull request #5 from ShadowKyogre/compiz-boxmenu
Add support for Compiz Boxmenu
9 years ago
ShadowKyogre
236bae3c2b
Add instructions for Compiz Boxmenu usage
9 years ago
ShadowKyogre
f54bb5e8bf
Don't forget to escape the ampersands. Also, change ../ to
a more direct method of retrieving the desktop-directories relevant
to the source file when run in a portable manner. ../ is dependent
on the current working directory.
9 years ago
ShadowKyogre
d541067a66
Add support for Compiz Boxmenu
9 years ago
George Vlahavas
d6b4773838
Mention XDGMENUMAKERTERM in manpage
9 years ago
George Vlahavas
6aa7487bab
Add TESTS file
Add a TESTS file that explains how icon related tests will FAIL in any
other system but mine.
9 years ago
George Vlahavas
4df9fc00f2
Hardcode xterm as the default terminal for tests
Since the original menus were created with xterm set as the default
terminal emulator, make sure it is also used for testing as well.
9 years ago
George Vlahavas
7034fa1f6c
Use XDGMENUMAKERTERM var to override terminal app
Check if an XDGMENUMAKERTERM environment variable is set. If it is, set
the default terminal emulator to it. This overrides any other setting.
9 years ago
George Vlahavas
ccffdbd6db
Fix typo
9 years ago
George Vlahavas
dfd7c76ddf
Correct command syntax for blackbox/fluxbox
Replace the parentheses with braces for the menu updating commands in
the blackbox and fluxbox sections.
9 years ago
George Vlahavas
5c0761ef9b
Use better names for subsection titles
Use more descriptive names for the subsection titles in the windowmaker
section.
9 years ago
George Vlahavas
28c2170df0
Add blackbox section in README
9 years ago
George Vlahavas
f001fa0622
Add a section about blackbox in the manpage
9 years ago
George Vlahavas
aaa872aeaf
Add test file for blackbox
9 years ago
George Vlahavas
db0fb24433
Add support for Blackbox
Blackbox menus are exactly the same as Fluxbox menus. They just don't
support icons.
9 years ago
George Vlahavas
0886144d2b
Remove reduntant variable
The show variable is not needed anymore.
9 years ago
George Vlahavas
8c5f07f011
Don't process desktop entries if they won't show
If for any reason the desktop entry won't be shown (for example if
NoDisplay is set), then don't process the desktop entry any further as
there is no need to. Should make processing a tiny bit faster.
9 years ago
George Vlahavas
a2da39c7e9
Clean tests when cleaning from main dir
When running "make clean" from the main directory, also clean the
generated test files.
9 years ago
George Vlahavas
4b4b19c8df
Make it possible to specify the python executable
Use a PYTHON variable to specify which python executablet to use when
testing. Example:
make test PYTHON=/usr/bin/python
9 years ago
George Vlahavas
aa077339b7
Make the location of xdgmenumaker configurable
The xdgmenumaker executable can be anywhere set by the MM variable when
running make for testing, like:
make test MM=/usr/local/bin/xdgmenumaker
9 years ago
George Vlahavas
c11e3a92fd
Add tests
Add a test rule that is used to test the output of xdgmenumaker. Also
add a test-clean rule that cleans the files that are generated during
testing.
9 years ago
George Vlahavas
786e55bb2d
Add generated menus for testing
Use these generated menus as templates for testing.
9 years ago
George Vlahavas
f9b6c96dc0
Add collection of .desktop files for testing
Add several .desktop files that will be used for testing the creation of
menus.
9 years ago
George Vlahavas
258978281f
Read testing environment variable
Determine if an XDGMENUMAKER_TEST exists and equals "1". If it does,
read the .desktop files from the tests directory instead of reading the
standard systemwide and homedir .desktop files.
9 years ago
George Vlahavas
87110b8adf
Add uninstall rule to PHONY list
9 years ago
George Vlahavas
bf30e3aff1
Rename iterator variables
Use more descriptive names for some iterator variables. Easier to
understand the code this way.
9 years ago
George Vlahavas
202233d910
Move classes to the top, add some comments
Move the class definitions towards the top of the file and also add some
comments describing what each class does.
9 years ago
George Vlahavas
c3c0154769
Add App and MenuCategory classes
Use classes instead of clumsy lists for passing data around. Makes for
much more readable code.
9 years ago
George Vlahavas
1399f0b6d7
Refactor to use the MenuEntry class better
A more sane way to use the MenuEntry class
9 years ago
George Vlahavas
66ef18f89f
Add message about generating manpage
Show a message that informs what's being done when running "make".
9 years ago
George Vlahavas
de5fb49eb1
Better text wrapping
Keeps (almost) everything within 79 chars.
9 years ago
George Vlahavas
dd85935a78
Replace tabbed intentation with spaces
PEP8 compliance. Also add instructions for vim at the top of the file to follow these.
9 years ago
George Vlahavas
e214b54c5e
Use the print function from __future__
This should make it easier to port to python3 later
9 years ago