Cleanup superfluous.c a bit
commit6110610f5ec05cd9122d2e71aa511a7bec2991bf
authorRodolfo García Peñas (kix) <kix@kix.es>
Sat, 23 Jun 2012 09:42:26 +0000 (23 11:42 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 23 Jun 2012 10:25:37 +0000 (23 11:25 +0100)
tree8ec0cdaa228a0465dc3b24b7ac05cf1a3443ead2
parentcd7edbcc11a8b180dccdd584106c87736f9bcb3b
Cleanup superfluous.c a bit

The superfluous.[ch] files have a few minor issues, this patch addresses some of them:

- Move the defines to the top of the superfluous.c file
- Include the ifdef NORMAL_ICON_KABOOM inside the DoKaboom() function
  because the DoKaboom is used without the NORMAL_ICON_KABOOM ifdef in
  other files.
- Include the ifdef WINDOW_BIRTH_ZOOM inside the DoWindowBirth() function,
  therefore the function don't needs to be defined twice (with and whitout
  WINDOW_BIRTH_ZOOM define.
- Now the functions are defined in superfluous.h and the externs are not
  needed.
  - We need include the dock.h in the superflous.h because is used by the
    definition of MakeGhostDock().
  - We need include the superfluous.h in window.c (removing the extern)
src/superfluous.c
src/superfluous.h
src/window.c