Removed unused code in makeTitledIcon

This patch removes the unused code in the function makeTitledIcon().

The arguments are not used, so are removed to avoid compiler warnings.
Arguments not used in SetButtonAlphaImage

The arguments for SetButtonAlphaImage() are not used, so can be removed to
avoid compiler warnings.

This patch removes these arguments, so the code in SetButtonAlphaImage(), not
used, can be removed too.
GetWindow function, argument not used

The argument "panel" in the function GetWindow() is not used.
This patch removes this argument to avoid compiler warnings.
createPanel variable initialization

This patch initialize the variable "state" to avoid compiler warnings.