TilingLayoutFactory now uses KWin::Notify for notifications rather than directly accessing KNotification

svn path=/trunk/KDE/kdebase/workspace/; revision=1123120
icc-effect-5.14.5
Nikhil Marathe 2010-05-05 11:24:10 +00:00
parent cffa88acb1
commit f8b40559d6
3 changed files with 7 additions and 4 deletions

View File

@ -106,6 +106,9 @@ bool Notify::raise( Event e, const QString& message, Client* c )
case CompositingSuspendedDbus: case CompositingSuspendedDbus:
event = "compositingsuspendeddbus"; event = "compositingsuspendeddbus";
break; break;
case TilingLayoutChanged:
event = "tilinglayoutchanged";
break;
default: default:
if ((e > DesktopChange) && (e <= DesktopChange+20)) if ((e > DesktopChange) && (e <= DesktopChange+20))
{ {

View File

@ -60,6 +60,7 @@ class Notify
DemandAttentionOther, DemandAttentionOther,
CompositingSlow, CompositingSlow,
CompositingSuspendedDbus, CompositingSuspendedDbus,
TilingLayoutChanged,
DesktopChange = 100 DesktopChange = 100
}; };

View File

@ -22,10 +22,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QtGlobal> #include <QtGlobal>
#include <QList> #include <QList>
#include <knotification.h>
#include <klocale.h> #include <klocale.h>
#include <kdebug.h> #include <kdebug.h>
#include "notifications.h"
#include "tile.h" #include "tile.h"
#include "client.h" #include "client.h"
@ -39,9 +39,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
kDebug(1212) << #lay;\ kDebug(1212) << #lay;\
layout = new lay( w );\ layout = new lay( w );\
layout->setLayoutType( lay##L );\ layout->setLayoutType( lay##L );\
KNotification::event( "tilinglayoutchanged", \ Notify::raise( Notify::TilingLayoutChanged, \
i18n( "Layout changed to %1", i18n(#lay) ),\ i18n( "Layout changed to %1", i18n(#lay) ) ); \
QPixmap(), NULL, KNotification::CloseOnTimeout, KComponentData( "kwin" ) );\
break break
namespace KWin namespace KWin