TilingLayoutFactory now uses KWin::Notify for notifications rather than directly accessing KNotification
svn path=/trunk/KDE/kdebase/workspace/; revision=1123120
This commit is contained in:
parent
cffa88acb1
commit
f8b40559d6
3 changed files with 7 additions and 4 deletions
|
@ -106,6 +106,9 @@ bool Notify::raise( Event e, const QString& message, Client* c )
|
|||
case CompositingSuspendedDbus:
|
||||
event = "compositingsuspendeddbus";
|
||||
break;
|
||||
case TilingLayoutChanged:
|
||||
event = "tilinglayoutchanged";
|
||||
break;
|
||||
default:
|
||||
if ((e > DesktopChange) && (e <= DesktopChange+20))
|
||||
{
|
||||
|
|
|
@ -60,6 +60,7 @@ class Notify
|
|||
DemandAttentionOther,
|
||||
CompositingSlow,
|
||||
CompositingSuspendedDbus,
|
||||
TilingLayoutChanged,
|
||||
DesktopChange = 100
|
||||
};
|
||||
|
||||
|
|
|
@ -22,10 +22,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
#include <QtGlobal>
|
||||
#include <QList>
|
||||
#include <knotification.h>
|
||||
#include <klocale.h>
|
||||
#include <kdebug.h>
|
||||
|
||||
#include "notifications.h"
|
||||
#include "tile.h"
|
||||
#include "client.h"
|
||||
|
||||
|
@ -39,9 +39,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
kDebug(1212) << #lay;\
|
||||
layout = new lay( w );\
|
||||
layout->setLayoutType( lay##L );\
|
||||
KNotification::event( "tilinglayoutchanged", \
|
||||
i18n( "Layout changed to %1", i18n(#lay) ),\
|
||||
QPixmap(), NULL, KNotification::CloseOnTimeout, KComponentData( "kwin" ) );\
|
||||
Notify::raise( Notify::TilingLayoutChanged, \
|
||||
i18n( "Layout changed to %1", i18n(#lay) ) ); \
|
||||
break
|
||||
|
||||
namespace KWin
|
||||
|
|
Loading…
Reference in a new issue