|
|
|
@ -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() {
|
|
|
|
|