Make activating vpn connections work from the shell indicator

This commit is contained in:
Christopher Aillon 2011-03-24 21:42:02 -07:00
parent 74f824c039
commit a02f481295
2 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,29 @@
From d49e2bf7712002f8fe09597ee153c426e1627460 Mon Sep 17 00:00:00 2001
From: Christopher Aillon <caillon@redhat.com>
Date: Thu, 24 Mar 2011 21:04:31 -0700
Subject: [PATCH] Account for nm_client_activate_connection API change
based on a suggestion by Ray Strode.
---
js/ui/status/network.js | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index e57349a..a5a25fe 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -552,10 +552,9 @@ NMDevice.prototype = {
},
_createConnectionItem: function(obj) {
- let path = obj.connection.path;
let item = new PopupMenu.PopupMenuItem(obj.name);
item.connect('activate', Lang.bind(this, function() {
- this._client.activate_connection(path, this.device, null, null);
+ this._client.activate_connection(obj.connection, this.device, null, null);
}));
return item;
},
--
1.7.4.1

View File

@ -1,6 +1,6 @@
Name: gnome-shell
Version: 2.91.92
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Window management and application launching for GNOME
Group: User Interface/Desktops
@ -8,6 +8,7 @@ License: GPLv2+
URL: http://live.gnome.org/GnomeShell
#VCS: git:git://git.gnome.org/gnome-shell
Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-shell/2.91/%{name}-%{version}.tar.bz2
Patch0: 0001-Account-for-nm_client_activate_connection-API-change.patch
%define clutter_version 1.4.0
%define gobject_introspection_version 0.10.1
@ -74,6 +75,7 @@ easy to use experience.
%prep
%setup -q
%patch0 -p1 -b .nm09-api
%build
(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi;
@ -133,6 +135,9 @@ gconftool-2 --makefile-install-rule \
glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas ||:
%changelog
* Thu Mar 24 2011 Christopher Aillon <caillon@redhat.com> - 2.91.92-2
- Make activating vpn connections work from the shell indicator
* Wed Mar 23 2011 Matthias Clasen <mclasen@redhat.com> - 2.91.92-1
- Update to 2.91.92