Merge lp:~tkluck/gnome-shell/10-bluetooth-fix-connection-from-gs-menu.patch into lp:~ubuntu-desktop/gnome-shell/ubuntu

Proposed by Timo Kluck
Status: Merged
Merged at revision: 4
Proposed branch: lp:~tkluck/gnome-shell/10-bluetooth-fix-connection-from-gs-menu.patch
Merge into: lp:~ubuntu-desktop/gnome-shell/ubuntu
Diff against target: 69 lines (+39/-1)
3 files modified
debian/changelog (+7/-1)
debian/patches/10-bluetooth-fix-connection-from-gs-menu.patch (+31/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~tkluck/gnome-shell/10-bluetooth-fix-connection-from-gs-menu.patch
Reviewer Review Type Date Requested Status
Jeremy Bícha Approve
Review via email: mp+89729@code.launchpad.net

Description of the change

Sorry for spamming with these merge requests. I'm new to how packaging is organized on launchpad. Thanks for being patient.

This should fix #918208.

To post a comment you must log in.
Revision history for this message
Jeremy Bícha (jbicha) wrote :

Merge proposals aren't spam. Thanks for the help!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-01-23 15:58:47 +0000
3+++ debian/changelog 2012-01-23 16:43:29 +0000
4@@ -1,5 +1,6 @@
5 gnome-shell (3.2.2.1-0ubuntu1) UNRELEASED; urgency=low
6
7+ [ Jeremy Bicha ]
8 * New upstream release
9 - Fix broken gnome-shell-extension-tool (LP: #853882)
10 - Fixes lots of crashes and some memory leaks
11@@ -8,7 +9,12 @@
12 - 05-NetworkMenu-don-t-query-DBus-properties-of-removed-o.patch
13 - 06-NetworkMenu-fix-regression-in-access-point-removed.patch
14
15- -- Jeremy Bicha <jbicha@ubuntu.com> Mon, 23 Jan 2012 10:50:25 -0500
16+ [ Timo Kluck ]
17+ * debian/patches/10-bluetooth-fix-connection-from-gs-menu.patch:
18+ - Fix bluetooth panel switch moving independently from actual
19+ connection status
20+
21+ -- Timo Kluck <tkluck@infty.nl> Mon, 23 Jan 2012 17:28:21 +0100
22
23 gnome-shell (3.2.1-8ubuntu2) precise; urgency=low
24
25
26=== added file 'debian/patches/10-bluetooth-fix-connection-from-gs-menu.patch'
27--- debian/patches/10-bluetooth-fix-connection-from-gs-menu.patch 1970-01-01 00:00:00 +0000
28+++ debian/patches/10-bluetooth-fix-connection-from-gs-menu.patch 2012-01-23 16:43:29 +0000
29@@ -0,0 +1,31 @@
30+From 0ed0dc89b51f8e584dd21c87a7178ba138bed44b Mon Sep 17 00:00:00 2001
31+From: Alessandro Crismani <alessandro.crismani@gmail.com>
32+Date: Tue, 13 Dec 2011 10:01:34 +0100
33+Subject: [PATCH] Bluetooth: fix connecting devices from GS's panel on 3.2.1
34+
35+Connecting devices from Gnome Shell's panel on Gnome 3.2.1 fails because
36+of an undefined variable in
37+js/ui/status/bluetooth.js:buildDeviceSubMenu. More explicitly, the
38+menuitem variable is not declared and hence connecting and disconnecting
39+fails. Fix it to make the bluetooth panel menu item work.
40+---
41+ js/ui/status/bluetooth.js | 3 ++-
42+ 1 files changed, 2 insertions(+), 1 deletions(-)
43+
44+diff --git a/js/ui/status/bluetooth.js b/js/ui/status/bluetooth.js
45+index f2d95f5..3aa7960 100644
46+--- a/js/ui/status/bluetooth.js
47++++ b/js/ui/status/bluetooth.js
48+@@ -205,7 +205,8 @@ Indicator.prototype = {
49+ _buildDeviceSubMenu: function(item, device) {
50+ if (device.can_connect) {
51+ item._connected = device.connected;
52+- item._connectedMenuitem = new PopupMenu.PopupSwitchMenuItem(_("Connection"), device.connected);
53++ let menuitem = new PopupMenu.PopupSwitchMenuItem(_("Connection"), device.connected);
54++ item._connectedMenuitem = menuitem;
55+ item._connectedMenuitem.connect('toggled', Lang.bind(this, function() {
56+ if (item._connected > ConnectionState.CONNECTED) {
57+ // operation already in progress, revert
58+--
59+1.7.8
60+
61
62=== modified file 'debian/patches/series'
63--- debian/patches/series 2012-01-23 15:58:47 +0000
64+++ debian/patches/series 2012-01-23 16:43:29 +0000
65@@ -1,3 +1,4 @@
66+10-bluetooth-fix-connection-from-gs-menu.patch
67 02_rpath-bluetooth-applet.patch
68 04_remove-glx-dependency-on-armel.patch
69 07-NetworkMenu-fix-logic-for-updating-wifi-icon.patch

Subscribers

People subscribed via source and target branches

to all changes: