diff options
author | Johannes Huber <johu@gentoo.org> | 2012-02-21 15:42:32 +0000 |
---|---|---|
committer | Johannes Huber <johu@gentoo.org> | 2012-02-21 15:42:32 +0000 |
commit | 6396d23a82ffe818d3c60c959e557b097c71f652 (patch) | |
tree | de08c74dd2cd9efea6ba238ca476b1202a254277 /kde-base/systemsettings | |
parent | remove dev-php/PEAR-PHP_Archive (bug #399317) (diff) | |
download | historical-6396d23a82ffe818d3c60c959e557b097c71f652.tar.gz historical-6396d23a82ffe818d3c60c959e557b097c71f652.tar.bz2 historical-6396d23a82ffe818d3c60c959e557b097c71f652.zip |
Remove old.
Package-Manager: portage-2.2.0_alpha86/cvs/Linux x86_64
Diffstat (limited to 'kde-base/systemsettings')
-rw-r--r-- | kde-base/systemsettings/ChangeLog | 6 | ||||
-rw-r--r-- | kde-base/systemsettings/files/systemsettings-4.7.3-fix-keyboard-layout-switch.patch | 96 |
2 files changed, 5 insertions, 97 deletions
diff --git a/kde-base/systemsettings/ChangeLog b/kde-base/systemsettings/ChangeLog index cd2853dcca77..ff40244bba5e 100644 --- a/kde-base/systemsettings/ChangeLog +++ b/kde-base/systemsettings/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for kde-base/systemsettings # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/systemsettings/ChangeLog,v 1.135 2012/02/21 12:52:38 johu Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/systemsettings/ChangeLog,v 1.136 2012/02/21 15:27:37 johu Exp $ + + 21 Feb 2012; Johannes Huber <johu@gentoo.org> + -files/systemsettings-4.7.3-fix-keyboard-layout-switch.patch: + Remove old. 20 Feb 2012; Johannes Huber <johu@gentoo.org> -systemsettings-4.6.3.ebuild: Remove KDE SC 4.6.3 diff --git a/kde-base/systemsettings/files/systemsettings-4.7.3-fix-keyboard-layout-switch.patch b/kde-base/systemsettings/files/systemsettings-4.7.3-fix-keyboard-layout-switch.patch deleted file mode 100644 index 6a0015536482..000000000000 --- a/kde-base/systemsettings/files/systemsettings-4.7.3-fix-keyboard-layout-switch.patch +++ /dev/null @@ -1,96 +0,0 @@ -commit 1ac5ebe482f633295fb4a79eb1c5236561e9ca70 -Author: Andriy Rysin <arysin@gmail.com> -Date: Fri Nov 18 23:12:14 2011 -0500 - - Fix keyboard layout global shortcuts - BUG: 286302 - -diff --git a/kcontrol/keyboard/bindings.cpp b/kcontrol/keyboard/bindings.cpp -index 6f5af7b..ac20dd9 100644 ---- a/kcontrol/keyboard/bindings.cpp -+++ b/kcontrol/keyboard/bindings.cpp -@@ -103,8 +103,11 @@ void KeyboardLayoutActionCollection::setLayoutShortcuts(QList<LayoutUnit>& layou - { - for (QList<LayoutUnit>::iterator i = layoutUnits.begin(); i != layoutUnits.end(); ++i) { - LayoutUnit& layoutUnit = *i; -- createLayoutShortcutActon(layoutUnit, rules, false); -+ if( ! layoutUnit.getShortcut().isEmpty() ) { -+ createLayoutShortcutActon(layoutUnit, rules, false); -+ } - } -+ kDebug() << "Cleaning component shortcuts on save" << KGlobalAccel::cleanComponent(COMPONENT_NAME); - } - - void KeyboardLayoutActionCollection::loadLayoutShortcuts(QList<LayoutUnit>& layoutUnits, const Rules* rules) -@@ -112,19 +115,27 @@ void KeyboardLayoutActionCollection::loadLayoutShortcuts(QList<LayoutUnit>& layo - for (QList<LayoutUnit>::iterator i = layoutUnits.begin(); i != layoutUnits.end(); ++i) { - LayoutUnit& layoutUnit = *i; - KAction* action = createLayoutShortcutActon(layoutUnit, rules, true); -- layoutUnit.setShortcut(action->globalShortcut(KAction::ActiveShortcut).primary()); // shortcut was restored -+ QKeySequence shortcut = action->globalShortcut(KAction::ActiveShortcut).primary(); // shortcut was restored -+ if( ! shortcut.isEmpty() ) { -+ kDebug() << "Restored shortcut for" << layoutUnit.toString() << shortcut; -+ layoutUnit.setShortcut(shortcut); -+ } -+ else { -+ kDebug() << "Skipping empty shortcut for" << layoutUnit.toString(); -+ removeAction(action); -+ } - } - kDebug() << "Cleaning component shortcuts on load" << KGlobalAccel::cleanComponent(COMPONENT_NAME); - } - --KAction* KeyboardLayoutActionCollection::getAction(const LayoutUnit& layoutUnit) --{ -- for(int i=1; i<actions().size(); i++) { -- if( action(i)->data() == layoutUnit.toString() ) -- return static_cast<KAction*>(action(i)); -- } -- return NULL; --} -+//KAction* KeyboardLayoutActionCollection::getAction(const LayoutUnit& layoutUnit) -+//{ -+// for(int i=1; i<actions().size(); i++) { -+// if( action(i)->data() == layoutUnit.toString() ) -+// return static_cast<KAction*>(action(i)); -+// } -+// return NULL; -+//} - - void KeyboardLayoutActionCollection::resetLayoutShortcuts() - { -diff --git a/kcontrol/keyboard/bindings.h b/kcontrol/keyboard/bindings.h -index f60656b..09a9bdc 100644 ---- a/kcontrol/keyboard/bindings.h -+++ b/kcontrol/keyboard/bindings.h -@@ -36,7 +36,7 @@ public: - virtual ~KeyboardLayoutActionCollection(); - - KAction* getToggeAction(); -- KAction* getAction(const LayoutUnit& layoutUnit); -+// KAction* getAction(const LayoutUnit& layoutUnit); - KAction* createLayoutShortcutActon(const LayoutUnit& layoutUnit, const Rules* rules, bool autoload); - // KAction* setShortcut(LayoutUnit& layoutUnit, const QKeySequence& keySequence, const Rules* rules); - void setLayoutShortcuts(QList<LayoutUnit>& layoutUnits, const Rules* rules); -diff --git a/kcontrol/keyboard/keyboard_daemon.cpp b/kcontrol/keyboard/keyboard_daemon.cpp -index 1618d2a..7126268 100644 ---- a/kcontrol/keyboard/keyboard_daemon.cpp -+++ b/kcontrol/keyboard/keyboard_daemon.cpp -@@ -214,12 +214,16 @@ void KeyboardDaemon::layoutMapChanged() - - void KeyboardDaemon::switchToNextLayout() - { -+ kDebug() << "Toggling layout"; - X11Helper::switchToNextLayout(); - } - - bool KeyboardDaemon::setLayout(QAction* action) - { -- LayoutUnit layoutUnit(LayoutUnit(action->data().toString())); -+ if( action == actionCollection->getToggeAction() ) -+ return false; -+ -+ LayoutUnit layoutUnit(action->data().toString()); - return LayoutsMenu::switchToLayout(layoutUnit, keyboardConfig); // need this to be able to switch to spare layouts - // return X11Helper::setLayout(LayoutUnit(action->data().toString())); - } |