From dd0ee8f1e08fff1a36a153c2bf99dc2e76aa5234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 6 Apr 2009 11:53:58 +0000 Subject: [PATCH] Use a custom notification for not supported effects instead of a generic notification. svn path=/trunk/KDE/kdebase/workspace/; revision=949998 --- kcmkwin/kwincompositing/main.cpp | 2 +- kwin.notifyrc | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/kcmkwin/kwincompositing/main.cpp b/kcmkwin/kwincompositing/main.cpp index a321425c22..9df80d0309 100644 --- a/kcmkwin/kwincompositing/main.cpp +++ b/kcmkwin/kwincompositing/main.cpp @@ -647,7 +647,7 @@ void KWinCompositingConfig::configChanged(bool reinitCompositing) message.append( "" ); } message.append( "" ); - KNotification::event( KNotification::Notification, message ); + KNotification::event( "effectsnotsupported", message, QPixmap(), NULL, KNotification::CloseOnTimeout, KComponentData( "kwin" ) ); } } diff --git a/kwin.notifyrc b/kwin.notifyrc index 829ca91da6..20182bc504 100644 --- a/kwin.notifyrc +++ b/kwin.notifyrc @@ -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