rpms/kdebase/F-9 kdebase-4.1.2-konsole-kde#156636.patch, 1.2, 1.3 kdebase.spec, 1.338, 1.339
Kevin Kofler
kkofler at fedoraproject.org
Wed Nov 12 16:13:55 UTC 2008
- Previous message (by thread): rpms/kdebase/F-10 kdebase-4.1.2-konsole-kde#156636.patch, 1.2, 1.3 kdebase.spec, 1.347, 1.348
- Next message (by thread): rpms/cups/devel .cvsignore, 1.42, 1.43 cups.spec, 1.446, 1.447 sources, 1.45, 1.46
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: kkofler
Update of /cvs/pkgs/rpms/kdebase/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25010/F-9
Modified Files:
kdebase.spec
Added Files:
kdebase-4.1.2-konsole-kde#156636.patch
Log Message:
* Wed Nov 12 2008 Kevin Kofler <Kevin at tigcc.ticalc.org> 4.1.3-2
- readd kde#156636 patch (Konsole keyboard actions backport)
kdebase-4.1.2-konsole-kde#156636.patch:
Index: kdebase-4.1.2-konsole-kde#156636.patch
===================================================================
RCS file: kdebase-4.1.2-konsole-kde#156636.patch
diff -N kdebase-4.1.2-konsole-kde#156636.patch
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ kdebase-4.1.2-konsole-kde#156636.patch 12 Nov 2008 16:13:25 -0000 1.3
@@ -0,0 +1,56 @@
+Index: apps/konsole/src/ViewManager.h
+===================================================================
+--- apps/konsole/src/ViewManager.h (revision 837724)
++++ apps/konsole/src/ViewManager.h (revision 837725)
+@@ -239,6 +239,9 @@
+ void moveActiveViewLeft();
+ // moves active view to the right
+ void moveActiveViewRight();
++ // switches to the view at visual position 'index'
++ // in the current container
++ void switchToView(int index);
+
+ // called when a SessionController gains focus
+ void controllerChanged(SessionController* controller);
+Index: apps/konsole/src/ViewManager.cpp
+===================================================================
+--- apps/konsole/src/ViewManager.cpp (revision 837724)
++++ apps/konsole/src/ViewManager.cpp (revision 837725)
+@@ -201,6 +201,19 @@
+ collection->addAction("next-container",nextContainerAction);
+ collection->addAction("move-view-left",moveViewLeftAction);
+ collection->addAction("move-view-right",moveViewRightAction);
++
++ // Switch to tab N shortcuts
++ const int SWITCH_TO_TAB_COUNT = 10;
++ QSignalMapper* switchToTabMapper = new QSignalMapper(this);
++ connect(switchToTabMapper,SIGNAL(mapped(int)),this,SLOT(switchToView(int)));
++ for (int i=0;i < SWITCH_TO_TAB_COUNT;i++)
++ {
++ KAction* switchToTabAction = new KAction(i18n("Switch to Tab %1",i+1),this);
++ switchToTabMapper->setMapping(switchToTabAction,i);
++ connect(switchToTabAction,SIGNAL(triggered()),switchToTabMapper,
++ SLOT(map()));
++ collection->addAction(QString("switch-to-tab-%1").arg(i),switchToTabAction);
++ }
+ }
+
+ QListIterator<QAction*> iter(multiViewOnlyActions);
+@@ -235,7 +248,16 @@
+ connect( moveViewRightAction , SIGNAL(triggered()) , this , SLOT(moveActiveViewRight()) );
+ _viewSplitter->addAction(moveViewRightAction);
+ }
+-
++void ViewManager::switchToView(int index)
++{
++ Q_ASSERT(index >= 0);
++ ViewContainer* container = _viewSplitter->activeContainer();
++ Q_ASSERT( container );
++ QList<QWidget*> containerViews = container->views();
++ if (index >= containerViews.count())
++ return;
++ container->setActiveView(containerViews.at(index));
++}
+ void ViewManager::updateDetachViewState()
+ {
+ if (!_actionCollection)
Index: kdebase.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kdebase/F-9/kdebase.spec,v
retrieving revision 1.338
retrieving revision 1.339
diff -u -r1.338 -r1.339
--- kdebase.spec 4 Nov 2008 19:16:42 -0000 1.338
+++ kdebase.spec 12 Nov 2008 16:13:25 -0000 1.339
@@ -1,7 +1,7 @@
Summary: K Desktop Environment 4 - Core Files
Version: 4.1.3
-Release: 1%{?dist}
+Release: 2%{?dist}
%if 0%{?fedora} > 8
Name: kdebase
@@ -31,6 +31,10 @@
Patch3: kdebase-4.1.2-konsole-session-1.patch
## upstream patches
+# http://bugs.kde.org/show_bug.cgi?id=156636 (backported from 4.2)
+# Add keyboard actions for switching to the 1st-10th tab in Konsole
+# PLEASE DON'T DROP THIS BEFORE 4.2!
+Patch100: kdebase-4.1.2-konsole-kde#156636.patch
BuildRequires: kde-filesystem >= 4
%{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} }
@@ -129,6 +133,7 @@
%patch1 -p0 -b .nsplugins-paths
%patch2 -p1 -b .konsole-session
%patch3 -p1 -b .konsole-session-1
+%patch100 -p0 -b .kde#156636
# fix incorrect assumption that we're building in a combined kdebase tree
sed -i -e 's/EXISTS "${kdebase_SOURCE_DIR}"/0/g' apps/CMakeLists.txt
@@ -309,6 +314,9 @@
%changelog
+* Wed Nov 12 2008 Kevin Kofler <Kevin at tigcc.ticalc.org> 4.1.3-2
+- readd kde#156636 patch (Konsole keyboard actions backport)
+
* Tue Nov 4 2008 Lukáš Tinkl <ltinkl at redhat.com> 4.1.3-1
- KDE 4.1.3
- Previous message (by thread): rpms/kdebase/F-10 kdebase-4.1.2-konsole-kde#156636.patch, 1.2, 1.3 kdebase.spec, 1.347, 1.348
- Next message (by thread): rpms/cups/devel .cvsignore, 1.42, 1.43 cups.spec, 1.446, 1.447 sources, 1.45, 1.46
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list