rpms/kdebase-workspace/F-11 kdebase-workspace-4.3.75-classicmenu-logout.patch, NONE, 1.1 kdebase-workspace-4.3.75-kio_sysinfo.patch, NONE, 1.1 kdebase-workspace-4.3.75-rootprivs.patch, NONE, 1.1 kdebase-workspace-4.3.75-show_systemsettings.patch, NONE, 1.1 kdebase-workspace-4.3.80-xsession_errors_O_APPEND.patch, NONE, 1.1 kdebase-workspace-4.3.95-brightness_keys.patch, NONE, 1.1 kdebase-workspace-4.3.95-redhat-startkde.patch, NONE, 1.1 kdebase-workspace-4.3.98-battery-plasmoid-showremainingtime.patch, NONE, 1.1 kdebase-workspace-4.3.98-plasma-konsole.patch, NONE, 1.1 kdebase-workspace-4.3.98-platformplugin-widgetstyle4.patch, NONE, 1.1 kdebase-workspace-kde#200184.patch, NONE, 1.1 .cvsignore, 1.38, 1.39 kdebase-workspace.spec, 1.256, 1.257 sources, 1.43, 1.44 kdebase-workspace-4.2.0-kio_sysinfo.patch, 1.1, NONE kdebase-workspace-4.2.90-show_systemsettings.patch, 1.1, NONE kdebase-workspace-4.2.95-plasma-konsole.patch, 1.1, NONE kdebase-workspace-4.2.95-rootprivs.patch, 1.1, NONE kdebase-workspace-4.2.96-redhat-startkde.patch, 1.1, NONE kdebase-workspace-4.3.0-battery-plasmoid-showremainingtime.patch, 1.1, NONE kdebase-workspace-4.3.0-default_applets.patch, 1.1, NONE kdebase-workspace-4.3.1-classicmenu-logout.patch, 1.1, NONE kdebase-workspace-4.3.4-calendar-akonadi.patch, 1.1, NONE kdebase-workspace-4.3.4-solid_hal_0_5_14.patch, 1.1, NONE kubuntu_101_brightness_fn_keys_and_osd.diff, 1.1, NONE
Lukas Tinkl
ltinkl at fedoraproject.org
Wed Feb 10 14:00:05 UTC 2010
- Previous message: rpms/perl-SQL-Translator/devel perl-SQL-Translator.spec,1.14,1.15
- Next message: rpms/kdebase-workspace/F-12 kdebase-workspace-4.3.75-classicmenu-logout.patch, NONE, 1.1 kdebase-workspace-4.3.75-kio_sysinfo.patch, NONE, 1.1 kdebase-workspace-4.3.75-rootprivs.patch, NONE, 1.1 kdebase-workspace-4.3.75-show_systemsettings.patch, NONE, 1.1 kdebase-workspace-4.3.80-xsession_errors_O_APPEND.patch, NONE, 1.1 kdebase-workspace-4.3.95-brightness_keys.patch, NONE, 1.1 kdebase-workspace-4.3.95-redhat-startkde.patch, NONE, 1.1 kdebase-workspace-4.3.98-battery-plasmoid-showremainingtime.patch, NONE, 1.1 kdebase-workspace-4.3.98-plasma-konsole.patch, NONE, 1.1 kdebase-workspace-4.3.98-platformplugin-widgetstyle4.patch, NONE, 1.1 kdebase-workspace-kde#200184.patch, NONE, 1.1 .cvsignore, 1.42, 1.43 kdebase-workspace-4.2.0-kio_sysinfo.patch, 1.1, NONE kdebase-workspace-4.2.90-show_systemsettings.patch, 1.1, NONE kdebase-workspace-4.2.95-plasma-konsole.patch, 1.1, NONE kdebase-workspace-4.2.95-rootprivs.patch, 1.2, NONE kdebase-workspace-4.2.96-redhat-startkde.patch, 1.1, NONE kdebase-workspace-4.3.0-battery-plasmoid-showremainingtime.patch, 1.1, NONE kdebase-workspace-4.3.0-default_applets.patch, 1.1, NONE kdebase-workspace-4.3.1-classicmenu-logout.patch, 1.1, NONE kdebase-workspace-4.3.4-calendar-akonadi.patch, 1.1, NONE kdebase-workspace-4.3.4-solid_hal_0_5_14.patch, 1.1, NONE kubuntu_101_brightness_fn_keys_and_osd.diff, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: ltinkl
Update of /cvs/extras/rpms/kdebase-workspace/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7216/F-11
Modified Files:
.cvsignore kdebase-workspace.spec sources
Added Files:
kdebase-workspace-4.3.75-classicmenu-logout.patch
kdebase-workspace-4.3.75-kio_sysinfo.patch
kdebase-workspace-4.3.75-rootprivs.patch
kdebase-workspace-4.3.75-show_systemsettings.patch
kdebase-workspace-4.3.80-xsession_errors_O_APPEND.patch
kdebase-workspace-4.3.95-brightness_keys.patch
kdebase-workspace-4.3.95-redhat-startkde.patch
kdebase-workspace-4.3.98-battery-plasmoid-showremainingtime.patch
kdebase-workspace-4.3.98-plasma-konsole.patch
kdebase-workspace-4.3.98-platformplugin-widgetstyle4.patch
kdebase-workspace-kde#200184.patch
Removed Files:
kdebase-workspace-4.2.0-kio_sysinfo.patch
kdebase-workspace-4.2.90-show_systemsettings.patch
kdebase-workspace-4.2.95-plasma-konsole.patch
kdebase-workspace-4.2.95-rootprivs.patch
kdebase-workspace-4.2.96-redhat-startkde.patch
kdebase-workspace-4.3.0-battery-plasmoid-showremainingtime.patch
kdebase-workspace-4.3.0-default_applets.patch
kdebase-workspace-4.3.1-classicmenu-logout.patch
kdebase-workspace-4.3.4-calendar-akonadi.patch
kdebase-workspace-4.3.4-solid_hal_0_5_14.patch
kubuntu_101_brightness_fn_keys_and_osd.diff
Log Message:
KDE 4.4.0
kdebase-workspace-4.3.75-classicmenu-logout.patch:
core/itemhandlers.cpp | 7 ++++++-
simpleapplet/simpleapplet.cpp | 2 ++
simpleapplet/simpleapplet.h | 3 ++-
3 files changed, 10 insertions(+), 2 deletions(-)
--- NEW FILE kdebase-workspace-4.3.75-classicmenu-logout.patch ---
diff -r -U5 kdebase-workspace-4.3.75svn1048496/plasma/desktop/applets/kickoff/core/itemhandlers.cpp kdebase-workspace-4.3.75svn1048496.classicmenu-logout/plasma/desktop/applets/kickoff/core/itemhandlers.cpp
--- kdebase-workspace-4.3.75svn1048496/plasma/desktop/applets/kickoff/core/itemhandlers.cpp 2009-09-16 07:40:52.000000000 -0400
+++ kdebase-workspace-4.3.75svn1048496.classicmenu-logout/plasma/desktop/applets/kickoff/core/itemhandlers.cpp 2009-11-21 17:46:56.000000000 -0500
@@ -107,11 +107,12 @@
} else if (m_logoutAction == "switch") {
// decouple dbus call, otherwise we'll run into a dead-lock
QTimer::singleShot(0, this, SLOT(switchUser()));
return true;
} else if (m_logoutAction == "logout" || m_logoutAction == "logoutonly" ||
- m_logoutAction == "restart" || m_logoutAction == "shutdown") {
+ m_logoutAction == "restart" || m_logoutAction == "shutdown" ||
+ m_logoutAction == "leave") {
// decouple dbus call, otherwise we'll run into a dead-lock
QTimer::singleShot(0, this, SLOT(logout()));
return true;
} else if (m_logoutAction == "savesession") {
// decouple dbus call, otherwise we'll run into a dead-lock
@@ -158,10 +159,14 @@
kDebug() << "Switching user";
} else if (m_logoutAction == "restart") {
type = KWorkSpace::ShutdownTypeReboot;
} else if (m_logoutAction == "shutdown") {
type = KWorkSpace::ShutdownTypeHalt;
+ } else if (m_logoutAction == "leave") {
+ // This one brings up the dialog, for use in the classic menu.
+ confirm = KWorkSpace::ShutdownConfirmYes;
+ type = KWorkSpace::ShutdownTypeDefault;
}
//FIXME: the proper fix is to implement the KWorkSpace methods for Windows
#ifndef Q_WS_WIN
KWorkSpace::requestShutDown(confirm, type);
diff -r -U5 kdebase-workspace-4.3.75svn1048496/plasma/desktop/applets/kickoff/simpleapplet/simpleapplet.cpp kdebase-workspace-4.3.75svn1048496.classicmenu-logout/plasma/desktop/applets/kickoff/simpleapplet/simpleapplet.cpp
--- kdebase-workspace-4.3.75svn1048496/plasma/desktop/applets/kickoff/simpleapplet/simpleapplet.cpp 2009-10-26 05:14:50.000000000 -0400
+++ kdebase-workspace-4.3.75svn1048496.classicmenu-logout/plasma/desktop/applets/kickoff/simpleapplet/simpleapplet.cpp 2009-11-21 17:47:08.000000000 -0500
@@ -200,10 +200,11 @@
case SuspendRAM: return i18n("Sleep");
case Restart: return i18nc("Restart Computer", "Restart");
case Shutdown: return i18n("Shutdown");
case Logout: return i18n("Logout");
case Leave: return i18n("Leave");
+ case LeaveDialog: return i18n("Leave...");
}
return QString();
}
QString viewIcon(MenuLauncherApplet::ViewType vt) const {
@@ -225,10 +226,11 @@
case SuspendRAM: return "system-suspend-hibernate";
case Restart: return "system-reboot";
case Shutdown: return "system-shutdown";
case Logout: return "system-log-out";
case Leave: return "system-shutdown";
+ case LeaveDialog: return "system-shutdown";
}
return QString();
}
MenuLauncherApplet::ViewType viewType(const QByteArray& type) const {
diff -r -U5 kdebase-workspace-4.3.75svn1048496/plasma/desktop/applets/kickoff/simpleapplet/simpleapplet.h kdebase-workspace-4.3.75svn1048496.classicmenu-logout/plasma/desktop/applets/kickoff/simpleapplet/simpleapplet.h
--- kdebase-workspace-4.3.75svn1048496/plasma/desktop/applets/kickoff/simpleapplet/simpleapplet.h 2009-09-16 07:40:52.000000000 -0400
+++ kdebase-workspace-4.3.75svn1048496.classicmenu-logout/plasma/desktop/applets/kickoff/simpleapplet/simpleapplet.h 2009-11-21 17:47:19.000000000 -0500
@@ -57,11 +57,12 @@
SuspendDisk, ///< Suspend to Disk Action
SuspendRAM, ///< Suspend to RAM Action
Restart, ///< Restart Action
Shutdown, ///< Shutdown Action
Logout, ///< Logout Action
- Leave ///< Leave Menu
+ Leave, ///< Leave Menu
+ LeaveDialog ///< Leave Dialog Action
};
/**
* How the text of the menuitems got formatted.
*/
kdebase-workspace-4.3.75-kio_sysinfo.patch:
models.cpp | 2 ++
systemmodel.cpp | 37 ++++++++++++++++++++++++++-----------
2 files changed, 28 insertions(+), 11 deletions(-)
--- NEW FILE kdebase-workspace-4.3.75-kio_sysinfo.patch ---
diff -U5 -r kdebase-workspace-4.3.75svn1048496/plasma/desktop/applets/kickoff/core/models.cpp kdebase-workspace-4.3.75svn1048496.kio_sysinfo/plasma/desktop/applets/kickoff/core/models.cpp
--- kdebase-workspace-4.3.75svn1048496/plasma/desktop/applets/kickoff/core/models.cpp 2009-10-15 12:33:38.000000000 -0400
+++ kdebase-workspace-4.3.75svn1048496.kio_sysinfo/plasma/desktop/applets/kickoff/core/models.cpp 2009-11-21 15:24:44.000000000 -0500
@@ -176,10 +176,12 @@
QStringList Kickoff::systemApplicationList()
{
KConfigGroup appsGroup = componentData().config()->group("SystemApplications");
QStringList apps;
apps << "systemsettings";
+ if (QFile::exists("/usr/share/kde4/services/sysinfo.protocol"))
+ apps << "/usr/share/kde4/services/sysinfo.protocol";
apps = appsGroup.readEntry("DesktopFiles", apps);
return apps;
}
#if 0
diff -U5 -r kdebase-workspace-4.3.75svn1048496/plasma/desktop/applets/kickoff/core/systemmodel.cpp kdebase-workspace-4.3.75svn1048496.kio_sysinfo/plasma/desktop/applets/kickoff/core/systemmodel.cpp
--- kdebase-workspace-4.3.75svn1048496/plasma/desktop/applets/kickoff/core/systemmodel.cpp 2009-11-13 05:57:47.000000000 -0500
+++ kdebase-workspace-4.3.75svn1048496.kio_sysinfo/plasma/desktop/applets/kickoff/core/systemmodel.cpp 2009-11-21 15:25:04.000000000 -0500
@@ -244,21 +244,36 @@
}
}
KService::Ptr service = d->appsList[index.row()];
- switch (role) {
- case Qt::DisplayRole:
- return service->name();
- case Qt::DecorationRole:
- return KIcon(service->icon());
- case SubTitleRole:
- return service->genericName();
- case UrlRole:
- return service->entryPath();
- default:
- return QVariant();
+ if (service->name()=="sysinfo") {
+ switch(role) {
+ case Qt::DisplayRole:
+ return i18n("System Information");
+ case Qt::DecorationRole:
+ return KIcon("hwinfo");
+ case SubTitleRole:
+ return "sysinfo:/";
+ case UrlRole:
+ return "sysinfo:/";
+ default:
+ return QVariant();
+ }
+ } else {
+ switch (role) {
+ case Qt::DisplayRole:
+ return service->name();
+ case Qt::DecorationRole:
+ return KIcon(service->icon());
+ case SubTitleRole:
+ return service->genericName();
+ case UrlRole:
+ return service->entryPath();
+ default:
+ return QVariant();
+ }
}
}
if (role == UrlRole && !d->placesModel->isHidden(mapToSource(index))) {
QModelIndex parent = index.parent();
kdebase-workspace-4.3.75-rootprivs.patch:
ModuleView.cpp | 27 +++++++++++++++++++++++++++
ModuleView.cpp.orig |only
ModuleView.cpp.rej |only
3 files changed, 27 insertions(+)
--- NEW FILE kdebase-workspace-4.3.75-rootprivs.patch ---
diff -U5 -r kdebase-workspace-4.3.75svn1048496/systemsettings/core/ModuleView.cpp kdebase-workspace-4.3.75svn1048496.rootprivs/systemsettings/core/ModuleView.cpp
--- kdebase-workspace-4.3.75svn1048496/systemsettings/core/ModuleView.cpp 2009-10-26 05:14:41.000000000 -0400
+++ kdebase-workspace-4.3.75svn1048496.rootprivs/systemsettings/core/ModuleView.cpp 2009-11-21 06:07:10.000000000 -0500
@@ -38,10 +38,11 @@
#include <KMessageBox>
#include <KCModuleInfo>
#include <KCModuleProxy>
#include <KStandardGuiItem>
#include <KDialogButtonBox>
+#include <KStandardDirs>
#include <kauthaction.h>
#include "MenuItem.h"
class ModuleView::Private {
@@ -122,10 +123,36 @@
{
if ( !menuItem ) {
return;
}
+ if ( menuItem->service()->property( "X-KDE-RootOnly", QVariant::Bool ).toBool() ) {
+ QString kdesu = KStandardDirs::findExe( "kdesu" );
+ QString cmd = menuItem->service()->exec().trimmed();
+
+ /* Prepare the process to run the kcmshell */
+ if ( cmd.left(5) == "kdesu" )
+ {
+ cmd = cmd.remove(0,5).trimmed();
+
+ /* Remove all kdesu switches */
+ while ( cmd.length() > 1 && cmd[ 0 ] == '-' )
+ cmd = cmd.remove( 0, cmd.indexOf( ' ' ) ).trimmed();
+ }
+
+ if ( cmd.left(9) == "kcmshell4" )
+ cmd = cmd.remove(0,9).trimmed();
+
+ QStringList args;
+ args << "-i" << QString( menuItem->service()->icon() ) << "-c" << QString( "%1 %2 --lang %3" ).arg( KStandardDirs::locate("exe", "kcmshell4") ).arg( cmd ).arg( KGlobal::locale()->language() );
+
+ kDebug() << "Starting root module: " << args;
+ QProcess::startDetached( kdesu, args );
+
+ return;
+ }
+
QList<KCModuleInfo*> modules;
if ( menuItem->children().empty() ) {
modules << &menuItem->item();
} else {
foreach ( MenuItem *child, menuItem->children() ) {
Only in kdebase-workspace-4.3.75svn1048496.rootprivs/systemsettings/core: ModuleView.cpp.orig
Only in kdebase-workspace-4.3.75svn1048496.rootprivs/systemsettings/core: ModuleView.cpp.rej
kdebase-workspace-4.3.75-show_systemsettings.patch:
plasma/desktop/applets/kickoff/core/applicationmodel.cpp | 1 -
systemsettings/app/systemsettings.desktop | 1 +
systemsettings/app/systemsettings.desktop.orig |only
3 files changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE kdebase-workspace-4.3.75-show_systemsettings.patch ---
diff -U5 -r kdebase-workspace-4.3.75svn1048496/plasma/desktop/applets/kickoff/core/applicationmodel.cpp kdebase-workspace-4.3.75svn1048496.show_systemsettings/plasma/desktop/applets/kickoff/core/applicationmodel.cpp
--- kdebase-workspace-4.3.75svn1048496/plasma/desktop/applets/kickoff/core/applicationmodel.cpp 2009-11-13 05:57:47.000000000 -0500
+++ kdebase-workspace-4.3.75svn1048496.show_systemsettings/plasma/desktop/applets/kickoff/core/applicationmodel.cpp 2009-11-21 04:55:21.000000000 -0500
@@ -109,11 +109,10 @@
systemApplicationPolicy(ApplicationModel::ShowSystemOnlyPolicy),
primaryNamePolicy(ApplicationModel::GenericNamePrimary),
displayOrder(NameAfterDescription),
allowSeparators(_allowSeparators)
{
- systemApplications = Kickoff::systemApplicationList();
}
~ApplicationModelPrivate()
{
delete root;
diff -U5 -r kdebase-workspace-4.3.75svn1048496/systemsettings/app/systemsettings.desktop kdebase-workspace-4.3.75svn1048496.show_systemsettings/systemsettings/app/systemsettings.desktop
--- kdebase-workspace-4.3.75svn1048496/systemsettings/app/systemsettings.desktop 2009-09-23 15:21:33.000000000 -0400
+++ kdebase-workspace-4.3.75svn1048496.show_systemsettings/systemsettings/app/systemsettings.desktop 2009-11-21 04:55:21.000000000 -0500
@@ -161,5 +161,6 @@
Name[zh_CN]=系统设置
Name[zh_TW]=系統設定
X-DBUS-StartupType=Unique
Categories=Qt;KDE;Settings;
+OnlyShowIn=KDE;
Only in kdebase-workspace-4.3.75svn1048496.show_systemsettings/systemsettings/app: systemsettings.desktop.orig
kdebase-workspace-4.3.80-xsession_errors_O_APPEND.patch:
client.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE kdebase-workspace-4.3.80-xsession_errors_O_APPEND.patch ---
diff -up kdebase-workspace-4.3.80/kdm/backend/client.c.append kdebase-workspace-4.3.80/kdm/backend/client.c
--- kdebase-workspace-4.3.80/kdm/backend/client.c.append 2009-11-02 06:01:32.000000000 -0600
+++ kdebase-workspace-4.3.80/kdm/backend/client.c 2009-12-11 13:16:49.047992973 -0600
@@ -1182,7 +1182,7 @@ createClientLog( const char *log )
if (!(lname = expandMacros( log, macros )))
exit( 1 );
unlink( lname );
- if ((lfd = open( lname, O_WRONLY|O_CREAT|O_EXCL, 0600 )) >= 0) {
+ if ((lfd = open( lname, O_WRONLY|O_CREAT|O_EXCL|O_APPEND, 0600 )) >= 0) {
dup2( lfd, 1 );
dup2( lfd, 2 );
close( lfd );
kdebase-workspace-4.3.95-brightness_keys.patch:
libs/solid/control/powermanager.cpp | 11 +++-
plasma/generic/applets/battery/battery.cpp | 74 ++++++++++++++++++++++++----
plasma/generic/applets/battery/battery.h | 10 +++
powerdevil/daemon/PowerDevilDaemon.cpp | 75 +++++++++++++++++++++++++----
powerdevil/daemon/PowerDevilDaemon.h | 6 ++
powerdevil/daemon/org.kde.PowerDevil.xml | 8 +++
6 files changed, 161 insertions(+), 23 deletions(-)
--- NEW FILE kdebase-workspace-4.3.95-brightness_keys.patch ---
diff -up kdebase-workspace-4.3.95/libs/solid/control/powermanager.cpp.brightness_keys kdebase-workspace-4.3.95/libs/solid/control/powermanager.cpp
--- kdebase-workspace-4.3.95/libs/solid/control/powermanager.cpp.brightness_keys 2010-01-06 11:00:01.000000000 -0600
+++ kdebase-workspace-4.3.95/libs/solid/control/powermanager.cpp 2010-01-23 12:35:12.385641003 -0600
@@ -25,6 +25,8 @@
#include "ifaces/powermanager.h"
#include <kdebug.h>
#include <kglobal.h>
+#include <QDBusInterface>
+#include <QDBusPendingCall>
#include <QX11Info>
K_GLOBAL_STATIC(Solid::Control::PowerManagerPrivate, globalPowerManager)
@@ -160,7 +162,8 @@ bool Solid::Control::PowerManager::setBr
#ifdef Q_WS_WIN
return false;
#else
- return ( xrandr_brightlight( QX11Info::display(), brightness ) >= 0 );
+ if ( xrandr_brightlight( QX11Info::display(), brightness ) < 0 )
+ return false;
#endif
}
else
@@ -170,8 +173,12 @@ bool Solid::Control::PowerManager::setBr
SOLID_CALL(Ifaces::PowerManager *, globalPowerManager->managerBackend(), setBrightness(brightness, device));
}
//TODO - This should be done better, it will return true even if one of the calls returns false. SOLID_CALL does not allow us to get the return value.
- return true;
}
+
+ QDBusInterface iface("org.kde.kded", "/modules/powerdevil", "org.kde.PowerDevil", QDBusConnection::sessionBus());
+ if (iface.isValid())
+ iface.asyncCall("notifyOfBrightnessChange", (int) Solid::Control::PowerManager::brightness());
+ return true;
}
else
{
diff -up kdebase-workspace-4.3.95/plasma/generic/applets/battery/battery.cpp.brightness_keys kdebase-workspace-4.3.95/plasma/generic/applets/battery/battery.cpp
--- kdebase-workspace-4.3.95/plasma/generic/applets/battery/battery.cpp.brightness_keys 2010-01-23 12:35:12.366629154 -0600
+++ kdebase-workspace-4.3.95/plasma/generic/applets/battery/battery.cpp 2010-01-23 12:35:12.386640293 -0600
@@ -31,9 +31,13 @@
#include <QGraphicsGridLayout>
#include <QGraphicsLinearLayout>
#include <QDBusPendingCall>
+#include <QDesktopWidget>
#include <QLabel>
+#include <QProgressBar>
#include <QPropertyAnimation>
+#include <QTimer>
+#include <KApplication>
#include <KDebug>
#include <KIcon>
#include <KSharedConfig>
@@ -87,7 +91,8 @@ Battery::Battery(QObject *parent, const
m_labelAlpha(0),
m_labelAnimation(0),
m_acAlpha(0),
- m_acAnimation(0)
+ m_acAnimation(0),
+ m_brightnessDisplay(0)
{
//kDebug() << "Loading applet battery";
setAcceptsHoverEvents(true);
@@ -314,6 +319,7 @@ void Battery::hoverLeaveEvent(QGraphicsS
Battery::~Battery()
{
+ delete m_brightnessDisplay;
}
void Battery::suspend()
@@ -334,13 +340,17 @@ void Battery::hibernate()
void Battery::brightnessChanged(const int brightness)
{
- Solid::Control::PowerManager::setBrightness(brightness);
+ if (!m_ignoreBrightnessChange) {
+ Solid::Control::PowerManager::setBrightness(brightness);
+ }
}
-void Battery::updateSlider(const float brightness)
+void Battery::updateSlider(int brightness)
{
- if (m_brightnessSlider->value() != (int)brightness) {
- m_brightnessSlider->setValue((int) brightness);
+ if (m_brightnessSlider->value() != brightness) {
+ m_ignoreBrightnessChange = true;
+ m_brightnessSlider->setValue(brightness);
+ m_ignoreBrightnessChange = false;
}
}
@@ -363,6 +373,7 @@ void Battery::initExtenderItem(Plasma::E
// as the battery applet is also embedded into the battery's extender.
if (!m_isEmbedded && item->name() == "powermanagement") {
int row = 0;
+ m_ignoreBrightnessChange = false;
m_controls = new QGraphicsWidget(item);
m_controls->setMinimumWidth(360);
@@ -427,16 +438,12 @@ void Battery::initExtenderItem(Plasma::E
m_brightnessSlider = new Plasma::Slider(m_controls);
m_brightnessSlider->setRange(0, 100);
- m_brightnessSlider->setValue(Solid::Control::PowerManager::brightness());
+ updateSlider(Solid::Control::PowerManager::brightness());
m_brightnessSlider->nativeWidget()->setTickInterval(10);
m_brightnessSlider->setOrientation(Qt::Horizontal);
connect(m_brightnessSlider, SIGNAL(valueChanged(int)),
this, SLOT(brightnessChanged(int)));
- Solid::Control::PowerManager::Notifier *notifier = Solid::Control::PowerManager::notifier();
-
- connect(notifier, SIGNAL(brightnessChanged(float)),
- this, SLOT(updateSlider(float)));
m_controlsLayout->addItem(m_brightnessSlider, row, 1);
row++;
@@ -527,6 +534,21 @@ void Battery::initExtenderItem(Plasma::E
item->setTitle(i18n("Power Management"));
setupFonts();
+
+ m_brightnessDisplay = new QProgressBar();
+ m_brightnessDisplay->setWindowFlags(Qt::X11BypassWindowManagerHint);
+ QDesktopWidget* desktop = KApplication::kApplication()->desktop();
+ //Getting QRect of the screen where cursor is positioned
+ QRect rect = desktop->screenGeometry(QCursor::pos());
+ int width = (rect.width()/2) - (m_brightnessDisplay->width()/2);
+ int height = (rect.height()/2) - (m_brightnessDisplay->height()/2);
+ width += rect.x();
+ height += rect.y();
+ m_brightnessDisplay->move(width, height);
+ m_brightnessDisplayTimer = new QTimer(this);
+ connect(m_brightnessDisplayTimer, SIGNAL(timeout()), this, SLOT(hideOSD()));
+ QDBusConnection::sessionBus().connect("org.kde.kded", "/modules/powerdevil", "org.kde.PowerDevil",
+ "brightnessChanged", this, SLOT(showBrightnessOSD(int,bool)));
}
}
@@ -657,7 +679,7 @@ void Battery::updateStatus()
}
if (m_brightnessSlider) {
- m_brightnessSlider->setValue(Solid::Control::PowerManager::brightness());
+ updateSlider(Solid::Control::PowerManager::brightness());
}
}
@@ -999,4 +1021,34 @@ qreal Battery::acAlpha()
return m_acAlpha;
}
+void Battery::showBrightnessOSD(int brightness, bool byFnKey)
+{
+ if (byFnKey) {
+ m_brightnessDisplay->setValue(brightness);
+ m_brightnessDisplay->show();
+
+ //FIXME, how to get this to work before it is displayed for the first time?
+ QDesktopWidget* desktop = KApplication::kApplication()->desktop();
+ //Getting QRect of the screen where cursor is positioned
+ QRect rect = desktop->screenGeometry(QCursor::pos());
+ int width = (rect.width()/2) - (m_brightnessDisplay->width()/2);
+ int height = (rect.height()/2) - (m_brightnessDisplay->height()/2);
+ width += rect.x();
+ height += rect.y();
+ m_brightnessDisplay->move(width, height);
+
+ m_brightnessDisplayTimer->setInterval(2000);
+ m_brightnessDisplayTimer->start();
+
+ if (m_extenderVisible && m_brightnessSlider) {
+ updateSlider(brightness);
+ }
+ }
+}
+
+void Battery::hideOSD()
+{
+ m_brightnessDisplay->hide();
+}
+
#include "battery.moc"
diff -up kdebase-workspace-4.3.95/plasma/generic/applets/battery/battery.h.brightness_keys kdebase-workspace-4.3.95/plasma/generic/applets/battery/battery.h
--- kdebase-workspace-4.3.95/plasma/generic/applets/battery/battery.h.brightness_keys 2010-01-19 17:19:14.000000000 -0600
+++ kdebase-workspace-4.3.95/plasma/generic/applets/battery/battery.h 2010-01-23 12:35:12.386640293 -0600
@@ -39,6 +39,8 @@ namespace Plasma
class Slider;
}
+class QProgressBar;
+
class Battery : public Plasma::PopupApplet
{
Q_OBJECT
@@ -83,7 +85,7 @@ class Battery : public Plasma::PopupAppl
void sourceAdded(const QString &source);
void sourceRemoved(const QString &source);
void brightnessChanged(const int brightness);
- void updateSlider(const float brightness);
+ void updateSlider(int brightness);
void setFullBrightness();
void openConfig();
void setProfile(const QString &profile);
@@ -91,6 +93,8 @@ class Battery : public Plasma::PopupAppl
void hibernate();
void updateBattery();
void setupFonts();
+ void showBrightnessOSD(int brightness, bool byFnKey);
+ void hideOSD();
private:
void connectSources();
@@ -172,6 +176,10 @@ class Battery : public Plasma::PopupAppl
QPropertyAnimation *m_labelAnimation;
qreal m_acAlpha;
QPropertyAnimation *m_acAnimation;
+
+ bool m_ignoreBrightnessChange;
+ QProgressBar* m_brightnessDisplay;
+ QTimer* m_brightnessDisplayTimer;
};
K_EXPORT_PLASMA_APPLET(battery, Battery)
diff -up kdebase-workspace-4.3.95/powerdevil/daemon/org.kde.PowerDevil.xml.brightness_keys kdebase-workspace-4.3.95/powerdevil/daemon/org.kde.PowerDevil.xml
--- kdebase-workspace-4.3.95/powerdevil/daemon/org.kde.PowerDevil.xml.brightness_keys 2009-09-04 06:30:55.000000000 -0500
+++ kdebase-workspace-4.3.95/powerdevil/daemon/org.kde.PowerDevil.xml 2010-01-23 12:35:12.386640293 -0600
@@ -42,6 +42,10 @@
<arg type="as" direction="out" />
</method>
+ <method name="notifyOfBrightnessChange">
+ <arg type="i" direction="in" />
+ </method>
+
<signal name="lidClosed">
<arg type="i" direction="out" />
<arg type="s" direction="out" />
@@ -56,5 +60,9 @@
</signal>
<signal name="DPMSconfigUpdated">
</signal>
+ <signal name="brightnessChanged">
+ <arg type="i" direction="out" />
+ <arg type="b" direction="out" />
+ </signal>
</interface>
</node>
diff -up kdebase-workspace-4.3.95/powerdevil/daemon/PowerDevilDaemon.cpp.brightness_keys kdebase-workspace-4.3.95/powerdevil/daemon/PowerDevilDaemon.cpp
--- kdebase-workspace-4.3.95/powerdevil/daemon/PowerDevilDaemon.cpp.brightness_keys 2009-12-10 17:14:04.000000000 -0600
+++ kdebase-workspace-4.3.95/powerdevil/daemon/PowerDevilDaemon.cpp 2010-01-23 12:35:12.387639722 -0600
@@ -26,6 +26,8 @@
#include <kdemacros.h>
#include <KAboutData>
+#include <KAction>
+#include <KActionCollection>
#include <KPluginFactory>
#include <KNotification>
#include <KIcon>
@@ -93,6 +95,7 @@ public:
: notifier(Solid::Control::PowerManager::notifier())
, currentConfig(0)
, status(PowerDevilDaemon::NoAction)
+ , brightnessInHardware(false)
, ckSessionInterface(0) {}
Solid::Control::PowerManager::Notifier *notifier;
@@ -119,6 +122,8 @@ public:
int batteryPercent;
int brightness;
+ int cachedBrightness;
+ bool brightnessInHardware;
bool isPlugged;
// ConsoleKit stuff
@@ -174,6 +179,18 @@ PowerDevilDaemon::PowerDevilDaemon(QObje
d->ksmServerIface = new OrgKdeKSMServerInterfaceInterface("org.kde.ksmserver", "/KSMServer",
QDBusConnection::sessionBus(), this);
+ QDBusInterface halManager("org.freedesktop.Hal",
+ "/org/freedesktop/Hal/Manager", "org.freedesktop.Hal.Manager",
+ QDBusConnection::systemBus());
+ QStringList panelDevices = halManager.call("FindDeviceByCapability",
+ "laptop_panel").arguments().at(0).toStringList();
+ if (!panelDevices.empty()) {
+ QDBusInterface deviceInterface("org.freedesktop.Hal", panelDevices.at(0), "org.freedesktop.Hal.Device",
+ QDBusConnection::systemBus());
+ d->brightnessInHardware = deviceInterface.call("GetPropertyBoolean",
+ "laptop_panel.brightness_in_hardware").arguments().at(0).toBool();
+ }
+
/* Not needed anymore; I am not sure if we will need that in a future, so I leave it here
* just in case.
*
@@ -198,6 +215,17 @@ PowerDevilDaemon::PowerDevilDaemon(QObje
QDBusConnection::sessionBus().registerService("org.kde.powerdevil");
// All systems up Houston, let's go!
refreshStatus();
+
+ d->cachedBrightness = (int) Solid::Control::PowerManager::brightness();
+ KActionCollection* actionCollection = new KActionCollection( this );
+
+ KAction* globalAction = static_cast< KAction* >( actionCollection->addAction( "Increase Screen Brightness" ));
+ globalAction->setGlobalShortcut(KShortcut(Qt::Key_MonBrightnessUp));
+ connect(globalAction, SIGNAL(triggered(bool)), SLOT(increaseBrightness()));
+
+ globalAction = static_cast< KAction* >( actionCollection->addAction( "Decrease Screen Brightness" ));
+ globalAction->setGlobalShortcut(KShortcut(Qt::Key_MonBrightnessDown));
+ connect(globalAction, SIGNAL(triggered(bool)), SLOT(decreaseBrightness()));
}
PowerDevilDaemon::~PowerDevilDaemon()
@@ -661,24 +689,40 @@ void PowerDevilDaemon::buttonPressed(int
}
}
-void PowerDevilDaemon::decreaseBrightness()
+void PowerDevilDaemon::incDecBrightness(bool increase)
{
if (!checkIfCurrentSessionActive()) {
return;
}
+
+ int currentBrightness = (int) Solid::Control::PowerManager::brightness();
+ if ((currentBrightness == d->cachedBrightness) && !d->brightnessInHardware)
+ {
+ int newBrightness;
+ if (increase) {
+ newBrightness = qMin(100, currentBrightness + 10);
+ }
+ else {
+ newBrightness = qMax(0, currentBrightness - 10);
+ }
- int currentBrightness = qMax(0, (int)(Solid::Control::PowerManager::brightness() - 10));
- Solid::Control::PowerManager::setBrightness(currentBrightness);
+ Solid::Control::PowerManager::setBrightness(newBrightness);
+ currentBrightness = (int) Solid::Control::PowerManager::brightness();
+ }
+
+ if (!d->brightnessInHardware) {
+ emitBrightnessChanged(currentBrightness, true);
+ }
}
-void PowerDevilDaemon::increaseBrightness()
+void PowerDevilDaemon::decreaseBrightness()
{
- if (!checkIfCurrentSessionActive()) {
- return;
- }
+ incDecBrightness(false);
+}
- int currentBrightness = qMin(100, (int)(Solid::Control::PowerManager::brightness() + 10));
- Solid::Control::PowerManager::setBrightness(currentBrightness);
+void PowerDevilDaemon::increaseBrightness()
+{
+ incDecBrightness(true);
}
void PowerDevilDaemon::shutdownNotification(bool automated)
@@ -1463,4 +1507,17 @@ void PowerDevilDaemon::setUpConsoleKit()
SLOT(refreshStatus()));
}
+void PowerDevilDaemon::notifyOfBrightnessChange(int brightness)
+{
+ emitBrightnessChanged(brightness, false);
+}
+
+void PowerDevilDaemon::emitBrightnessChanged(int brightness, bool byFnKey)
+{
+ if ((d->cachedBrightness != brightness) || byFnKey) {
+ d->cachedBrightness = brightness;
+ emit brightnessChanged(brightness, byFnKey);
+ }
+}
+
#include "PowerDevilDaemon.moc"
diff -up kdebase-workspace-4.3.95/powerdevil/daemon/PowerDevilDaemon.h.brightness_keys kdebase-workspace-4.3.95/powerdevil/daemon/PowerDevilDaemon.h
--- kdebase-workspace-4.3.95/powerdevil/daemon/PowerDevilDaemon.h.brightness_keys 2009-11-30 18:30:27.000000000 -0600
+++ kdebase-workspace-4.3.95/powerdevil/daemon/PowerDevilDaemon.h 2010-01-23 12:35:12.387639722 -0600
@@ -61,10 +61,13 @@ public Q_SLOTS:
SuspensionLockHandler *lockHandler();
+ void notifyOfBrightnessChange(int brightness);
+
private Q_SLOTS:
void acAdapterStateChanged(int state, bool forced = false);
void batteryChargePercentChanged(int percent, const QString &udi);
+ void incDecBrightness(bool increase);
void decreaseBrightness();
void increaseBrightness();
@@ -106,6 +109,7 @@ Q_SIGNALS:
void stateChanged(int, bool);
void profileChanged(const QString &, const QStringList &);
void DPMSconfigUpdated();
+ void brightnessChanged(int brightness, bool byFnKey);
private:
void lockScreen();
@@ -127,6 +131,8 @@ private:
bool checkIfCurrentSessionActive();
+ void emitBrightnessChanged(int brightness, bool byFnKey);
+
public:
enum IdleAction {
None = 0,
kdebase-workspace-4.3.95-redhat-startkde.patch:
startkde.cmake | 63 ++++++++++++++++++++++++++++++++++++++-------------------
1 file changed, 43 insertions(+), 20 deletions(-)
--- NEW FILE kdebase-workspace-4.3.95-redhat-startkde.patch ---
diff -up kdebase-workspace-4.3.95/startkde.cmake.redhat-startkde kdebase-workspace-4.3.95/startkde.cmake
--- kdebase-workspace-4.3.95/startkde.cmake.redhat-startkde 2010-01-19 17:19:16.000000000 -0600
+++ kdebase-workspace-4.3.95/startkde.cmake 2010-01-23 12:28:19.694880339 -0600
@@ -25,33 +25,17 @@ elif test $kcheckrunning_result -eq 2 ;
exit 1
fi
-# Set the background to plain grey.
+# Set the background to the Red Hat default.
# The standard X background is nasty, causing moire effects and exploding
# people's heads. We use colours from the standard KDE palette for those with
# palettised displays.
if test -z "$XDM_MANAGED" || echo "$XDM_MANAGED" | grep ",auto" > /dev/null; then
- xsetroot -solid "#000000"
+ xsetroot -solid "#103D77"
fi
# we have to unset this for Darwin since it will screw up KDE's dynamic-loading
unset DYLD_FORCE_FLAT_NAMESPACE
-# in case we have been started with full pathname spec without being in PATH
-bindir=`echo "$0" | sed -n 's,^\(/.*\)/[^/][^/]*$,\1,p'`
-if [ -n "$bindir" ]; then
- qbindir=`$bindir/kde4-config --qt-binaries`
- if [ -n "$qbindir" ]; then
- case $PATH in
- $qbindir|$qbindir:*|*:$qbindir|*:$qbindir:*) ;;
- *) PATH=$qbindir:$PATH; export PATH;;
- esac
- fi
- case $PATH in
- $bindir|$bindir:*|*:$bindir|*:$bindir:*) ;;
- *) PATH=$bindir:$PATH; export PATH;;
- esac
-fi
-
# Boot sequence:
#
# kdeinit is used to fork off processes which improves memory usage
@@ -72,6 +56,35 @@ fi
kdehome=$HOME/@KDE_DEFAULT_HOME@
test -n "$KDEHOME" && kdehome=`echo "$KDEHOME"|sed "s,^~/,$HOME/,"`
+# Read LANG and write the country part to kdeglobals
+# de_AT.UTF-8 => Country=at
+# This is necessary because klocale.cpp (kdelibs) does only try to read the value
+# from kdeglobals and then falls back to default instead of triyng to detect it
+
+if [ ! -e $kdehome/share/config/kdeglobals ] || [ ! `grep "Country=" $kdehome/share/config/kdeglobals` ]; then
+ if [ ! $LANG ]; then
+ if [ -e /etc/default/locale ]; then
+ localefile='/etc/default/locale'
+ elif [ -e /etc/environment ]; then
+ localefile='/etc/environment'
+ fi
+ if [ $localefile ]; then
+ locale=`sed -ne 's/^LANG="\(.*\)"$/\1/p' $localefile`
+ fi
+ else
+ locale=$LANG
+ fi
+ if [ $locale ]; then
+ country=`echo $locale | sed -ne 's/^[A-Za-z]*_\([A-Za-z]*\).*$/\1/p'|tr 'A-Z' 'a-z'`
+ if [ ! $country = "" ]; then
+cat >>$kdehome/share/config/kdeglobals <<EOF
+[Locale]
+Country=$country
+EOF
+ fi
+ fi
+fi
+
# see kstartupconfig source for usage
mkdir -m 700 -p $kdehome
mkdir -m 700 -p $kdehome/share
@@ -88,7 +101,15 @@ kcmrandrrc [Screen2]
kcmrandrrc [Screen3]
kcmfonts General forceFontDPI 0
kdeglobals Locale Language '' # trigger requesting languages from KLocale
+kdeglobals Locale Country ''
EOF
+# read the default KSplash theme to use out of kde-settings
+if [ -e /usr/share/kde-settings/kde-profile/default/share/config/ksplashrc ]
+ then eval `grep '^Theme=' /usr/share/kde-settings/kde-profile/default/share/config/ksplashrc`
+ if [ -n "$Theme" ]
+ then sed -i -e "s/Default/$Theme/g" $kdehome/share/config/startupconfigkeys
+ fi
+fi
kstartupconfig4
returncode=$?
if test $returncode -ne 0; then
@@ -209,8 +230,9 @@ fi
# better use the Autostart folder.
libpath=`kde4-config --path lib | tr : '\n'`
+envpath=/etc/kde/env/
-for prefix in `echo "$libpath" | sed -n -e 's,/lib[^/]*/,/env/,p'`; do
+for prefix in `echo "$libpath" | sed -n -e 's,/lib[^/]*/,/env/,p'` $envpath ; do
for file in "$prefix"*.sh; do
test -r "$file" && . "$file"
done
@@ -423,7 +445,8 @@ kde3 dcopserver_shutdown --wait 2>/dev/n
echo 'startkde: Running shutdown scripts...' 1>&2
# Run scripts found in $KDEDIRS/shutdown
-for prefix in `echo "$libpath" | sed -n -e 's,/lib[^/]*/,/shutdown/,p'`; do
+shutdownpath=/etc/kde/shutdown/
+for prefix in `echo "$libpath" | sed -n -e 's,/lib[^/]*/,/shutdown/,p'` $shutdownpath; do
for file in `ls "$prefix" 2> /dev/null | egrep -v '(~|\.bak)$'`; do
test -x "$prefix$file" && "$prefix$file"
done
kdebase-workspace-4.3.98-battery-plasmoid-showremainingtime.patch:
battery.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
--- NEW FILE kdebase-workspace-4.3.98-battery-plasmoid-showremainingtime.patch ---
diff -ur kdebase-workspace-4.3.98/plasma/generic/applets/battery/battery.cpp kdebase-workspace-4.3.98-battery-plasmoid-showremainingtime/plasma/generic/applets/battery/battery.cpp
--- kdebase-workspace-4.3.98/plasma/generic/applets/battery/battery.cpp 2010-01-31 20:30:45.000000000 +0100
+++ kdebase-workspace-4.3.98-battery-plasmoid-showremainingtime/plasma/generic/applets/battery/battery.cpp 2010-02-01 05:42:29.000000000 +0100
@@ -613,7 +613,11 @@
} else {
m_acInfoLabel->setText(i18n("Not plugged in"));
}
- if ((state == "Discharging" || state == "Charging") && m_remainingMSecs > 0 && m_showRemainingTime) {
+ // Always show the remaining time in the popup.
+ // We don't just set m_showRemainingTime to true by default because
+ // that'd try to use the time also for the icon. That won't fit on
+ // small panels.
+ if ((state == "Discharging" || state == "Charging") && m_remainingMSecs > 0) {
m_remainingTimeLabel->show();
m_remainingInfoLabel->show();
// we don't have too much accuracy so only give hours and minutes
kdebase-workspace-4.3.98-plasma-konsole.patch:
menu.cpp | 17 +++++++++++++++--
menu.h | 2 ++
2 files changed, 17 insertions(+), 2 deletions(-)
--- NEW FILE kdebase-workspace-4.3.98-plasma-konsole.patch ---
diff -up kdebase-workspace-4.3.98/plasma/generic/containmentactions/contextmenu/menu.cpp.plasma-konsole kdebase-workspace-4.3.98/plasma/generic/containmentactions/contextmenu/menu.cpp
--- kdebase-workspace-4.3.98/plasma/generic/containmentactions/contextmenu/menu.cpp.plasma-konsole 2010-01-31 13:30:37.000000000 -0600
+++ kdebase-workspace-4.3.98/plasma/generic/containmentactions/contextmenu/menu.cpp 2010-01-31 19:19:23.000000000 -0600
@@ -30,6 +30,7 @@
#include <KDebug>
#include <KIcon>
#include <KMenu>
+#include <ktoolinvocation.h>
#include <Plasma/Containment>
#include <Plasma/Corona>
@@ -46,6 +47,7 @@
ContextMenu::ContextMenu(QObject *parent, const QVariantList &args)
: Plasma::ContainmentActions(parent, args),
+ m_runKonsoleAction(0),
m_runCommandAction(0),
m_lockScreenAction(0),
m_logoutAction(0),
@@ -77,8 +79,8 @@ void ContextMenu::init(const KConfigGrou
defaultEnabled << true << true << true << true << true;
} else {
//FIXME ugly code!
- m_allActions << "_context" << "_run_command" << "add widgets" << "_add panel" << "add sibling containment" << "remove" << "lock widgets" << "zoom in" << "zoom out" << "_sep1" << "_lock_screen" << "_logout" << "_sep2" << "configure" << "configure shortcuts" << "_sep3" << "_wallpaper";
- defaultEnabled << true << true << true << true << false << true << true << false << false << true << true << true << true << true << false << true << true;
+ m_allActions << "_context" << "_run_konsole" << "_run_command" << "add widgets" << "_add panel" << "add sibling containment" << "remove" << "lock widgets" << "zoom in" << "zoom out" << "_sep1" << "_lock_screen" << "_logout" << "_sep2" << "configure" << "configure shortcuts" << "_sep3" << "_wallpaper";
+ defaultEnabled << true << true << true << true << true << false << true << true << false << false << true << true << true << true << true << false << true << true;
}
for (int i = 0; i < m_allActions.count(); ++i) {
@@ -95,6 +97,10 @@ void ContextMenu::init(const KConfigGrou
//panel does its own config action atm... FIXME how do I fit it in properly?
//can I do something with configureRequested? damn privateslot...
} else {
+ m_runKonsoleAction = new QAction(i18n("Konsole"), this);
+ m_runKonsoleAction->setIcon(KIcon("terminal"));
+ connect(m_runKonsoleAction, SIGNAL(triggered(bool)), this, SLOT(runKonsole()));
+
m_runCommandAction = new QAction(i18n("Run Command..."), this);
m_runCommandAction->setIcon(KIcon("system-run"));
connect(m_runCommandAction, SIGNAL(triggered(bool)), this, SLOT(runCommand()));
@@ -179,6 +185,8 @@ QAction *ContextMenu::action(const QStri
if (c->corona() && c->corona()->immutability() == Plasma::Mutable) {
return c->corona()->action("add panel");
}
+ } else if (name == "_run_konsole") {
+ return m_runKonsoleAction;
} else if (name == "_run_command") {
if (KAuthorized::authorizeKAction("run_command")) {
return m_runCommandAction;
@@ -198,6 +206,11 @@ QAction *ContextMenu::action(const QStri
return 0;
}
+void ContextMenu::runKonsole()
+{
+ KToolInvocation::invokeTerminal(QString(), QDir::homePath());
+}
+
void ContextMenu::runCommand()
{
if (!KAuthorized::authorizeKAction("run_command")) {
diff -up kdebase-workspace-4.3.98/plasma/generic/containmentactions/contextmenu/menu.h.plasma-konsole kdebase-workspace-4.3.98/plasma/generic/containmentactions/contextmenu/menu.h
--- kdebase-workspace-4.3.98/plasma/generic/containmentactions/contextmenu/menu.h.plasma-konsole 2010-01-31 13:30:37.000000000 -0600
+++ kdebase-workspace-4.3.98/plasma/generic/containmentactions/contextmenu/menu.h 2010-01-31 19:17:49.000000000 -0600
@@ -41,12 +41,14 @@ public:
void save(KConfigGroup &config);
public slots:
+ void runKonsole();
void runCommand();
void lockScreen();
void startLogout();
void logout();
private:
+ QAction *m_runKonsoleAction;
QAction *m_runCommandAction;
QAction *m_lockScreenAction;
QAction *m_logoutAction;
kdebase-workspace-4.3.98-platformplugin-widgetstyle4.patch:
qguiplatformplugin_kde.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE kdebase-workspace-4.3.98-platformplugin-widgetstyle4.patch ---
diff -ur kdebase-workspace-4.3.98/qguiplatformplugin_kde/qguiplatformplugin_kde.cpp kdebase-workspace-4.3.98-platformplugin-widgetstyle4/qguiplatformplugin_kde/qguiplatformplugin_kde.cpp
--- kdebase-workspace-4.3.98/qguiplatformplugin_kde/qguiplatformplugin_kde.cpp 2009-12-17 17:35:19.000000000 +0100
+++ kdebase-workspace-4.3.98-platformplugin-widgetstyle4/qguiplatformplugin_kde/qguiplatformplugin_kde.cpp 2010-02-02 01:24:26.000000000 +0100
@@ -159,7 +159,7 @@
{
const QString defaultStyle = KStyle::defaultStyle();
const KConfigGroup pConfig(KGlobal::config(), "General");
- return pConfig.readEntry("widgetStyle", defaultStyle);
+ return pConfig.readEntry("widgetStyle4", pConfig.readEntry("widgetStyle", defaultStyle));
}
virtual QPalette palette()
{
kdebase-workspace-kde#200184.patch:
core/systemmodel.cpp | 133 +++++++++++++++++----------------------------------
core/systemmodel.h | 7 +-
ui/launcher.cpp | 7 +-
3 files changed, 54 insertions(+), 93 deletions(-)
--- NEW FILE kdebase-workspace-kde#200184.patch ---
Index: kdebase-workspace/plasma/desktop/applets/kickoff/core/systemmodel.cpp
===================================================================
--- kdebase-workspace/plasma/desktop/applets/kickoff/core/systemmodel.cpp (Revision 1087229)
+++ kdebase-workspace/plasma/desktop/applets/kickoff/core/systemmodel.cpp (Revision 1087230)
@@ -52,21 +52,22 @@
struct UsageInfo {
UsageInfo()
- : used(0),
- available(0),
- dirty(true) {}
+ : used(0),
+ available(0)
+ {}
quint64 used;
quint64 available;
- bool dirty;
};
class SystemModel::Private
{
public:
Private(SystemModel *parent)
- : q(parent)
- , placesModel(new KFilePlacesModel(parent)) {
+ : q(parent),
+ placesModel(new KFilePlacesModel(parent)),
+ currentPlacesModelUsageIndex(0)
+ {
q->setSourceModel(placesModel);
connect(placesModel, SIGNAL(dataChanged(QModelIndex, QModelIndex)),
@@ -84,44 +85,15 @@
<< i18n("Places")
<< i18n("Removable Storage")
<< i18n("Storage");
- loadApplications();
- connect(&refreshTimer, SIGNAL(timeout()),
- q, SLOT(startRefreshingUsageInfo()));
- refreshTimer.start(10000);
- QTimer::singleShot(0, q, SLOT(startRefreshingUsageInfo()));
connect(KSycoca::self(), SIGNAL(databaseChanged(const QStringList&)), q, SLOT(reloadApplications()));
}
- void queryFreeSpace(const QString& mountPoint) {
- KDiskFreeSpaceInfo freeSpace = KDiskFreeSpaceInfo::freeSpaceInfo(mountPoint);
- if (freeSpace.isValid())
- q->freeSpaceInfoAvailable(freeSpace.mountPoint(), freeSpace.size() / 1024,
- freeSpace.used() / 1024, freeSpace.available() / 1024);
- }
-
- void loadApplications() {
- const QStringList apps = Kickoff::systemApplicationList();
- appsList.clear();
-
- foreach(const QString &app, apps) {
- KService::Ptr service = KService::serviceByStorageId(app);
-
- if (!service) {
- continue;
- }
-
- appsList << service;
- }
- //kDebug() << "*************" << appsList;
- }
-
SystemModel * const q;
KFilePlacesModel *placesModel;
QStringList topLevelSections;
KService::List appsList;
- QList<QString> mountPointsQueue;
QMap<QString, UsageInfo> usageByMountpoint;
- QTimer refreshTimer;
+ int currentPlacesModelUsageIndex;
};
SystemModel::SystemModel(QObject *parent)
@@ -137,7 +109,9 @@
QModelIndex SystemModel::mapFromSource(const QModelIndex &sourceIndex) const
{
- if (!sourceIndex.isValid()) return QModelIndex();
+ if (!sourceIndex.isValid()) {
+ return QModelIndex();
+ }
QModelIndex parent;
@@ -356,75 +330,60 @@
}
}
-void SystemModel::startRefreshingUsageInfo()
+void SystemModel::refreshUsageInfo()
{
- if (!d->mountPointsQueue.isEmpty()) {
- return;
- }
-
- int rowCount = d->placesModel->rowCount();
- for (int i = 0; i < rowCount; ++i) {
- QModelIndex index = d->placesModel->index(i, 0);
- if (d->placesModel->isDevice(index)) {
- Solid::Device dev = d->placesModel->deviceForIndex(index);
- Solid::StorageAccess *access = dev.as<Solid::StorageAccess>();
-
- if (access && !access->filePath().isEmpty()) {
- d->mountPointsQueue << access->filePath();
- }
- }
- }
-
- if (!d->mountPointsQueue.isEmpty()) {
- d->queryFreeSpace(d->mountPointsQueue.takeFirst());
- }
+ d->currentPlacesModelUsageIndex = 0;
+ QTimer::singleShot(100, this, SLOT(refreshNextUsageInfo()));
}
-void SystemModel::reloadApplications()
+void SystemModel::stopRefreshingUsageInfo()
{
- d->loadApplications();
+ d->currentPlacesModelUsageIndex = d->placesModel->rowCount();
}
-void SystemModel::freeSpaceInfoAvailable(const QString& mountPoint, quint64,
- quint64 kbUsed, quint64 kbAvailable)
+void SystemModel::refreshNextUsageInfo()
{
- UsageInfo info;
- info.used = kbUsed;
- info.available = kbAvailable;
-
- d->usageByMountpoint[mountPoint] = info;
-
- // More to process
- if (!d->mountPointsQueue.isEmpty()) {
- d->queryFreeSpace(d->mountPointsQueue.takeFirst());
+ if (d->currentPlacesModelUsageIndex >= d->placesModel->rowCount()) {
return;
}
- // We're done, let's emit the changes
- int rowCount = d->placesModel->rowCount();
- for (int i = 0; i < rowCount; ++i) {
- QModelIndex sourceIndex = d->placesModel->index(i, 0);
- if (d->placesModel->isDevice(sourceIndex)) {
- Solid::Device dev = d->placesModel->deviceForIndex(sourceIndex);
- Solid::StorageAccess *access = dev.as<Solid::StorageAccess>();
+ QModelIndex sourceIndex = d->placesModel->index(d->currentPlacesModelUsageIndex, 0);
+ if (d->placesModel->isDevice(sourceIndex)) {
+ Solid::Device dev = d->placesModel->deviceForIndex(sourceIndex);
+ Solid::StorageAccess *access = dev.as<Solid::StorageAccess>();
- if (access && d->usageByMountpoint.contains(access->filePath())) {
- info = d->usageByMountpoint[access->filePath()];
+ if (access && !access->filePath().isEmpty()) {
+ KDiskFreeSpaceInfo freeSpace = KDiskFreeSpaceInfo::freeSpaceInfo(access->filePath());
+ if (freeSpace.isValid()) {
+ UsageInfo info;
+ info.used = freeSpace.used() / 1024;
+ info.available = freeSpace.available() / 1024;
- if (info.dirty) {
- info.dirty = false;
- d->usageByMountpoint[access->filePath()] = info;
- } else {
- d->usageByMountpoint.remove(access->filePath());
- }
-
+ d->usageByMountpoint[freeSpace.mountPoint()] = info;
QModelIndex index = mapFromSource(sourceIndex);
emit dataChanged(index, index);
}
}
}
+
+ ++d->currentPlacesModelUsageIndex;
+ QTimer::singleShot(0, this, SLOT(refreshNextUsageInfo()));
}
+void SystemModel::reloadApplications()
+{
+ const QStringList apps = Kickoff::systemApplicationList();
+ d->appsList.clear();
+
+ foreach (const QString &app, apps) {
+ KService::Ptr service = KService::serviceByStorageId(app);
+
+ if (service) {
+ d->appsList << service;
+ }
+ }
+}
+
void Kickoff::SystemModel::sourceDataChanged(const QModelIndex &start, const QModelIndex &end)
{
if (start.parent().isValid()) return;
Index: kdebase-workspace/plasma/desktop/applets/kickoff/core/systemmodel.h
===================================================================
--- kdebase-workspace/plasma/desktop/applets/kickoff/core/systemmodel.h (Revision 1087229)
+++ kdebase-workspace/plasma/desktop/applets/kickoff/core/systemmodel.h (Revision 1087230)
@@ -48,13 +48,12 @@
virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
+ void refreshUsageInfo();
+ void stopRefreshingUsageInfo();
private Q_SLOTS:
- void startRefreshingUsageInfo();
+ void refreshNextUsageInfo();
void reloadApplications();
- void freeSpaceInfoAvailable(const QString& mountPoint, quint64 kbSize,
- quint64 kbUsed, quint64 kbAvailable);
-
void sourceDataChanged(const QModelIndex &start, const QModelIndex &end);
void sourceRowsAboutToBeInserted(const QModelIndex &parent, int start, int end);
void sourceRowsInserted(const QModelIndex &parent, int start, int end);
Index: kdebase-workspace/plasma/desktop/applets/kickoff/ui/launcher.cpp
===================================================================
--- kdebase-workspace/plasma/desktop/applets/kickoff/ui/launcher.cpp (Revision 1087229)
+++ kdebase-workspace/plasma/desktop/applets/kickoff/ui/launcher.cpp (Revision 1087230)
@@ -228,7 +228,7 @@
void setupSystemView()
{
- SystemModel *model = new SystemModel(q);
+ systemModel = new SystemModel(q);
UrlItemView *view = new UrlItemView();
ItemDelegate *delegate = new ItemDelegate(q);
delegate->setRoleMapping(Plasma::Delegate::SubTitleRole, SubTitleRole);
@@ -236,7 +236,7 @@
view->setItemDelegate(delegate);
view->setItemStateProvider(delegate);
- addView(i18n("Computer"), systemIcon(), model, view);
+ addView(i18n("Computer"), systemIcon(), systemModel, view);
}
void setupSearchView()
@@ -448,6 +448,7 @@
ApplicationModel *applicationModel;
RecentlyUsedModel *recentlyUsedModel;
KRunnerModel *searchModel;
+ SystemModel *systemModel;
LeaveModel *leaveModel;
SearchBar *searchBar;
QWidget *footer;
@@ -807,6 +808,7 @@
{
Q_UNUSED(event)
reset();
+ d->systemModel->stopRefreshingUsageInfo();
}
void Launcher::keyPressEvent(QKeyEvent *event)
@@ -828,6 +830,7 @@
void Launcher::showEvent(QShowEvent *e)
{
d->searchBar->setFocus();
+ d->systemModel->refreshUsageInfo();
QWidget::showEvent(e);
}
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/kdebase-workspace/F-11/.cvsignore,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -p -r1.38 -r1.39
--- .cvsignore 26 Jan 2010 13:03:38 -0000 1.38
+++ .cvsignore 10 Feb 2010 14:00:02 -0000 1.39
@@ -1 +1 @@
-kdebase-workspace-4.3.5.tar.bz2
+kdebase-workspace-4.4.0.tar.bz2
Index: kdebase-workspace.spec
===================================================================
RCS file: /cvs/extras/rpms/kdebase-workspace/F-11/kdebase-workspace.spec,v
retrieving revision 1.256
retrieving revision 1.257
diff -u -p -r1.256 -r1.257
--- kdebase-workspace.spec 9 Feb 2010 13:26:44 -0000 1.256
+++ kdebase-workspace.spec 10 Feb 2010 14:00:05 -0000 1.257
@@ -1,24 +1,39 @@
-%if 0%{?fedora} && 0%{?fedora} < 12
-%define with_polkit_09 1
+
+%if 0%{?fedora} > 11 || 0%{?rhel} > 5
+%define polkit_1 1
+%else
+%define polkit_09 1
%endif
+%define _default_patch_fuzz 2
+
+%if 0%{?fedora} > 12
+# TODO/FIXME: handle the new plymouth --ping style/case
+%define plymouth_hack_ping 1
+%else
+%define plymouth_hack_spool 1
+%endif
+
+## define to create/use -akonadi subpkg
+#global akonadi_subpkg 1
+
%{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
-Summary: K Desktop Environment - Workspace
-Name: kdebase-workspace
-Version: 4.3.5
+Summary: KDE Workspace
+Name: kdebase-workspace
+Version: 4.4.0
Release: 2%{?dist}.1
-Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/kdebase-workspace-%{version}.tar.bz2
License: GPLv2
-Group: User Interface/Desktops
-URL: http://www.kde.org/
+Group: User Interface/Desktops
+URL: http://www.kde.org/
+Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/kdebase-workspace-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Patch1: kdebase-workspace-4.2.96-redhat-startkde.patch
-Patch2: kdebase-workspace-4.2.95-plasma-konsole.patch
-Patch3: kdebase-workspace-4.2.90-show_systemsettings.patch
-%if 0%{?fedora} > 11 || !0%{?fedora}
+Patch1: kdebase-workspace-4.3.95-redhat-startkde.patch
+Patch2: kdebase-workspace-4.3.98-plasma-konsole.patch
+Patch3: kdebase-workspace-4.3.75-show_systemsettings.patch
+%if 0%{?polkit_1}
Patch4: kdebase-workspace-4.3.95-ck-shutdown.patch
%else
# old version of the patch without the CanStop check for F11
@@ -29,46 +44,59 @@ Patch4: kdebase-workspace-4.2.85-ck-shut
Patch7: kdebase-workspace-4.0.3-krdb.patch
Patch8: kdebase-workspace-4.2.85-klipper-url.patch
# 434824: KDE4 System Settings - No Method To Enter Administrative Mode
-Patch9: kdebase-workspace-4.2.95-rootprivs.patch
+Patch9: kdebase-workspace-4.3.75-rootprivs.patch
Patch11: kdebase-workspace-4.1.96-font.patch
-Patch12: kdebase-workspace-4.3.0-default_applets.patch
Patch13: kdebase-workspace-4.2.0-pykde4.patch
Patch14: kdebase-workspace-4.2.0-klipper-arora.patch
-Patch15: kdebase-workspace-4.2.0-kio_sysinfo.patch
-# show the remaining time in the battery plasmoid's popup (as in 4.2) (#515166)
-Patch16: kdebase-workspace-4.3.0-battery-plasmoid-showremainingtime.patch
+Patch15: kdebase-workspace-4.3.75-kio_sysinfo.patch
+# show the remaining time in the battery plasmoid's popup (#515166)
+Patch16: kdebase-workspace-4.3.98-battery-plasmoid-showremainingtime.patch
# allow adding a "Leave..." button which brings up the complete shutdown dialog
# to the classic menu (as in KDE <= 4.2.x); the default is still the upstream
# default Leave submenu
-Patch17: kdebase-workspace-4.3.1-classicmenu-logout.patch
-Patch18: kdebase-workspace-4.3.4-kdm_plymouth.patch
-# do not link calendar data engine with Akonadi
-Patch19: kdebase-workspace-4.3.4-calendar-akonadi.patch
+Patch17: kdebase-workspace-4.3.75-classicmenu-logout.patch
+Patch19: kdebase-workspace-4.3.4-kdm_plymouth.patch
+Patch20: kdebase-workspace-4.3.80-xsession_errors_O_APPEND.patch
+# support the widgetStyle4 hack in the Qt KDE platform plugin
+Patch21: kdebase-workspace-4.3.98-platformplugin-widgetstyle4.patch
# upstream patches:
# "keyboard stops working", https://bugs.kde.org/show_bug.cgi?id=171685#c135
Patch50: kdebase-workspace-4.3.3-kde#171685.patch
# kubuntu working to upstream this
-Patch51: http://bazaar.launchpad.net/~kubuntu-members/kdebase-workspace/ubuntu/download/head:/kubuntu_101_brightne-20091019223214-s1uoamqahgp3uee7-1/kubuntu_101_brightness_fn_keys_and_osd.diff
-# fixups for hal-0.5.14 compat
-Patch52: kdebase-workspace-4.3.4-solid_hal_0_5_14.patch
-# 4.3 branch
+# FIXME: Not upstreamed yet --Ben (4.3.80)
+#Patch51: http://bazaar.launchpad.net/~kubuntu-members/kdebase-workspace/ubuntu/annotate/head%3A/debian/patches/kubuntu_101_brightness_fn_keys_and_osd.diff
+Patch51: kdebase-workspace-4.3.95-brightness_keys.patch
+
-# trunk
+# 4.4 patches
+# kde#200184, Plasma Memory Leak and High CPU usage
+Patch100: kdebase-workspace-kde#200184.patch
# moving to non-multilib hack
Obsoletes: kdebase-workspace < 4.3.0-2
+%if 0%{?polkit_1} && 0%{fedora} > 12
+Requires: polkit-kde
+%else
Requires: PolicyKit-authentication-agent
+%endif
-%if ! 0%{?with_polkit_09}
+%if 0%{?polkit_1} && 0%{fedora} < 13
+# polkit-kde has the Obsoletes on F13+
Obsoletes: PolicyKit-kde < %{version}-%{release}
# if/when we actually create this one:
#Obsoletes: PolicyKit-kde-libs < %{version}-%{release}
-Obsoletes: polkit-qt < 0.10
-Obsoletes: polkit-qt-examples < 0.10
%endif
+%if ! 0%{?akonadi_subpkg}
+Obsoletes: %{name}-akonadi < %{version}-%{release}
+Provides: %{name}-akonadi = %{version}-%{release}
+Provides: plasma-dataengine-akonadi = %{version}-%{release}
+%endif
+
+Provides: plasma-dataengine-calendar = %{version}-%{release}
+
# kdmtheme's functionality is now provided by kdebase-workspace itself
Obsoletes: kdmtheme < 1.3
%if 0%{?fedora} && 0%{?fedora} > 10
@@ -90,7 +118,6 @@ BuildRequires: libcaptury-devel
%endif
BuildRequires: glib2-devel
BuildRequires: kdelibs4-devel >= %{version}
-BuildRequires: kdelibs-experimental-devel >= %{version}
BuildRequires: kdepimlibs-devel >= %{version}
BuildRequires: libutempter-devel
BuildRequires: libxklavier-devel
@@ -102,17 +129,13 @@ BuildRequires: lm_sensors-devel
%endif
BuildRequires: NetworkManager-devel
BuildRequires: pam-devel
-%if 0%{?with_polkit_09}
BuildRequires: polkit-qt-devel
-%endif
BuildRequires: qimageblitz-devel
BuildRequires: soprano-devel
BuildRequires: python-devel
# used for the Logitech mouse KCM, disabled until #399931 is fixed
# BuildRequires: libusb-devel
-Provides: plasma-dataengine-calendar = %{version}-%{release}
-
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} }
@@ -143,7 +166,7 @@ Requires: solar-kde-theme
Requires: leonidas-kde-theme
%endif
-%if 0%{?fedora} > 11
+%if 0%{?fedora} > 11 || 0%{?rhel} > 5
Requires: system-backgrounds-kde
Requires: system-ksplash-theme
%endif
@@ -170,9 +193,6 @@ This package contains:
Group: Development/Libraries
Summary: Development files for %{name}
Obsoletes: PolicyKit-kde-devel < 4.3.0
-%if ! 0%{?with_polkit_09}
-Obsoletes: polkit-qt-devel < 0.10
-%endif
Provides: solid-bluetooth-devel = 4.3-0.1
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires: kdelibs4-devel
@@ -268,7 +288,7 @@ Requires: akonadi
%prep
-%setup -q
+%setup -q -n kdebase-workspace-%{version}
# RH/Fedora-specific startkde changes
%patch1 -p1 -b .redhat-startkde
@@ -280,20 +300,23 @@ Requires: akonadi
%patch8 -p1 -b .klipper-url
%patch9 -p1 -b .rootprivs
%patch11 -p1 -b .font
-%patch12 -p1 -b .default_applets
%patch13 -p1 -b .pykde4
# kio_sysinfo based on OpenSUSE's patch
%patch15 -p1 -b .kio_sysinfo
%patch16 -p1 -b .showremainingtime
%patch17 -p1 -b .classicmenu-logout
-%patch18 -p1 -b .kdm_plymouth
-%patch19 -p1 -b .calendar-akonadi
+%if 0%{?plymouth_hack_spool}
+%patch19 -p1 -b .kdm_plymouth
+%endif
+%patch20 -p1 -b .xsession_errors_O_APPEND
+%patch21 -p1 -b .platformplugin-widgetstyle4
# upstream patches
%patch50 -p1 -b .kde#171685
+# kubuntu patches
%patch51 -p1 -b .brightness_keys
-%patch52 -p1 -b .solid_hal_0_5_14
+%patch100 -p1 -b .kde#200184
%build
@@ -379,8 +402,6 @@ fi
%{_kde4_bindir}/kcminit
%{_kde4_bindir}/kcminit_startup
%{_kde4_bindir}/kdostartupconfig4
-%{_kde4_bindir}/kfontinst
-%{_kde4_bindir}/kfontview
%{_kde4_bindir}/klipper
%{_kde4_bindir}/kmenuedit
%{_kde4_bindir}/krandom.kss
@@ -397,12 +418,12 @@ fi
%{_kde4_bindir}/kwin*
%{_kde4_bindir}/kxkb
%{_kde4_bindir}/plasma-desktop
+%{_kde4_bindir}/plasma-netbook
%{_kde4_bindir}/plasma-overlay
%{_kde4_bindir}/plasmaengineexplorer
%{_kde4_bindir}/plasmoidviewer
%{_kde4_bindir}/plasmawallpaperviewer
%{_kde4_bindir}/safestartkde
-%{_kde4_bindir}/setscheduler
%{_kde4_bindir}/solid-action-desktop-gen
%{_kde4_bindir}/solid-bluetooth
%{_kde4_bindir}/solid-network
@@ -413,29 +434,31 @@ fi
%{_kde4_appsdir}/color-schemes/
%{_kde4_appsdir}/desktoptheme/
%{_kde4_appsdir}/kaccess/
+%{_kde4_appsdir}/katepart/syntax/plasma-desktop-js.xml
%{_kde4_appsdir}/kcminput/
%{_kde4_appsdir}/kcmkeys/
%{_kde4_appsdir}/kcmsolidactions/
%{_kde4_appsdir}/kconf_update/
%{_kde4_appsdir}/kcontrol/
%{_kde4_appsdir}/kdisplay/
-%{_kde4_appsdir}/kfontinst/
-%{_kde4_appsdir}/kfontview/
%{_kde4_appsdir}/khotkeys/
%{_kde4_appsdir}/kmenuedit/
-%{_kde4_appsdir}/konqsidebartng/
+%{_kde4_appsdir}/kscreenlocker/
%{_kde4_appsdir}/ksplash/
%{_kde4_appsdir}/ksysguard/
%{_kde4_appsdir}/kthememanager/
%{_kde4_appsdir}/kwin/
%{_kde4_appsdir}/kwrited/
%{_kde4_appsdir}/plasma/
+%{_kde4_appsdir}/plasma-desktop/
+%{_kde4_appsdir}/plasma-netbook/
%{_kde4_appsdir}/plasma_scriptengine_ruby/
%{_kde4_appsdir}/powerdevil/
%{_kde4_appsdir}/solid/
%{_kde4_appsdir}/solidfakenetbackend/
%{_kde4_appsdir}/systemsettings/
+%{_kde4_configdir}/aurorae.knsrc
%{_kde4_configdir}/background.knsrc
%{_kde4_configdir}/colorschemes.knsrc
%{_kde4_configdir}/ksplash.knsrc
@@ -453,8 +476,10 @@ fi
%{_kde4_datadir}/autostart/plasma.desktop
%{_kde4_datadir}/autostart/plasma-desktop.desktop
%{_kde4_datadir}/applications/kde4/*
+%{_sysconfdir}/dbus-1/system.d/*.conf
%{_datadir}/dbus-1/interfaces/*.xml
%{_datadir}/dbus-1/services/*.service
+%{_datadir}/dbus-1/system-services/*.service
%{_kde4_datadir}/config.kcfg/*
%{_datadir}/xsessions/*.desktop
%{_kde4_docdir}/HTML/en/kcontrol/
@@ -467,19 +492,17 @@ fi
%{_kde4_iconsdir}/hicolor/*/*/*
%{_kde4_iconsdir}/oxygen/*/*/*
%{_kde4_libdir}/kde4/classic_mode.so
-%{_kde4_libdir}/kde4/fontthumbnail.so
%{_kde4_libdir}/kde4/icon_mode.so
%{_kde4_libdir}/kde4/ion_*.so
%{_kde4_libdir}/kde4/kcm_*.so
%exclude %{_kde4_libdir}/kde4/kcm_kdm.so
%{_kde4_libdir}/kde4/kded_*.so
-%{_kde4_libdir}/kde4/kfontviewpart.so
-%{_kde4_libdir}/kde4/kio_fonts.so
%{_kde4_libdir}/kde4/krunner_*.so
%{_kde4_libdir}/kde4/kstyle_keramik_config.so
%{_kde4_libdir}/kde4/kwin*_*.so
%{_kde4_libdir}/kde4/plasma_animator_default.so
%{_kde4_libdir}/kde4/plasma_applet_*.so
+%{_kde4_libdir}/kde4/plasma_containmentactions_*.so
%if 0%{?fedora}
%{_kde4_libdir}/kde4/plasma_appletscript_qedje.so
%{_kde4_libdir}/kde4/plasma-geolocation-gps.so
@@ -494,31 +517,46 @@ fi
%{_kde4_libdir}/kde4/solid_*.so
%{_kde4_libexecdir}/kcheckpass
%{_kde4_libexecdir}/kcmdatetimehelper
-%{_kde4_libexecdir}/kfontprint
-%{_kde4_libexecdir}/kio_fonts_helper
%{_kde4_libexecdir}/krootimage
%{_kde4_libexecdir}/kscreenlocker
+%{_kde4_libexecdir}/ksysguardprocesslist_helper
%{_kde4_libexecdir}/test_kcm_xinerama
-%{_libdir}/strigi/
%{_kde4_libdir}/libkdeinit*.so
%{_kde4_libdir}/libkickoff.so
%{_kde4_libdir}/libsystemsettingsview.so
%{_kde4_libdir}/kconf_update_bin/*
%{_mandir}/man1/plasmaengineexplorer.1*
+
%if 0%{?fedora}
# googlegadgets
%exclude %{_kde4_libdir}/kde4/plasma_package_ggl.so
%exclude %{_kde4_libdir}/kde4/plasma_scriptengine_ggl.so
-%exclude %{_kde4_appsdir}/plasma/plasmoids/ggl_*
-%exclude %{_kde4_datadir}/kde4/services/plasma-applet-ggl*
%exclude %{_kde4_datadir}/kde4/services/*googlegadgets.desktop
%endif
# python widget
%exclude %{_kde4_datadir}/kde4/services/plasma-scriptengine*python.desktop
-# akonadi
+%if 0%{?akonadi_subpkg}
%exclude %{_kde4_libdir}/kde4/plasma_engine_akonadi.so
%exclude %{_kde4_datadir}/kde4/services/plasma-engine-akonadi.desktop
-%if 0%{?with_polkit_09}
+%endif
+%{_kde4_bindir}/kfontinst
+%{_kde4_bindir}/kfontview
+%{_kde4_libdir}/kde4/fontthumbnail.so
+%{_kde4_libdir}/kde4/kfontviewpart.so
+%{_kde4_libdir}/kde4/kio_fonts.so
+%{_kde4_libdir}/strigi/strigita_font.so
+%{_kde4_libexecdir}/fontinst
+%{_kde4_libexecdir}/fontinst_helper
+%{_kde4_libexecdir}/fontinst_x11
+%{_kde4_libexecdir}/kfontprint
+%{_polkit_qt_policydir}/org.kde.fontinst.policy
+%{_polkit_qt_policydir}/org.kde.kcontrol.kcmclock.policy
+%{_polkit_qt_policydir}/org.kde.ksysguard.processlisthelper.policy
+%{_kde4_appsdir}/kfontinst/
+%{_kde4_appsdir}/kfontview/
+%{_kde4_appsdir}/konqsidebartng/virtual_folders/services/fonts.desktop
+
+%if 0%{?polkit_09}
# PolicyKit-kde
%exclude %{_kde4_sharedir}/kde4/services/kcm_pkk_authorization.desktop
%exclude %{_kde4_datadir}/dbus-1/services/org.kde.PolicyKit.service
@@ -529,12 +567,14 @@ fi
%files libs
%defattr(-,root,root,-)
%{_kde4_libdir}/lib*.so.*
-%if 0%{?with_polkit_09}
+%if 0%{?polkit_09}
%exclude %{_kde4_libdir}/libpolkitkdeprivate.so.4*
%endif
%{_kde4_libdir}/libplasma_applet-system-monitor.so
+%{_kde4_libdir}/kde4/plugins/designer/ksignalplotterwidgets.so
%{_kde4_libdir}/kde4/plugins/designer/ksysguardwidgets.so
%{_kde4_libdir}/kde4/plugins/designer/ksysguardlsofwidgets.so
+%{_kde4_libdir}/kde4/plugins/gui_platform/libkde.so
%files devel
%defattr(-,root,root,-)
@@ -590,12 +630,10 @@ fi
%defattr(-,root,root,-)
%{_kde4_libdir}/kde4/plasma_package_ggl.so
%{_kde4_libdir}/kde4/plasma_scriptengine_ggl.so
-%{_kde4_datadir}/kde4/apps/plasma/plasmoids/ggl_*
-%{_kde4_datadir}/kde4/services/plasma-applet-ggl*
%{_kde4_datadir}/kde4/services/*googlegadgets.desktop
%endif
-%if 0%{?with_polkit_09}
+%if 0%{?polkit_09}
%files -n PolicyKit-kde
%defattr(-,root,root,-)
%{_kde4_bindir}/polkit-kde-authorization
@@ -616,48 +654,117 @@ fi
%{_kde4_appsdir}/plasma_scriptengine_python
%{_kde4_datadir}/kde4/services/plasma-scriptengine*python.desktop
+%if 0%{?akonadi_subpkg}
%files akonadi
%defattr(-,root,root,-)
%{_kde4_libdir}/kde4/plasma_engine_akonadi.so
%{_kde4_datadir}/kde4/services/plasma-engine-akonadi.desktop
+%endif
%changelog
-* Tue Feb 09 2010 Kevin Kofler <Kevin at tigcc.ticalc.org> - 4.3.5-2.1
+* Tue Feb 09 2010 Kevin Kofler <Kevin at tigcc.ticalc.org> - 4.4.0-2.1
- use old ck-shutdown patch without the CanStop check on F11 (#562851)
-* Sat Jan 30 2010 Kevin Kofler <Kevin at tigcc.ticalc.org> - 4.3.5-2
+* Mon Feb 08 2010 Than Ngo <than at redhat.com> - 4.4.0-2
+- apply upstream patch to fix Plasma Memory Leak and High CPU usage
+
+* Fri Feb 05 2010 Than Ngo <than at redhat.com> - 4.4.0-1
+- 4.4.0
+
+* Tue Feb 02 2010 Kevin Kofler <Kevin at tigcc.ticalc.org> - 4.3.98-3
+- support the widgetStyle4 hack in the Qt KDE platform plugin
+
+* Mon Feb 01 2010 Kevin Kofler <Kevin at tigcc.ticalc.org> - 4.3.98-2
+- rebase battery-plasmoid-showremainingtime patch and remove references to 4.2
+
+* Sun Jan 31 2010 Rex Dieter <rdieter at fedoraproject.org> - 4.3.98-1
+- KDE 4.3.98 (4.4rc3)
+
+* Sat Jan 30 2010 Kevin Kofler <Kevin at tigcc.ticalc.org> - 4.3.95-2
- ck-shutdown: don't offer shutdown/restart when not allowed by CK (#529644)
-* Fri Jan 22 2010 Rex Dieter <rdieter at fedoraproject.org> - 4.3.5-1
-- 4.3.5
+* Thu Jan 21 2010 Lukas Tinkl <ltinkl at redhat.com> - 4.3.95-1
+- KDE 4.3.95 (4.4rc2)
-* Wed Jan 20 2010 Kevin Kofler <Kevin at tigcc.ticalc.org> - 4.3.4-6
+* Thu Jan 21 2010 Jaroslav Reznik <jreznik at redhat.com> - 4.3.90-10
+- fix polkit-1 conditionals
+
+* Wed Jan 20 2010 Kevin Kofler <Kevin at tigcc.ticalc.org> - 4.3.90-9
- fix infinite recursion in the patch for #556643
-* Tue Jan 19 2010 Rex Dieter <rdieter at fedoraproject.org> - 4.3.4-5
+* Tue Jan 19 2010 Rex Dieter <rdieter at fedoraproject.org> - 4.3.90-8
- SELinux is preventing /sbin/setfiles "read" access on
/var/spool/gdm/force-display-on-active-vt (deleted) (#556643)
-* Tue Jan 05 2010 Jaroslav Reznik <jreznik at redhat.com> - 4.3.4-4
-- do not link calendar data engine with Akonadi, move to main package (#552473)
+* Sun Jan 17 2010 Rex Dieter <rdieter at fedoraproject.org> - 4.3.90-7
+- rebuild (libxklavier)
+
+* Thu Jan 14 2010 Jaroslav Reznik <jreznik at redhat.com> - 4.3.90-6
+- fix KDM's missing header build problem
+- polkit-qt BR for polkit-1
+
+* Mon Jan 11 2010 Rex Dieter <rdieter at fedoraproject.org> - 4.3.90-5
+- do not link calendar dataengine with Akonadi (kde#215150, rh#552473)
- s/plasma-engine/plasma-dataengine/
-* Mon Dec 14 2009 Rex Dieter <rdieter at fedoraproject.org> - 4.3.4-3
-- hal-0.5.14-1 and failures with brightness controls (#545258)
+* Fri Jan 09 2010 Rex Dieter <rdieter at fedoraproject.org> - 4.3.90-4
+- krunner crasher (kde#221871)
+
+* Fri Jan 08 2010 Rex Dieter <rdieter at fedoraproject.org> - 4.3.90-3
+- rebuild (kdelibs polkit-1 macros)
+
+* Wed Jan 06 2010 Rex Dieter <rdieter at fedoraproject.org> - 4.3.90-2
+- drop -akonadi subpkg
+
+* Wed Jan 06 2010 Rex Dieter <rdieter at fedoraproject.org> - 4.3.90-1
+- kde-4.3.90 (4.4rc1)
+
+* Tue Jan 05 2010 Kevin Kofler <Kevin at tigcc.ticalc.org> - 4.3.85-3
+- F13+: don't Obsoletes: PolicyKit-kde, let polkit-kde obsolete it
+- F13+: explicitly require polkit-kde instead of PolicyKit-authentication-agent
+
+* Sat Jan 02 2010 Rex Dieter <rdieter at fedoraproject.org> - 4.3.85-2
+- startkde: disable MALLOC_CHECK_
+
+* Fri Dec 18 2009 Rex Dieter <rdieter at fedoraproject.org> - 4.3.85-1
+- kde-4.3.85 (4.4beta2)
-* Sun Dec 06 2009 Than Ngo <than at redhat.com> - 4.3.4-2
-- fix conditional for RHEL
+* Wed Dec 16 2009 Jaroslav Reznik <jreznik at redhat.com> - 4.3.80-5
+- Repositioning the KDE Brand (#547361)
-* Tue Dec 01 2009 Than Ngo <than at redhat.com> - 4.3.4-1
-- 4.3.4
+* Fri Dec 11 2009 Rex Dieter <rdieter at fedoraproject.org> - 4.3.80-4
+- SELinux is preventing access to a leaked .xsession-errors-:0 file descriptor (#542312)
+
+* Wed Dec 09 2009 Kevin Kofler <Kevin at tigcc.ticalc.org> - 4.3.80-3
+- drop polkit-qt* Obsoletes, we have a new polkit-qt now
+
+* Wed Dec 09 2009 Rex Dieter <rdieter at fedoraproject.org> - 4.3.80-2
+- BR: shared-desktop-ontologies-devel
+
+* Tue Dec 01 2009 Lukáš Tinkl <ltinkl at redhat.com> - 4.3.80-1
+- KDE 4.4 beta1 (4.3.80)
- kdm_plymouth patch (#475890)
-* Tue Nov 24 2009 Rex Dieter <rdieter at fedoraproject.org> - 4.3.3-7.1
-- Requires: PolicyKit-authentication-agent unconditionally (ie, in F-12 too)
+* Sat Nov 28 2009 Kevin Kofler <Kevin at tigcc.ticalc.org> - 4.3.75-0.4.svn1048496
+- backport battery plasmoid from current pre-4.3.80 trunk for showremainingtime
+- rebase battery-plasmoid-showremainingtime patch
+- rebase brightness-keys patch for the above backport
+
+* Sat Nov 28 2009 Kevin Kofler <Kevin at tigcc.ticalc.org> - 4.3.75-0.3.svn1048496
+- rebase plasma-konsole patch
+
+* Wed Nov 25 2009 Rex Dieter <rdieter at fedoraproject.org> - 4.3.75-0.2.svn1048496
+- Requires: PolicyKit-authentication-agent unconditionally
+
+* Sat Nov 21 2009 Ben Boeckel <MathStuf at gmail.com> - 4.3.75-0.1.svn1048496
+- update to 4.3.75 snapshot
+
+* Wed Nov 18 2009 Lukáš Tinkl <ltinkl at redhat.com> 4.3.3-8
+- correctly try to deduce LANG (kubuntu_13_startkde_set_country.diff)
-* Fri Nov 13 2009 Rex Dieter <rdieter at fedoraproject.org> - 4.3.3-7
-- kubuntu_101_brightness_fn_keys_and_osd.diff (#475247)
+* Fri Nov 13 2009 Rex Dieter <rdieter at fedoraproject.org> 4.3.3-7
+- kubuntu_101_brightness_fn_keys_and_osd.diff (#509295)
* Fri Nov 13 2009 Than Ngo <than at redhat.com> - 4.3.3-6
- rhel cleanup, fix conditional for RHEL
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/kdebase-workspace/F-11/sources,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -p -r1.43 -r1.44
--- sources 26 Jan 2010 13:03:38 -0000 1.43
+++ sources 10 Feb 2010 14:00:05 -0000 1.44
@@ -1 +1 @@
-a6d2771fcf841e5ca33edf524f60599e kdebase-workspace-4.3.5.tar.bz2
+08179cba422038d4bb6537d63186bb23 kdebase-workspace-4.4.0.tar.bz2
--- kdebase-workspace-4.2.0-kio_sysinfo.patch DELETED ---
--- kdebase-workspace-4.2.90-show_systemsettings.patch DELETED ---
--- kdebase-workspace-4.2.95-plasma-konsole.patch DELETED ---
--- kdebase-workspace-4.2.95-rootprivs.patch DELETED ---
--- kdebase-workspace-4.2.96-redhat-startkde.patch DELETED ---
--- kdebase-workspace-4.3.0-battery-plasmoid-showremainingtime.patch DELETED ---
--- kdebase-workspace-4.3.0-default_applets.patch DELETED ---
--- kdebase-workspace-4.3.1-classicmenu-logout.patch DELETED ---
--- kdebase-workspace-4.3.4-calendar-akonadi.patch DELETED ---
--- kdebase-workspace-4.3.4-solid_hal_0_5_14.patch DELETED ---
--- kubuntu_101_brightness_fn_keys_and_osd.diff DELETED ---
- Previous message: rpms/perl-SQL-Translator/devel perl-SQL-Translator.spec,1.14,1.15
- Next message: rpms/kdebase-workspace/F-12 kdebase-workspace-4.3.75-classicmenu-logout.patch, NONE, 1.1 kdebase-workspace-4.3.75-kio_sysinfo.patch, NONE, 1.1 kdebase-workspace-4.3.75-rootprivs.patch, NONE, 1.1 kdebase-workspace-4.3.75-show_systemsettings.patch, NONE, 1.1 kdebase-workspace-4.3.80-xsession_errors_O_APPEND.patch, NONE, 1.1 kdebase-workspace-4.3.95-brightness_keys.patch, NONE, 1.1 kdebase-workspace-4.3.95-redhat-startkde.patch, NONE, 1.1 kdebase-workspace-4.3.98-battery-plasmoid-showremainingtime.patch, NONE, 1.1 kdebase-workspace-4.3.98-plasma-konsole.patch, NONE, 1.1 kdebase-workspace-4.3.98-platformplugin-widgetstyle4.patch, NONE, 1.1 kdebase-workspace-kde#200184.patch, NONE, 1.1 .cvsignore, 1.42, 1.43 kdebase-workspace-4.2.0-kio_sysinfo.patch, 1.1, NONE kdebase-workspace-4.2.90-show_systemsettings.patch, 1.1, NONE kdebase-workspace-4.2.95-plasma-konsole.patch, 1.1, NONE kdebase-workspace-4.2.95-rootprivs.patch, 1.2, NONE kdebase-workspace-4.2.96-redhat-startkde.patch, 1.1, NONE kdebase-workspace-4.3.0-battery-plasmoid-showremainingtime.patch, 1.1, NONE kdebase-workspace-4.3.0-default_applets.patch, 1.1, NONE kdebase-workspace-4.3.1-classicmenu-logout.patch, 1.1, NONE kdebase-workspace-4.3.4-calendar-akonadi.patch, 1.1, NONE kdebase-workspace-4.3.4-solid_hal_0_5_14.patch, 1.1, NONE kubuntu_101_brightness_fn_keys_and_osd.diff, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list