summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-07-08 08:53:31 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-07-08 08:53:31 -0500
commit869f7536507a0169e25fbb2b6bb8b990c0f974ab (patch)
treee32924d216073f686f48d2340e818c77ee89fe4e
parentd69942a00955a9361e3704de40d6aad8bf8633b9 (diff)
downloadadept-869f7536507a0169e25fbb2b6bb8b990c0f974ab.tar.gz
adept-869f7536507a0169e25fbb2b6bb8b990c0f974ab.zip
Further cleanup to notifier tray icon system
-rw-r--r--adept/notifier/app.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/adept/notifier/app.cpp b/adept/notifier/app.cpp
index 3abcfd2..9b9ffce 100644
--- a/adept/notifier/app.cpp
+++ b/adept/notifier/app.cpp
@@ -70,13 +70,13 @@ void TrayWindow::setAvailableUpdates( int n )
if ( m_updates == 0 ) {
if (isShown()) {
- loadSizedIcon( u8( "adept_notifier_ok" ), width() );
+ setPixmap(loadSizedIcon( u8( "adept_notifier_ok" ), width() ));
}
hide();
}
else {
show();
- loadSizedIcon( u8( "adept_notifier_warning" ), width() );
+ setPixmap(loadSizedIcon( u8( "adept_notifier_warning" ), width() ));
}
TQToolTip::remove(this);
@@ -171,7 +171,7 @@ NotifierApp::NotifierApp(bool allowStyles, bool GUIenabled)
if (m_crashes) {
ApportTrayWindow* crashApplet = new ApportTrayWindow;
- crashApplet->setPixmap( crashApplet->loadSizedIcon(u8("apport"), crashApplet->width()) );
+ crashApplet->setPixmap( crashApplet->loadIcon(u8("apport")) );
TQString crashMessage = i18n("An application has crashed on your "
"system (now or in the past).\n"
"Click to "
@@ -180,6 +180,7 @@ NotifierApp::NotifierApp(bool allowStyles, bool GUIenabled)
TQToolTip::add(crashApplet, crashMessage);
connect( crashApplet, TQT_SIGNAL(clicked()), this, TQT_SLOT(crashWatcher()) );
crashApplet->show();
+ crashApplet->setPixmap( crashApplet->loadSizedIcon(u8("apport"), crashApplet->width()) );
TQPixmap icon = BarIcon(u8("apport"));
KPassivePopup::message(i18n("Crash Handler"), crashMessage, icon, crashApplet);
}
@@ -231,12 +232,13 @@ void NotifierApp::rebootWatcher(const TQString& path) {
if (path == TQString("/var/lib/update-notifier/dpkg-run-stamp") && m_rebootRequired && !m_rebootShown) {
RebootTrayWindow* rebootApplet = new RebootTrayWindow;
- rebootApplet->setPixmap( rebootApplet->loadSizedIcon(u8("reload"), rebootApplet->width()) );
+ rebootApplet->setPixmap( rebootApplet->loadIcon(u8("reload")) );
TQString rebootMessage = i18n("In order to complete the update your system needs to be restarted.");
TQToolTip::add(rebootApplet, rebootMessage);
connect( rebootApplet, TQT_SIGNAL(clicked()), this, TQT_SLOT(rebootClicked()) );
rebootApplet->show();
+ rebootApplet->setPixmap( rebootApplet->loadSizedIcon(u8("reload"), rebootApplet->width()) );
TQPixmap icon = BarIcon(u8("reload"));
KPassivePopup::message(i18n("Reboot Required"), rebootMessage, icon, rebootApplet);
m_rebootShown = true;