Fix #67681: "Plastik style often displays incorrect maximize button"
CCMAIL: 67681-done@bugs.kde.org svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=265849
This commit is contained in:
parent
14ec262147
commit
60254757fe
1 changed files with 7 additions and 10 deletions
|
@ -720,7 +720,13 @@ void PlastikClient::maximizeChange()
|
|||
{
|
||||
if (!PlastikHandler::initialized()) return;
|
||||
|
||||
|
||||
if( m_button[MaxButton] ) {
|
||||
m_button[MaxButton]->setMaximized( maximizeMode()!=MaximizeRestore);
|
||||
m_button[MaxButton]->setTipText( (maximizeMode()==MaximizeRestore) ?
|
||||
i18n("Maximize")
|
||||
: i18n("Restore"));
|
||||
m_button[MaxButton]->setDeco(); // update the button icon...
|
||||
}
|
||||
}
|
||||
|
||||
void PlastikClient::desktopChange()
|
||||
|
@ -742,22 +748,13 @@ void PlastikClient::slotMaximize()
|
|||
{
|
||||
case MidButton:
|
||||
maximize(maximizeMode() ^ MaximizeVertical );
|
||||
maximizeChange();
|
||||
break;
|
||||
case RightButton:
|
||||
maximize(maximizeMode() ^ MaximizeHorizontal );
|
||||
maximizeChange();
|
||||
break;
|
||||
default:
|
||||
maximize(maximizeMode() == MaximizeFull ? MaximizeRestore : MaximizeFull );
|
||||
maximizeChange();
|
||||
}
|
||||
|
||||
m_button[MaxButton]->setMaximized( maximizeMode()!=MaximizeRestore);
|
||||
m_button[MaxButton]->setTipText( (maximizeMode()==MaximizeRestore) ?
|
||||
i18n("Maximize")
|
||||
: i18n("Restore"));
|
||||
m_button[MaxButton]->setDeco(); // update the button icon...
|
||||
doShape();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue