From 56225bcbaa1efa0bd48465000df0db4b41fbffef Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Wed, 9 Sep 2015 15:42:56 +0300 Subject: [PATCH] Rename menu creation functions Remove the menu suffix from menu creation functions. --- src/xdgmenumaker | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/xdgmenumaker b/src/xdgmenumaker index 04b2055..fa6dd6c 100755 --- a/src/xdgmenumaker +++ b/src/xdgmenumaker @@ -176,18 +176,18 @@ def main(argv): usage() sys.exit('ERROR: You must specify the output format with -f') elif desktop == "blackbox": - blackboxmenu() + blackbox() elif desktop == "fluxbox": - fluxboxmenu() + fluxbox() elif desktop == "windowmaker": seticon = False - windowmakermenu() + windowmaker() elif desktop == "icewm": - icewmmenu() + icewm() elif desktop == "pekwm": pekwmmenu() elif desktop == "jwm": - jwmmenu() + jwm() elif desktop == "compizboxmenu": compizboxmenu() else: @@ -409,14 +409,14 @@ def category_icon(category): icon = None return icon -def blackboxmenu(): +def blackbox(): # Blackbox menus are the same as Fluxbox menus. They just don't support # icons. global seticon seticon = False - fluxboxmenu() + fluxbox() -def fluxboxmenu(): +def fluxbox(): if submenu: spacing = ' ' if seticon: @@ -460,7 +460,7 @@ def fluxboxmenu(): print('[end] # (' + applications + ')') -def windowmakermenu(): +def windowmaker(): print('"' + applications + '" MENU') for menu_category in menu(): category = menu_category.category @@ -473,7 +473,7 @@ def windowmakermenu(): print('"' + applications + '" END') -def icewmmenu(): +def icewm(): if submenu: spacing = ' ' if seticon: @@ -560,7 +560,7 @@ def pekwmmenu(): print("}") -def jwmmenu(): +def jwm(): print('') print('') if submenu: