diff options
author | root <root@rshg054.dnsready.net> | 2013-04-01 00:05:25 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-04-01 00:05:25 -0700 |
commit | c623429f33c434cb1cb11974d9e71f48dd5a881f (patch) | |
tree | a5ef4b20d134eb0384a567b98ea41733f2db73c7 /community/cinnamon | |
parent | bccd6b361bd252b2d32bc9a793c9e1b8448bfcd9 (diff) |
Mon Apr 1 00:05:25 PDT 2013
Diffstat (limited to 'community/cinnamon')
-rw-r--r-- | community/cinnamon/PKGBUILD | 13 | ||||
-rw-r--r-- | community/cinnamon/fix-keyboard-settings.patch | 83 |
2 files changed, 92 insertions, 4 deletions
diff --git a/community/cinnamon/PKGBUILD b/community/cinnamon/PKGBUILD index 594f40855..f4fecd1a7 100644 --- a/community/cinnamon/PKGBUILD +++ b/community/cinnamon/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 86852 2013-03-22 21:33:07Z faidoc $ +# $Id: PKGBUILD 87446 2013-03-31 19:54:32Z faidoc $ # Maintainer: Alexandre Filgueira <alexfilgueira@cinnarch.com> # Contributor: M0Rf30 # Contributor: unifiedlinux @@ -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 @@ options=('!libtool' '!emptydirs') 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,6 +42,9 @@ build() { # 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 \ diff --git a/community/cinnamon/fix-keyboard-settings.patch b/community/cinnamon/fix-keyboard-settings.patch new file mode 100644 index 000000000..b606939c9 --- /dev/null +++ b/community/cinnamon/fix-keyboard-settings.patch @@ -0,0 +1,83 @@ +From 034f9c886a4b08e214193576b11fb97ba3d62922 Mon Sep 17 00:00:00 2001 +From: Lusito <core@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 |