sticky -> on all desktops
svn path=/trunk/kdebase/kwin/; revision=293605
This commit is contained in:
parent
bee30bc5b2
commit
be8387b70e
1 changed files with 3 additions and 2 deletions
|
@ -793,7 +793,8 @@ void KDEDefaultClient::addClientButtons( const QString& s, bool isLeft )
|
||||||
if (!button[BtnSticky])
|
if (!button[BtnSticky])
|
||||||
{
|
{
|
||||||
button[BtnSticky] = new KDEDefaultButton(this, "sticky",
|
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() );
|
button[BtnSticky]->turnOn( isOnAllDesktops() );
|
||||||
connect( button[BtnSticky], SIGNAL(clicked()),
|
connect( button[BtnSticky], SIGNAL(clicked()),
|
||||||
this, SLOT(toggleOnAllDesktops()) );
|
this, SLOT(toggleOnAllDesktops()) );
|
||||||
|
@ -879,7 +880,7 @@ void KDEDefaultClient::desktopChange()
|
||||||
button[BtnSticky]->turnOn(on);
|
button[BtnSticky]->turnOn(on);
|
||||||
button[BtnSticky]->repaint(false);
|
button[BtnSticky]->repaint(false);
|
||||||
QToolTip::remove( button[BtnSticky] );
|
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"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue