|
|
|
@ -369,10 +369,11 @@ void tdepowersave::loadIcon(bool forceReload){
|
|
|
|
|
if ((pixmap_name_tmp != pixmap_name) || (forceReload)) {
|
|
|
|
|
pixmap_name = pixmap_name_tmp;
|
|
|
|
|
if (pixmap_name.startsWith("ERROR")) {
|
|
|
|
|
pixmap = SmallIcon("laptoppower", width(), TDEIcon::DisabledState);
|
|
|
|
|
pixmap = SmallIcon("laptoppower", isShown() ? width() : 22, TDEIcon::DisabledState);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
pixmap = SmallIcon(pixmap_name, isShown() ? width() : 22);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
pixmap = SmallIcon(pixmap_name, width());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kdDebugFuncOut(trace);
|
|
|
|
@ -443,7 +444,9 @@ void tdepowersave::drawIcon(){
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
quit:
|
|
|
|
|
if (isShown()) {
|
|
|
|
|
image = image.smoothScale(width(), height());
|
|
|
|
|
}
|
|
|
|
|
fullIcon.convertFromImage(image);
|
|
|
|
|
setPixmap(fullIcon);
|
|
|
|
|
|
|
|
|
|