[arch-commits] Commit in cinnamon/trunk (PKGBUILD fix-keyboard-settings.patch)

Alexandre Filgueira faidoc at nymeria.archlinux.org
Sun Mar 31 19:53:49 UTC 2013


    Date: Sunday, March 31, 2013 @ 21:53:48
  Author: faidoc
Revision: 87445

upgpkg: cinnamon 1.7.3-2

Added:
  cinnamon/trunk/fix-keyboard-settings.patch
Modified:
  cinnamon/trunk/PKGBUILD

-----------------------------+
 PKGBUILD                    |   11 ++++-
 fix-keyboard-settings.patch |   83 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 91 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-03-31 19:19:07 UTC (rev 87444)
+++ PKGBUILD	2013-03-31 19:53:48 UTC (rev 87445)
@@ -6,7 +6,7 @@
 
 pkgname=cinnamon
 pkgver=1.7.3
-pkgrel=1
+pkgrel=2
 pkgdesc="Linux desktop which provides advanced innovative features and a traditional user experience"
 arch=('i686' 'x86_64')
 url="http://cinnamon.linuxmint.com/"
@@ -25,10 +25,12 @@
 install=${pkgname}.install
 source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxmint/Cinnamon/tarball/$pkgver"
         "keyboard_applet.patch"
-        "fix-control-center-check.patch")
+        "fix-control-center-check.patch"
+        "fix-keyboard-settings.patch")
 md5sums=('c733e2a2280508aecf3ee010587e6743'
          '2b1ece84416c3e4de030be15f1774d82'
-         'c3f25b06d345d9d36c197cd96e08f496')
+         'c3f25b06d345d9d36c197cd96e08f496'
+         'c36138eddde544b5c27b66d19451e7a5')
 
 build() {
   cd ${srcdir}/linuxmint-Cinnamon*
@@ -40,7 +42,10 @@
   # Check for the cc-panel path, not for the unneeded binary
   patch -Np1 -i ${srcdir}/fix-control-center-check.patch
 
+  # Fix Keyboard settings (https://bugs.archlinux.org/task/34472)
+  patch -Np1 -i ${srcdir}/fix-keyboard-settings.patch
 
+
   ./autogen.sh --prefix=/usr \
                --sysconfdir=/etc \
                --libexecdir=/usr/lib/cinnamon \

Added: fix-keyboard-settings.patch
===================================================================
--- fix-keyboard-settings.patch	                        (rev 0)
+++ fix-keyboard-settings.patch	2013-03-31 19:53:48 UTC (rev 87445)
@@ -0,0 +1,83 @@
+From 034f9c886a4b08e214193576b11fb97ba3d62922 Mon Sep 17 00:00:00 2001
+From: Lusito <core at roughael.net>
+Date: Sun, 10 Mar 2013 21:01:07 +0100
+Subject: [PATCH] fix for broken keyboard settings
+
+---
+ files/usr/lib/cinnamon-settings/bin/SettingsWidgets.py |  2 +-
+ files/usr/lib/cinnamon-settings/modules/cs_keyboard.py | 12 ++++++------
+ 2 files changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/files/usr/lib/cinnamon-settings/bin/SettingsWidgets.py b/files/usr/lib/cinnamon-settings/bin/SettingsWidgets.py
+index b8842fe..cdccf46 100644
+--- a/files/usr/lib/cinnamon-settings/bin/SettingsWidgets.py
++++ b/files/usr/lib/cinnamon-settings/bin/SettingsWidgets.py
+@@ -9,7 +9,7 @@
+     import gettext
+     from gi.repository import Gio, Gtk, GObject, Gdk
+     from gi.repository import GdkPixbuf 
+-#    import gconf
++    from gi.repository import GConf
+     import json
+     import dbus
+     import time
+diff --git a/files/usr/lib/cinnamon-settings/modules/cs_keyboard.py b/files/usr/lib/cinnamon-settings/modules/cs_keyboard.py
+index 27a75ae..1ea8fd9 100644
+--- a/files/usr/lib/cinnamon-settings/modules/cs_keyboard.py
++++ b/files/usr/lib/cinnamon-settings/modules/cs_keyboard.py
+@@ -8,7 +8,7 @@
+ gettext.install("cinnamon", "/usr/share/cinnamon/locale")
+ 
+ # Keybindings page - check if we need to store custom
+-# keybindings to gsettings key as well as gconf (In Mint 14 this is changed)
++# keybindings to gsettings key as well as GConf (In Mint 14 this is changed)
+ CUSTOM_KEYS_BASENAME = "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings"
+ CUSTOM_KEYS_SCHEMA = "org.gnome.settings-daemon.plugins.media-keys.custom-keybinding"
+ CUSTOM_KEYBINDINGS_GSETTINGS = False
+@@ -160,7 +160,7 @@ def __init__(self, content_box):
+         first_run_completed = schema.get_boolean("custom-keybindings-to-3-6")
+ 
+         if CUSTOM_KEYBINDINGS_GSETTINGS and not first_run_completed:
+-            gclient = gconf.client_get_default()
++            gclient = GConf.Client.get_default()
+             path = "/desktop/gnome/keybindings"
+             subdirs = gclient.all_dirs(path)
+             for subdir in subdirs:
+@@ -251,7 +251,7 @@ def setBinding(self, index, val):
+         self.writeSettings()
+ 
+     def writeSettings(self):
+-        gclient = gconf.client_get_default()
++        gclient = GConf.Client.get_default()
+         gclient.set_string(self.path + "/name", self.label)
+         gclient.set_string(self.path + "/action", self.action)
+         gclient.set_string(self.path + "/binding", self.entries[0])
+@@ -537,7 +537,7 @@ def loadCustoms(self):
+         for category in self.main_store:
+             if category.int_name is "custom":
+                 category.clear()
+-        gclient = gconf.client_get_default()
++        gclient = GConf.Client.get_default()
+         path = "/desktop/gnome/keybindings"
+         subdirs = gclient.all_dirs(path)
+         for subdir in subdirs:
+@@ -645,7 +645,7 @@ def onAddCustomButtonClicked(self, button):
+             dialog.destroy()
+             return
+ 
+-        gclient = gconf.client_get_default()
++        gclient = GConf.Client.get_default()
+         path = "/desktop/gnome/keybindings/custom"
+         i = 0
+         while gclient.dir_exists(path + str(i)):
+@@ -670,7 +670,7 @@ def onRemoveCustomButtonClicked(self, button):
+         keybindings, iter = self.kb_tree.get_selection().get_selected()
+         if iter:
+             keybinding = keybindings[iter][1]
+-            gclient = gconf.client_get_default()
++            gclient = GConf.Client.get_default()
+             if gclient.dir_exists(keybinding.path):
+                 gclient.unset(keybinding.path + "/name")
+                 gclient.unset(keybinding.path + "/action")
+-- 
+1.8.1.5




More information about the arch-commits mailing list