Use a custom notification for not supported effects instead of a generic notification.

svn path=/trunk/KDE/kdebase/workspace/; revision=949998
This commit is contained in:
Martin Gräßlin 2009-04-06 11:53:58 +00:00
parent 253793dfff
commit dd0ee8f1e0
2 changed files with 6 additions and 1 deletions

View file

@ -647,7 +647,7 @@ void KWinCompositingConfig::configChanged(bool reinitCompositing)
message.append( "</li>" );
}
message.append( "</ul>" );
KNotification::event( KNotification::Notification, message );
KNotification::event( "effectsnotsupported", message, QPixmap(), NULL, KNotification::CloseOnTimeout, KComponentData( "kwin" ) );
}
}

View file

@ -6118,3 +6118,8 @@ Action=Popup
Name=Compositing has been suspended
Comment=Another application has requested to suspend compositing
Action=Popup
[Event/effectsnotsupported]
Name=Effects not supported
Comment=Some effects are not supported by backend or hardware
Action=Popup