[atlantik-cvs] CVS: kdegames/atlantik/client atlantik.cpp,1.139,1.140 selectgame_widget.cpp,1.26,1.27

[email protected]
Newsgroups gmane.comp.kde.devel.atlantik
Message-ID <[email protected]>
Update of /home/kde/kdegames/atlantik/client
In directory office:/tmp/cvs-serv22547

Modified Files:
	atlantik.cpp selectgame_widget.cpp 
Log Message:
fix #54499, thanks for the patch erik

Index: atlantik.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/atlantik.cpp,v
retrieving revision 1.139
retrieving revision 1.140
diff -u -d -r1.139 -r1.140
--- atlantik.cpp	8 Feb 2003 15:36:02 -0000	1.139
+++ atlantik.cpp	25 Feb 2003 02:49:48 -0000	1.140
@@ -24,6 +24,7 @@
 #include <kcmdlineargs.h>
 #include <kconfig.h>
 #include <klocale.h>
+#include <knotifyclient.h>
 #include <kstdgameaction.h>
 #include <kstdaction.h>
 #include <ktoolbar.h>
@@ -181,6 +182,8 @@
 
 	connect(player, SIGNAL(changed(Player *)), this, SLOT(playerChanged(Player *)));
 	connect(player, SIGNAL(changed(Player *)), m_board, SLOT(playerChanged(Player *)));
+
+	KNotifyClient::event("newplayer");
 }
 
 void Atlantik::newEstate(Estate *estate)
@@ -505,6 +508,7 @@
 void Atlantik::slotMsgChat(QString player, QString msg)
 {
 	serverMsgsAppend(player + ": " + msg);
+	KNotifyClient::event("chat");
 }
 
 void Atlantik::serverMsgsAppend(QString msg)

Index: selectgame_widget.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/selectgame_widget.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- selectgame_widget.cpp	24 Feb 2003 21:16:46 -0000	1.26
+++ selectgame_widget.cpp	25 Feb 2003 02:49:48 -0000	1.27
@@ -21,6 +21,7 @@
 #include <kdialog.h>
 #include <klocale.h>
 #include <kiconloader.h>
+#include <knotifyclient.h>
 
 #include "selectgame_widget.moc"
 
@@ -93,6 +94,7 @@
 		QListViewItem *item = new QListViewItem(m_gameList, i18n("Join %1 Game #%2").arg(name).arg(gameId), description, gameId, players, gameType);
 		item->setPixmap(0, QPixmap(SmallIcon("atlantik")));
 		item->setEnabled(canBeJoined);
+		KNotifyClient::event("newgame");
 	}
 
 	validateConnectButton();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.