rpms/kdebase-workspace/F-9 kdebase-workspace-4.2.1-kde#185585.patch, NONE, 1.1 kdebase-workspace-4.2.1-plasma-konsole.patch, NONE, 1.1 kdebase-workspace.spec, 1.140, 1.141

Rex Dieter rdieter at fedoraproject.org
Thu Mar 12 16:31:27 UTC 2009


Author: rdieter

Update of /cvs/pkgs/rpms/kdebase-workspace/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv21844

Modified Files:
	kdebase-workspace.spec 
Added Files:
	kdebase-workspace-4.2.1-kde#185585.patch 
	kdebase-workspace-4.2.1-plasma-konsole.patch 
Log Message:
* Thu Mar 12 2009 Rex Dieter <rdieter at fedoraproject.org> - 4.2.1-7
- fix quicklauch (kdebug#185585,rh#489769)
- -wallpapers: make noarch (f10+)

* Tue Mar 10 2009 Than Ngo <than at redhat.com> - 4.2.1-6
- fix konsole patch to use invokeTerminal


kdebase-workspace-4.2.1-kde#185585.patch:

--- NEW FILE kdebase-workspace-4.2.1-kde#185585.patch ---
Index: plasma/applets/quicklaunch/quicklaunchApplet.cpp
===================================================================
--- plasma/applets/quicklaunch/quicklaunchApplet.cpp	(revision 923295)
+++ plasma/applets/quicklaunch/quicklaunchApplet.cpp	(working copy)
@@ -141,16 +141,11 @@
         if (!m_innerLayout) {
             return sizeHint;
         }
+        qreal newWidth = m_innerLayout->columnCount() * sizeHint.height() / qMax(1, m_innerLayout->rowCount());
         if (m_icons.size() > m_visibleIcons) {
-            qreal factor = m_innerLayout->rowCount() * m_innerLayout->columnCount() + size().height();
-            if (factor) {
-                sizeHint.setWidth(sizeHint.height() / factor);
-            }
+            sizeHint.setWidth(newWidth + sizeHint.height());
         } else {
-            qreal factor = m_innerLayout->rowCount() * m_innerLayout->columnCount();
-            if (factor) {
-                sizeHint.setWidth(sizeHint.height() / factor);
-            }
+            sizeHint.setWidth(newWidth);
         }
         return sizeHint;
     }

kdebase-workspace-4.2.1-plasma-konsole.patch:

--- NEW FILE kdebase-workspace-4.2.1-plasma-konsole.patch ---
diff -up kdebase-workspace-4.2.1/plasma/containments/desktop/desktop.cpp.plasma-konsole kdebase-workspace-4.2.1/plasma/containments/desktop/desktop.cpp
--- kdebase-workspace-4.2.1/plasma/containments/desktop/desktop.cpp.plasma-konsole	2008-12-21 21:19:14.000000000 +0100
+++ kdebase-workspace-4.2.1/plasma/containments/desktop/desktop.cpp	2009-03-10 13:33:38.000000000 +0100
@@ -39,6 +39,7 @@
 #include <KRun>
 #include <KStandardDirs>
 #include <KWindowSystem>
+#include <ktoolinvocation.h>
 
 #include <Plasma/Corona>
 #include <Plasma/Animator>
@@ -61,6 +62,7 @@ DefaultDesktop::DefaultDesktop(QObject *
       m_lockDesktopAction(0),
       m_appletBrowserAction(0),
       m_addPanelAction(0),
+      m_runKonsoleAction(0),
       m_runCommandAction(0),
       m_lockScreenAction(0),
       m_logoutAction(0),
@@ -151,6 +153,11 @@ void DefaultDesktop::runCommand()
     krunner.display();
 }
 
