Hello community,
here is the log from the commit of package kdebase3
checked in at Fri Jan 12 01:29:45 CET 2007.
--------
--- KDE/kdebase3/kdebase3.changes 2007-01-09 11:41:34.000000000 +0100
+++ /mounts/work_src_done/STABLE/kdebase3/kdebase3.changes 2007-01-11 19:21:30.000000000 +0100
@@ -1,0 +2,5 @@
+Thu Jan 11 19:21:26 CET 2007 - stbinner@suse.de
+
+- make krandrtray also rotate wacom-input devices (Fate #300713)
+
+-------------------------------------------------------------------
New:
----
rotate-wacom-pointers.diff
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ kdebase3.spec ++++++
--- /var/tmp/diff_new_pack.H15514/_old 2007-01-12 01:28:11.000000000 +0100
+++ /var/tmp/diff_new_pack.H15514/_new 2007-01-12 01:28:11.000000000 +0100
@@ -52,7 +52,7 @@
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://www.kde.org/
Version: 3.5.5
-Release: 96
+Release: 98
%define kde_version 3.5.5
Source0: kdebase-%{kde_version}.tar.bz2
Source3: startkde.suse.sh
@@ -200,6 +200,7 @@
Patch194: fix-kicker-containerarea-build.diff
Patch195: ioslaveinfo-icon.diff
Patch196: 3_5_BRANCH_601776.diff
+Patch197: rotate-wacom-pointers.diff
%description
This package contains kdebase, one of the basic packages of the K
@@ -386,7 +387,7 @@
Summary: Set and list fileshares
Group: System/Management
Version: 2.0
-Release: 229
+Release: 231
%description -n fileshareset
This package contains the the fileshareset utility to allow users to
@@ -564,6 +565,7 @@
%endif
%patch195
%patch196
+%patch197
cp %SOURCE17 l10n/tw/flag.png
. /etc/opt/kde3/common_options
cd ../fileshareset2
@@ -1529,6 +1531,8 @@
%endif
%changelog -n kdebase3
+* Thu Jan 11 2007 - stbinner@suse.de
+- make krandrtray also rotate wacom-input devices (Fate #300713)
* Tue Jan 09 2007 - stbinner@suse.de
- fix fish:// does not support files larger than 2 Gb (#230941)
- update of kickoff.diff from SVN:
++++++ rotate-wacom-pointers.diff ++++++
Index: kcontrol/randr/randr.cpp
===================================================================
--- kcontrol/randr/randr.cpp (revision 622289)
+++ kcontrol/randr/randr.cpp (working copy)
@@ -28,6 +28,8 @@
#include
#include
#include
+#include
+#include
#include "ktimerdialog.h"
@@ -120,12 +122,55 @@
m_currentSize = m_proposedSize;
m_currentRotation = m_proposedRotation;
m_currentRefreshRate = m_proposedRefreshRate;
+
+ // search wacom utility and set orientation for available wacom pointers
+ QString xsetwacom = KStandardDirs::findExe("xsetwacom");
+ if (!xsetwacom.isEmpty()) {
+ m_wacomPointers.clear();
+ KProcess *proc = new KProcess;
+ connect(proc, SIGNAL(receivedStdout(KProcess *, char *, int)), SLOT(gotAvailablePointers(KProcess *, char *, int)));
+ *proc << "xsetwacom" << "list";
+ if (!proc->start(KProcess::Block,KProcess::Stdout))
+ kdError("Could not ask xsetwacom for available pointers.");
+ else {
+ for ( QStringList::Iterator it = m_wacomPointers.begin(); it != m_wacomPointers.end(); ++it ) {
+ KProcess *set = new KProcess;
+ *set << "xsetwacom" << "set" << (*it) << "rotate";
+ switch (m_currentRotation) {
+ case RR_Rotate_90:
+ *set << "2";
+ break;
+ case RR_Rotate_180:
+ *set << "3";
+ break;
+ case RR_Rotate_270:
+ *set << "1";
+ break;
+ default:
+ *set << "0";
+ }
+ if (!set->start())
+ kdError("Could not set orientation for wacom pointers.");
+ }
+ }
+ }
+
return true;
}
return false;
}
+void RandRScreen::gotAvailablePointers(KProcess*, char *buffer, int len)
+{
+ QString myBuf = QString::fromLatin1(buffer, len);
+ QStringList lines = QStringList::split('\n', myBuf);
+ for ( QStringList::Iterator it = lines.begin(); it != lines.end(); it++) {
+ QStringList split = QStringList::split(' ', (*it));
+ m_wacomPointers+=split.first();
+ }
+}
+
bool RandRScreen::applyProposedAndConfirm()
{
if (proposedChanged()) {
Index: kcontrol/randr/randr.h
===================================================================
--- kcontrol/randr/randr.h (revision 622289)
+++ kcontrol/randr/randr.h (working copy)
@@ -28,6 +28,7 @@
class KTimerDialog;
class RandRScreenPrivate;
+class KProcess;
class RandRScreen : public QObject
{
@@ -170,11 +171,14 @@
int m_proposedSize;
int m_proposedRefreshRate;
+ QStringList m_wacomPointers;
+
KTimerDialog* m_shownDialog;
private slots:
void desktopResized();
void shownDialogDestroyed();
+ void gotAvailablePointers(KProcess*, char *buffer, int len);
};
typedef QPtrList<RandRScreen> ScreenList;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org