[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kicker/applets/minipager
From: Simon Hausmann <hausmann () kde ! org>
Date: 2004-04-03 7:22:41
Message-ID: 20040403072241.BE78A99D6 () office ! kde ! org
[Download RAW message or body]
CVS commit by hausmann:
- cleanup
M +2 -9 pagerapplet.cpp 1.100
--- kdebase/kicker/applets/minipager/pagerapplet.cpp #1.99:1.100
@@ -32,5 +32,5 @@ CONNECTION WITH THE SOFTWARE OR THE USE
#include <qbitmap.h>
-#include <dcopclient.h>
+#include <dcopref.h>
#include <kconfig.h>
@@ -487,12 +487,5 @@ void KMiniPager::resizeEvent(QResizeEven
void KMiniPager::wheelEvent( QWheelEvent* e )
{
- QByteArray data;
- QDataStream data_str(data, IO_WriteOnly);
- data_str << e->delta();
- DCOPClient* client = kapp->dcopClient();
- if(!client->isAttached())
- client->attach();
-
- client->send("kdesktop", "KDesktopIface", "switchDesktops(int)", data);
+ DCOPRef("kdesktop", "KDesktopIface").send("switchDesktops", e->delta());
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic