New function set_icon_image_from_database
commit97d7c32184724cde799b14c1f3ddc7dab651d1f3
authorRodolfo García Peñas (kix) <kix@kix.es>
Tue, 22 Jan 2013 20:18:14 +0000 (22 21:18 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 22 Jan 2013 21:46:39 +0000 (22 21:46 +0000)
tree94a138db53aa3a3971dcc8375efa846336631910
parentd7fe9a5bcd9e4f1946692f5c9c9fd4de0fac5a31
New function set_icon_image_from_database

The new function set_icon_image_from_database() removes the dup code
from these functions:

icon.c:icon_create_for_dock()
icon.c:icon_create_for_wwindow()
appicon.c:removeAppIconFor()

The only different change is that in the functions icon_create_for_dock()
and icon_create_for_wwindow(), the icon->tile_type assignment is done
before set the icon image filename and icon image, but this variable
is not used in these functions (is used in wIconUpdate function) but in both
functions the icon->tile_type assignment is done before wIconUpdate(), like
the code previous to this patch, so there is no problem moving icon->tile_type.
src/appicon.c
src/icon.c
src/icon.h