From 305331deca7bb486989b9fa2a26eeb56d7a1338b Mon Sep 17 00:00:00 2001 From: Ilya Konstantinov Date: Fri, 8 Mar 2002 07:14:30 +0000 Subject: [PATCH] Use the new DCOP signals API. svn path=/trunk/kdebase/kwin/; revision=141700 --- KWinInterface.h | 4 ++++ workspace.cpp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/KWinInterface.h b/KWinInterface.h index 99bed0094d..5410b4e8c7 100644 --- a/KWinInterface.h +++ b/KWinInterface.h @@ -22,6 +22,10 @@ class KWinInterface : virtual public DCOPObject virtual void nextDesktop() = 0; virtual void previousDesktop() = 0; virtual void circulateDesktopApplications() = 0; + + k_dcop_signals: + + virtual void dcopResetAllClients(); }; #endif diff --git a/workspace.cpp b/workspace.cpp index 3fb7fd87e0..dddedff164 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -3597,9 +3597,9 @@ void Workspace::slotResetAllClients() else focusToNull(); - // Add a dcop signal to allow other apps to know when the kwin client + // Emit a DCOP signal to allow other apps to know when the kwin client // has been changed by via the titlebar decoration selection. - kapp->dcopClient()->emitDCOPSignal("dcopResetAllClients()", QByteArray() ); + emit dcopResetAllClients(); } void Workspace::slotSettingsChanged(int category)