BUG: Duplicated titlebar button destroy

This patch removes the duplicated call to destroy_framewin_buttons(),
because the buttons are removed previously in titlebar_destroy().

This patch solves a bug included in awmaker in the patch:
1e61add94ef633997ab48aef76fbe4978ec1190
FWA: wFrameWindowDestroy calls titlebar_destroy
Change the icon file name variable

This patch changes the icon file name from "file" to "file_name".
IA: New function map_icon_image

The new function map_icon_image draw the image on the screen.

The function set_icon_image_from_database() don't use the WScreen now.
IA: New icon_for_wwindow_map function

The function icon_create_for_wwwindow is renamed to icon_for_wwindow_create
and the mapping functions are moved to the new function icon_for_wwindow_map.

Now, the function icon_for_wwindow_create creates the window struct without
the WScreen and without painting nothing on the screen.
IA: Appicon creation set the icon file name

This patch moves the icon file name search to the appicon creation function.
IA: Main icon creation set the icon file name

This patch moves the icon file name search to the main icon (Dock, Clip,
Drawer) creation functions.
removeAppIconFor code style

This patch removes a curly bracket and adds an empty line.
IA: New function wAppIcon_map

This patch creates the new function wAppIcon_map, using the code in the
function wAppIconCreate. Now, wAppIconCreate don't map objects on the
screen.

The function wAppIconCreate is renamed to wAppIcon_create.
create_appicon_from_dock removed argument

This patch removes the Window argument in the function
create_appicon_from_dock.
New helper function move_to_dock

This is the helper function for the temporal icon creation and move it to
the dock/clip/drawer.
wDockTrackWindowLaunch style change

This patch changes, in the function wDockTrackWindowLaunch, this "if":

 if ((icon->wm_instance || icon->wm_class)
     && (icon->launching || !icon->running)) {

to:

 if (!icon->wm_instance && !icon->wm_class)
    continue;
 if (!icon->launching && icon->running)
    continue;

The other changes only removes some tabs.
Remove function icon_for_wwindow_create

This patch removes the function icon_for_wwindow_create. The code is
moved to the functions where the function was used.

The icon creation calls are used in the right functions, in the
appicon.c and actions.c
dock_icon_create_core includes the icon set

This patch moves the icon creation to the function dock_icon_create_core.

Now, the function dock_icon_create_core creates the icon creation, and now
set the command, class and instance in the function. Finally, set the icon
image from the database.
dock_icon_create_core renamed to dock_icon_create

This patch only changes the function name dock_icon_create_core
to dock_icon_create.
New function dock_icon_create_core

The function dock_icon_create_core includes the icon creation. Moves
the code from dock_icon_create.

Now, the function dock_icon_create only creates the icon and then
add it to the icon list.

This patch is created because we can use this function in the function
wAppIcon_create function, that do the same, but without incluce the icon
in the icon list. A in next patches.
wAppIcon_create calls dock_icon_create_core

This patch now creates the icon using dock_icon_create_core.