sticky -> on all desktops

svn path=/trunk/kdebase/kwin/; revision=293605
This commit is contained in:
Luboš Luňák 2004-03-04 16:52:37 +00:00
parent bee30bc5b2
commit be8387b70e

View file

@ -793,7 +793,8 @@ void KDEDefaultClient::addClientButtons( const QString& s, bool isLeft )
if (!button[BtnSticky])
{
button[BtnSticky] = new KDEDefaultButton(this, "sticky",
largeButtons, isLeft, true, NULL, isOnAllDesktops()?i18n("Un-Sticky"):i18n("Sticky"));
largeButtons, isLeft, true, NULL,
isOnAllDesktops()?i18n("Not On All Desktops"):i18n("On All Desktops"));
button[BtnSticky]->turnOn( isOnAllDesktops() );
connect( button[BtnSticky], SIGNAL(clicked()),
this, SLOT(toggleOnAllDesktops()) );
@ -879,7 +880,7 @@ void KDEDefaultClient::desktopChange()
button[BtnSticky]->turnOn(on);
button[BtnSticky]->repaint(false);
QToolTip::remove( button[BtnSticky] );
QToolTip::add( button[BtnSticky], on ? i18n("Un-Sticky") : i18n("Sticky"));
QToolTip::add( button[BtnSticky], on ? i18n("Not On All Desktops") : i18n("On All Desktops"));
}
}