summaryrefslogtreecommitdiffstats
path: root/klipper
diff options
context:
space:
mode:
Diffstat (limited to 'klipper')
-rw-r--r--klipper/toplevel.cpp7
-rw-r--r--klipper/toplevel.h4
2 files changed, 8 insertions, 3 deletions
diff --git a/klipper/toplevel.cpp b/klipper/toplevel.cpp
index 3d9067aab..ec8dec11a 100644
--- a/klipper/toplevel.cpp
+++ b/klipper/toplevel.cpp
@@ -196,7 +196,12 @@ KlipperWidget::KlipperWidget( TQWidget *parent, KConfig* config )
connect( poll, TQT_SIGNAL( clipboardChanged( bool ) ),
this, TQT_SLOT( newClipData( bool ) ) );
- m_pixmap = KSystemTray::loadSizedIcon( "klipper", width() );
+ if ( isApplet() ) {
+ m_pixmap = KSystemTray::loadIcon( "klipper" );
+ }
+ else {
+ m_pixmap = KSystemTray::loadSizedIcon( "klipper", width() );
+ }
m_iconOrigWidth = width();
m_iconOrigHeight = height();
adjustSize();
diff --git a/klipper/toplevel.h b/klipper/toplevel.h
index acb41b22a..7502e4c46 100644
--- a/klipper/toplevel.h
+++ b/klipper/toplevel.h
@@ -174,8 +174,8 @@ private:
KAction* quitAction;
TQPixmap m_pixmap;
TQPixmap m_scaledpixmap;
- int m_iconOrigWidth :0;
- int m_iconOrigHeight :0;
+ int m_iconOrigWidth;
+ int m_iconOrigHeight;
bool bPopupAtMouse :1;
bool bKeepContents :1;
bool bURLGrabber :1;