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:
Sandro Giessl 2003-11-09 18:47:08 +00:00
parent 14ec262147
commit 60254757fe

View file

@ -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();
}
}