winspector.c: Full clean patch
commit99e5a7a9eb7769f821d0f0c0d419bba31bf6bf45
authorRodolfo García Peñas (kix) <kix@kix.es>
Sun, 25 Nov 2012 20:44:36 +0000 (25 21:44 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Thu, 29 Nov 2012 09:27:30 +0000 (29 09:27 +0000)
treef5230f21c21a6faf1c5b8e85895c8a141d36915a
parentbf2f9421388a56f804b7912de137fb12d062f106
winspector.c: Full clean patch

This patch sets a correct style on winspector.c. It removes some
empty lines, moves variable definitions to the function heads,
moves preprocessor definitions to the top of the file and removes
some extra curly brackets.

The function to create the winspector panel is so big, and is hard
to understand it. This patch split the function createInspectorForWindow
in some extra functions:

create_tab_window_attributes
create_tab_window_advanced
create_tab_icon_workspace
create_tab_app_specific

This functions don't do nothing extra, only the code is moved to them.
src/defaults.c
src/winspector.c