summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-12 17:49:01 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-12 17:49:01 -0500
commit62b1572453a5c3bd02a9bb9564a9cdb4326b4bce (patch)
tree4fffc52a2c7b7efd1c8b71a035f09033d400169a
parentdf3daedcec584550fefe0e823fdb39863545ca9e (diff)
downloadkshutdown-62b15724.tar.gz
kshutdown-62b15724.zip
Bring stop, lock, exit, and run icons into XDG compliance
-rw-r--r--kshutdown/actions.cpp4
-rw-r--r--kshutdown/links.cpp8
-rw-r--r--kshutdown/msystemtray.cpp6
-rw-r--r--kshutdownlockout/lockout.cpp8
4 files changed, 13 insertions, 13 deletions
diff --git a/kshutdown/actions.cpp b/kshutdown/actions.cpp
index 53f41a8..da414de 100644
--- a/kshutdown/actions.cpp
+++ b/kshutdown/actions.cpp
@@ -227,9 +227,9 @@ TQString Action::getIconName(const Type action) const
{
switch (action)
{
- case ShutDown: return "exit";
+ case ShutDown: return "system-log-out";
case Reboot: return "reload";
- case LockScreen: return "lock";
+ case LockScreen: return "system-lock-screen";
case Logout: return "undo";
case Extras: return "bookmark";
case Nothing:
diff --git a/kshutdown/links.cpp b/kshutdown/links.cpp
index 930ee06..b88d0d5 100644
--- a/kshutdown/links.cpp
+++ b/kshutdown/links.cpp
@@ -66,7 +66,7 @@ Links::Links(TQWidget *parent)
cb_type->insertItem(kapp->miniIcon(), "KShutDown");
// NOTE: slotAddRemoveLink()
- cb_type->insertItem(SmallIcon("exit"), i18n("Standard Logout Dialog"));
+ cb_type->insertItem(SmallIcon("system-log-out"), i18n("Standard Logout Dialog"));
cb_type->insertItem(ks_actions->getIcon(Action::ShutDown), ks_actions->getName(Action::ShutDown));
cb_type->insertItem(ks_actions->getIcon(Action::Reboot), ks_actions->getName(Action::Reboot));
@@ -166,11 +166,11 @@ TQString Links::getCurrentTypeIcon() const
switch (cb_type->currentItem())
{
case 0: return "kshutdown";
- case 1: return "exit";
+ case 1: return "system-log-out";
// sync. with Action::getIcon
- case 2: return "exit";
+ case 2: return "system-log-out";
case 3: return "reload";
- case 4: return "lock";
+ case 4: return "system-lock-screen";
case 5: return "undo";
default: return TQString::null;
}
diff --git a/kshutdown/msystemtray.cpp b/kshutdown/msystemtray.cpp
index e97eb2f..7307611 100644
--- a/kshutdown/msystemtray.cpp
+++ b/kshutdown/msystemtray.cpp
@@ -134,7 +134,7 @@ MSystemTray::MSystemTray()
_flashCount(0),
_saveIcon(0)
{
- setPixmap(SmallIcon("exit", TDEIcon::SizeSmallMedium)); // 22x22
+ setPixmap(SmallIcon("system-log-out", TDEIcon::SizeSmallMedium)); // 22x22
// TODO: 2.0: mouse wheel: decrease/increase end time by 5min. (?)
@@ -147,7 +147,7 @@ MSystemTray::MSystemTray()
connect(_flashTimer, SIGNAL(timeout()), SLOT(slotFlashTimeout()));
// init icons
- KPixmap pm(SmallIcon("exit", TDEIcon::SizeSmallMedium));
+ KPixmap pm(SmallIcon("system-log-out", TDEIcon::SizeSmallMedium));
_flashIcon = new KPixmap(KPixmapEffect::fade(pm, 0.7f, white));
show();
@@ -194,7 +194,7 @@ void MSystemTray::slotFade()
_fadeValue = 0.0f;
}
}
- KPixmap p(SmallIcon("exit", TDEIcon::SizeSmallMedium));
+ KPixmap p(SmallIcon("system-log-out", TDEIcon::SizeSmallMedium));
setPixmap(KPixmapEffect::fade(p, _fadeValue, KS_TRAY_FADE_COLOR));
}
diff --git a/kshutdownlockout/lockout.cpp b/kshutdownlockout/lockout.cpp
index 201ecd7..b4e1e84 100644
--- a/kshutdownlockout/lockout.cpp
+++ b/kshutdownlockout/lockout.cpp
@@ -95,7 +95,7 @@ Lockout::Lockout(const TQString& configFile, TQWidget *parent)
TQToolButton *button = new TQToolButton(this);
button->setAutoRaise(true);
button->setBackgroundMode(X11ParentRelative);
- button->setPixmap(SmallIcon("exit"));
+ button->setPixmap(SmallIcon("system-log-out"));
button->setPopupDelay(100);
button->setMinimumSize(button->pixmap()->size());
button->setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding));
@@ -162,7 +162,7 @@ void Lockout::initActions() {
TDEActionCollection *ac_shutDown = new TDEActionCollection(this, this);
_lockScreenAction = new TDEAction(
- i18n("Lock Screen"), "lock", TDEShortcut(),
+ i18n("Lock Screen"), "system-lock-screen", TDEShortcut(),
this, SLOT(slotLockScreen()),
ac_shutDown, "kshutdown_lockscreen"
);
@@ -180,7 +180,7 @@ void Lockout::initActions() {
);
_shutDownAction = new TDEAction(
- i18n("Turn Off Computer"), "exit", TDEShortcut(),
+ i18n("Turn Off Computer"), "system-log-out", TDEShortcut(),
this, SLOT(slotShutDown()),
ac_shutDown, "kshutdown_shutdown"
);
@@ -212,7 +212,7 @@ void Lockout::slotConfigureKShutDown() {
void Lockout::slotIconChanged() {
// FIXME: 2.0: update action icons
- setIcon(SmallIcon("exit"));
+ setIcon(SmallIcon("system-log-out"));
}
void Lockout::slotLockScreen() {