+void DefaultDesktop::runKonsole()
+{
+    KToolInvocation::invokeTerminal(QString(), QDir::homePath());
+}
+
 void DefaultDesktop::lockScreen()
 {
     if (!KAuthorized::authorizeKAction("lock_screen")) {
@@ -180,6 +187,10 @@ QList<QAction*> DefaultDesktop::contextu
         connect(m_addPanelAction, SIGNAL(triggered(bool)), this, SLOT(addPanel()));
         m_addPanelAction->setIcon(KIcon("list-add"));
 
+        m_runKonsoleAction = new QAction(i18n("Konsole"), this);
+        connect(m_runKonsoleAction, SIGNAL(triggered(bool)), this, SLOT(runKonsole()));
+        m_runKonsoleAction->setIcon(KIcon("terminal"));
+
         m_runCommandAction = new QAction(i18n("Run Command..."), this);
         connect(m_runCommandAction, SIGNAL(triggered(bool)), this, SLOT(runCommand()));
         m_runCommandAction->setIcon(KIcon("system-run"));
@@ -202,6 +213,8 @@ QList<QAction*> DefaultDesktop::contextu
 
     QList<QAction*> actions;
 
+    actions.append(m_runKonsoleAction);
+
     if (KAuthorized::authorizeKAction("run_command")) {
         actions.append(m_runCommandAction);
     }
diff -up kdebase-workspace-4.2.1/plasma/containments/desktop/desktop.h.plasma-konsole kdebase-workspace-4.2.1/plasma/containments/desktop/desktop.h
--- kdebase-workspace-4.2.1/plasma/containments/desktop/desktop.h.plasma-konsole	2008-12-10 17:13:23.000000000 +0100
+++ kdebase-workspace-4.2.1/plasma/containments/desktop/desktop.h	2009-03-10 12:55:20.000000000 +0100
@@ -69,6 +69,7 @@ protected:
     void dropEvent(QGraphicsSceneDragDropEvent *event);
 
 protected Q_SLOTS:
+    void runKonsole();
     void runCommand();
 
     void lockScreen();
@@ -85,6 +86,7 @@ private:
     QAction *m_lockDesktopAction;
     QAction *m_appletBrowserAction;
     QAction *m_addPanelAction;
+    QAction *m_runKonsoleAction;
     QAction *m_runCommandAction;
     QAction *m_setupDesktopAction;
     QAction *m_lockScreenAction;


Index: kdebase-workspace.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kdebase-workspace/F-9/kdebase-workspace.spec,v
retrieving revision 1.140
retrieving revision 1.141
diff -u -r1.140 -r1.141
--- kdebase-workspace.spec	9 Mar 2009 17:25:05 -0000	1.140
+++ kdebase-workspace.spec	12 Mar 2009 16:30:57 -0000	1.141
@@ -8,7 +8,7 @@
 Name: kdebase-workspace
 Version: 4.2.1
 
-Release: 5%{?dist}
+Release: 7%{?dist}
 Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/kdebase-workspace-%{version}.tar.bz2
 License: GPLv2
 Group: User Interface/Desktops
@@ -16,7 +16,7 @@
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Patch1: kdebase-workspace-4.2.1-redhat-startkde.patch
-Patch2: kdebase-workspace-4.1.72-plasma-konsole.patch
+Patch2: kdebase-workspace-4.2.1-plasma-konsole.patch
 Patch3: kdebase-workspace-4.2.0-show-systemsettings.patch
 Patch4: kdebase-workspace-4.0.72-ck-shutdown.patch
 # 434824: KDE4 System Settings - No Method To Enter Administrative Mode
@@ -46,6 +46,8 @@
 Patch104: kdebase-workspace-4.2.1-kde#185736.patch
 # 4.3, https://bugs.kde.org/show_bug.cgi?id=184152
 Patch105: kdebase-workspace-4.3.0-desktopnumbers.patch
+# 4.2, http://bugs.kde.org/185585
+Patch106: kdebase-workspace-4.2.1-kde#185585.patch
 
 Provides: kdebase-kdm = 6:%{version}-%{release}
 Provides: kdm = %{version}-%{release}
@@ -164,6 +166,9 @@
 Summary: KDE wallpapers
 Group: User Interface/Desktops
 Requires: kde-filesystem
+%if 0%{?fedora} > 9 
+BuildArch: noarch
+%endif
 %description wallpapers
 %{summary}.
 
@@ -228,6 +233,7 @@
 %patch103 -p1 -b .kde#180576
 %patch104 -p5 -b .kde#185736
 %patch105 -p0 -b .desktopnumbers
+%patch106 -p0 -b .kde#185585
 
 %build
 
@@ -376,6 +382,13 @@
 
 
 %changelog
+* Thu Mar 12 2009 Rex Dieter <rdieter at fedoraproject.org> - 4.2.1-7
+- fix quicklauch (kdebug#185585,rh#489769)
+- -wallpapers: make noarch (f10+)
+
+* Tue Mar 10 2009 Than Ngo <than at redhat.com> - 4.2.1-6
+- fix konsole patch to use invokeTerminal
+
 * Mon Mar  9 2009 Lukáš Tinkl <ltinkl at redhat.com> - 4.2.1-5
 - fix pager not displaying desktop numbers (kdebug#184152)
 




More information about the fedora-extras-commits mailing list