Deprecated--

svn path=/trunk/KDE/kdebase/kmenuedit/; revision=516274
This commit is contained in:
Laurent Montel 2006-03-06 14:30:06 +00:00
parent 938178b594
commit 99f8ff81b5
7 changed files with 18 additions and 18 deletions

View file

@ -394,7 +394,7 @@ bool Workspace::activateNextClient( Client* c )
{
if( c == active_client )
setActiveClient( NULL, Allowed );
should_get_focus.remove( c );
should_get_focus.removeAll( c );
}
if( focusChangeEnabled())
{
@ -577,11 +577,11 @@ void Workspace::clientAttentionChanged( Client* c, bool set )
{
if( set )
{
attention_chain.remove( c );
attention_chain.removeAll( c );
attention_chain.prepend( c );
}
else
attention_chain.remove( c );
attention_chain.removeAll( c );
}
// This is used when a client should be shown active immediately after requestFocus(),

View file

@ -242,7 +242,7 @@ static int edit( Window wid, bool whole_app )
Rules* edited_rule = dlg.edit( orig_rule, wid, true );
if( edited_rule == NULL || edited_rule->isEmpty())
{
rules.remove( orig_rule );
rules.removeAll( orig_rule );
delete orig_rule;
if( orig_rule != edited_rule )
delete edited_rule;

View file

@ -261,7 +261,7 @@ void Workspace::lowerClient( Client* c )
StackingUpdatesBlocker blocker( this );
unconstrained_stacking_order.remove( c );
unconstrained_stacking_order.removeAll( c );
unconstrained_stacking_order.prepend( c );
if( c->isTransient())
{
@ -288,7 +288,7 @@ void Workspace::lowerClientWithinApplication( Client* c )
StackingUpdatesBlocker blocker( this );
unconstrained_stacking_order.remove( c );
unconstrained_stacking_order.removeAll( c );
bool lowered = false;
// first try to put it below the bottom-most window of the application
for( ClientList::Iterator it = unconstrained_stacking_order.begin();
@ -325,7 +325,7 @@ void Workspace::raiseClient( Client* c )
raiseClient( *it );
}
unconstrained_stacking_order.remove( c );
unconstrained_stacking_order.removeAll( c );
unconstrained_stacking_order.append( c );
if( !c->isSpecialWindow())
@ -354,7 +354,7 @@ void Workspace::raiseClientWithinApplication( Client* c )
return;
if( Client::belongToSameApplication( unconstrained_stacking_order.at( i ), c ))
{
unconstrained_stacking_order.remove( c );
unconstrained_stacking_order.removeAll( c );
unconstrained_stacking_order.insert( ++i, c ); // insert after the found one
return;
}
@ -404,7 +404,7 @@ void Workspace::restackClientUnderActive( Client* c )
{
if( *it != c )
{
unconstrained_stacking_order.remove( c );
unconstrained_stacking_order.removeAll( c );
unconstrained_stacking_order.insert( it, c );
}
break;
@ -418,7 +418,7 @@ void Workspace::restackClientUnderActive( Client* c )
if( c->wantsTabFocus() && c->isOnDesktop( desktop ) && focus_chain[ desktop ].contains( active_client ))
{
// also put in focus_chain[currentDesktop()] after all windows belonging to the active applicationa
focus_chain[ desktop ].remove( c );
focus_chain[ desktop ].removeAll( c );
for ( int i = focus_chain[ desktop ].size() - 1;
i >= 0;
--i )
@ -586,7 +586,7 @@ ClientList Workspace::ensureStackingOrder( const ClientList& list ) const
for( ClientList::ConstIterator it = stacking_order.begin();
it != stacking_order.end();
++it )
if( result.remove( *it ) != 0 )
if( result.removeAll( *it ) != 0 )
result.append( *it );
return result;
}

View file

@ -68,7 +68,7 @@ void KDecorationFactory::addDecoration( KDecoration* deco )
void KDecorationFactory::removeDecoration( KDecoration* deco )
{
_decorations.remove( deco );
_decorations.removeAll( deco );
}
void KDecorationFactory::resetDecorations( unsigned long changed )

6
sm.cpp
View file

@ -215,7 +215,7 @@ SessionInfo* Workspace::takeSessionInfo( Client* c )
{
if ( info->windowRole == windowRole )
realInfo = info;
session.remove(info);
session.removeAll(info);
}
else
{
@ -223,7 +223,7 @@ SessionInfo* Workspace::takeSessionInfo( Client* c )
info->resourceName == resourceName &&
info->resourceClass == resourceClass )
realInfo = info;
session.remove(info);
session.removeAll(info);
}
}
}
@ -239,7 +239,7 @@ SessionInfo* Workspace::takeSessionInfo( Client* c )
sessionInfoWindowTypeMatch( c, info ))
if ( wmCommand.isEmpty() || info->wmCommand == wmCommand ) {
realInfo = info;
session.remove( info );
session.removeAll( info );
}
}
}

View file

@ -100,7 +100,7 @@ void TabBox::createClientList(ClientList &list, int desktop /*-1 = all*/, Client
{
if ( start == c )
{
list.remove( c );
list.removeAll( c );
list.prepend( c );
}
else
@ -187,7 +187,7 @@ void TabBox::reset()
// how many clients to remove
int howMany = (h - (r.height()-(2*frameWidth())))/lineHeight;
for (; howMany; howMany--)
clients.remove(clients.last());
clients.removeAll(clients.last());
h = clients.count() * lineHeight;
}

View file

@ -702,7 +702,7 @@ inline void Workspace::addGroup( Group* group, allowed_t )
inline void Workspace::removeGroup( Group* group, allowed_t )
{
groups.remove( group );
groups.removeAll( group );
}
inline const ClientList& Workspace::stackingOrder() const