rpms/kdenetwork/F-11 kdenetwork-4.3.0-fix-bonjour.patch, NONE, 1.1 kdenetwork-4.3.1-kde#162493.patch, NONE, 1.1

Rex Dieter rdieter at fedoraproject.org
Mon Sep 14 14:57:54 UTC 2009


Author: rdieter

Update of /cvs/pkgs/rpms/kdenetwork/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12203

Added Files:
	kdenetwork-4.3.0-fix-bonjour.patch 
	kdenetwork-4.3.1-kde#162493.patch 
Log Message:
* Mon Sep 14 2009 Rex Dieter <rdieter at fedoraproject.org> - 4.3.1-2
- kopete/bonjour patch
- krfb produces garbled display (#523131, kde#162493)


kdenetwork-4.3.0-fix-bonjour.patch:
 bonjourcontactconnection.cpp |   11 ++++++++++-
 bonjourcontactconnection.h   |    3 +++
 2 files changed, 13 insertions(+), 1 deletion(-)

--- NEW FILE kdenetwork-4.3.0-fix-bonjour.patch ---
diff --git kopete/protocols/bonjour/bonjourcontactconnection.cpp kopete/protocols/bonjour/bonjourcontactconnection.cpp
index 0a925b4..c126011 100644
--- kopete/protocols/bonjour/bonjourcontactconnection.cpp
+++ kopete/protocols/bonjour/bonjourcontactconnection.cpp
@@ -56,9 +56,10 @@ void BonjourContactConnection::setSocket(QTcpSocket *aSocket)
 }
 
 BonjourContactConnection::BonjourContactConnection(QTcpSocket *aSocket, 
-		QObject *parent) : QObject(parent), connectionState(BonjourConnectionNewIncoming), socket(aSocket), parser(),
+		QObject *parent) : QObject(parent), connectionState(BonjourConnectionNewIncoming), parser(),
 					local(), remote()
 {
+	setSocket(aSocket);
 }
 
 BonjourContactConnection::BonjourContactConnection(const QHostAddress &address, short int port,
@@ -188,6 +189,14 @@ void BonjourContactConnection::dataInSocket()
 			getStreamTag(token);
 			break;
 	}
+
+	if (moreTokensAvailable())
+		dataInSocket();
+}
+
+bool BonjourContactConnection::moreTokensAvailable()
+{
+	return ! parser.atEnd();
 }
 
 void BonjourContactConnection::getStreamTag(BonjourXmlToken &token)
diff --git kopete/protocols/bonjour/bonjourcontactconnection.h kopete/protocols/bonjour/bonjourcontactconnection.h
index c0d347a..6c06300 100644
--- kopete/protocols/bonjour/bonjourcontactconnection.h
+++ kopete/protocols/bonjour/bonjourcontactconnection.h
@@ -80,6 +80,9 @@ class BonjourContactConnection : public QObject {
 	// Set the Socket
 	void setSocket(QTcpSocket *socket);
 
+	// Determine if there is more data available
+	bool moreTokensAvailable();
+
 	/**
 	 * @brief Description of A Token
 	 *

kdenetwork-4.3.1-kde#162493.patch:
 krfbserver.cpp |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

--- NEW FILE kdenetwork-4.3.1-kde#162493.patch ---
--- branches/KDE/4.3/kdenetwork/krfb/krfbserver.cpp	2009/06/24 10:17:04	986143
+++ branches/KDE/4.3/kdenetwork/krfb/krfbserver.cpp	2009/09/11 09:48:36	1022262
@@ -164,9 +164,14 @@
     int w = d->fb->width();
     int h = d->fb->height();
     int depth = d->fb->depth();
+    
+    int bpp = depth >> 3;
+    if (bpp != 1 && bpp != 2 && bpp != 4) bpp = 4;
+    kDebug() << "bpp: " << bpp;
 
     rfbLogEnable(0);
-    screen = rfbGetScreen(0, 0, w, h, 8, 3,depth / 8);
+    screen = rfbGetScreen(0, 0, w, h, 8, 3, bpp);
+    
     screen->paddedWidthInBytes = d->fb->paddedWidth();
 
     d->fb->getServerFormat(screen->serverFormat);




More information about the fedora-extras-commits mailing list