Browse Source

Add whitespace

Makes it easier to tell functions apart.
pull/6/head
George Vlahavas 8 years ago
parent
commit
67a173aa34
  1. 5
      src/xdgmenumaker

5
src/xdgmenumaker

@ -268,6 +268,7 @@ def icon_strip(icon):
icon = icon.replace('.xpm', '') icon = icon.replace('.xpm', '')
return icon return icon
def icon_max_size(icon): def icon_max_size(icon):
# Checks if the icon size is bigger than the requested size and discards # Checks if the icon size is bigger than the requested size and discards
# the icon if it is, only allowing sizes smaller or equal to the requested # the icon if it is, only allowing sizes smaller or equal to the requested
@ -282,6 +283,7 @@ def icon_max_size(icon):
else: else:
return None return None
def icon_full_path(icon): def icon_full_path(icon):
# If the icon path is absolute and exists, leave it alone. # If the icon path is absolute and exists, leave it alone.
# This takes care of software that has its own icons stored # This takes care of software that has its own icons stored
@ -301,6 +303,7 @@ def icon_full_path(icon):
icon = icon_max_size(icon) icon = icon_max_size(icon)
return icon return icon
def get_entry_info(desktopfile, ico_paths=True): def get_entry_info(desktopfile, ico_paths=True):
de = dentry.DesktopEntry(filename=desktopfile) de = dentry.DesktopEntry(filename=desktopfile)
@ -523,6 +526,7 @@ def fluxbox():
if submenu: if submenu:
print('[end] # ({})'.format(apps_name)) print('[end] # ({})'.format(apps_name))
def fvwm(): def fvwm():
if submenu: if submenu:
print('DestroyMenu "xdgmenu"') print('DestroyMenu "xdgmenu"')
@ -579,6 +583,7 @@ def fvwm():
i=icon)) i=icon))
print() print()
def windowmaker(): def windowmaker():
print('"{}" MENU'.format(apps_name)) print('"{}" MENU'.format(apps_name))
for menu_category in menu(): for menu_category in menu():

Loading…
Cancel
Save