Hello community,
here is the log from the commit of package kdebase4-workspace for openSUSE:Factory
checked in at Tue Feb 15 16:31:25 CET 2011.
--------
--- KDE/kdebase4-workspace/kdebase4-wallpapers.changes 2011-02-05 21:27:12.000000000 +0100
+++ kdebase4-workspace/kdebase4-wallpapers.changes 2011-02-11 21:52:04.000000000 +0100
@@ -1,0 +2,11 @@
+Fri Feb 11 20:50:28 UTC 2011 - ctrippe@gmx.net
+
+- Enable the reduced menu depth feature and add the recently
+ installed menu entry (bnc#664086)
+
+-------------------------------------------------------------------
+Fri Feb 11 09:07:31 UTC 2011 - tittiatcoke@gmail.com
+
+- Added upstream patch for DPMS management (bko#264730)
+
+-------------------------------------------------------------------
kdebase4-workspace.changes: same change
python-kdebase4.changes: same change
calling whatdependson for head-i586
New:
----
bko264730-powerdevil-dpms-for-4.6.0.diff
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ kdebase4-wallpapers.spec ++++++
--- /var/tmp/diff_new_pack.vdsKnL/_old 2011-02-15 16:29:16.000000000 +0100
+++ /var/tmp/diff_new_pack.vdsKnL/_new 2011-02-15 16:29:16.000000000 +0100
@@ -23,7 +23,7 @@
Summary: KDE 4 Wallpapers
Url: http://www.kde.org/
Version: 4.6.0
-Release: 3
+Release: 4
BuildRequires: libdbusmenu-qt-devel
BuildRequires: libkdepimlibs4-devel >= %version
BuildRequires: libqimageblitz-devel
++++++ kdebase4-workspace.spec ++++++
--- /var/tmp/diff_new_pack.vdsKnL/_old 2011-02-15 16:29:16.000000000 +0100
+++ /var/tmp/diff_new_pack.vdsKnL/_new 2011-02-15 16:29:16.000000000 +0100
@@ -23,7 +23,7 @@
Summary: The KDE Workspace Components
Url: http://www.kde.org/
Version: 4.6.0
-Release: 3
+Release: 4
BuildRequires: audit-devel
BuildRequires: bluez-devel
BuildRequires: ConsoleKit-devel
@@ -108,6 +108,8 @@
Patch212: build-final.diff
Patch213: bko265206-plasma-notification-crashfix.diff
Patch214: bnc661844-akonadi-launched-by-calendarwidget.diff
+#Patch215 to be removed when building for 4.6.1
+Patch215: bko264730-powerdevil-dpms-for-4.6.0.diff
Requires: kde4-kgreeter-plugins = %version
Requires: kdebase4-workspace-liboxygenstyle = %version
%kde4_runtime_requires
@@ -185,8 +187,7 @@
#%patch103
%patch104
%patch106
-###KDE45: rediff!
-#%patch107
+%patch107
%patch108
%patch109
###KDE45: rediff!
@@ -203,6 +204,7 @@
%patch212
%patch213 -p1
%patch214 -p1
+%patch215 -p1
cp %{SOURCE3} kwin/effects/cube/data/cubecap.png
%build
++++++ python-kdebase4.spec ++++++
--- /var/tmp/diff_new_pack.vdsKnL/_old 2011-02-15 16:29:16.000000000 +0100
+++ /var/tmp/diff_new_pack.vdsKnL/_new 2011-02-15 16:29:16.000000000 +0100
@@ -27,7 +27,7 @@
Summary: Python bindings for KDE 4 desktop shell
Url: http://www.kde.org/
Version: 4.6.0
-Release: 3
+Release: 4
BuildRequires: NetworkManager-devel bluez-devel libQtWebKit-devel libdbusmenu-qt-devel libkdepimlibs4-devel >= %version libqimageblitz-devel
BuildRequires: libknotificationitem-devel libsmbclient-devel libxklavier-devel python-kde4-devel >= %version
Source0: kdebase-workspace-%version.tar.bz2
++++++ bko264730-powerdevil-dpms-for-4.6.0.diff ++++++
commit c514910cef68c614286be7135e0d22d9226dacfa
Author: Dario Freddi
Date: Sun Jan 30 15:00:01 2011 +0100
Add a new method to ActionPool, init(), to load on startup actions which require instant load.
Some actions, such as DPMS, require to be initialized even if no profile explicitly asked for the action itself,
as it might be necessary to perform some changes when the action is disabled.
CCBUG: 264730
FIXED-IN: 4.6.1
(cherry picked from commit 5dd9f08b1849800989778d4ca82f91b6977acfff)
diff --git a/powerdevil/daemon/powerdevilactionpool.cpp b/powerdevil/daemon/powerdevilactionpool.cpp
index 9b967a3..fea1863 100644
--- a/powerdevil/daemon/powerdevilactionpool.cpp
+++ b/powerdevil/daemon/powerdevilactionpool.cpp
@@ -73,6 +73,33 @@ ActionPool::~ActionPool()
m_cachedPool.clear();
}
+void ActionPool::init(PowerDevil::Core *parent)
+{
+ // We want to load action which require the loading phase to be performed before anything else
+ // No bundled actions require that (yet)
+
+ // Look for actions not bundled and requiring instant load
+ KService::List offers = KServiceTypeTrader::self()->query("PowerDevil/Action",
+ "[X-KDE-PowerDevil-Action-IsBundled] == FALSE and "
+ "[X-KDE-PowerDevil-Action-ForceInstantLoad] == TRUE");
+ foreach (KService::Ptr offer, offers) {
+ QString actionId = offer->property("X-KDE-PowerDevil-Action-ID", QVariant::String).toString();
+
+ kDebug() << "Got a valid offer for " << actionId;
+ //try to load the specified library
+ PowerDevil::Action *retaction = offer->createInstance< PowerDevil::Action >(parent);
+
+ if (!retaction) {
+ // Troubles...
+ kWarning() << "failed to load" << offer->desktopEntryName();
+ continue;
+ }
+
+ // Cache
+ m_cachedPool.insert(actionId, retaction);
+ }
+}
+
Action* ActionPool::loadAction(const QString& actionId, const KConfigGroup& group, PowerDevil::Core *parent)
{
// If it's cached, easy game.
diff --git a/powerdevil/daemon/powerdevilactionpool.h b/powerdevil/daemon/powerdevilactionpool.h
index 862d867..a471d4f 100644
--- a/powerdevil/daemon/powerdevilactionpool.h
+++ b/powerdevil/daemon/powerdevilactionpool.h
@@ -38,6 +38,8 @@ public:
virtual ~ActionPool();
+ void init(PowerDevil::Core *parent);
+
Action *loadAction(const QString &actionId, const KConfigGroup &group, PowerDevil::Core *parent);
void unloadAllActiveActions();
diff --git a/powerdevil/daemon/powerdevilcore.cpp b/powerdevil/daemon/powerdevilcore.cpp
index 19ebc03..df14f77 100644
--- a/powerdevil/daemon/powerdevilcore.cpp
+++ b/powerdevil/daemon/powerdevilcore.cpp
@@ -131,6 +131,9 @@ void Core::onBackendReady()
// Set up the policy agent
PowerDevil::PolicyAgent::instance()->init();
+ // Initialize the action pool, which will also load the needed startup actions.
+ PowerDevil::ActionPool::instance()->init(this);
+
// Set up the critical battery timer
m_criticalBatteryTimer->setSingleShot(true);
m_criticalBatteryTimer->setInterval(30000);
commit 397684cbf750b63a3a84a65e0eb1a44a22a483f0
Author: Dario Freddi
Date: Sun Jan 30 14:55:53 2011 +0100
Move DPMS handling in the constructor.
This makes more sense as
1. With the previous approach, DPMS support was queried everytime a profile changed, now it is queried on startup only.
2. It allows to disable DPMS on startup even if a profile has not loaded the action yet.
(cherry picked from commit 8db343c4b8c511b6d85dbe0ffebc039280836280)
diff --git a/powerdevil/daemon/actions/dpms/powerdevildpmsaction.cpp b/powerdevil/daemon/actions/dpms/powerdevildpmsaction.cpp
index fe5b266..0a1f5b4 100644
--- a/powerdevil/daemon/actions/dpms/powerdevildpmsaction.cpp
+++ b/powerdevil/daemon/actions/dpms/powerdevildpmsaction.cpp
@@ -67,9 +67,25 @@ K_EXPORT_PLUGIN(PowerDevilDPMSActionFactory("powerdevildpmsaction"))
PowerDevilDPMSAction::PowerDevilDPMSAction(QObject* parent, const QVariantList& )
: Action(parent)
+ , m_hasDPMS(true)
, d(new Private)
{
setRequiredPolicies(PowerDevil::PolicyAgent::ChangeScreenSettings);
+
+ // We want to query for DPMS in the constructor, before anything else happens
+ d->defaultHandler = XSetErrorHandler(dropError);
+
+ Display *dpy = QX11Info::display();
+
+ int dummy;
+
+ if (!DPMSQueryExtension(dpy, &dummy, &dummy) || !DPMSCapable(dpy)) {
+ m_hasDPMS = false;
+ XSetErrorHandler(d->defaultHandler);
+ }
+
+ // Pretend we're unloading profiles here, as if the action is not enabled, DPMS should be switched off.
+ onProfileUnload();
}
PowerDevilDPMSAction::~PowerDevilDPMSAction()
@@ -149,23 +165,7 @@ void PowerDevilDPMSAction::triggerImpl(const QVariantMap& args)
bool PowerDevilDPMSAction::loadAction(const KConfigGroup& config)
{
- d->defaultHandler = XSetErrorHandler(dropError);
-
- Display *dpy = QX11Info::display();
-
- int dummy;
- m_hasDPMS = true;
-
- if (!DPMSQueryExtension(dpy, &dummy, &dummy) || !DPMSCapable(dpy)) {
- m_hasDPMS = false;
- XSetErrorHandler(d->defaultHandler);
- }
-
- if (config.hasKey("idleTime")) {
- m_idleTime = config.readEntry<int>("idleTime", 100000000);
- } else {
- m_hasDPMS = false;
- }
+ m_idleTime = config.readEntry<int>("idleTime", -1);
return true;
}
++++++ plasma-kickoff-newly-collapsing.diff ++++++
++++ 624 lines (skipped)
++++ between KDE/kdebase4-workspace/plasma-kickoff-newly-collapsing.diff
++++ and kdebase4-workspace/plasma-kickoff-newly-collapsing.diff
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org