summaryrefslogtreecommitdiffstats
path: root/src/customtraylabel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/customtraylabel.cpp')
-rw-r--r--src/customtraylabel.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/customtraylabel.cpp b/src/customtraylabel.cpp
index 83b89ea..a657a89 100644
--- a/src/customtraylabel.cpp
+++ b/src/customtraylabel.cpp
@@ -56,8 +56,9 @@ CustomTrayLabel::CustomTrayLabel(const TQStringList& argv, pid_t pid,
*/
void CustomTrayLabel::installMenu()
{
- TQPixmap kdocker_png(TDEGlobal::iconLoader()->loadIcon("kdocker", TDEIcon::NoGroup, TDEIcon::SizeSmall));
- setIcon(kdocker_png);
+ //TQPixmap kdocker_png(TDEGlobal::iconLoader()->loadIcon("kdocker", TDEIcon::NoGroup, TDEIcon::SizeSmall));
+ TQPixmap *kdocker_png = new TQPixmap("kdocker");
+ setIcon(*kdocker_png);
TrayLabelMgr *tlMgr = TrayLabelMgr::instance();
mOptionsMenu = new TQPopupMenu(this);
@@ -105,7 +106,7 @@ void CustomTrayLabel::installMenu()
mSkipTaskbar->addTo(mOptionsMenu);
mMainMenu = new TQPopupMenu(this);
- mMainMenu->insertItem(TQIconSet(kdocker_png),
+ mMainMenu->insertItem(TQIconSet(*kdocker_png),
i18n("About KDocker"), tlMgr, SLOT(about()));
mMainMenu->insertSeparator();
mMainMenu->insertItem(i18n("Options"), mOptionsMenu);