44 |
# use some defaults for icon, dest, {x,y}pos |
# use some defaults for icon, dest, {x,y}pos |
45 |
[[ -z ${xpos} ]] && xpos=50 |
[[ -z ${xpos} ]] && xpos=50 |
46 |
[[ -z ${ypos} ]] && ypos=50 |
[[ -z ${ypos} ]] && ypos=50 |
47 |
|
# try to find an existing icon with the same name first |
48 |
|
if [[ -z ${icon} ]] |
49 |
|
then |
50 |
|
[[ -f ${GLOBAL_PIXMAPS_PATH}/${name}.png ]] && icon="${name}.png" |
51 |
|
fi |
52 |
if [[ -z ${icon} ]] |
if [[ -z ${icon} ]] |
53 |
then |
then |
54 |
# if no default icon is given use default.png |
# if no default icon is given use default.png |