Merge lp:~sil2100/network-manager-applet/merge_1.0.6_debian into lp:~network-manager/network-manager-applet/ubuntu
- merge_1.0.6_debian
- Merge into ubuntu
Status: | Merged |
---|---|
Approved by: | Mathieu Trudel-Lapierre |
Approved revision: | 468 |
Merged at revision: | 467 |
Proposed branch: | lp:~sil2100/network-manager-applet/merge_1.0.6_debian |
Merge into: | lp:~network-manager/network-manager-applet/ubuntu |
Diff against target: |
2479 lines (+1173/-967) 16 files modified
debian/changelog (+252/-4) debian/control (+60/-67) debian/gbp.conf (+1/-0) debian/gir1.2-nmgtk-1.0.install (+1/-1) debian/libnm-gtk0.symbols (+9/-8) debian/network-manager-gnome.README.Debian (+5/-0) debian/network-manager-gnome.manpages (+0/-1) debian/network-manager-gnome.postinst (+10/-0) debian/nm-applet.sgml (+0/-100) debian/patches/11-user-connections.patch (+0/-698) debian/patches/Allow-to-create-connections-without-admin-privileges.patch (+683/-0) debian/patches/Don-t-hard-code-gnome-bluetooth-plugin-directory.patch (+35/-0) debian/patches/Force-online-state-with-unmanaged-devices.patch (+28/-0) debian/patches/nm-applet-use-indicator.patch (+84/-83) debian/patches/series (+3/-1) debian/rules (+2/-4) |
To merge this branch: | bzr merge lp:~sil2100/network-manager-applet/merge_1.0.6_debian |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mathieu Trudel-Lapierre | Approve | ||
Review via email: mp+279012@code.launchpad.net |
Commit message
Propose a merge of 1.0.6 from Debian. Remove unneeded patches, modify changelog, carry over required changes.
Description of the change
Propose a merge of 1.0.6 from Debian. Remove unneeded patches, modify changelog, carry over required changes.
Example package built in a local PPA here:
https:/
Compared .deb's with existing ones and contents look sane.
- 468. By Łukasz Zemczak
-
Remove the 11-user-
connections. patch patch as it's not applied anymore (it's merged from debian now)
- 469. By Łukasz Zemczak
-
Remove one more file that's not used anymore - nm-applet.sgml.
Łukasz Zemczak (sil2100) wrote : | # |
Sorry for the post-approve file removal. This file was not used anywhere and I didn't want to leave any leftovers. Thanks for the review, publishing in a moment!
- 470. By Łukasz Zemczak
-
One more file not needed.
- 471. By Łukasz Zemczak
-
Re-release.
Preview Diff
1 | === modified file 'debian/changelog' | |||
2 | --- debian/changelog 2015-10-07 09:23:09 +0000 | |||
3 | +++ debian/changelog 2015-12-02 15:57:13 +0000 | |||
4 | @@ -1,6 +1,67 @@ | |||
8 | 1 | network-manager-applet (1.0.4-0ubuntu1) wily; urgency=medium | 1 | network-manager-applet (1.0.6-2ubuntu2) xenial; urgency=low |
9 | 2 | 2 | ||
10 | 3 | * New upstream release | 3 | * Merge from Debian unstable. Remaining changes: |
11 | 4 | - lp341684_device_sensitive_disconnect_notify.patch: show correct | ||
12 | 5 | notification messages for disconnect events, to be in line with the other | ||
13 | 6 | *connect*text patches. | ||
14 | 7 | - lp460144_correctly_update_notification.patch: cleaner notification | ||
15 | 8 | messages, and allow for messages to be updated instead of cleared. | ||
16 | 9 | - applet-wifi-menu-before-vpn.patch: show Create New and Connect to Hidden | ||
17 | 10 | wifi menu items with the other Wifi items, rather than separated by | ||
18 | 11 | the VPN menus. | ||
19 | 12 | - nm-applet-use-indicator.patch: patch to support showing nm-applet as an | ||
20 | 13 | appindicator in Unity. | ||
21 | 14 | - position_dialogs_to_center_of_the_screen.patch: position dialogs to the | ||
22 | 15 | center of the screen. | ||
23 | 16 | - make_menu_items_insensitive_based_on_permissions.patch, | ||
24 | 17 | hide_policy_items_env_var.patch: provide a method to desensitize or hide | ||
25 | 18 | menu items which are useless given the current policykit policy level of | ||
26 | 19 | the user. | ||
27 | 20 | - applet_adhoc_use_wpa_rsn_part1.patch: enable Ad-Hoc using WPA RSN. | ||
28 | 21 | - lp1048516_dont_req_keyring_in_greeter.patch: don't try to load the | ||
29 | 22 | keyring if the user has no permissions to edit their own connections. | ||
30 | 23 | - lp1048520_delay_pin_dialog_in_greeter.patch: only ask for PIN entry when | ||
31 | 24 | a connection is being established rather than when a modem is detected. | ||
32 | 25 | - rebuild_menu_after_init.patch: force a rebuild of the menu to avoid it | ||
33 | 26 | staying empty on login. | ||
34 | 27 | - ubuntu_dont_autostart_under_GNOME.patch | ||
35 | 28 | - hide_virtual_devices.patch: updated to no longer show | ||
36 | 29 | - debian/rules: ship extra icons, use --enable-indicators, export | ||
37 | 30 | translations for Launchpad and fail if any files are missing from | ||
38 | 31 | .install files, or not being installed. | ||
39 | 32 | - debian/control: Build-Depend on dh-translations, libappindicator3-dev, | ||
40 | 33 | update package descriptions, add Breaks against gnome-bluetooth (<< 3.0). | ||
41 | 34 | |||
42 | 35 | -- Łukasz 'sil2100' Zemczak <lukasz.zemczak@canonical.com> Wed, 25 Nov 2015 17:05:02 +0100 | ||
43 | 36 | |||
44 | 37 | network-manager-applet (1.0.6-2) unstable; urgency=medium | ||
45 | 38 | |||
46 | 39 | * Fix crash in nm-connection-editor when importing existing VPN config. | ||
47 | 40 | (Closes: #726935) | ||
48 | 41 | |||
49 | 42 | -- Michael Biebl <biebl@debian.org> Mon, 07 Sep 2015 06:26:02 +0200 | ||
50 | 43 | |||
51 | 44 | network-manager-applet (1.0.6-1) unstable; urgency=medium | ||
52 | 45 | |||
53 | 46 | * New upstream release. | ||
54 | 47 | * Refresh patches. | ||
55 | 48 | * Update symbols file, the symbols introduced in 1.0.4 now use symbol | ||
56 | 49 | versioning. | ||
57 | 50 | |||
58 | 51 | -- Michael Biebl <biebl@debian.org> Fri, 28 Aug 2015 17:21:30 +0200 | ||
59 | 52 | |||
60 | 53 | network-manager-applet (1.0.4-1) unstable; urgency=medium | ||
61 | 54 | |||
62 | 55 | * New upstream release. | ||
63 | 56 | * Make no-patch-numbers the default for gbp pq to avoid unnecessary noise. | ||
64 | 57 | * Refresh patches. | ||
65 | 58 | * Update symbols file for libnm-gtk0. | ||
66 | 59 | |||
67 | 60 | -- Michael Biebl <biebl@debian.org> Wed, 29 Jul 2015 01:08:38 +0200 | ||
68 | 61 | |||
69 | 62 | network-manager-applet (1.0.4-0ubuntu1) xenial; urgency=medium | ||
70 | 63 | |||
71 | 64 | * New upstream release (LP: #1467267) | ||
72 | 4 | * debian/control: | 65 | * debian/control: |
73 | 5 | - Bump build-depends on libnm-util-dev, libnm-glib-dev, libnm-glib-vpn-dev, | 66 | - Bump build-depends on libnm-util-dev, libnm-glib-dev, libnm-glib-vpn-dev, |
74 | 6 | network-manager-dev | 67 | network-manager-dev |
75 | @@ -14,7 +75,39 @@ | |||
76 | 14 | * debian/patches/nm-applet-fix-shell-version.patch: | 75 | * debian/patches/nm-applet-fix-shell-version.patch: |
77 | 15 | - No longer applicable | 76 | - No longer applicable |
78 | 16 | 77 | ||
80 | 17 | -- Robert Ancell <robert.ancell@canonical.com> Wed, 07 Oct 2015 15:08:47 +1300 | 78 | -- Robert Ancell <robert.ancell@canonical.com> Wed, 28 Oct 2015 09:02:20 +1300 |
81 | 79 | |||
82 | 80 | network-manager-applet (1.0.2-1) unstable; urgency=medium | ||
83 | 81 | |||
84 | 82 | * New upstream release. | ||
85 | 83 | * Rebase patches. | ||
86 | 84 | |||
87 | 85 | -- Michael Biebl <biebl@debian.org> Tue, 05 May 2015 23:16:53 +0200 | ||
88 | 86 | |||
89 | 87 | network-manager-applet (1.0.0-3) unstable; urgency=medium | ||
90 | 88 | |||
91 | 89 | * Upload to unstable. | ||
92 | 90 | |||
93 | 91 | -- Michael Biebl <biebl@debian.org> Mon, 27 Apr 2015 16:43:02 +0200 | ||
94 | 92 | |||
95 | 93 | network-manager-applet (1.0.0-2) experimental; urgency=medium | ||
96 | 94 | |||
97 | 95 | * Install typelib files into multiarch paths now that gobject-introspection | ||
98 | 96 | supports that. | ||
99 | 97 | * Mark dev and gir packages as Multi-Arch: same. | ||
100 | 98 | |||
101 | 99 | -- Michael Biebl <biebl@debian.org> Mon, 09 Feb 2015 00:49:43 +0100 | ||
102 | 100 | |||
103 | 101 | network-manager-applet (1.0.0-1) experimental; urgency=medium | ||
104 | 102 | |||
105 | 103 | * New upstream release. | ||
106 | 104 | * Rebase patches. | ||
107 | 105 | * Bump dependency on network-manager and related dev packages to (>= 1.0.0). | ||
108 | 106 | * Bump Standards-Version to 3.9.6. No further changes. | ||
109 | 107 | * Update Vcs-Browser URL to use cgit and https. | ||
110 | 108 | * Update Homepage URL to use https. | ||
111 | 109 | |||
112 | 110 | -- Michael Biebl <biebl@debian.org> Mon, 02 Feb 2015 13:40:08 +0100 | ||
113 | 18 | 111 | ||
114 | 19 | network-manager-applet (0.9.10.1-0ubuntu7) wily; urgency=medium | 112 | network-manager-applet (0.9.10.1-0ubuntu7) wily; urgency=medium |
115 | 20 | 113 | ||
116 | @@ -95,6 +188,80 @@ | |||
117 | 95 | 188 | ||
118 | 96 | -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Mon, 26 Jan 2015 23:08:58 -0500 | 189 | -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Mon, 26 Jan 2015 23:08:58 -0500 |
119 | 97 | 190 | ||
120 | 191 | network-manager-applet (0.9.10.0-2) unstable; urgency=medium | ||
121 | 192 | |||
122 | 193 | * Disable bluetooth support. The gnome-bluetooth plugin no longer builds | ||
123 | 194 | with gnome-bluetooth 3.12. But this plugin is really only useful for DUN | ||
124 | 195 | which with bluez 5 isn't supported (yet). | ||
125 | 196 | PAN support should still be functional. | ||
126 | 197 | |||
127 | 198 | -- Michael Biebl <biebl@debian.org> Wed, 16 Jul 2014 01:31:23 +0200 | ||
128 | 199 | |||
129 | 200 | network-manager-applet (0.9.10.0-1) unstable; urgency=medium | ||
130 | 201 | |||
131 | 202 | * New upstream release. | ||
132 | 203 | * Update Build-Depends as per configure.ac. | ||
133 | 204 | * Drop obsolete --with-gtkver configure switch. | ||
134 | 205 | * Refresh patches. | ||
135 | 206 | * Update symbols file. A few deprecated symbols were dropped which were used | ||
136 | 207 | in older versions of network-manager-gnome, so add a versioned Breaks. | ||
137 | 208 | * Exclude libtool .la files and static libraries from list-missing. | ||
138 | 209 | |||
139 | 210 | -- Michael Biebl <biebl@debian.org> Thu, 10 Jul 2014 07:32:44 +0200 | ||
140 | 211 | |||
141 | 212 | network-manager-applet (0.9.8.10-1) unstable; urgency=medium | ||
142 | 213 | |||
143 | 214 | * New upstream release. | ||
144 | 215 | * Update patches. | ||
145 | 216 | * Tighten Build-Depends on libgnome-bluetooth-dev to (<< 3.11.0). | ||
146 | 217 | The bluetooth widget no longer builds with newer gnome-bluetooth since the | ||
147 | 218 | plugin API was removed. | ||
148 | 219 | |||
149 | 220 | -- Michael Biebl <biebl@debian.org> Thu, 01 May 2014 14:22:42 +0200 | ||
150 | 221 | |||
151 | 222 | network-manager-applet (0.9.8.8-5) unstable; urgency=medium | ||
152 | 223 | |||
153 | 224 | * Use valid paths when loading the org.gnome.nm-applet.eap schema. | ||
154 | 225 | We were missing a trailing '/'. Newer glib versions validate the path more | ||
155 | 226 | strictly, leading to an assert. | ||
156 | 227 | |||
157 | 228 | -- Michael Biebl <biebl@debian.org> Fri, 04 Apr 2014 17:51:38 +0200 | ||
158 | 229 | |||
159 | 230 | network-manager-applet (0.9.8.8-4) unstable; urgency=medium | ||
160 | 231 | |||
161 | 232 | * Drop dbus reload from postinst. The dbus package uses a file trigger | ||
162 | 233 | nowadays to automatically reload its configuration. | ||
163 | 234 | * Use the paths specified in the VPN .name files. | ||
164 | 235 | Since LIBDIR of nm-applet and the VPN plugins aren't necessarily the | ||
165 | 236 | same, use the paths as specified by the VPN plugins and only | ||
166 | 237 | reconstruct the path if it is not absolute or we fail to load the plugin. | ||
167 | 238 | |||
168 | 239 | -- Michael Biebl <biebl@debian.org> Tue, 01 Apr 2014 21:41:36 +0200 | ||
169 | 240 | |||
170 | 241 | network-manager-applet (0.9.8.8-3) unstable; urgency=medium | ||
171 | 242 | |||
172 | 243 | * Bump debhelper compatibility level to 9. | ||
173 | 244 | * Determine gnome-bluetooth plugin directory using libdir from | ||
174 | 245 | gnome-bluetooth-1.0.pc. | ||
175 | 246 | * Convert to multi-arch. Mark libnm-gtk0 as M-A: same, libnm-gtk-common as | ||
176 | 247 | M-A: foreign. | ||
177 | 248 | * Rely on dh v9 to set flags from dpkg-buildflags. | ||
178 | 249 | |||
179 | 250 | -- Michael Biebl <biebl@debian.org> Tue, 01 Apr 2014 16:23:05 +0200 | ||
180 | 251 | |||
181 | 252 | network-manager-applet (0.9.8.8-2) unstable; urgency=medium | ||
182 | 253 | |||
183 | 254 | * Enable ModemManager1 interface support. (Closes: #711968) | ||
184 | 255 | |||
185 | 256 | -- Michael Biebl <biebl@debian.org> Thu, 27 Mar 2014 16:50:18 +0100 | ||
186 | 257 | |||
187 | 258 | network-manager-applet (0.9.8.8-1) unstable; urgency=medium | ||
188 | 259 | |||
189 | 260 | * New upstream release. | ||
190 | 261 | * Bump Standards-Version to 3.9.5. | ||
191 | 262 | |||
192 | 263 | -- Michael Biebl <biebl@debian.org> Tue, 18 Mar 2014 11:17:48 +0100 | ||
193 | 264 | |||
194 | 98 | network-manager-applet (0.9.8.8-0ubuntu9) vivid; urgency=medium | 265 | network-manager-applet (0.9.8.8-0ubuntu9) vivid; urgency=medium |
195 | 99 | 266 | ||
196 | 100 | * Switch gnome-icon-theme to adwaita-icon-theme, which is its | 267 | * Switch gnome-icon-theme to adwaita-icon-theme, which is its |
197 | @@ -513,6 +680,16 @@ | |||
198 | 513 | 680 | ||
199 | 514 | -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Mon, 19 Nov 2012 14:46:29 -0500 | 681 | -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Mon, 19 Nov 2012 14:46:29 -0500 |
200 | 515 | 682 | ||
201 | 683 | network-manager-applet (0.9.6.2-1) experimental; urgency=low | ||
202 | 684 | |||
203 | 685 | * New upstream release. | ||
204 | 686 | * Bump Build-Depends on libnm-*-dev and network-manager-dev to (>= 0.9.6). | ||
205 | 687 | * Bump Depends on network-manager to (>= 0.9.6). | ||
206 | 688 | * debian/patches/01-fix-crash-in-migration-wizard.patch: Removed, merged | ||
207 | 689 | upstream. | ||
208 | 690 | |||
209 | 691 | -- Michael Biebl <biebl@debian.org> Tue, 11 Sep 2012 23:06:31 +0200 | ||
210 | 692 | |||
211 | 516 | network-manager-applet (0.9.6.2-0ubuntu6) quantal; urgency=low | 693 | network-manager-applet (0.9.6.2-0ubuntu6) quantal; urgency=low |
212 | 517 | 694 | ||
213 | 518 | * debian/patches/git_indicate_hspa+_lte_tech_dbe3b12.patch: add indications | 695 | * debian/patches/git_indicate_hspa+_lte_tech_dbe3b12.patch: add indications |
214 | @@ -2140,6 +2317,75 @@ | |||
215 | 2140 | 2317 | ||
216 | 2141 | -- Alexander Sack <asac@ubuntu.com> Tue, 17 Feb 2009 16:06:09 +0100 | 2318 | -- Alexander Sack <asac@ubuntu.com> Tue, 17 Feb 2009 16:06:09 +0100 |
217 | 2142 | 2319 | ||
218 | 2320 | network-manager-applet (0.7.0-2) experimental; urgency=low | ||
219 | 2321 | |||
220 | 2322 | * debian/patches/01-dbus_access_nm_applet.patch | ||
221 | 2323 | - Remove bare send_interface directives to avoid non-deterministic allow | ||
222 | 2324 | messages with no interface. (Closes: #510728) | ||
223 | 2325 | - Do not allow unpriviledged processes to ask for a users' connections. | ||
224 | 2326 | - Allow introspection by default. | ||
225 | 2327 | * debian/control | ||
226 | 2328 | - Wrap build dependencies. | ||
227 | 2329 | - Bump build dependency on debhelper to (>= 7). | ||
228 | 2330 | * debian/compat | ||
229 | 2331 | - Bump to debhelper v7 compat mode. | ||
230 | 2332 | |||
231 | 2333 | -- Michael Biebl <biebl@debian.org> Sat, 14 Feb 2009 16:16:35 +0100 | ||
232 | 2334 | |||
233 | 2335 | network-manager-applet (0.7.0-1) experimental; urgency=low | ||
234 | 2336 | |||
235 | 2337 | * New upstream release. | ||
236 | 2338 | - Notification popups can be disabled. (Closes: #446963) | ||
237 | 2339 | - Notification applet correctly handles panel restarts. (Closes:# 458332) | ||
238 | 2340 | - The nm-editor tool has been replaced by nm-connection-editor. | ||
239 | 2341 | (Closes: #494148, #482107, #485651) | ||
240 | 2342 | - Show the correct configuration for WPA Enterprise setups in | ||
241 | 2343 | nm-connection-editor (Closes: #480039) | ||
242 | 2344 | |||
243 | 2345 | [ Sjoerd Simons ] | ||
244 | 2346 | * debian/patches/02-nm-api-update.patch: | ||
245 | 2347 | - Removed. Fixed upstream | ||
246 | 2348 | * debian/control: Tighten build-depends on nm related libraries | ||
247 | 2349 | |||
248 | 2350 | [ Michael Biebl ] | ||
249 | 2351 | * debian/copyright | ||
250 | 2352 | - More updates to the copyright file. The polkit-helper bits are licensed | ||
251 | 2353 | under the LGPL. | ||
252 | 2354 | * debian/control | ||
253 | 2355 | - Add network-manager-pptp-gnome to Suggests. | ||
254 | 2356 | |||
255 | 2357 | -- Michael Biebl <biebl@debian.org> Tue, 16 Dec 2008 06:50:06 +0100 | ||
256 | 2358 | |||
257 | 2359 | network-manager-applet (0.7.0~svn953-1) experimental; urgency=low | ||
258 | 2360 | |||
259 | 2361 | [ Michael Biebl ] | ||
260 | 2362 | * Switch to quilt patch management system. | ||
261 | 2363 | * debian/rules | ||
262 | 2364 | - Set libexecdir to /usr/lib/NetworkManager, so nm-applet and | ||
263 | 2365 | nm-connection-editor automatically find the VPN GUI plugins. | ||
264 | 2366 | * debian/control: | ||
265 | 2367 | - Bump Standards-Version to 3.8.0. No further changes. | ||
266 | 2368 | - Demote Recommends on VPN plugins to Suggests. | ||
267 | 2369 | - Bump Depends on network-manager to (>= 0.7). | ||
268 | 2370 | - Add Build-Depends on libpolkit-gnome-dev. | ||
269 | 2371 | - Add Recommends on policykit-gnome. This package is required if you want | ||
270 | 2372 | to manage system connections. | ||
271 | 2373 | * debian/patches/01-dbus_access_nm_applet.patch: Updated | ||
272 | 2374 | * Removed obsolete patches: | ||
273 | 2375 | - debian/patches/02-hal_deprecated_keys.patch | ||
274 | 2376 | - debian/patches/03-nm_editor_category.patch | ||
275 | 2377 | * debian/copyright: Revised for the latest changes. | ||
276 | 2378 | |||
277 | 2379 | [ Simon McVittie ] | ||
278 | 2380 | * Newer svn snapshot | ||
279 | 2381 | |||
280 | 2382 | [ Sjoerd Simons ] | ||
281 | 2383 | * debian/patches/02-nm-api-udate.patch | ||
282 | 2384 | - Added. cope with a small NM 0.7 api change | ||
283 | 2385 | * debian/control: Build-Depend on nm-glib dev packages with new api | ||
284 | 2386 | |||
285 | 2387 | -- Sjoerd Simons <sjoerd@debian.org> Sat, 18 Oct 2008 21:40:05 +0100 | ||
286 | 2388 | |||
287 | 2143 | network-manager-applet (0.7-0ubuntu2) jaunty; urgency=low | 2389 | network-manager-applet (0.7-0ubuntu2) jaunty; urgency=low |
288 | 2144 | 2390 | ||
289 | 2145 | * fix LP: #295788 - Network Configuration menu item should also be | 2391 | * fix LP: #295788 - Network Configuration menu item should also be |
290 | @@ -2520,6 +2766,7 @@ | |||
291 | 2520 | * Add debian/watch to track new upstream releases. | 2766 | * Add debian/watch to track new upstream releases. |
292 | 2521 | 2767 | ||
293 | 2522 | -- Michael Biebl <biebl@debian.org> Mon, 27 Aug 2007 08:03:06 +0200 | 2768 | -- Michael Biebl <biebl@debian.org> Mon, 27 Aug 2007 08:03:06 +0200 |
294 | 2769 | |||
295 | 2523 | network-manager-applet (0.6.5-0ubuntu11) hardy; urgency=low | 2770 | network-manager-applet (0.6.5-0ubuntu11) hardy; urgency=low |
296 | 2524 | 2771 | ||
297 | 2525 | * apply patch to drop gnome-runtime dependencies (LP: #136945) - patch by Jani | 2772 | * apply patch to drop gnome-runtime dependencies (LP: #136945) - patch by Jani |
298 | @@ -2638,3 +2885,4 @@ | |||
299 | 2638 | to network-manager package due to bad source splitting | 2885 | to network-manager package due to bad source splitting |
300 | 2639 | 2886 | ||
301 | 2640 | -- Anthony Mercatante <tonio@ubuntu.com> Fri, 15 Jun 2007 12:46:22 +0200 | 2887 | -- Anthony Mercatante <tonio@ubuntu.com> Fri, 15 Jun 2007 12:46:22 +0200 |
302 | 2888 | |||
303 | 2641 | 2889 | ||
304 | === modified file 'debian/control' | |||
305 | --- debian/control 2015-10-07 03:56:07 +0000 | |||
306 | +++ debian/control 2015-12-02 15:57:13 +0000 | |||
307 | @@ -4,59 +4,53 @@ | |||
308 | 4 | Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> | 4 | Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
309 | 5 | XSBC-Original-Maintainer: Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org> | 5 | XSBC-Original-Maintainer: Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org> |
310 | 6 | Uploaders: Michael Biebl <biebl@debian.org> | 6 | Uploaders: Michael Biebl <biebl@debian.org> |
337 | 7 | Build-Depends: | 7 | Build-Depends: debhelper (>= 9), |
338 | 8 | debhelper (>= 9), | 8 | autotools-dev, |
339 | 9 | autotools-dev, | 9 | dh-autoreconf, |
340 | 10 | dh-autoreconf, | 10 | gnome-common, |
341 | 11 | gnome-common, | 11 | intltool, |
342 | 12 | intltool, | 12 | libdbus-glib-1-dev (>= 0.74), |
343 | 13 | docbook-to-man, | 13 | libgnome-keyring-dev, |
344 | 14 | libdbus-glib-1-dev (>= 0.74), | 14 | libsecret-1-dev, |
345 | 15 | libgnome-keyring-dev, | 15 | libgtk-3-dev (>= 3.4), |
346 | 16 | libsecret-1-dev, | 16 | libglib2.0-dev (>= 2.32), |
347 | 17 | libgtk-3-dev (>= 3.4), | 17 | libgconf2-dev, |
348 | 18 | libglib2.0-dev (>= 2.32), | 18 | libnotify-dev (>= 0.7), |
349 | 19 | libgconf2-dev, | 19 | libnm-util-dev (>= 1.0.0), |
350 | 20 | libnotify-dev (>= 0.7), | 20 | libnm-glib-dev (>= 1.0.0), |
351 | 21 | libnm-util-dev (>= 1.0.0), | 21 | libnm-glib-vpn-dev (>= 1.0.0), |
352 | 22 | libnm-glib-dev (>= 1.0.0), | 22 | network-manager-dev (>= 1.0.0), |
353 | 23 | libnm-glib-vpn-dev (>= 1.0.0), | 23 | libmm-glib-dev, |
354 | 24 | network-manager-dev (>= 1.0.0), | 24 | libgudev-1.0-dev (>= 147), |
355 | 25 | libmm-glib-dev, | 25 | iso-codes, |
356 | 26 | libgudev-1.0-dev (>= 147), | 26 | libgirepository1.0-dev, |
357 | 27 | iso-codes, | 27 | dh-translations, |
358 | 28 | libgirepository1.0-dev, | 28 | libappindicator3-dev, |
359 | 29 | dh-translations, | 29 | gobject-introspection |
360 | 30 | libappindicator3-dev, | 30 | Standards-Version: 3.9.6 |
335 | 31 | gobject-introspection | ||
336 | 32 | Standards-Version: 3.9.5 | ||
361 | 33 | Vcs-Bzr: https://code.launchpad.net/~network-manager/network-manager-applet/ubuntu | 31 | Vcs-Bzr: https://code.launchpad.net/~network-manager/network-manager-applet/ubuntu |
363 | 34 | Homepage: http://www.gnome.org/projects/NetworkManager/ | 32 | Homepage: https://www.gnome.org/projects/NetworkManager/ |
364 | 35 | 33 | ||
365 | 36 | Package: network-manager-gnome | 34 | Package: network-manager-gnome |
366 | 37 | Architecture: linux-any | 35 | Architecture: linux-any |
367 | 38 | Section: gnome | 36 | Section: gnome |
368 | 39 | Pre-Depends: ${misc:Pre-Depends} | 37 | Pre-Depends: ${misc:Pre-Depends} |
389 | 40 | Depends: | 38 | Depends: ${shlibs:Depends}, |
390 | 41 | ${shlibs:Depends}, | 39 | ${misc:Depends}, |
391 | 42 | ${misc:Depends}, | 40 | libnm-gtk0 (= ${binary:Version}), |
392 | 43 | libnm-gtk0 (= ${binary:Version}), | 41 | network-manager (>= 1.0.0), |
393 | 44 | network-manager (>= 0.9.10), | 42 | policykit-1-gnome, |
394 | 45 | policykit-1-gnome, | 43 | gnome-icon-theme, |
395 | 46 | adwaita-icon-theme, | 44 | dbus-x11 |
396 | 47 | dbus-x11 | 45 | Recommends: notification-daemon, |
397 | 48 | Recommends: | 46 | gnome-keyring, |
398 | 49 | notification-daemon, | 47 | mobile-broadband-provider-info, |
399 | 50 | gnome-keyring, | 48 | iso-codes |
400 | 51 | mobile-broadband-provider-info, | 49 | Suggests: network-manager-openconnect-gnome, |
401 | 52 | iso-codes | 50 | network-manager-openvpn-gnome, |
402 | 53 | Suggests: | 51 | network-manager-vpnc-gnome, |
403 | 54 | network-manager-openconnect-gnome, | 52 | network-manager-pptp-gnome |
404 | 55 | network-manager-openvpn-gnome, | 53 | Breaks: gnome-bluetooth (<< 3.0) |
385 | 56 | network-manager-vpnc-gnome, | ||
386 | 57 | network-manager-pptp-gnome | ||
387 | 58 | Breaks: | ||
388 | 59 | gnome-bluetooth (<< 3.0) | ||
405 | 60 | Description: network management framework (GNOME frontend) | 54 | Description: network management framework (GNOME frontend) |
406 | 61 | NetworkManager is a system network service that manages your network devices | 55 | NetworkManager is a system network service that manages your network devices |
407 | 62 | and connections, attempting to keep active network connectivity when | 56 | and connections, attempting to keep active network connectivity when |
408 | @@ -75,10 +69,10 @@ | |||
409 | 75 | Architecture: linux-any | 69 | Architecture: linux-any |
410 | 76 | Multi-Arch: same | 70 | Multi-Arch: same |
411 | 77 | Section: libs | 71 | Section: libs |
416 | 78 | Depends: | 72 | Pre-Depends: ${misc:Pre-Depends} |
417 | 79 | ${shlibs:Depends}, | 73 | Depends: ${shlibs:Depends}, |
418 | 80 | ${misc:Depends}, | 74 | ${misc:Depends}, |
419 | 81 | libnm-gtk-common (= ${source:Version}) | 75 | libnm-gtk-common (= ${source:Version}) |
420 | 82 | Breaks: network-manager-gnome (<< 0.9.10.0) | 76 | Breaks: network-manager-gnome (<< 0.9.10.0) |
421 | 83 | Description: network management framework (GNOME dialogs for wifi and mobile) | 77 | Description: network management framework (GNOME dialogs for wifi and mobile) |
422 | 84 | NetworkManager is a system network service that manages your network devices | 78 | NetworkManager is a system network service that manages your network devices |
423 | @@ -93,8 +87,7 @@ | |||
424 | 93 | Architecture: all | 87 | Architecture: all |
425 | 94 | Multi-Arch: foreign | 88 | Multi-Arch: foreign |
426 | 95 | Section: libs | 89 | Section: libs |
429 | 96 | Depends: | 90 | Depends: ${misc:Depends} |
428 | 97 | ${misc:Depends} | ||
430 | 98 | Description: network management framework (common files for wifi and mobile) | 91 | Description: network management framework (common files for wifi and mobile) |
431 | 99 | NetworkManager is a system network service that manages your network devices | 92 | NetworkManager is a system network service that manages your network devices |
432 | 100 | and connections, attempting to keep active network connectivity when | 93 | and connections, attempting to keep active network connectivity when |
433 | @@ -106,17 +99,17 @@ | |||
434 | 106 | 99 | ||
435 | 107 | Package: libnm-gtk-dev | 100 | Package: libnm-gtk-dev |
436 | 108 | Architecture: linux-any | 101 | Architecture: linux-any |
437 | 102 | Multi-Arch: same | ||
438 | 109 | Section: libdevel | 103 | Section: libdevel |
449 | 110 | Depends: | 104 | Depends: ${shlibs:Depends}, |
450 | 111 | ${shlibs:Depends}, | 105 | ${misc:Depends}, |
451 | 112 | ${misc:Depends}, | 106 | libnm-gtk0 (= ${binary:Version}), |
452 | 113 | libnm-gtk0 (= ${binary:Version}), | 107 | gir1.2-nmgtk-1.0 (= ${binary:Version}), |
453 | 114 | gir1.2-nmgtk-1.0 (= ${binary:Version}), | 108 | network-manager-dev (>= 1.0.0), |
454 | 115 | network-manager-dev (>= 0.9), | 109 | libnm-util-dev (>= 1.0.0), |
455 | 116 | libnm-util-dev (>= 0.9), | 110 | libnm-glib-dev (>= 1.0.0), |
456 | 117 | libnm-glib-dev (>= 0.9), | 111 | libgtk-3-dev, |
457 | 118 | libgtk-3-dev, | 112 | libdbus-glib-1-dev |
448 | 119 | libdbus-glib-1-dev | ||
458 | 120 | Description: network management framework (dialogs development libraries) | 113 | Description: network management framework (dialogs development libraries) |
459 | 121 | NetworkManager is a system network service that manages your network devices | 114 | NetworkManager is a system network service that manages your network devices |
460 | 122 | and connections, attempting to keep active network connectivity when | 115 | and connections, attempting to keep active network connectivity when |
461 | @@ -130,10 +123,10 @@ | |||
462 | 130 | Package: gir1.2-nmgtk-1.0 | 123 | Package: gir1.2-nmgtk-1.0 |
463 | 131 | Section: introspection | 124 | Section: introspection |
464 | 132 | Architecture: linux-any | 125 | Architecture: linux-any |
469 | 133 | Depends: | 126 | Multi-Arch: same |
470 | 134 | ${gir:Depends}, | 127 | Depends: ${gir:Depends}, |
471 | 135 | ${shlibs:Depends}, | 128 | ${shlibs:Depends}, |
472 | 136 | ${misc:Depends} | 129 | ${misc:Depends} |
473 | 137 | Description: GObject introspection data for libnm-gtk | 130 | Description: GObject introspection data for libnm-gtk |
474 | 138 | NetworkManager is a system network service that manages your network devices | 131 | NetworkManager is a system network service that manages your network devices |
475 | 139 | and connections, attempting to keep active network connectivity when | 132 | and connections, attempting to keep active network connectivity when |
476 | 140 | 133 | ||
477 | === modified file 'debian/gbp.conf' | |||
478 | --- debian/gbp.conf 2014-01-07 03:29:35 +0000 | |||
479 | +++ debian/gbp.conf 2015-12-02 15:57:13 +0000 | |||
480 | @@ -1,3 +1,4 @@ | |||
481 | 1 | [DEFAULT] | 1 | [DEFAULT] |
482 | 2 | pristine-tar = True | 2 | pristine-tar = True |
483 | 3 | patch-numbers = False | ||
484 | 3 | debian-branch = master | 4 | debian-branch = master |
485 | 4 | 5 | ||
486 | === modified file 'debian/gir1.2-nmgtk-1.0.install' | |||
487 | --- debian/gir1.2-nmgtk-1.0.install 2015-01-27 01:15:32 +0000 | |||
488 | +++ debian/gir1.2-nmgtk-1.0.install 2015-12-02 15:57:13 +0000 | |||
489 | @@ -1,1 +1,1 @@ | |||
491 | 1 | usr/lib/*/girepository-1.0/ usr/lib/ | 1 | usr/lib/*/girepository-1.0/ |
492 | 2 | 2 | ||
493 | === modified file 'debian/libnm-gtk0.symbols' | |||
494 | --- debian/libnm-gtk0.symbols 2015-10-07 09:23:09 +0000 | |||
495 | +++ debian/libnm-gtk0.symbols 2015-12-02 15:57:13 +0000 | |||
496 | @@ -1,4 +1,5 @@ | |||
497 | 1 | libnm-gtk.so.0 libnm-gtk0 #MINVER# | 1 | libnm-gtk.so.0 libnm-gtk0 #MINVER# |
498 | 2 | libnm_gtk_1_0_6@libnm_gtk_1_0_6 1.0.6 | ||
499 | 2 | nma_country_info_get_country_code@Base 0.9.7.995 | 3 | nma_country_info_get_country_code@Base 0.9.7.995 |
500 | 3 | nma_country_info_get_country_name@Base 0.9.7.995 | 4 | nma_country_info_get_country_name@Base 0.9.7.995 |
501 | 4 | nma_country_info_get_providers@Base 0.9.7.995 | 5 | nma_country_info_get_providers@Base 0.9.7.995 |
502 | @@ -42,15 +43,15 @@ | |||
503 | 42 | nma_utils_get_device_product@Base 0.9.7.995 | 43 | nma_utils_get_device_product@Base 0.9.7.995 |
504 | 43 | nma_utils_get_device_type_name@Base 0.9.7.995 | 44 | nma_utils_get_device_type_name@Base 0.9.7.995 |
505 | 44 | nma_utils_get_device_vendor@Base 0.9.7.995 | 45 | nma_utils_get_device_vendor@Base 0.9.7.995 |
509 | 45 | nma_utils_menu_to_secret_flags@Base 1.0.4 | 46 | nma_utils_menu_to_secret_flags@libnm_gtk_1_0_6 1.0.6 |
510 | 46 | nma_utils_setup_password_storage@Base 1.0.4 | 47 | nma_utils_setup_password_storage@libnm_gtk_1_0_6 1.0.6 |
511 | 47 | nma_utils_update_password_storage@Base 1.0.4 | 48 | nma_utils_update_password_storage@libnm_gtk_1_0_6 1.0.6 |
512 | 48 | nma_vpn_password_dialog_focus_password@Base 0.9.10.0 | 49 | nma_vpn_password_dialog_focus_password@Base 0.9.10.0 |
513 | 49 | nma_vpn_password_dialog_focus_password_secondary@Base 0.9.10.0 | 50 | nma_vpn_password_dialog_focus_password_secondary@Base 0.9.10.0 |
515 | 50 | nma_vpn_password_dialog_focus_password_ternary@Base 1.0.4 | 51 | nma_vpn_password_dialog_focus_password_ternary@libnm_gtk_1_0_6 1.0.6 |
516 | 51 | nma_vpn_password_dialog_get_password@Base 0.9.10.0 | 52 | nma_vpn_password_dialog_get_password@Base 0.9.10.0 |
517 | 52 | nma_vpn_password_dialog_get_password_secondary@Base 0.9.10.0 | 53 | nma_vpn_password_dialog_get_password_secondary@Base 0.9.10.0 |
519 | 53 | nma_vpn_password_dialog_get_password_ternary@Base 1.0.4 | 54 | nma_vpn_password_dialog_get_password_ternary@libnm_gtk_1_0_6 1.0.6 |
520 | 54 | nma_vpn_password_dialog_get_type@Base 0.9.10.0 | 55 | nma_vpn_password_dialog_get_type@Base 0.9.10.0 |
521 | 55 | nma_vpn_password_dialog_new@Base 0.9.10.0 | 56 | nma_vpn_password_dialog_new@Base 0.9.10.0 |
522 | 56 | nma_vpn_password_dialog_run_and_block@Base 0.9.10.0 | 57 | nma_vpn_password_dialog_run_and_block@Base 0.9.10.0 |
523 | @@ -58,11 +59,11 @@ | |||
524 | 58 | nma_vpn_password_dialog_set_password_label@Base 0.9.10.0 | 59 | nma_vpn_password_dialog_set_password_label@Base 0.9.10.0 |
525 | 59 | nma_vpn_password_dialog_set_password_secondary@Base 0.9.10.0 | 60 | nma_vpn_password_dialog_set_password_secondary@Base 0.9.10.0 |
526 | 60 | nma_vpn_password_dialog_set_password_secondary_label@Base 0.9.10.0 | 61 | nma_vpn_password_dialog_set_password_secondary_label@Base 0.9.10.0 |
529 | 61 | nma_vpn_password_dialog_set_password_ternary@Base 1.0.4 | 62 | nma_vpn_password_dialog_set_password_ternary@libnm_gtk_1_0_6 1.0.6 |
530 | 62 | nma_vpn_password_dialog_set_password_ternary_label@Base 1.0.4 | 63 | nma_vpn_password_dialog_set_password_ternary_label@libnm_gtk_1_0_6 1.0.6 |
531 | 63 | nma_vpn_password_dialog_set_show_password@Base 0.9.10.0 | 64 | nma_vpn_password_dialog_set_show_password@Base 0.9.10.0 |
532 | 64 | nma_vpn_password_dialog_set_show_password_secondary@Base 0.9.10.0 | 65 | nma_vpn_password_dialog_set_show_password_secondary@Base 0.9.10.0 |
534 | 65 | nma_vpn_password_dialog_set_show_password_ternary@Base 1.0.4 | 66 | nma_vpn_password_dialog_set_show_password_ternary@libnm_gtk_1_0_6 1.0.6 |
535 | 66 | nma_wifi_dialog_get_connection@Base 0.9.6.4 | 67 | nma_wifi_dialog_get_connection@Base 0.9.6.4 |
536 | 67 | nma_wifi_dialog_get_nag_ignored@Base 0.9.6.4 | 68 | nma_wifi_dialog_get_nag_ignored@Base 0.9.6.4 |
537 | 68 | nma_wifi_dialog_get_type@Base 0.9.6.4 | 69 | nma_wifi_dialog_get_type@Base 0.9.6.4 |
538 | 69 | 70 | ||
539 | === modified file 'debian/network-manager-gnome.README.Debian' | |||
540 | --- debian/network-manager-gnome.README.Debian 2011-05-05 20:36:27 +0000 | |||
541 | +++ debian/network-manager-gnome.README.Debian 2015-12-02 15:57:13 +0000 | |||
542 | @@ -1,6 +1,11 @@ | |||
543 | 1 | network-manager-gnome provides a Notification Area applet called nm-applet for | 1 | network-manager-gnome provides a Notification Area applet called nm-applet for |
544 | 2 | conveniently choosing wired and wireless networks in GNOME, KDE and XFCE. | 2 | conveniently choosing wired and wireless networks in GNOME, KDE and XFCE. |
545 | 3 | 3 | ||
546 | 4 | network-manager-gnome (by virtue of the fact it uses network-manager) | ||
547 | 5 | requires users to be in the group 'netdev' for it to work. If users aren't | ||
548 | 6 | in the group 'netdev' then it won't automatically appear, and work, in the | ||
549 | 7 | Notification Area. | ||
550 | 8 | |||
551 | 4 | network-manager-gnome uses network-manager. Please see the | 9 | network-manager-gnome uses network-manager. Please see the |
552 | 5 | network-mananger documentation in | 10 | network-mananger documentation in |
553 | 6 | /usr/share/doc/network-manager/README.Debian for further information. | 11 | /usr/share/doc/network-manager/README.Debian for further information. |
554 | 7 | 12 | ||
555 | === removed file 'debian/network-manager-gnome.manpages' | |||
556 | --- debian/network-manager-gnome.manpages 2011-05-05 20:40:26 +0000 | |||
557 | +++ debian/network-manager-gnome.manpages 1970-01-01 00:00:00 +0000 | |||
558 | @@ -1,1 +0,0 @@ | |||
559 | 1 | debian/nm-applet.1 | ||
560 | 2 | 0 | ||
561 | === added file 'debian/network-manager-gnome.postinst' | |||
562 | --- debian/network-manager-gnome.postinst 1970-01-01 00:00:00 +0000 | |||
563 | +++ debian/network-manager-gnome.postinst 2015-12-02 15:57:13 +0000 | |||
564 | @@ -0,0 +1,10 @@ | |||
565 | 1 | #!/bin/sh | ||
566 | 2 | |||
567 | 3 | set -e | ||
568 | 4 | |||
569 | 5 | if [ "$1" = configure ] && dpkg --compare-versions "$2" lt-nl 0.9.0-2 ; then | ||
570 | 6 | [ -x /usr/share/update-notifier/notify-reboot-required ] && \ | ||
571 | 7 | /usr/share/update-notifier/notify-reboot-required || true | ||
572 | 8 | fi | ||
573 | 9 | |||
574 | 10 | #DEBHELPER# | ||
575 | 0 | 11 | ||
576 | === removed file 'debian/nm-applet.sgml' | |||
577 | --- debian/nm-applet.sgml 2011-05-05 20:40:26 +0000 | |||
578 | +++ debian/nm-applet.sgml 1970-01-01 00:00:00 +0000 | |||
579 | @@ -1,100 +0,0 @@ | |||
580 | 1 | <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [ | ||
581 | 2 | |||
582 | 3 | <!-- Process this file with docbook-to-man to generate an nroff manual | ||
583 | 4 | page: `docbook-to-man manpage.sgml > manpage.1'. You may view | ||
584 | 5 | the manual page with: `docbook-to-man manpage.sgml | nroff -man | | ||
585 | 6 | less'. A typical entry in a Makefile or Makefile.am is: | ||
586 | 7 | |||
587 | 8 | manpage.1: manpage.sgml | ||
588 | 9 | docbook-to-man $< > $@ | ||
589 | 10 | |||
590 | 11 | |||
591 | 12 | The docbook-to-man binary is found in the docbook-to-man package. | ||
592 | 13 | Please remember that if you create the nroff version in one of the | ||
593 | 14 | debian/rules file targets (such as build), you will need to include | ||
594 | 15 | docbook-to-man in your Build-Depends control field. | ||
595 | 16 | |||
596 | 17 | --> | ||
597 | 18 | |||
598 | 19 | <!-- Please adjust the date whenever revising the manpage. --> | ||
599 | 20 | <!ENTITY date "<date>8 February, 2006</date>"> | ||
600 | 21 | <!-- SECTION should be 1-8, maybe w/ subsection other parameters are | ||
601 | 22 | allowed: see man(7), man(1). --> | ||
602 | 23 | <!ENTITY package "nm-applet"> | ||
603 | 24 | <!ENTITY gnu "<acronym>GNU</acronym>"> | ||
604 | 25 | <!ENTITY gpl "&gnu; <acronym>GPL</acronym>"> | ||
605 | 26 | ]> | ||
606 | 27 | |||
607 | 28 | <refentry> | ||
608 | 29 | <refentryinfo> | ||
609 | 30 | <address> | ||
610 | 31 | <email>giskard@autistici.org</email>; | ||
611 | 32 | </address> | ||
612 | 33 | <author> | ||
613 | 34 | <firstname>Riccardo</firstname> | ||
614 | 35 | <surname>Setti</surname> | ||
615 | 36 | </author> | ||
616 | 37 | <copyright> | ||
617 | 38 | <year>2006</year> | ||
618 | 39 | <holder>Riccardo Setti</holder> | ||
619 | 40 | </copyright> | ||
620 | 41 | &date; | ||
621 | 42 | </refentryinfo> | ||
622 | 43 | <refmeta> | ||
623 | 44 | <refentrytitle>nm-applet</refentrytitle> | ||
624 | 45 | <manvolnum>1</manvolnum> | ||
625 | 46 | </refmeta> | ||
626 | 47 | <refnamediv> | ||
627 | 48 | <refname>&package;</refname> | ||
628 | 49 | |||
629 | 50 | <refpurpose>Network management framework</refpurpose> | ||
630 | 51 | </refnamediv> | ||
631 | 52 | <refsynopsisdiv> | ||
632 | 53 | <cmdsynopsis> | ||
633 | 54 | <command>&package;</command> | ||
634 | 55 | </cmdsynopsis> | ||
635 | 56 | </refsynopsisdiv> | ||
636 | 57 | <refsect1> | ||
637 | 58 | <title>DESCRIPTION</title> | ||
638 | 59 | |||
639 | 60 | <para><command>&package;</command> is the GNOME front-end for NetworkManager</para> | ||
640 | 61 | <para>It is a systray applet which will display an icon in GNOME's notification area but it | ||
641 | 62 | also works for other desktop environments which provide a systray like KDE or XFCE.</para> | ||
642 | 63 | <para><command>&package;</command> shows a list of available networks and allows you to easily switch between them. For encrypted networks it | ||
643 | 64 | will prompt you for the key/passphrase and you can optionally store them in the gnome-keyring so you don't have to | ||
644 | 65 | type them again.</para> | ||
645 | 66 | </refsect1> | ||
646 | 67 | <refsect1> | ||
647 | 68 | <title>SEE ALSO</title> | ||
648 | 69 | |||
649 | 70 | <para>NetworkManager(8), nm-tool(1)</para> | ||
650 | 71 | |||
651 | 72 | <para>More Information about NetworkManager can be found at | ||
652 | 73 | http://www.gnome.org/projects/NetworkManager/ .</para> | ||
653 | 74 | </refsect1> | ||
654 | 75 | <refsect1> | ||
655 | 76 | <title>AUTHOR</title> | ||
656 | 77 | |||
657 | 78 | <para>This manual page was written by Riccardo Setti <email>giskard@autistici.org</email> for | ||
658 | 79 | the <productname>Debian</productname> system. | ||
659 | 80 | </para> | ||
660 | 81 | |||
661 | 82 | </refsect1> | ||
662 | 83 | </refentry> | ||
663 | 84 | |||
664 | 85 | <!-- Keep this comment at the end of the file | ||
665 | 86 | Local variables: | ||
666 | 87 | mode: sgml | ||
667 | 88 | sgml-omittag:t | ||
668 | 89 | sgml-shorttag:t | ||
669 | 90 | sgml-minimize-attributes:nil | ||
670 | 91 | sgml-always-quote-attributes:t | ||
671 | 92 | sgml-indent-step:2 | ||
672 | 93 | sgml-indent-data:t | ||
673 | 94 | sgml-parent-document:nil | ||
674 | 95 | sgml-default-dtd-file:nil | ||
675 | 96 | sgml-exposed-tags:nil | ||
676 | 97 | sgml-local-catalogs:nil | ||
677 | 98 | sgml-local-ecat-files:nil | ||
678 | 99 | End: | ||
679 | 100 | --> | ||
680 | 101 | 0 | ||
681 | === removed file 'debian/patches/11-user-connections.patch' | |||
682 | --- debian/patches/11-user-connections.patch 2015-10-07 09:18:50 +0000 | |||
683 | +++ debian/patches/11-user-connections.patch 1970-01-01 00:00:00 +0000 | |||
684 | @@ -1,698 +0,0 @@ | |||
685 | 1 | From: Josselin Mouette <joss@debian.org> | ||
686 | 2 | Subject: Set passwords as agent-owned when they need to, to allow users | ||
687 | 3 | without modify.system permissions to easily configure their connections. | ||
688 | 4 | Last-Update: 2014-03-18 | ||
689 | 5 | |||
690 | 6 | --- | ||
691 | 7 | src/applet-device-wifi.c | 25 +++++++++++++++++++++++++ | ||
692 | 8 | src/connection-editor/ce-page.h | 1 + | ||
693 | 9 | src/connection-editor/new-connection.c | 2 ++ | ||
694 | 10 | src/connection-editor/page-bond.c | 1 + | ||
695 | 11 | src/connection-editor/page-bond.h | 1 + | ||
696 | 12 | src/connection-editor/page-bridge.c | 1 + | ||
697 | 13 | src/connection-editor/page-bridge.h | 1 + | ||
698 | 14 | src/connection-editor/page-dsl.c | 1 + | ||
699 | 15 | src/connection-editor/page-dsl.h | 1 + | ||
700 | 16 | src/connection-editor/page-ethernet.c | 1 + | ||
701 | 17 | src/connection-editor/page-ethernet.h | 1 + | ||
702 | 18 | src/connection-editor/page-infiniband.c | 1 + | ||
703 | 19 | src/connection-editor/page-infiniband.h | 1 + | ||
704 | 20 | src/connection-editor/page-mobile.c | 11 +++++++++++ | ||
705 | 21 | src/connection-editor/page-mobile.h | 1 + | ||
706 | 22 | src/connection-editor/page-vlan.c | 1 + | ||
707 | 23 | src/connection-editor/page-vlan.h | 1 + | ||
708 | 24 | src/connection-editor/page-vpn.c | 11 +++++++++++ | ||
709 | 25 | src/connection-editor/page-vpn.h | 2 ++ | ||
710 | 26 | src/connection-editor/page-wifi.c | 14 ++++++++++++++ | ||
711 | 27 | src/connection-editor/page-wifi.h | 1 + | ||
712 | 28 | src/connection-editor/page-wimax.c | 1 + | ||
713 | 29 | src/connection-editor/page-wimax.h | 1 + | ||
714 | 30 | src/gnome-bluetooth/nma-bt-device.c | 5 +++++ | ||
715 | 31 | src/libnm-gtk/nm-wifi-dialog.c | 4 ++++ | ||
716 | 32 | src/mobile-helpers.c | 3 +++ | ||
717 | 33 | src/utils/utils.c | 7 +++++++ | ||
718 | 34 | src/utils/utils.h | 3 +++ | ||
719 | 35 | src/wireless-security/ws-wep-key.c | 7 +++++++ | ||
720 | 36 | src/wireless-security/ws-wpa-psk.c | 5 +++++ | ||
721 | 37 | 30 files changed, 116 insertions(+) | ||
722 | 38 | |||
723 | 39 | Index: network-manager-applet-1.0.4/src/applet-device-wifi.c | ||
724 | 40 | =================================================================== | ||
725 | 41 | --- network-manager-applet-1.0.4.orig/src/applet-device-wifi.c | ||
726 | 42 | +++ network-manager-applet-1.0.4/src/applet-device-wifi.c | ||
727 | 43 | @@ -559,6 +559,7 @@ _do_new_auto_connection (NMApplet *apple | ||
728 | 44 | NMSettingWirelessSecurity *s_wsec = NULL; | ||
729 | 45 | NMSetting8021x *s_8021x = NULL; | ||
730 | 46 | const GByteArray *ssid; | ||
731 | 47 | + NM80211ApFlags flags; | ||
732 | 48 | NM80211ApSecurityFlags wpa_flags, rsn_flags; | ||
733 | 49 | GtkWidget *dialog; | ||
734 | 50 | MoreInfo *more_info; | ||
735 | 51 | @@ -590,6 +591,7 @@ _do_new_auto_connection (NMApplet *apple | ||
736 | 52 | /* If the AP is WPA[2]-Enterprise then we need to set up a minimal 802.1x | ||
737 | 53 | * setting and ask the user for more information. | ||
738 | 54 | */ | ||
739 | 55 | + flags = nm_access_point_get_flags (ap); | ||
740 | 56 | rsn_flags = nm_access_point_get_rsn_flags (ap); | ||
741 | 57 | wpa_flags = nm_access_point_get_wpa_flags (ap); | ||
742 | 58 | if ( (rsn_flags & NM_802_11_AP_SEC_KEY_MGMT_802_1X) | ||
743 | 59 | @@ -618,6 +620,29 @@ _do_new_auto_connection (NMApplet *apple | ||
744 | 60 | nm_connection_add_setting (connection, NM_SETTING (s_8021x)); | ||
745 | 61 | } | ||
746 | 62 | |||
747 | 63 | + if (utils_default_to_private_connection (applet->nm_client)) { | ||
748 | 64 | + if (!s_con) { | ||
749 | 65 | + s_con = (NMSettingConnection *) nm_setting_connection_new (); | ||
750 | 66 | + nm_connection_add_setting (connection, NM_SETTING (s_con)); | ||
751 | 67 | + } | ||
752 | 68 | + nm_setting_connection_add_permission (s_con, "user", g_get_user_name (), NULL); | ||
753 | 69 | + | ||
754 | 70 | + if ((rsn_flags & NM_802_11_AP_SEC_KEY_MGMT_PSK) || | ||
755 | 71 | + (wpa_flags & NM_802_11_AP_SEC_KEY_MGMT_PSK)) { | ||
756 | 72 | + if (!s_wsec) { | ||
757 | 73 | + s_wsec = (NMSettingWirelessSecurity *) nm_setting_wireless_security_new (); | ||
758 | 74 | + nm_connection_add_setting (connection, NM_SETTING (s_wsec)); | ||
759 | 75 | + } | ||
760 | 76 | + g_object_set (s_wsec, NM_SETTING_WIRELESS_SECURITY_PSK_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL); | ||
761 | 77 | + } else if (flags & NM_802_11_AP_FLAGS_PRIVACY) { | ||
762 | 78 | + if (!s_wsec) { | ||
763 | 79 | + s_wsec = (NMSettingWirelessSecurity *) nm_setting_wireless_security_new (); | ||
764 | 80 | + nm_connection_add_setting (connection, NM_SETTING (s_wsec)); | ||
765 | 81 | + } | ||
766 | 82 | + g_object_set (s_wsec, NM_SETTING_WIRELESS_SECURITY_WEP_KEY_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL); | ||
767 | 83 | + } | ||
768 | 84 | + } | ||
769 | 85 | + | ||
770 | 86 | /* If it's an 802.1x connection, we need more information, so pop up the | ||
771 | 87 | * Dialog Of Doom. | ||
772 | 88 | */ | ||
773 | 89 | Index: network-manager-applet-1.0.4/src/connection-editor/ce-page.h | ||
774 | 90 | =================================================================== | ||
775 | 91 | --- network-manager-applet-1.0.4.orig/src/connection-editor/ce-page.h | ||
776 | 92 | +++ network-manager-applet-1.0.4/src/connection-editor/ce-page.h | ||
777 | 93 | @@ -48,6 +48,7 @@ typedef void (*PageNewConnectionFunc) (G | ||
778 | 94 | const char *detail, | ||
779 | 95 | NMRemoteSettings *settings, | ||
780 | 96 | PageNewConnectionResultFunc result_func, | ||
781 | 97 | + NMClient *client, | ||
782 | 98 | gpointer user_data); | ||
783 | 99 | |||
784 | 100 | #define CE_TYPE_PAGE (ce_page_get_type ()) | ||
785 | 101 | Index: network-manager-applet-1.0.4/src/connection-editor/page-bond.c | ||
786 | 102 | =================================================================== | ||
787 | 103 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-bond.c | ||
788 | 104 | +++ network-manager-applet-1.0.4/src/connection-editor/page-bond.c | ||
789 | 105 | @@ -611,6 +611,7 @@ bond_connection_new (GtkWindow *parent, | ||
790 | 106 | const char *detail, | ||
791 | 107 | NMRemoteSettings *settings, | ||
792 | 108 | PageNewConnectionResultFunc result_func, | ||
793 | 109 | + NMClient *client, | ||
794 | 110 | gpointer user_data) | ||
795 | 111 | { | ||
796 | 112 | NMConnection *connection; | ||
797 | 113 | Index: network-manager-applet-1.0.4/src/connection-editor/page-bond.h | ||
798 | 114 | =================================================================== | ||
799 | 115 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-bond.h | ||
800 | 116 | +++ network-manager-applet-1.0.4/src/connection-editor/page-bond.h | ||
801 | 117 | @@ -56,6 +56,7 @@ void bond_connection_new (GtkWindow *par | ||
802 | 118 | const char *detail, | ||
803 | 119 | NMRemoteSettings *settings, | ||
804 | 120 | PageNewConnectionResultFunc result_func, | ||
805 | 121 | + NMClient *client, | ||
806 | 122 | gpointer user_data); | ||
807 | 123 | |||
808 | 124 | #endif /* __PAGE_BOND_H__ */ | ||
809 | 125 | Index: network-manager-applet-1.0.4/src/connection-editor/page-bridge.c | ||
810 | 126 | =================================================================== | ||
811 | 127 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-bridge.c | ||
812 | 128 | +++ network-manager-applet-1.0.4/src/connection-editor/page-bridge.c | ||
813 | 129 | @@ -294,6 +294,7 @@ bridge_connection_new (GtkWindow *parent | ||
814 | 130 | const char *detail, | ||
815 | 131 | NMRemoteSettings *settings, | ||
816 | 132 | PageNewConnectionResultFunc result_func, | ||
817 | 133 | + NMClient *client, | ||
818 | 134 | gpointer user_data) | ||
819 | 135 | { | ||
820 | 136 | NMConnection *connection; | ||
821 | 137 | Index: network-manager-applet-1.0.4/src/connection-editor/page-bridge.h | ||
822 | 138 | =================================================================== | ||
823 | 139 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-bridge.h | ||
824 | 140 | +++ network-manager-applet-1.0.4/src/connection-editor/page-bridge.h | ||
825 | 141 | @@ -56,6 +56,7 @@ void bridge_connection_new (GtkWindow *p | ||
826 | 142 | const char *detail, | ||
827 | 143 | NMRemoteSettings *settings, | ||
828 | 144 | PageNewConnectionResultFunc result_func, | ||
829 | 145 | + NMClient *client, | ||
830 | 146 | gpointer user_data); | ||
831 | 147 | |||
832 | 148 | #endif /* __PAGE_BRIDGE_H__ */ | ||
833 | 149 | Index: network-manager-applet-1.0.4/src/connection-editor/page-dsl.c | ||
834 | 150 | =================================================================== | ||
835 | 151 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-dsl.c | ||
836 | 152 | +++ network-manager-applet-1.0.4/src/connection-editor/page-dsl.c | ||
837 | 153 | @@ -221,6 +221,7 @@ dsl_connection_new (GtkWindow *parent, | ||
838 | 154 | const char *detail, | ||
839 | 155 | NMRemoteSettings *settings, | ||
840 | 156 | PageNewConnectionResultFunc result_func, | ||
841 | 157 | + NMClient *client, | ||
842 | 158 | gpointer user_data) | ||
843 | 159 | { | ||
844 | 160 | NMConnection *connection; | ||
845 | 161 | Index: network-manager-applet-1.0.4/src/connection-editor/page-dsl.h | ||
846 | 162 | =================================================================== | ||
847 | 163 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-dsl.h | ||
848 | 164 | +++ network-manager-applet-1.0.4/src/connection-editor/page-dsl.h | ||
849 | 165 | @@ -58,6 +58,7 @@ void dsl_connection_new (GtkWindow *pare | ||
850 | 166 | const char *detail, | ||
851 | 167 | NMRemoteSettings *settings, | ||
852 | 168 | PageNewConnectionResultFunc callback, | ||
853 | 169 | + NMClient *client, | ||
854 | 170 | gpointer user_data); | ||
855 | 171 | |||
856 | 172 | #endif /* __PAGE_DSL_H__ */ | ||
857 | 173 | Index: network-manager-applet-1.0.4/src/connection-editor/page-ethernet.c | ||
858 | 174 | =================================================================== | ||
859 | 175 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-ethernet.c | ||
860 | 176 | +++ network-manager-applet-1.0.4/src/connection-editor/page-ethernet.c | ||
861 | 177 | @@ -377,6 +377,7 @@ ethernet_connection_new (GtkWindow *pare | ||
862 | 178 | const char *detail, | ||
863 | 179 | NMRemoteSettings *settings, | ||
864 | 180 | PageNewConnectionResultFunc result_func, | ||
865 | 181 | + NMClient *client, | ||
866 | 182 | gpointer user_data) | ||
867 | 183 | { | ||
868 | 184 | NMConnection *connection; | ||
869 | 185 | Index: network-manager-applet-1.0.4/src/connection-editor/page-ethernet.h | ||
870 | 186 | =================================================================== | ||
871 | 187 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-ethernet.h | ||
872 | 188 | +++ network-manager-applet-1.0.4/src/connection-editor/page-ethernet.h | ||
873 | 189 | @@ -58,6 +58,7 @@ void ethernet_connection_new (GtkWindow | ||
874 | 190 | const char *detail, | ||
875 | 191 | NMRemoteSettings *settings, | ||
876 | 192 | PageNewConnectionResultFunc result_func, | ||
877 | 193 | + NMClient *client, | ||
878 | 194 | gpointer user_data); | ||
879 | 195 | |||
880 | 196 | #endif /* __PAGE_ETHERNET_H__ */ | ||
881 | 197 | Index: network-manager-applet-1.0.4/src/connection-editor/page-infiniband.c | ||
882 | 198 | =================================================================== | ||
883 | 199 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-infiniband.c | ||
884 | 200 | +++ network-manager-applet-1.0.4/src/connection-editor/page-infiniband.c | ||
885 | 201 | @@ -253,6 +253,7 @@ infiniband_connection_new (GtkWindow *pa | ||
886 | 202 | const char *detail, | ||
887 | 203 | NMRemoteSettings *settings, | ||
888 | 204 | PageNewConnectionResultFunc result_func, | ||
889 | 205 | + NMClient *client, | ||
890 | 206 | gpointer user_data) | ||
891 | 207 | { | ||
892 | 208 | NMConnection *connection; | ||
893 | 209 | Index: network-manager-applet-1.0.4/src/connection-editor/page-infiniband.h | ||
894 | 210 | =================================================================== | ||
895 | 211 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-infiniband.h | ||
896 | 212 | +++ network-manager-applet-1.0.4/src/connection-editor/page-infiniband.h | ||
897 | 213 | @@ -56,6 +56,7 @@ void infiniband_connection_new (GtkWindo | ||
898 | 214 | const char *detail, | ||
899 | 215 | NMRemoteSettings *settings, | ||
900 | 216 | PageNewConnectionResultFunc result_func, | ||
901 | 217 | + NMClient *client, | ||
902 | 218 | gpointer user_data); | ||
903 | 219 | |||
904 | 220 | #endif /* __PAGE_INFINIBAND_H__ */ | ||
905 | 221 | Index: network-manager-applet-1.0.4/src/connection-editor/page-mobile.c | ||
906 | 222 | =================================================================== | ||
907 | 223 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-mobile.c | ||
908 | 224 | +++ network-manager-applet-1.0.4/src/connection-editor/page-mobile.c | ||
909 | 225 | @@ -452,6 +452,7 @@ new_connection_mobile_wizard_done (NMAMo | ||
910 | 226 | NMConnection *connection = NULL; | ||
911 | 227 | |||
912 | 228 | if (!canceled && method) { | ||
913 | 229 | + NMSettingConnection *s_con; | ||
914 | 230 | NMSetting *type_setting; | ||
915 | 231 | const char *ctype = NULL; | ||
916 | 232 | char *detail = NULL; | ||
917 | 233 | @@ -465,6 +466,7 @@ new_connection_mobile_wizard_done (NMAMo | ||
918 | 234 | NM_SETTING_GSM_NUMBER, "*99#", | ||
919 | 235 | NM_SETTING_GSM_USERNAME, method->username, | ||
920 | 236 | NM_SETTING_GSM_PASSWORD, method->password, | ||
921 | 237 | + NM_SETTING_GSM_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, | ||
922 | 238 | NM_SETTING_GSM_APN, method->gsm_apn, | ||
923 | 239 | NULL); | ||
924 | 240 | break; | ||
925 | 241 | @@ -476,6 +478,7 @@ new_connection_mobile_wizard_done (NMAMo | ||
926 | 242 | NM_SETTING_CDMA_NUMBER, "#777", | ||
927 | 243 | NM_SETTING_GSM_USERNAME, method->username, | ||
928 | 244 | NM_SETTING_GSM_PASSWORD, method->password, | ||
929 | 245 | + NM_SETTING_GSM_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, | ||
930 | 246 | NULL); | ||
931 | 247 | break; | ||
932 | 248 | default: | ||
933 | 249 | @@ -490,6 +493,13 @@ new_connection_mobile_wizard_done (NMAMo | ||
934 | 250 | connection = ce_page_new_connection (detail, ctype, FALSE, info->settings, info->user_data); | ||
935 | 251 | g_free (detail); | ||
936 | 252 | |||
937 | 253 | + s_con = nm_connection_get_setting_connection (connection); | ||
938 | 254 | + if (!s_con) { | ||
939 | 255 | + s_con = (NMSettingConnection *) nm_setting_connection_new (); | ||
940 | 256 | + nm_connection_add_setting (connection, NM_SETTING (s_con)); | ||
941 | 257 | + } | ||
942 | 258 | + nm_setting_connection_add_permission (s_con, "user", g_get_user_name (), NULL); | ||
943 | 259 | + | ||
944 | 260 | nm_connection_add_setting (connection, type_setting); | ||
945 | 261 | nm_connection_add_setting (connection, nm_setting_ppp_new ()); | ||
946 | 262 | } | ||
947 | 263 | @@ -514,6 +524,7 @@ mobile_connection_new (GtkWindow *parent | ||
948 | 264 | const char *detail, | ||
949 | 265 | NMRemoteSettings *settings, | ||
950 | 266 | PageNewConnectionResultFunc result_func, | ||
951 | 267 | + NMClient *client, | ||
952 | 268 | gpointer user_data) | ||
953 | 269 | { | ||
954 | 270 | NMAMobileWizard *wizard; | ||
955 | 271 | Index: network-manager-applet-1.0.4/src/connection-editor/page-mobile.h | ||
956 | 272 | =================================================================== | ||
957 | 273 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-mobile.h | ||
958 | 274 | +++ network-manager-applet-1.0.4/src/connection-editor/page-mobile.h | ||
959 | 275 | @@ -58,6 +58,7 @@ void mobile_connection_new (GtkWindow *p | ||
960 | 276 | const char *detail, | ||
961 | 277 | NMRemoteSettings *settings, | ||
962 | 278 | PageNewConnectionResultFunc result_func, | ||
963 | 279 | + NMClient *client, | ||
964 | 280 | gpointer user_data); | ||
965 | 281 | |||
966 | 282 | #endif /* __PAGE_MOBILE_H__ */ | ||
967 | 283 | Index: network-manager-applet-1.0.4/src/connection-editor/page-vlan.c | ||
968 | 284 | =================================================================== | ||
969 | 285 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-vlan.c | ||
970 | 286 | +++ network-manager-applet-1.0.4/src/connection-editor/page-vlan.c | ||
971 | 287 | @@ -673,6 +673,7 @@ vlan_connection_new (GtkWindow *parent, | ||
972 | 288 | const char *detail, | ||
973 | 289 | NMRemoteSettings *settings, | ||
974 | 290 | PageNewConnectionResultFunc result_func, | ||
975 | 291 | + NMClient *client, | ||
976 | 292 | gpointer user_data) | ||
977 | 293 | { | ||
978 | 294 | NMConnection *connection; | ||
979 | 295 | Index: network-manager-applet-1.0.4/src/connection-editor/page-vlan.h | ||
980 | 296 | =================================================================== | ||
981 | 297 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-vlan.h | ||
982 | 298 | +++ network-manager-applet-1.0.4/src/connection-editor/page-vlan.h | ||
983 | 299 | @@ -56,6 +56,7 @@ void vlan_connection_new (GtkWindow *par | ||
984 | 300 | const char *detail, | ||
985 | 301 | NMRemoteSettings *settings, | ||
986 | 302 | PageNewConnectionResultFunc result_func, | ||
987 | 303 | + NMClient *client, | ||
988 | 304 | gpointer user_data); | ||
989 | 305 | |||
990 | 306 | #endif /* __PAGE_VLAN_H__ */ | ||
991 | 307 | Index: network-manager-applet-1.0.4/src/connection-editor/page-vpn.c | ||
992 | 308 | =================================================================== | ||
993 | 309 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-vpn.c | ||
994 | 310 | +++ network-manager-applet-1.0.4/src/connection-editor/page-vpn.c | ||
995 | 311 | @@ -253,6 +253,7 @@ vpn_connection_import (GtkWindow *parent | ||
996 | 312 | const char *detail, | ||
997 | 313 | NMRemoteSettings *settings, | ||
998 | 314 | PageNewConnectionResultFunc result_func, | ||
999 | 315 | + NMClient *client, | ||
1000 | 316 | gpointer user_data) | ||
1001 | 317 | { | ||
1002 | 318 | NewVpnInfo *info; | ||
1003 | 319 | @@ -287,9 +288,11 @@ vpn_connection_new (GtkWindow *parent, | ||
1004 | 320 | const char *detail, | ||
1005 | 321 | NMRemoteSettings *settings, | ||
1006 | 322 | PageNewConnectionResultFunc result_func, | ||
1007 | 323 | + NMClient *client, | ||
1008 | 324 | gpointer user_data) | ||
1009 | 325 | { | ||
1010 | 326 | NMConnection *connection; | ||
1011 | 327 | + NMSettingConnection *s_con; | ||
1012 | 328 | NMSetting *s_vpn; | ||
1013 | 329 | |||
1014 | 330 | if (!detail) { | ||
1015 | 331 | @@ -315,6 +318,14 @@ vpn_connection_new (GtkWindow *parent, | ||
1016 | 332 | FALSE, | ||
1017 | 333 | settings, | ||
1018 | 334 | user_data); | ||
1019 | 335 | + | ||
1020 | 336 | + s_con = nm_connection_get_setting_connection (connection); | ||
1021 | 337 | + if (!s_con) { | ||
1022 | 338 | + s_con = (NMSettingConnection *) nm_setting_connection_new (); | ||
1023 | 339 | + nm_connection_add_setting (connection, NM_SETTING (s_con)); | ||
1024 | 340 | + } | ||
1025 | 341 | + nm_setting_connection_add_permission (s_con, "user", g_get_user_name (), NULL); | ||
1026 | 342 | + | ||
1027 | 343 | s_vpn = nm_setting_vpn_new (); | ||
1028 | 344 | g_object_set (s_vpn, NM_SETTING_VPN_SERVICE_TYPE, detail, NULL); | ||
1029 | 345 | nm_connection_add_setting (connection, s_vpn); | ||
1030 | 346 | Index: network-manager-applet-1.0.4/src/connection-editor/page-vpn.h | ||
1031 | 347 | =================================================================== | ||
1032 | 348 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-vpn.h | ||
1033 | 349 | +++ network-manager-applet-1.0.4/src/connection-editor/page-vpn.h | ||
1034 | 350 | @@ -60,12 +60,14 @@ void vpn_connection_new (GtkWindow *pare | ||
1035 | 351 | const char *detail, | ||
1036 | 352 | NMRemoteSettings *settings, | ||
1037 | 353 | PageNewConnectionResultFunc result_func, | ||
1038 | 354 | + NMClient *client, | ||
1039 | 355 | gpointer user_data); | ||
1040 | 356 | |||
1041 | 357 | void vpn_connection_import (GtkWindow *parent, | ||
1042 | 358 | const char *detail, | ||
1043 | 359 | NMRemoteSettings *settings, | ||
1044 | 360 | PageNewConnectionResultFunc result_func, | ||
1045 | 361 | + NMClient *client, | ||
1046 | 362 | gpointer user_data); | ||
1047 | 363 | |||
1048 | 364 | #endif /* __PAGE_VPN_H__ */ | ||
1049 | 365 | Index: network-manager-applet-1.0.4/src/connection-editor/page-wifi.c | ||
1050 | 366 | =================================================================== | ||
1051 | 367 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-wifi.c | ||
1052 | 368 | +++ network-manager-applet-1.0.4/src/connection-editor/page-wifi.c | ||
1053 | 369 | @@ -33,6 +33,8 @@ | ||
1054 | 370 | #include <nm-device-wifi.h> | ||
1055 | 371 | #include <nm-utils.h> | ||
1056 | 372 | |||
1057 | 373 | +#include "utils.h" | ||
1058 | 374 | + | ||
1059 | 375 | #include "page-wifi.h" | ||
1060 | 376 | |||
1061 | 377 | G_DEFINE_TYPE (CEPageWifi, ce_page_wifi, CE_TYPE_PAGE) | ||
1062 | 378 | @@ -622,6 +624,7 @@ wifi_connection_new (GtkWindow *parent, | ||
1063 | 379 | const char *detail, | ||
1064 | 380 | NMRemoteSettings *settings, | ||
1065 | 381 | PageNewConnectionResultFunc result_func, | ||
1066 | 382 | + NMClient *client, | ||
1067 | 383 | gpointer user_data) | ||
1068 | 384 | { | ||
1069 | 385 | NMConnection *connection; | ||
1070 | 386 | @@ -632,6 +635,17 @@ wifi_connection_new (GtkWindow *parent, | ||
1071 | 387 | TRUE, | ||
1072 | 388 | settings, | ||
1073 | 389 | user_data); | ||
1074 | 390 | + | ||
1075 | 391 | + if (utils_default_to_private_connection (client)) { | ||
1076 | 392 | + NMSettingConnection *s_con; | ||
1077 | 393 | + s_con = nm_connection_get_setting_connection (connection); | ||
1078 | 394 | + if (!s_con) { | ||
1079 | 395 | + s_con = (NMSettingConnection *) nm_setting_connection_new (); | ||
1080 | 396 | + nm_connection_add_setting (connection, NM_SETTING (s_con)); | ||
1081 | 397 | + } | ||
1082 | 398 | + nm_setting_connection_add_permission (s_con, "user", g_get_user_name (), NULL); | ||
1083 | 399 | + } | ||
1084 | 400 | + | ||
1085 | 401 | s_wifi = nm_setting_wireless_new (); | ||
1086 | 402 | g_object_set (s_wifi, NM_SETTING_WIRELESS_MODE, "infrastructure", NULL); | ||
1087 | 403 | nm_connection_add_setting (connection, s_wifi); | ||
1088 | 404 | Index: network-manager-applet-1.0.4/src/connection-editor/page-wifi.h | ||
1089 | 405 | =================================================================== | ||
1090 | 406 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-wifi.h | ||
1091 | 407 | +++ network-manager-applet-1.0.4/src/connection-editor/page-wifi.h | ||
1092 | 408 | @@ -62,6 +62,7 @@ void wifi_connection_new (GtkWindow *par | ||
1093 | 409 | const char *detail, | ||
1094 | 410 | NMRemoteSettings *settings, | ||
1095 | 411 | PageNewConnectionResultFunc result_func, | ||
1096 | 412 | + NMClient *client, | ||
1097 | 413 | gpointer user_data); | ||
1098 | 414 | |||
1099 | 415 | #endif /* __PAGE_WIFI_H__ */ | ||
1100 | 416 | Index: network-manager-applet-1.0.4/src/connection-editor/page-wimax.c | ||
1101 | 417 | =================================================================== | ||
1102 | 418 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-wimax.c | ||
1103 | 419 | +++ network-manager-applet-1.0.4/src/connection-editor/page-wimax.c | ||
1104 | 420 | @@ -216,6 +216,7 @@ wimax_connection_new (GtkWindow *parent, | ||
1105 | 421 | const char *detail, | ||
1106 | 422 | NMRemoteSettings *settings, | ||
1107 | 423 | PageNewConnectionResultFunc result_func, | ||
1108 | 424 | + NMClient *client, | ||
1109 | 425 | gpointer user_data) | ||
1110 | 426 | { | ||
1111 | 427 | NMConnection *connection; | ||
1112 | 428 | Index: network-manager-applet-1.0.4/src/connection-editor/page-wimax.h | ||
1113 | 429 | =================================================================== | ||
1114 | 430 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-wimax.h | ||
1115 | 431 | +++ network-manager-applet-1.0.4/src/connection-editor/page-wimax.h | ||
1116 | 432 | @@ -56,6 +56,7 @@ void wimax_connection_new (GtkWindow *pa | ||
1117 | 433 | const char *detail, | ||
1118 | 434 | NMRemoteSettings *settings, | ||
1119 | 435 | PageNewConnectionResultFunc result_func, | ||
1120 | 436 | + NMClient *client, | ||
1121 | 437 | gpointer user_data); | ||
1122 | 438 | |||
1123 | 439 | #endif /* __PAGE_WIMAX_H__ */ | ||
1124 | 440 | Index: network-manager-applet-1.0.4/src/gnome-bluetooth/nma-bt-device.c | ||
1125 | 441 | =================================================================== | ||
1126 | 442 | --- network-manager-applet-1.0.4.orig/src/gnome-bluetooth/nma-bt-device.c | ||
1127 | 443 | +++ network-manager-applet-1.0.4/src/gnome-bluetooth/nma-bt-device.c | ||
1128 | 444 | @@ -342,6 +342,7 @@ dun_new_cdma (NMAMobileWizardAccessMetho | ||
1129 | 445 | NM_SETTING_CDMA_NUMBER, "#777", | ||
1130 | 446 | NM_SETTING_CDMA_USERNAME, method->username, | ||
1131 | 447 | NM_SETTING_CDMA_PASSWORD, method->password, | ||
1132 | 448 | + NM_SETTING_CDMA_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, | ||
1133 | 449 | NULL); | ||
1134 | 450 | nm_connection_add_setting (connection, setting); | ||
1135 | 451 | |||
1136 | 452 | @@ -368,6 +369,7 @@ dun_new_cdma (NMAMobileWizardAccessMetho | ||
1137 | 453 | NULL); | ||
1138 | 454 | g_free (uuid); | ||
1139 | 455 | g_free (id); | ||
1140 | 456 | + nm_setting_connection_add_permission ((NMSettingConnection *) setting, "user", g_get_user_name (), NULL); | ||
1141 | 457 | nm_connection_add_setting (connection, setting); | ||
1142 | 458 | |||
1143 | 459 | return connection; | ||
1144 | 460 | @@ -387,6 +389,7 @@ dun_new_gsm (NMAMobileWizardAccessMethod | ||
1145 | 461 | NM_SETTING_GSM_NUMBER, "*99#", | ||
1146 | 462 | NM_SETTING_GSM_USERNAME, method->username, | ||
1147 | 463 | NM_SETTING_GSM_PASSWORD, method->password, | ||
1148 | 464 | + NM_SETTING_GSM_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, | ||
1149 | 465 | NM_SETTING_GSM_APN, method->gsm_apn, | ||
1150 | 466 | NULL); | ||
1151 | 467 | nm_connection_add_setting (connection, setting); | ||
1152 | 468 | @@ -414,6 +417,7 @@ dun_new_gsm (NMAMobileWizardAccessMethod | ||
1153 | 469 | NULL); | ||
1154 | 470 | g_free (uuid); | ||
1155 | 471 | g_free (id); | ||
1156 | 472 | + nm_setting_connection_add_permission ((NMSettingConnection *) setting, "user", g_get_user_name (), NULL); | ||
1157 | 473 | nm_connection_add_setting (connection, setting); | ||
1158 | 474 | |||
1159 | 475 | return connection; | ||
1160 | 476 | @@ -978,6 +982,7 @@ add_pan_connection (NmaBtDevice *self) | ||
1161 | 477 | NULL); | ||
1162 | 478 | g_free (id); | ||
1163 | 479 | g_free (uuid); | ||
1164 | 480 | + nm_setting_connection_add_permission ((NMSettingConnection *) setting, "user", g_get_user_name (), NULL); | ||
1165 | 481 | nm_connection_add_setting (connection, setting); | ||
1166 | 482 | |||
1167 | 483 | /* The Bluetooth settings */ | ||
1168 | 484 | Index: network-manager-applet-1.0.4/src/libnm-gtk/nm-wifi-dialog.c | ||
1169 | 485 | =================================================================== | ||
1170 | 486 | --- network-manager-applet-1.0.4.orig/src/libnm-gtk/nm-wifi-dialog.c | ||
1171 | 487 | +++ network-manager-applet-1.0.4/src/libnm-gtk/nm-wifi-dialog.c | ||
1172 | 488 | @@ -38,6 +38,7 @@ | ||
1173 | 489 | #include "nm-wifi-dialog.h" | ||
1174 | 490 | #include "wireless-security.h" | ||
1175 | 491 | #include "nm-ui-utils.h" | ||
1176 | 492 | +#include "utils.h" | ||
1177 | 493 | #include "eap-method.h" | ||
1178 | 494 | |||
1179 | 495 | G_DEFINE_TYPE (NMAWifiDialog, nma_wifi_dialog, GTK_TYPE_DIALOG) | ||
1180 | 496 | @@ -1202,6 +1203,9 @@ nma_wifi_dialog_get_connection (NMAWifiD | ||
1181 | 497 | NM_SETTING_CONNECTION_UUID, uuid, | ||
1182 | 498 | NULL); | ||
1183 | 499 | g_free (uuid); | ||
1184 | 500 | + if (utils_default_to_private_connection (priv->client)) { | ||
1185 | 501 | + nm_setting_connection_add_permission (s_con, "user", g_get_user_name (), NULL); | ||
1186 | 502 | + } | ||
1187 | 503 | nm_connection_add_setting (connection, (NMSetting *) s_con); | ||
1188 | 504 | |||
1189 | 505 | s_wireless = (NMSettingWireless *) nm_setting_wireless_new (); | ||
1190 | 506 | Index: network-manager-applet-1.0.4/src/mobile-helpers.c | ||
1191 | 507 | =================================================================== | ||
1192 | 508 | --- network-manager-applet-1.0.4.orig/src/mobile-helpers.c | ||
1193 | 509 | +++ network-manager-applet-1.0.4/src/mobile-helpers.c | ||
1194 | 510 | @@ -307,6 +307,7 @@ mobile_wizard_done (NMAMobileWizard *wiz | ||
1195 | 511 | NM_SETTING_CDMA_NUMBER, "#777", | ||
1196 | 512 | NM_SETTING_CDMA_USERNAME, method->username, | ||
1197 | 513 | NM_SETTING_CDMA_PASSWORD, method->password, | ||
1198 | 514 | + NM_SETTING_CDMA_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, | ||
1199 | 515 | NULL); | ||
1200 | 516 | nm_connection_add_setting (connection, setting); | ||
1201 | 517 | } else if (method->devtype == NM_DEVICE_MODEM_CAPABILITY_GSM_UMTS) { | ||
1202 | 518 | @@ -317,6 +318,7 @@ mobile_wizard_done (NMAMobileWizard *wiz | ||
1203 | 519 | NM_SETTING_GSM_USERNAME, method->username, | ||
1204 | 520 | NM_SETTING_GSM_PASSWORD, method->password, | ||
1205 | 521 | NM_SETTING_GSM_APN, method->gsm_apn, | ||
1206 | 522 | + NM_SETTING_GSM_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, | ||
1207 | 523 | NULL); | ||
1208 | 524 | nm_connection_add_setting (connection, setting); | ||
1209 | 525 | } else | ||
1210 | 526 | @@ -347,6 +349,7 @@ mobile_wizard_done (NMAMobileWizard *wiz | ||
1211 | 527 | "user", g_get_user_name (), NULL); | ||
1212 | 528 | g_free (uuid); | ||
1213 | 529 | g_free (id); | ||
1214 | 530 | + nm_setting_connection_add_permission ((NMSettingConnection *) setting, "user", g_get_user_name (), NULL); | ||
1215 | 531 | nm_connection_add_setting (connection, setting); | ||
1216 | 532 | } | ||
1217 | 533 | |||
1218 | 534 | Index: network-manager-applet-1.0.4/src/utils/utils.c | ||
1219 | 535 | =================================================================== | ||
1220 | 536 | --- network-manager-applet-1.0.4.orig/src/utils/utils.c | ||
1221 | 537 | +++ network-manager-applet-1.0.4/src/utils/utils.c | ||
1222 | 538 | @@ -288,3 +288,10 @@ utils_filter_editable_on_insert_text (Gt | ||
1223 | 539 | return count > 0; | ||
1224 | 540 | } | ||
1225 | 541 | |||
1226 | 542 | +gboolean | ||
1227 | 543 | +utils_default_to_private_connection (NMClient *client) | ||
1228 | 544 | +{ | ||
1229 | 545 | + NMClientPermissionResult perms; | ||
1230 | 546 | + perms = nm_client_get_permission_result (client, NM_CLIENT_PERMISSION_SETTINGS_MODIFY_SYSTEM); | ||
1231 | 547 | + return (perms != NM_CLIENT_PERMISSION_RESULT_YES); | ||
1232 | 548 | +} | ||
1233 | 549 | Index: network-manager-applet-1.0.4/src/utils/utils.h | ||
1234 | 550 | =================================================================== | ||
1235 | 551 | --- network-manager-applet-1.0.4.orig/src/utils/utils.h | ||
1236 | 552 | +++ network-manager-applet-1.0.4/src/utils/utils.h | ||
1237 | 553 | @@ -27,6 +27,7 @@ | ||
1238 | 554 | #include <gtk/gtk.h> | ||
1239 | 555 | #include <nm-connection.h> | ||
1240 | 556 | #include <nm-device.h> | ||
1241 | 557 | +#include <nm-client.h> | ||
1242 | 558 | #include <net/ethernet.h> | ||
1243 | 559 | #include <nm-access-point.h> | ||
1244 | 560 | |||
1245 | 561 | @@ -85,6 +86,8 @@ void utils_show_error_dialog (const char | ||
1246 | 562 | gboolean modal, | ||
1247 | 563 | GtkWindow *parent); | ||
1248 | 564 | |||
1249 | 565 | +gboolean utils_default_to_private_connection (NMClient *client); | ||
1250 | 566 | + | ||
1251 | 567 | #define NMA_ERROR (g_quark_from_static_string ("nma-error-quark")) | ||
1252 | 568 | |||
1253 | 569 | typedef enum { | ||
1254 | 570 | Index: network-manager-applet-1.0.4/src/wireless-security/ws-wep-key.c | ||
1255 | 571 | =================================================================== | ||
1256 | 572 | --- network-manager-applet-1.0.4.orig/src/wireless-security/ws-wep-key.c | ||
1257 | 573 | +++ network-manager-applet-1.0.4/src/wireless-security/ws-wep-key.c | ||
1258 | 574 | @@ -147,6 +147,7 @@ static void | ||
1259 | 575 | fill_connection (WirelessSecurity *parent, NMConnection *connection) | ||
1260 | 576 | { | ||
1261 | 577 | WirelessSecurityWEPKey *sec = (WirelessSecurityWEPKey *) parent; | ||
1262 | 578 | + NMSettingConnection *s_con; | ||
1263 | 579 | NMSettingWirelessSecurity *s_wsec; | ||
1264 | 580 | NMSettingSecretFlags secret_flags; | ||
1265 | 581 | GtkWidget *widget, *passwd_entry; | ||
1266 | 582 | @@ -162,6 +163,8 @@ fill_connection (WirelessSecurity *paren | ||
1267 | 583 | key = gtk_entry_get_text (GTK_ENTRY (widget)); | ||
1268 | 584 | strcpy (sec->keys[sec->cur_index], key); | ||
1269 | 585 | |||
1270 | 586 | + s_con = nm_connection_get_setting_connection (connection); | ||
1271 | 587 | + | ||
1272 | 588 | /* Blow away the old security setting by adding a clear one */ | ||
1273 | 589 | s_wsec = (NMSettingWirelessSecurity *) nm_setting_wireless_security_new (); | ||
1274 | 590 | nm_connection_add_setting (connection, (NMSetting *) s_wsec); | ||
1275 | 591 | @@ -173,6 +176,10 @@ fill_connection (WirelessSecurity *paren | ||
1276 | 592 | NM_SETTING_WIRELESS_SECURITY_WEP_KEY_TYPE, sec->type, | ||
1277 | 593 | NULL); | ||
1278 | 594 | |||
1279 | 595 | + /* If the connection is user-owned, mark the secrets as agent-owned */ | ||
1280 | 596 | + if (s_con && nm_setting_connection_get_num_permissions (s_con)) | ||
1281 | 597 | + g_object_set (s_wsec, NM_SETTING_WIRELESS_SECURITY_WEP_KEY_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL); | ||
1282 | 598 | + | ||
1283 | 599 | for (i = 0; i < 4; i++) { | ||
1284 | 600 | if (strlen (sec->keys[i])) | ||
1285 | 601 | nm_setting_wireless_security_set_wep_key (s_wsec, i, sec->keys[i]); | ||
1286 | 602 | Index: network-manager-applet-1.0.4/src/wireless-security/ws-wpa-psk.c | ||
1287 | 603 | =================================================================== | ||
1288 | 604 | --- network-manager-applet-1.0.4.orig/src/wireless-security/ws-wpa-psk.c | ||
1289 | 605 | +++ network-manager-applet-1.0.4/src/wireless-security/ws-wpa-psk.c | ||
1290 | 606 | @@ -97,12 +97,14 @@ fill_connection (WirelessSecurity *paren | ||
1291 | 607 | WirelessSecurityWPAPSK *wpa_psk = (WirelessSecurityWPAPSK *) parent; | ||
1292 | 608 | GtkWidget *widget, *passwd_entry; | ||
1293 | 609 | const char *key; | ||
1294 | 610 | + NMSettingConnection *s_con; | ||
1295 | 611 | NMSettingWireless *s_wireless; | ||
1296 | 612 | NMSettingWirelessSecurity *s_wireless_sec; | ||
1297 | 613 | NMSettingSecretFlags secret_flags; | ||
1298 | 614 | const char *mode; | ||
1299 | 615 | gboolean is_adhoc = FALSE; | ||
1300 | 616 | |||
1301 | 617 | + s_con = nm_connection_get_setting_connection (connection); | ||
1302 | 618 | s_wireless = nm_connection_get_setting_wireless (connection); | ||
1303 | 619 | g_assert (s_wireless); | ||
1304 | 620 | |||
1305 | 621 | @@ -118,6 +120,9 @@ fill_connection (WirelessSecurity *paren | ||
1306 | 622 | passwd_entry = widget; | ||
1307 | 623 | key = gtk_entry_get_text (GTK_ENTRY (widget)); | ||
1308 | 624 | g_object_set (s_wireless_sec, NM_SETTING_WIRELESS_SECURITY_PSK, key, NULL); | ||
1309 | 625 | + /* If the connection is user-owned, mark the secrets as agent-owned */ | ||
1310 | 626 | + if (s_con && nm_setting_connection_get_num_permissions (s_con)) | ||
1311 | 627 | + g_object_set (s_wireless_sec, NM_SETTING_WIRELESS_SECURITY_PSK_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL); | ||
1312 | 628 | |||
1313 | 629 | /* Save PSK_FLAGS to the connection */ | ||
1314 | 630 | secret_flags = nma_utils_menu_to_secret_flags (passwd_entry); | ||
1315 | 631 | Index: network-manager-applet-1.0.4/src/connection-editor/page-team.c | ||
1316 | 632 | =================================================================== | ||
1317 | 633 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-team.c | ||
1318 | 634 | +++ network-manager-applet-1.0.4/src/connection-editor/page-team.c | ||
1319 | 635 | @@ -329,6 +329,7 @@ team_connection_new (GtkWindow *parent, | ||
1320 | 636 | const char *detail, | ||
1321 | 637 | NMRemoteSettings *settings, | ||
1322 | 638 | PageNewConnectionResultFunc result_func, | ||
1323 | 639 | + NMClient *client, | ||
1324 | 640 | gpointer user_data) | ||
1325 | 641 | { | ||
1326 | 642 | NMConnection *connection; | ||
1327 | 643 | Index: network-manager-applet-1.0.4/src/connection-editor/page-team.h | ||
1328 | 644 | =================================================================== | ||
1329 | 645 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-team.h | ||
1330 | 646 | +++ network-manager-applet-1.0.4/src/connection-editor/page-team.h | ||
1331 | 647 | @@ -55,6 +55,7 @@ void team_connection_new (GtkWindow *par | ||
1332 | 648 | const char *detail, | ||
1333 | 649 | NMRemoteSettings *settings, | ||
1334 | 650 | PageNewConnectionResultFunc result_func, | ||
1335 | 651 | + NMClient *client, | ||
1336 | 652 | gpointer user_data); | ||
1337 | 653 | |||
1338 | 654 | #endif /* __PAGE_TEAM_H__ */ | ||
1339 | 655 | Index: network-manager-applet-1.0.4/src/connection-editor/page-bluetooth.c | ||
1340 | 656 | =================================================================== | ||
1341 | 657 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-bluetooth.c | ||
1342 | 658 | +++ network-manager-applet-1.0.4/src/connection-editor/page-bluetooth.c | ||
1343 | 659 | @@ -257,6 +257,7 @@ bluetooth_connection_new (GtkWindow *par | ||
1344 | 660 | const char *detail, | ||
1345 | 661 | NMRemoteSettings *settings, | ||
1346 | 662 | PageNewConnectionResultFunc result_func, | ||
1347 | 663 | + NMClient *client, | ||
1348 | 664 | gpointer user_data) | ||
1349 | 665 | { | ||
1350 | 666 | gint response; | ||
1351 | 667 | Index: network-manager-applet-1.0.4/src/connection-editor/page-bluetooth.h | ||
1352 | 668 | =================================================================== | ||
1353 | 669 | --- network-manager-applet-1.0.4.orig/src/connection-editor/page-bluetooth.h | ||
1354 | 670 | +++ network-manager-applet-1.0.4/src/connection-editor/page-bluetooth.h | ||
1355 | 671 | @@ -58,6 +58,7 @@ void bluetooth_connection_new (GtkWindow | ||
1356 | 672 | const char *detail, | ||
1357 | 673 | NMRemoteSettings *settings, | ||
1358 | 674 | PageNewConnectionResultFunc result_func, | ||
1359 | 675 | + NMClient *client, | ||
1360 | 676 | gpointer user_data); | ||
1361 | 677 | |||
1362 | 678 | #endif /* __PAGE_BLUETOOTH_H__ */ | ||
1363 | 679 | Index: network-manager-applet-1.0.4/src/connection-editor/connection-helpers.c | ||
1364 | 680 | =================================================================== | ||
1365 | 681 | --- network-manager-applet-1.0.4.orig/src/connection-editor/connection-helpers.c | ||
1366 | 682 | +++ network-manager-applet-1.0.4/src/connection-editor/connection-helpers.c | ||
1367 | 683 | @@ -380,6 +380,7 @@ new_connection_of_type (GtkWindow *paren | ||
1368 | 684 | gpointer user_data) | ||
1369 | 685 | { | ||
1370 | 686 | NewConnectionData *ncd; | ||
1371 | 687 | + NMConnectionList *list = user_data; | ||
1372 | 688 | |||
1373 | 689 | ncd = g_slice_new (NewConnectionData); | ||
1374 | 690 | ncd->parent_window = parent_window; | ||
1375 | 691 | @@ -391,6 +392,7 @@ new_connection_of_type (GtkWindow *paren | ||
1376 | 692 | detail, | ||
1377 | 693 | settings, | ||
1378 | 694 | new_connection_result, | ||
1379 | 695 | + list->nm_client, | ||
1380 | 696 | ncd); | ||
1381 | 697 | } | ||
1382 | 698 | |||
1383 | 699 | 0 | ||
1384 | === added file 'debian/patches/Allow-to-create-connections-without-admin-privileges.patch' | |||
1385 | --- debian/patches/Allow-to-create-connections-without-admin-privileges.patch 1970-01-01 00:00:00 +0000 | |||
1386 | +++ debian/patches/Allow-to-create-connections-without-admin-privileges.patch 2015-12-02 15:57:13 +0000 | |||
1387 | @@ -0,0 +1,683 @@ | |||
1388 | 1 | From: Michael Biebl <biebl@debian.org> | ||
1389 | 2 | Date: Tue, 18 Mar 2014 10:49:13 +0100 | ||
1390 | 3 | Subject: Allow to create connections without admin privileges | ||
1391 | 4 | MIME-Version: 1.0 | ||
1392 | 5 | Content-Type: text/plain; charset="utf-8" | ||
1393 | 6 | Content-Transfer-Encoding: 8bit | ||
1394 | 7 | |||
1395 | 8 | Set passwords as agent-owned when they need to, to allow users without | ||
1396 | 9 | root permissions to easily configure their connections. | ||
1397 | 10 | The logic is: | ||
1398 | 11 | - Bluetooth, CDMA and GSM connections: always user-owned | ||
1399 | 12 | - WEP/WPA connections: system-owned if user has the permissions | ||
1400 | 13 | (with NM’s config, that is netdev or sudo membership), user-owned | ||
1401 | 14 | otherwise. The password is stored in the keyring for WPA, not for | ||
1402 | 15 | WEP. | ||
1403 | 16 | - WiMax / Wired connections: always system-owned (with 802.1x | ||
1404 | 17 | passwords in the keyring). | ||
1405 | 18 | |||
1406 | 19 | Closes: #696256 | ||
1407 | 20 | --- | ||
1408 | 21 | src/applet-device-wifi.c | 25 +++++++++++++++++++++++++ | ||
1409 | 22 | src/connection-editor/ce-page.h | 1 + | ||
1410 | 23 | src/connection-editor/connection-helpers.c | 2 ++ | ||
1411 | 24 | src/connection-editor/page-bond.c | 1 + | ||
1412 | 25 | src/connection-editor/page-bond.h | 1 + | ||
1413 | 26 | src/connection-editor/page-bridge.c | 1 + | ||
1414 | 27 | src/connection-editor/page-bridge.h | 1 + | ||
1415 | 28 | src/connection-editor/page-dsl.c | 1 + | ||
1416 | 29 | src/connection-editor/page-dsl.h | 1 + | ||
1417 | 30 | src/connection-editor/page-ethernet.c | 1 + | ||
1418 | 31 | src/connection-editor/page-ethernet.h | 1 + | ||
1419 | 32 | src/connection-editor/page-infiniband.c | 1 + | ||
1420 | 33 | src/connection-editor/page-infiniband.h | 1 + | ||
1421 | 34 | src/connection-editor/page-mobile.c | 11 +++++++++++ | ||
1422 | 35 | src/connection-editor/page-mobile.h | 1 + | ||
1423 | 36 | src/connection-editor/page-team.c | 1 + | ||
1424 | 37 | src/connection-editor/page-team.h | 1 + | ||
1425 | 38 | src/connection-editor/page-vlan.c | 1 + | ||
1426 | 39 | src/connection-editor/page-vlan.h | 1 + | ||
1427 | 40 | src/connection-editor/page-vpn.c | 11 +++++++++++ | ||
1428 | 41 | src/connection-editor/page-vpn.h | 2 ++ | ||
1429 | 42 | src/connection-editor/page-wifi.c | 14 ++++++++++++++ | ||
1430 | 43 | src/connection-editor/page-wifi.h | 1 + | ||
1431 | 44 | src/connection-editor/page-wimax.c | 1 + | ||
1432 | 45 | src/connection-editor/page-wimax.h | 1 + | ||
1433 | 46 | src/gnome-bluetooth/nma-bt-device.c | 5 +++++ | ||
1434 | 47 | src/libnm-gtk/nm-wifi-dialog.c | 4 ++++ | ||
1435 | 48 | src/mobile-helpers.c | 3 +++ | ||
1436 | 49 | src/utils/utils.c | 7 +++++++ | ||
1437 | 50 | src/utils/utils.h | 3 +++ | ||
1438 | 51 | src/wireless-security/ws-wep-key.c | 7 +++++++ | ||
1439 | 52 | src/wireless-security/ws-wpa-psk.c | 5 +++++ | ||
1440 | 53 | 32 files changed, 118 insertions(+) | ||
1441 | 54 | |||
1442 | 55 | diff --git a/src/applet-device-wifi.c b/src/applet-device-wifi.c | ||
1443 | 56 | index 0ae44ad..dc7fbc8 100644 | ||
1444 | 57 | --- a/src/applet-device-wifi.c | ||
1445 | 58 | +++ b/src/applet-device-wifi.c | ||
1446 | 59 | @@ -386,6 +386,7 @@ _do_new_auto_connection (NMApplet *applet, | ||
1447 | 60 | NMSettingWirelessSecurity *s_wsec = NULL; | ||
1448 | 61 | NMSetting8021x *s_8021x = NULL; | ||
1449 | 62 | const GByteArray *ssid; | ||
1450 | 63 | + NM80211ApFlags flags; | ||
1451 | 64 | NM80211ApSecurityFlags wpa_flags, rsn_flags; | ||
1452 | 65 | GtkWidget *dialog; | ||
1453 | 66 | MoreInfo *more_info; | ||
1454 | 67 | @@ -417,6 +418,7 @@ _do_new_auto_connection (NMApplet *applet, | ||
1455 | 68 | /* If the AP is WPA[2]-Enterprise then we need to set up a minimal 802.1x | ||
1456 | 69 | * setting and ask the user for more information. | ||
1457 | 70 | */ | ||
1458 | 71 | + flags = nm_access_point_get_flags (ap); | ||
1459 | 72 | rsn_flags = nm_access_point_get_rsn_flags (ap); | ||
1460 | 73 | wpa_flags = nm_access_point_get_wpa_flags (ap); | ||
1461 | 74 | if ( (rsn_flags & NM_802_11_AP_SEC_KEY_MGMT_802_1X) | ||
1462 | 75 | @@ -445,6 +447,29 @@ _do_new_auto_connection (NMApplet *applet, | ||
1463 | 76 | nm_connection_add_setting (connection, NM_SETTING (s_8021x)); | ||
1464 | 77 | } | ||
1465 | 78 | |||
1466 | 79 | + if (utils_default_to_private_connection (applet->nm_client)) { | ||
1467 | 80 | + if (!s_con) { | ||
1468 | 81 | + s_con = (NMSettingConnection *) nm_setting_connection_new (); | ||
1469 | 82 | + nm_connection_add_setting (connection, NM_SETTING (s_con)); | ||
1470 | 83 | + } | ||
1471 | 84 | + nm_setting_connection_add_permission (s_con, "user", g_get_user_name (), NULL); | ||
1472 | 85 | + | ||
1473 | 86 | + if ((rsn_flags & NM_802_11_AP_SEC_KEY_MGMT_PSK) || | ||
1474 | 87 | + (wpa_flags & NM_802_11_AP_SEC_KEY_MGMT_PSK)) { | ||
1475 | 88 | + if (!s_wsec) { | ||
1476 | 89 | + s_wsec = (NMSettingWirelessSecurity *) nm_setting_wireless_security_new (); | ||
1477 | 90 | + nm_connection_add_setting (connection, NM_SETTING (s_wsec)); | ||
1478 | 91 | + } | ||
1479 | 92 | + g_object_set (s_wsec, NM_SETTING_WIRELESS_SECURITY_PSK_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL); | ||
1480 | 93 | + } else if (flags & NM_802_11_AP_FLAGS_PRIVACY) { | ||
1481 | 94 | + if (!s_wsec) { | ||
1482 | 95 | + s_wsec = (NMSettingWirelessSecurity *) nm_setting_wireless_security_new (); | ||
1483 | 96 | + nm_connection_add_setting (connection, NM_SETTING (s_wsec)); | ||
1484 | 97 | + } | ||
1485 | 98 | + g_object_set (s_wsec, NM_SETTING_WIRELESS_SECURITY_WEP_KEY_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL); | ||
1486 | 99 | + } | ||
1487 | 100 | + } | ||
1488 | 101 | + | ||
1489 | 102 | /* If it's an 802.1x connection, we need more information, so pop up the | ||
1490 | 103 | * Dialog Of Doom. | ||
1491 | 104 | */ | ||
1492 | 105 | diff --git a/src/connection-editor/ce-page.h b/src/connection-editor/ce-page.h | ||
1493 | 106 | index 41711d9..521dbc6 100644 | ||
1494 | 107 | --- a/src/connection-editor/ce-page.h | ||
1495 | 108 | +++ b/src/connection-editor/ce-page.h | ||
1496 | 109 | @@ -48,6 +48,7 @@ typedef void (*PageNewConnectionFunc) (GtkWindow *parent, | ||
1497 | 110 | const char *detail, | ||
1498 | 111 | NMRemoteSettings *settings, | ||
1499 | 112 | PageNewConnectionResultFunc result_func, | ||
1500 | 113 | + NMClient *client, | ||
1501 | 114 | gpointer user_data); | ||
1502 | 115 | |||
1503 | 116 | #define CE_TYPE_PAGE (ce_page_get_type ()) | ||
1504 | 117 | diff --git a/src/connection-editor/connection-helpers.c b/src/connection-editor/connection-helpers.c | ||
1505 | 118 | index 69da25c..b638530 100644 | ||
1506 | 119 | --- a/src/connection-editor/connection-helpers.c | ||
1507 | 120 | +++ b/src/connection-editor/connection-helpers.c | ||
1508 | 121 | @@ -380,6 +380,7 @@ new_connection_of_type (GtkWindow *parent_window, | ||
1509 | 122 | gpointer user_data) | ||
1510 | 123 | { | ||
1511 | 124 | NewConnectionData *ncd; | ||
1512 | 125 | + NMConnectionList *list = user_data; | ||
1513 | 126 | |||
1514 | 127 | ncd = g_slice_new (NewConnectionData); | ||
1515 | 128 | ncd->parent_window = parent_window; | ||
1516 | 129 | @@ -391,6 +392,7 @@ new_connection_of_type (GtkWindow *parent_window, | ||
1517 | 130 | detail, | ||
1518 | 131 | settings, | ||
1519 | 132 | new_connection_result, | ||
1520 | 133 | + list->nm_client, | ||
1521 | 134 | ncd); | ||
1522 | 135 | } | ||
1523 | 136 | |||
1524 | 137 | diff --git a/src/connection-editor/page-bond.c b/src/connection-editor/page-bond.c | ||
1525 | 138 | index 799ea94..966625c 100644 | ||
1526 | 139 | --- a/src/connection-editor/page-bond.c | ||
1527 | 140 | +++ b/src/connection-editor/page-bond.c | ||
1528 | 141 | @@ -610,6 +610,7 @@ bond_connection_new (GtkWindow *parent, | ||
1529 | 142 | const char *detail, | ||
1530 | 143 | NMRemoteSettings *settings, | ||
1531 | 144 | PageNewConnectionResultFunc result_func, | ||
1532 | 145 | + NMClient *client, | ||
1533 | 146 | gpointer user_data) | ||
1534 | 147 | { | ||
1535 | 148 | NMConnection *connection; | ||
1536 | 149 | diff --git a/src/connection-editor/page-bond.h b/src/connection-editor/page-bond.h | ||
1537 | 150 | index dcc8e1f..3844869 100644 | ||
1538 | 151 | --- a/src/connection-editor/page-bond.h | ||
1539 | 152 | +++ b/src/connection-editor/page-bond.h | ||
1540 | 153 | @@ -56,6 +56,7 @@ void bond_connection_new (GtkWindow *parent, | ||
1541 | 154 | const char *detail, | ||
1542 | 155 | NMRemoteSettings *settings, | ||
1543 | 156 | PageNewConnectionResultFunc result_func, | ||
1544 | 157 | + NMClient *client, | ||
1545 | 158 | gpointer user_data); | ||
1546 | 159 | |||
1547 | 160 | #endif /* __PAGE_BOND_H__ */ | ||
1548 | 161 | diff --git a/src/connection-editor/page-bridge.c b/src/connection-editor/page-bridge.c | ||
1549 | 162 | index 1ffcb1f..34ff9af 100644 | ||
1550 | 163 | --- a/src/connection-editor/page-bridge.c | ||
1551 | 164 | +++ b/src/connection-editor/page-bridge.c | ||
1552 | 165 | @@ -294,6 +294,7 @@ bridge_connection_new (GtkWindow *parent, | ||
1553 | 166 | const char *detail, | ||
1554 | 167 | NMRemoteSettings *settings, | ||
1555 | 168 | PageNewConnectionResultFunc result_func, | ||
1556 | 169 | + NMClient *client, | ||
1557 | 170 | gpointer user_data) | ||
1558 | 171 | { | ||
1559 | 172 | NMConnection *connection; | ||
1560 | 173 | diff --git a/src/connection-editor/page-bridge.h b/src/connection-editor/page-bridge.h | ||
1561 | 174 | index fa6d927..4bd0b95 100644 | ||
1562 | 175 | --- a/src/connection-editor/page-bridge.h | ||
1563 | 176 | +++ b/src/connection-editor/page-bridge.h | ||
1564 | 177 | @@ -56,6 +56,7 @@ void bridge_connection_new (GtkWindow *parent, | ||
1565 | 178 | const char *detail, | ||
1566 | 179 | NMRemoteSettings *settings, | ||
1567 | 180 | PageNewConnectionResultFunc result_func, | ||
1568 | 181 | + NMClient *client, | ||
1569 | 182 | gpointer user_data); | ||
1570 | 183 | |||
1571 | 184 | #endif /* __PAGE_BRIDGE_H__ */ | ||
1572 | 185 | diff --git a/src/connection-editor/page-dsl.c b/src/connection-editor/page-dsl.c | ||
1573 | 186 | index c327979..a38f333 100644 | ||
1574 | 187 | --- a/src/connection-editor/page-dsl.c | ||
1575 | 188 | +++ b/src/connection-editor/page-dsl.c | ||
1576 | 189 | @@ -221,6 +221,7 @@ dsl_connection_new (GtkWindow *parent, | ||
1577 | 190 | const char *detail, | ||
1578 | 191 | NMRemoteSettings *settings, | ||
1579 | 192 | PageNewConnectionResultFunc result_func, | ||
1580 | 193 | + NMClient *client, | ||
1581 | 194 | gpointer user_data) | ||
1582 | 195 | { | ||
1583 | 196 | NMConnection *connection; | ||
1584 | 197 | diff --git a/src/connection-editor/page-dsl.h b/src/connection-editor/page-dsl.h | ||
1585 | 198 | index 514699a..656e3c6 100644 | ||
1586 | 199 | --- a/src/connection-editor/page-dsl.h | ||
1587 | 200 | +++ b/src/connection-editor/page-dsl.h | ||
1588 | 201 | @@ -58,6 +58,7 @@ void dsl_connection_new (GtkWindow *parent, | ||
1589 | 202 | const char *detail, | ||
1590 | 203 | NMRemoteSettings *settings, | ||
1591 | 204 | PageNewConnectionResultFunc callback, | ||
1592 | 205 | + NMClient *client, | ||
1593 | 206 | gpointer user_data); | ||
1594 | 207 | |||
1595 | 208 | #endif /* __PAGE_DSL_H__ */ | ||
1596 | 209 | diff --git a/src/connection-editor/page-ethernet.c b/src/connection-editor/page-ethernet.c | ||
1597 | 210 | index 451ee22..9372c1e 100644 | ||
1598 | 211 | --- a/src/connection-editor/page-ethernet.c | ||
1599 | 212 | +++ b/src/connection-editor/page-ethernet.c | ||
1600 | 213 | @@ -377,6 +377,7 @@ ethernet_connection_new (GtkWindow *parent, | ||
1601 | 214 | const char *detail, | ||
1602 | 215 | NMRemoteSettings *settings, | ||
1603 | 216 | PageNewConnectionResultFunc result_func, | ||
1604 | 217 | + NMClient *client, | ||
1605 | 218 | gpointer user_data) | ||
1606 | 219 | { | ||
1607 | 220 | NMConnection *connection; | ||
1608 | 221 | diff --git a/src/connection-editor/page-ethernet.h b/src/connection-editor/page-ethernet.h | ||
1609 | 222 | index 4dd4a5c..55ade9b 100644 | ||
1610 | 223 | --- a/src/connection-editor/page-ethernet.h | ||
1611 | 224 | +++ b/src/connection-editor/page-ethernet.h | ||
1612 | 225 | @@ -58,6 +58,7 @@ void ethernet_connection_new (GtkWindow *parent, | ||
1613 | 226 | const char *detail, | ||
1614 | 227 | NMRemoteSettings *settings, | ||
1615 | 228 | PageNewConnectionResultFunc result_func, | ||
1616 | 229 | + NMClient *client, | ||
1617 | 230 | gpointer user_data); | ||
1618 | 231 | |||
1619 | 232 | #endif /* __PAGE_ETHERNET_H__ */ | ||
1620 | 233 | diff --git a/src/connection-editor/page-infiniband.c b/src/connection-editor/page-infiniband.c | ||
1621 | 234 | index 19560a2..bb9335e 100644 | ||
1622 | 235 | --- a/src/connection-editor/page-infiniband.c | ||
1623 | 236 | +++ b/src/connection-editor/page-infiniband.c | ||
1624 | 237 | @@ -253,6 +253,7 @@ infiniband_connection_new (GtkWindow *parent, | ||
1625 | 238 | const char *detail, | ||
1626 | 239 | NMRemoteSettings *settings, | ||
1627 | 240 | PageNewConnectionResultFunc result_func, | ||
1628 | 241 | + NMClient *client, | ||
1629 | 242 | gpointer user_data) | ||
1630 | 243 | { | ||
1631 | 244 | NMConnection *connection; | ||
1632 | 245 | diff --git a/src/connection-editor/page-infiniband.h b/src/connection-editor/page-infiniband.h | ||
1633 | 246 | index e895a98..97bff3b 100644 | ||
1634 | 247 | --- a/src/connection-editor/page-infiniband.h | ||
1635 | 248 | +++ b/src/connection-editor/page-infiniband.h | ||
1636 | 249 | @@ -56,6 +56,7 @@ void infiniband_connection_new (GtkWindow *parent, | ||
1637 | 250 | const char *detail, | ||
1638 | 251 | NMRemoteSettings *settings, | ||
1639 | 252 | PageNewConnectionResultFunc result_func, | ||
1640 | 253 | + NMClient *client, | ||
1641 | 254 | gpointer user_data); | ||
1642 | 255 | |||
1643 | 256 | #endif /* __PAGE_INFINIBAND_H__ */ | ||
1644 | 257 | diff --git a/src/connection-editor/page-mobile.c b/src/connection-editor/page-mobile.c | ||
1645 | 258 | index ef24184..df3d316 100644 | ||
1646 | 259 | --- a/src/connection-editor/page-mobile.c | ||
1647 | 260 | +++ b/src/connection-editor/page-mobile.c | ||
1648 | 261 | @@ -452,6 +452,7 @@ new_connection_mobile_wizard_done (NMAMobileWizard *wizard, | ||
1649 | 262 | NMConnection *connection = NULL; | ||
1650 | 263 | |||
1651 | 264 | if (!canceled && method) { | ||
1652 | 265 | + NMSettingConnection *s_con; | ||
1653 | 266 | NMSetting *type_setting; | ||
1654 | 267 | const char *ctype = NULL; | ||
1655 | 268 | char *detail = NULL; | ||
1656 | 269 | @@ -465,6 +466,7 @@ new_connection_mobile_wizard_done (NMAMobileWizard *wizard, | ||
1657 | 270 | NM_SETTING_GSM_NUMBER, "*99#", | ||
1658 | 271 | NM_SETTING_GSM_USERNAME, method->username, | ||
1659 | 272 | NM_SETTING_GSM_PASSWORD, method->password, | ||
1660 | 273 | + NM_SETTING_GSM_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, | ||
1661 | 274 | NM_SETTING_GSM_APN, method->gsm_apn, | ||
1662 | 275 | NULL); | ||
1663 | 276 | break; | ||
1664 | 277 | @@ -476,6 +478,7 @@ new_connection_mobile_wizard_done (NMAMobileWizard *wizard, | ||
1665 | 278 | NM_SETTING_CDMA_NUMBER, "#777", | ||
1666 | 279 | NM_SETTING_GSM_USERNAME, method->username, | ||
1667 | 280 | NM_SETTING_GSM_PASSWORD, method->password, | ||
1668 | 281 | + NM_SETTING_GSM_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, | ||
1669 | 282 | NULL); | ||
1670 | 283 | break; | ||
1671 | 284 | default: | ||
1672 | 285 | @@ -490,6 +493,13 @@ new_connection_mobile_wizard_done (NMAMobileWizard *wizard, | ||
1673 | 286 | connection = ce_page_new_connection (detail, ctype, FALSE, info->settings, info->user_data); | ||
1674 | 287 | g_free (detail); | ||
1675 | 288 | |||
1676 | 289 | + s_con = nm_connection_get_setting_connection (connection); | ||
1677 | 290 | + if (!s_con) { | ||
1678 | 291 | + s_con = (NMSettingConnection *) nm_setting_connection_new (); | ||
1679 | 292 | + nm_connection_add_setting (connection, NM_SETTING (s_con)); | ||
1680 | 293 | + } | ||
1681 | 294 | + nm_setting_connection_add_permission (s_con, "user", g_get_user_name (), NULL); | ||
1682 | 295 | + | ||
1683 | 296 | nm_connection_add_setting (connection, type_setting); | ||
1684 | 297 | nm_connection_add_setting (connection, nm_setting_ppp_new ()); | ||
1685 | 298 | } | ||
1686 | 299 | @@ -514,6 +524,7 @@ mobile_connection_new (GtkWindow *parent, | ||
1687 | 300 | const char *detail, | ||
1688 | 301 | NMRemoteSettings *settings, | ||
1689 | 302 | PageNewConnectionResultFunc result_func, | ||
1690 | 303 | + NMClient *client, | ||
1691 | 304 | gpointer user_data) | ||
1692 | 305 | { | ||
1693 | 306 | NMAMobileWizard *wizard; | ||
1694 | 307 | diff --git a/src/connection-editor/page-mobile.h b/src/connection-editor/page-mobile.h | ||
1695 | 308 | index ab2903c..bc5b479 100644 | ||
1696 | 309 | --- a/src/connection-editor/page-mobile.h | ||
1697 | 310 | +++ b/src/connection-editor/page-mobile.h | ||
1698 | 311 | @@ -58,6 +58,7 @@ void mobile_connection_new (GtkWindow *parent, | ||
1699 | 312 | const char *detail, | ||
1700 | 313 | NMRemoteSettings *settings, | ||
1701 | 314 | PageNewConnectionResultFunc result_func, | ||
1702 | 315 | + NMClient *client, | ||
1703 | 316 | gpointer user_data); | ||
1704 | 317 | |||
1705 | 318 | #endif /* __PAGE_MOBILE_H__ */ | ||
1706 | 319 | diff --git a/src/connection-editor/page-team.c b/src/connection-editor/page-team.c | ||
1707 | 320 | index 9efa43d..786c0fa 100644 | ||
1708 | 321 | --- a/src/connection-editor/page-team.c | ||
1709 | 322 | +++ b/src/connection-editor/page-team.c | ||
1710 | 323 | @@ -367,6 +367,7 @@ team_connection_new (GtkWindow *parent, | ||
1711 | 324 | const char *detail, | ||
1712 | 325 | NMRemoteSettings *settings, | ||
1713 | 326 | PageNewConnectionResultFunc result_func, | ||
1714 | 327 | + NMClient *client, | ||
1715 | 328 | gpointer user_data) | ||
1716 | 329 | { | ||
1717 | 330 | NMConnection *connection; | ||
1718 | 331 | diff --git a/src/connection-editor/page-team.h b/src/connection-editor/page-team.h | ||
1719 | 332 | index d1936b3..91d9df3 100644 | ||
1720 | 333 | --- a/src/connection-editor/page-team.h | ||
1721 | 334 | +++ b/src/connection-editor/page-team.h | ||
1722 | 335 | @@ -55,6 +55,7 @@ void team_connection_new (GtkWindow *parent, | ||
1723 | 336 | const char *detail, | ||
1724 | 337 | NMRemoteSettings *settings, | ||
1725 | 338 | PageNewConnectionResultFunc result_func, | ||
1726 | 339 | + NMClient *client, | ||
1727 | 340 | gpointer user_data); | ||
1728 | 341 | |||
1729 | 342 | #endif /* __PAGE_TEAM_H__ */ | ||
1730 | 343 | diff --git a/src/connection-editor/page-vlan.c b/src/connection-editor/page-vlan.c | ||
1731 | 344 | index 1a8c6b6..d41e38a 100644 | ||
1732 | 345 | --- a/src/connection-editor/page-vlan.c | ||
1733 | 346 | +++ b/src/connection-editor/page-vlan.c | ||
1734 | 347 | @@ -673,6 +673,7 @@ vlan_connection_new (GtkWindow *parent, | ||
1735 | 348 | const char *detail, | ||
1736 | 349 | NMRemoteSettings *settings, | ||
1737 | 350 | PageNewConnectionResultFunc result_func, | ||
1738 | 351 | + NMClient *client, | ||
1739 | 352 | gpointer user_data) | ||
1740 | 353 | { | ||
1741 | 354 | NMConnection *connection; | ||
1742 | 355 | diff --git a/src/connection-editor/page-vlan.h b/src/connection-editor/page-vlan.h | ||
1743 | 356 | index 0e66a06..c7969aa 100644 | ||
1744 | 357 | --- a/src/connection-editor/page-vlan.h | ||
1745 | 358 | +++ b/src/connection-editor/page-vlan.h | ||
1746 | 359 | @@ -56,6 +56,7 @@ void vlan_connection_new (GtkWindow *parent, | ||
1747 | 360 | const char *detail, | ||
1748 | 361 | NMRemoteSettings *settings, | ||
1749 | 362 | PageNewConnectionResultFunc result_func, | ||
1750 | 363 | + NMClient *client, | ||
1751 | 364 | gpointer user_data); | ||
1752 | 365 | |||
1753 | 366 | #endif /* __PAGE_VLAN_H__ */ | ||
1754 | 367 | diff --git a/src/connection-editor/page-vpn.c b/src/connection-editor/page-vpn.c | ||
1755 | 368 | index 004a260..5c0c8b5 100644 | ||
1756 | 369 | --- a/src/connection-editor/page-vpn.c | ||
1757 | 370 | +++ b/src/connection-editor/page-vpn.c | ||
1758 | 371 | @@ -253,6 +253,7 @@ vpn_connection_import (GtkWindow *parent, | ||
1759 | 372 | const char *detail, | ||
1760 | 373 | NMRemoteSettings *settings, | ||
1761 | 374 | PageNewConnectionResultFunc result_func, | ||
1762 | 375 | + NMClient *client, | ||
1763 | 376 | gpointer user_data) | ||
1764 | 377 | { | ||
1765 | 378 | NewVpnInfo *info; | ||
1766 | 379 | @@ -287,9 +288,11 @@ vpn_connection_new (GtkWindow *parent, | ||
1767 | 380 | const char *detail, | ||
1768 | 381 | NMRemoteSettings *settings, | ||
1769 | 382 | PageNewConnectionResultFunc result_func, | ||
1770 | 383 | + NMClient *client, | ||
1771 | 384 | gpointer user_data) | ||
1772 | 385 | { | ||
1773 | 386 | NMConnection *connection; | ||
1774 | 387 | + NMSettingConnection *s_con; | ||
1775 | 388 | NMSetting *s_vpn; | ||
1776 | 389 | |||
1777 | 390 | if (!detail) { | ||
1778 | 391 | @@ -315,6 +318,14 @@ vpn_connection_new (GtkWindow *parent, | ||
1779 | 392 | FALSE, | ||
1780 | 393 | settings, | ||
1781 | 394 | user_data); | ||
1782 | 395 | + | ||
1783 | 396 | + s_con = nm_connection_get_setting_connection (connection); | ||
1784 | 397 | + if (!s_con) { | ||
1785 | 398 | + s_con = (NMSettingConnection *) nm_setting_connection_new (); | ||
1786 | 399 | + nm_connection_add_setting (connection, NM_SETTING (s_con)); | ||
1787 | 400 | + } | ||
1788 | 401 | + nm_setting_connection_add_permission (s_con, "user", g_get_user_name (), NULL); | ||
1789 | 402 | + | ||
1790 | 403 | s_vpn = nm_setting_vpn_new (); | ||
1791 | 404 | g_object_set (s_vpn, NM_SETTING_VPN_SERVICE_TYPE, detail, NULL); | ||
1792 | 405 | nm_connection_add_setting (connection, s_vpn); | ||
1793 | 406 | diff --git a/src/connection-editor/page-vpn.h b/src/connection-editor/page-vpn.h | ||
1794 | 407 | index 2339732..2164930 100644 | ||
1795 | 408 | --- a/src/connection-editor/page-vpn.h | ||
1796 | 409 | +++ b/src/connection-editor/page-vpn.h | ||
1797 | 410 | @@ -60,12 +60,14 @@ void vpn_connection_new (GtkWindow *parent, | ||
1798 | 411 | const char *detail, | ||
1799 | 412 | NMRemoteSettings *settings, | ||
1800 | 413 | PageNewConnectionResultFunc result_func, | ||
1801 | 414 | + NMClient *client, | ||
1802 | 415 | gpointer user_data); | ||
1803 | 416 | |||
1804 | 417 | void vpn_connection_import (GtkWindow *parent, | ||
1805 | 418 | const char *detail, | ||
1806 | 419 | NMRemoteSettings *settings, | ||
1807 | 420 | PageNewConnectionResultFunc result_func, | ||
1808 | 421 | + NMClient *client, | ||
1809 | 422 | gpointer user_data); | ||
1810 | 423 | |||
1811 | 424 | #endif /* __PAGE_VPN_H__ */ | ||
1812 | 425 | diff --git a/src/connection-editor/page-wifi.c b/src/connection-editor/page-wifi.c | ||
1813 | 426 | index 8a25c64..9c56e4b 100644 | ||
1814 | 427 | --- a/src/connection-editor/page-wifi.c | ||
1815 | 428 | +++ b/src/connection-editor/page-wifi.c | ||
1816 | 429 | @@ -33,6 +33,8 @@ | ||
1817 | 430 | #include <nm-device-wifi.h> | ||
1818 | 431 | #include <nm-utils.h> | ||
1819 | 432 | |||
1820 | 433 | +#include "utils.h" | ||
1821 | 434 | + | ||
1822 | 435 | #include "page-wifi.h" | ||
1823 | 436 | |||
1824 | 437 | G_DEFINE_TYPE (CEPageWifi, ce_page_wifi, CE_TYPE_PAGE) | ||
1825 | 438 | @@ -622,6 +624,7 @@ wifi_connection_new (GtkWindow *parent, | ||
1826 | 439 | const char *detail, | ||
1827 | 440 | NMRemoteSettings *settings, | ||
1828 | 441 | PageNewConnectionResultFunc result_func, | ||
1829 | 442 | + NMClient *client, | ||
1830 | 443 | gpointer user_data) | ||
1831 | 444 | { | ||
1832 | 445 | NMConnection *connection; | ||
1833 | 446 | @@ -632,6 +635,17 @@ wifi_connection_new (GtkWindow *parent, | ||
1834 | 447 | TRUE, | ||
1835 | 448 | settings, | ||
1836 | 449 | user_data); | ||
1837 | 450 | + | ||
1838 | 451 | + if (utils_default_to_private_connection (client)) { | ||
1839 | 452 | + NMSettingConnection *s_con; | ||
1840 | 453 | + s_con = nm_connection_get_setting_connection (connection); | ||
1841 | 454 | + if (!s_con) { | ||
1842 | 455 | + s_con = (NMSettingConnection *) nm_setting_connection_new (); | ||
1843 | 456 | + nm_connection_add_setting (connection, NM_SETTING (s_con)); | ||
1844 | 457 | + } | ||
1845 | 458 | + nm_setting_connection_add_permission (s_con, "user", g_get_user_name (), NULL); | ||
1846 | 459 | + } | ||
1847 | 460 | + | ||
1848 | 461 | s_wifi = nm_setting_wireless_new (); | ||
1849 | 462 | g_object_set (s_wifi, NM_SETTING_WIRELESS_MODE, "infrastructure", NULL); | ||
1850 | 463 | nm_connection_add_setting (connection, s_wifi); | ||
1851 | 464 | diff --git a/src/connection-editor/page-wifi.h b/src/connection-editor/page-wifi.h | ||
1852 | 465 | index c039b00..b89e589 100644 | ||
1853 | 466 | --- a/src/connection-editor/page-wifi.h | ||
1854 | 467 | +++ b/src/connection-editor/page-wifi.h | ||
1855 | 468 | @@ -62,6 +62,7 @@ void wifi_connection_new (GtkWindow *parent, | ||
1856 | 469 | const char *detail, | ||
1857 | 470 | NMRemoteSettings *settings, | ||
1858 | 471 | PageNewConnectionResultFunc result_func, | ||
1859 | 472 | + NMClient *client, | ||
1860 | 473 | gpointer user_data); | ||
1861 | 474 | |||
1862 | 475 | #endif /* __PAGE_WIFI_H__ */ | ||
1863 | 476 | diff --git a/src/connection-editor/page-wimax.c b/src/connection-editor/page-wimax.c | ||
1864 | 477 | index 97c4d90..d8cf40c 100644 | ||
1865 | 478 | --- a/src/connection-editor/page-wimax.c | ||
1866 | 479 | +++ b/src/connection-editor/page-wimax.c | ||
1867 | 480 | @@ -216,6 +216,7 @@ wimax_connection_new (GtkWindow *parent, | ||
1868 | 481 | const char *detail, | ||
1869 | 482 | NMRemoteSettings *settings, | ||
1870 | 483 | PageNewConnectionResultFunc result_func, | ||
1871 | 484 | + NMClient *client, | ||
1872 | 485 | gpointer user_data) | ||
1873 | 486 | { | ||
1874 | 487 | NMConnection *connection; | ||
1875 | 488 | diff --git a/src/connection-editor/page-wimax.h b/src/connection-editor/page-wimax.h | ||
1876 | 489 | index 6938284..91d937c 100644 | ||
1877 | 490 | --- a/src/connection-editor/page-wimax.h | ||
1878 | 491 | +++ b/src/connection-editor/page-wimax.h | ||
1879 | 492 | @@ -56,6 +56,7 @@ void wimax_connection_new (GtkWindow *parent, | ||
1880 | 493 | const char *detail, | ||
1881 | 494 | NMRemoteSettings *settings, | ||
1882 | 495 | PageNewConnectionResultFunc result_func, | ||
1883 | 496 | + NMClient *client, | ||
1884 | 497 | gpointer user_data); | ||
1885 | 498 | |||
1886 | 499 | #endif /* __PAGE_WIMAX_H__ */ | ||
1887 | 500 | diff --git a/src/gnome-bluetooth/nma-bt-device.c b/src/gnome-bluetooth/nma-bt-device.c | ||
1888 | 501 | index 870d2be..cd4103d 100644 | ||
1889 | 502 | --- a/src/gnome-bluetooth/nma-bt-device.c | ||
1890 | 503 | +++ b/src/gnome-bluetooth/nma-bt-device.c | ||
1891 | 504 | @@ -342,6 +342,7 @@ dun_new_cdma (NMAMobileWizardAccessMethod *method) | ||
1892 | 505 | NM_SETTING_CDMA_NUMBER, "#777", | ||
1893 | 506 | NM_SETTING_CDMA_USERNAME, method->username, | ||
1894 | 507 | NM_SETTING_CDMA_PASSWORD, method->password, | ||
1895 | 508 | + NM_SETTING_CDMA_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, | ||
1896 | 509 | NULL); | ||
1897 | 510 | nm_connection_add_setting (connection, setting); | ||
1898 | 511 | |||
1899 | 512 | @@ -368,6 +369,7 @@ dun_new_cdma (NMAMobileWizardAccessMethod *method) | ||
1900 | 513 | NULL); | ||
1901 | 514 | g_free (uuid); | ||
1902 | 515 | g_free (id); | ||
1903 | 516 | + nm_setting_connection_add_permission ((NMSettingConnection *) setting, "user", g_get_user_name (), NULL); | ||
1904 | 517 | nm_connection_add_setting (connection, setting); | ||
1905 | 518 | |||
1906 | 519 | return connection; | ||
1907 | 520 | @@ -387,6 +389,7 @@ dun_new_gsm (NMAMobileWizardAccessMethod *method) | ||
1908 | 521 | NM_SETTING_GSM_NUMBER, "*99#", | ||
1909 | 522 | NM_SETTING_GSM_USERNAME, method->username, | ||
1910 | 523 | NM_SETTING_GSM_PASSWORD, method->password, | ||
1911 | 524 | + NM_SETTING_GSM_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, | ||
1912 | 525 | NM_SETTING_GSM_APN, method->gsm_apn, | ||
1913 | 526 | NULL); | ||
1914 | 527 | nm_connection_add_setting (connection, setting); | ||
1915 | 528 | @@ -414,6 +417,7 @@ dun_new_gsm (NMAMobileWizardAccessMethod *method) | ||
1916 | 529 | NULL); | ||
1917 | 530 | g_free (uuid); | ||
1918 | 531 | g_free (id); | ||
1919 | 532 | + nm_setting_connection_add_permission ((NMSettingConnection *) setting, "user", g_get_user_name (), NULL); | ||
1920 | 533 | nm_connection_add_setting (connection, setting); | ||
1921 | 534 | |||
1922 | 535 | return connection; | ||
1923 | 536 | @@ -978,6 +982,7 @@ add_pan_connection (NmaBtDevice *self) | ||
1924 | 537 | NULL); | ||
1925 | 538 | g_free (id); | ||
1926 | 539 | g_free (uuid); | ||
1927 | 540 | + nm_setting_connection_add_permission ((NMSettingConnection *) setting, "user", g_get_user_name (), NULL); | ||
1928 | 541 | nm_connection_add_setting (connection, setting); | ||
1929 | 542 | |||
1930 | 543 | /* The Bluetooth settings */ | ||
1931 | 544 | diff --git a/src/libnm-gtk/nm-wifi-dialog.c b/src/libnm-gtk/nm-wifi-dialog.c | ||
1932 | 545 | index ace323b..0916557 100644 | ||
1933 | 546 | --- a/src/libnm-gtk/nm-wifi-dialog.c | ||
1934 | 547 | +++ b/src/libnm-gtk/nm-wifi-dialog.c | ||
1935 | 548 | @@ -39,6 +39,7 @@ | ||
1936 | 549 | #include "wireless-security.h" | ||
1937 | 550 | #include "nm-ui-utils.h" | ||
1938 | 551 | #include "eap-method.h" | ||
1939 | 552 | +#include "utils.h" | ||
1940 | 553 | |||
1941 | 554 | G_DEFINE_TYPE (NMAWifiDialog, nma_wifi_dialog, GTK_TYPE_DIALOG) | ||
1942 | 555 | |||
1943 | 556 | @@ -1203,6 +1204,9 @@ nma_wifi_dialog_get_connection (NMAWifiDialog *self, | ||
1944 | 557 | NM_SETTING_CONNECTION_UUID, uuid, | ||
1945 | 558 | NULL); | ||
1946 | 559 | g_free (uuid); | ||
1947 | 560 | + if (utils_default_to_private_connection (priv->client)) { | ||
1948 | 561 | + nm_setting_connection_add_permission (s_con, "user", g_get_user_name (), NULL); | ||
1949 | 562 | + } | ||
1950 | 563 | nm_connection_add_setting (connection, (NMSetting *) s_con); | ||
1951 | 564 | |||
1952 | 565 | s_wireless = (NMSettingWireless *) nm_setting_wireless_new (); | ||
1953 | 566 | diff --git a/src/mobile-helpers.c b/src/mobile-helpers.c | ||
1954 | 567 | index daa422e..903537f 100644 | ||
1955 | 568 | --- a/src/mobile-helpers.c | ||
1956 | 569 | +++ b/src/mobile-helpers.c | ||
1957 | 570 | @@ -179,6 +179,7 @@ mobile_wizard_done (NMAMobileWizard *wizard, | ||
1958 | 571 | NM_SETTING_CDMA_NUMBER, "#777", | ||
1959 | 572 | NM_SETTING_CDMA_USERNAME, method->username, | ||
1960 | 573 | NM_SETTING_CDMA_PASSWORD, method->password, | ||
1961 | 574 | + NM_SETTING_CDMA_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, | ||
1962 | 575 | NULL); | ||
1963 | 576 | nm_connection_add_setting (connection, setting); | ||
1964 | 577 | } else if (method->devtype == NM_DEVICE_MODEM_CAPABILITY_GSM_UMTS) { | ||
1965 | 578 | @@ -189,6 +190,7 @@ mobile_wizard_done (NMAMobileWizard *wizard, | ||
1966 | 579 | NM_SETTING_GSM_USERNAME, method->username, | ||
1967 | 580 | NM_SETTING_GSM_PASSWORD, method->password, | ||
1968 | 581 | NM_SETTING_GSM_APN, method->gsm_apn, | ||
1969 | 582 | + NM_SETTING_GSM_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, | ||
1970 | 583 | NULL); | ||
1971 | 584 | nm_connection_add_setting (connection, setting); | ||
1972 | 585 | } else | ||
1973 | 586 | @@ -219,6 +221,7 @@ mobile_wizard_done (NMAMobileWizard *wizard, | ||
1974 | 587 | "user", g_get_user_name (), NULL); | ||
1975 | 588 | g_free (uuid); | ||
1976 | 589 | g_free (id); | ||
1977 | 590 | + nm_setting_connection_add_permission ((NMSettingConnection *) setting, "user", g_get_user_name (), NULL); | ||
1978 | 591 | nm_connection_add_setting (connection, setting); | ||
1979 | 592 | } | ||
1980 | 593 | |||
1981 | 594 | diff --git a/src/utils/utils.c b/src/utils/utils.c | ||
1982 | 595 | index 61d6a9e..8d52ef1 100644 | ||
1983 | 596 | --- a/src/utils/utils.c | ||
1984 | 597 | +++ b/src/utils/utils.c | ||
1985 | 598 | @@ -286,3 +286,10 @@ utils_filter_editable_on_insert_text (GtkEditable *editable, | ||
1986 | 599 | return count > 0; | ||
1987 | 600 | } | ||
1988 | 601 | |||
1989 | 602 | +gboolean | ||
1990 | 603 | +utils_default_to_private_connection (NMClient *client) | ||
1991 | 604 | +{ | ||
1992 | 605 | + NMClientPermissionResult perms; | ||
1993 | 606 | + perms = nm_client_get_permission_result (client, NM_CLIENT_PERMISSION_SETTINGS_MODIFY_SYSTEM); | ||
1994 | 607 | + return (perms != NM_CLIENT_PERMISSION_RESULT_YES); | ||
1995 | 608 | +} | ||
1996 | 609 | diff --git a/src/utils/utils.h b/src/utils/utils.h | ||
1997 | 610 | index 1abff65..714fe3d 100644 | ||
1998 | 611 | --- a/src/utils/utils.h | ||
1999 | 612 | +++ b/src/utils/utils.h | ||
2000 | 613 | @@ -27,6 +27,7 @@ | ||
2001 | 614 | #include <gtk/gtk.h> | ||
2002 | 615 | #include <nm-connection.h> | ||
2003 | 616 | #include <nm-device.h> | ||
2004 | 617 | +#include <nm-client.h> | ||
2005 | 618 | #include <net/ethernet.h> | ||
2006 | 619 | #include <nm-access-point.h> | ||
2007 | 620 | |||
2008 | 621 | @@ -85,6 +86,8 @@ void utils_show_error_dialog (const char *title, | ||
2009 | 622 | gboolean modal, | ||
2010 | 623 | GtkWindow *parent); | ||
2011 | 624 | |||
2012 | 625 | +gboolean utils_default_to_private_connection (NMClient *client); | ||
2013 | 626 | + | ||
2014 | 627 | #define NMA_ERROR (g_quark_from_static_string ("nma-error-quark")) | ||
2015 | 628 | |||
2016 | 629 | typedef enum { | ||
2017 | 630 | diff --git a/src/wireless-security/ws-wep-key.c b/src/wireless-security/ws-wep-key.c | ||
2018 | 631 | index 2399ace..147f848 100644 | ||
2019 | 632 | --- a/src/wireless-security/ws-wep-key.c | ||
2020 | 633 | +++ b/src/wireless-security/ws-wep-key.c | ||
2021 | 634 | @@ -147,6 +147,7 @@ static void | ||
2022 | 635 | fill_connection (WirelessSecurity *parent, NMConnection *connection) | ||
2023 | 636 | { | ||
2024 | 637 | WirelessSecurityWEPKey *sec = (WirelessSecurityWEPKey *) parent; | ||
2025 | 638 | + NMSettingConnection *s_con; | ||
2026 | 639 | NMSettingWirelessSecurity *s_wsec; | ||
2027 | 640 | NMSettingSecretFlags secret_flags; | ||
2028 | 641 | GtkWidget *widget, *passwd_entry; | ||
2029 | 642 | @@ -173,6 +174,12 @@ fill_connection (WirelessSecurity *parent, NMConnection *connection) | ||
2030 | 643 | NM_SETTING_WIRELESS_SECURITY_WEP_KEY_TYPE, sec->type, | ||
2031 | 644 | NULL); | ||
2032 | 645 | |||
2033 | 646 | + s_con = nm_connection_get_setting_connection (connection); | ||
2034 | 647 | + | ||
2035 | 648 | + /* If the connection is user-owned, mark the secrets as agent-owned */ | ||
2036 | 649 | + if (s_con && nm_setting_connection_get_num_permissions (s_con)) | ||
2037 | 650 | + g_object_set (s_wsec, NM_SETTING_WIRELESS_SECURITY_WEP_KEY_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL); | ||
2038 | 651 | + | ||
2039 | 652 | for (i = 0; i < 4; i++) { | ||
2040 | 653 | if (strlen (sec->keys[i])) | ||
2041 | 654 | nm_setting_wireless_security_set_wep_key (s_wsec, i, sec->keys[i]); | ||
2042 | 655 | diff --git a/src/wireless-security/ws-wpa-psk.c b/src/wireless-security/ws-wpa-psk.c | ||
2043 | 656 | index 5cd658a..f6eaa27 100644 | ||
2044 | 657 | --- a/src/wireless-security/ws-wpa-psk.c | ||
2045 | 658 | +++ b/src/wireless-security/ws-wpa-psk.c | ||
2046 | 659 | @@ -97,12 +97,14 @@ fill_connection (WirelessSecurity *parent, NMConnection *connection) | ||
2047 | 660 | WirelessSecurityWPAPSK *wpa_psk = (WirelessSecurityWPAPSK *) parent; | ||
2048 | 661 | GtkWidget *widget, *passwd_entry; | ||
2049 | 662 | const char *key; | ||
2050 | 663 | + NMSettingConnection *s_con; | ||
2051 | 664 | NMSettingWireless *s_wireless; | ||
2052 | 665 | NMSettingWirelessSecurity *s_wireless_sec; | ||
2053 | 666 | NMSettingSecretFlags secret_flags; | ||
2054 | 667 | const char *mode; | ||
2055 | 668 | gboolean is_adhoc = FALSE; | ||
2056 | 669 | |||
2057 | 670 | + s_con = nm_connection_get_setting_connection (connection); | ||
2058 | 671 | s_wireless = nm_connection_get_setting_wireless (connection); | ||
2059 | 672 | g_assert (s_wireless); | ||
2060 | 673 | |||
2061 | 674 | @@ -118,6 +120,9 @@ fill_connection (WirelessSecurity *parent, NMConnection *connection) | ||
2062 | 675 | passwd_entry = widget; | ||
2063 | 676 | key = gtk_entry_get_text (GTK_ENTRY (widget)); | ||
2064 | 677 | g_object_set (s_wireless_sec, NM_SETTING_WIRELESS_SECURITY_PSK, key, NULL); | ||
2065 | 678 | + /* If the connection is user-owned, mark the secrets as agent-owned */ | ||
2066 | 679 | + if (s_con && nm_setting_connection_get_num_permissions (s_con)) | ||
2067 | 680 | + g_object_set (s_wireless_sec, NM_SETTING_WIRELESS_SECURITY_PSK_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL); | ||
2068 | 681 | |||
2069 | 682 | /* Save PSK_FLAGS to the connection */ | ||
2070 | 683 | secret_flags = nma_utils_menu_to_secret_flags (passwd_entry); | ||
2071 | 0 | 684 | ||
2072 | === added file 'debian/patches/Don-t-hard-code-gnome-bluetooth-plugin-directory.patch' | |||
2073 | --- debian/patches/Don-t-hard-code-gnome-bluetooth-plugin-directory.patch 1970-01-01 00:00:00 +0000 | |||
2074 | +++ debian/patches/Don-t-hard-code-gnome-bluetooth-plugin-directory.patch 2015-12-02 15:57:13 +0000 | |||
2075 | @@ -0,0 +1,35 @@ | |||
2076 | 1 | From: Michael Biebl <biebl@debian.org> | ||
2077 | 2 | Date: Tue, 1 Apr 2014 15:53:35 +0200 | ||
2078 | 3 | Subject: Don't hard-code gnome-bluetooth plugin directory | ||
2079 | 4 | |||
2080 | 5 | --- | ||
2081 | 6 | configure.ac | 2 ++ | ||
2082 | 7 | src/gnome-bluetooth/Makefile.am | 2 +- | ||
2083 | 8 | 2 files changed, 3 insertions(+), 1 deletion(-) | ||
2084 | 9 | |||
2085 | 10 | diff --git a/configure.ac b/configure.ac | ||
2086 | 11 | index 266bff6..9482a69 100644 | ||
2087 | 12 | --- a/configure.ac | ||
2088 | 13 | +++ b/configure.ac | ||
2089 | 14 | @@ -146,6 +146,8 @@ case "${with_bluetooth}" in | ||
2090 | 15 | gnome-bluetooth-1.0 < 3.11.0 | ||
2091 | 16 | libnm-util libnm-glib, | ||
2092 | 17 | have_gbt=yes, have_gbt=no) | ||
2093 | 18 | + GNOME_BLUETOOTH_PLUGIN_DIR="`$PKG_CONFIG --variable=libdir gnome-bluetooth-1.0`/gnome-bluetooth/plugins" | ||
2094 | 19 | + AC_SUBST(GNOME_BLUETOOTH_PLUGIN_DIR) | ||
2095 | 20 | ;; | ||
2096 | 21 | esac | ||
2097 | 22 | |||
2098 | 23 | diff --git a/src/gnome-bluetooth/Makefile.am b/src/gnome-bluetooth/Makefile.am | ||
2099 | 24 | index 940aeba..2649d2e 100644 | ||
2100 | 25 | --- a/src/gnome-bluetooth/Makefile.am | ||
2101 | 26 | +++ b/src/gnome-bluetooth/Makefile.am | ||
2102 | 27 | @@ -16,7 +16,7 @@ BT_WIDGET_SOURCES = \ | ||
2103 | 28 | nma-bt-device.h | ||
2104 | 29 | |||
2105 | 30 | if HAVE_GBT | ||
2106 | 31 | -plugindir = $(libdir)/gnome-bluetooth/plugins | ||
2107 | 32 | +plugindir = $(GNOME_BLUETOOTH_PLUGIN_DIR) | ||
2108 | 33 | |||
2109 | 34 | plugin_LTLIBRARIES = libnma.la | ||
2110 | 35 | |||
2111 | 0 | 36 | ||
2112 | === added file 'debian/patches/Force-online-state-with-unmanaged-devices.patch' | |||
2113 | --- debian/patches/Force-online-state-with-unmanaged-devices.patch 1970-01-01 00:00:00 +0000 | |||
2114 | +++ debian/patches/Force-online-state-with-unmanaged-devices.patch 2015-12-02 15:57:13 +0000 | |||
2115 | @@ -0,0 +1,28 @@ | |||
2116 | 1 | From: Michael Biebl <biebl@debian.org> | ||
2117 | 2 | Date: Tue, 18 Mar 2014 10:49:13 +0100 | ||
2118 | 3 | Subject: Force online state with unmanaged devices | ||
2119 | 4 | |||
2120 | 5 | If NM has an active unmanaged device it will forcefully set the online | ||
2121 | 6 | state to CONNECTED_GLOBAL. In that case show a wired connection icon | ||
2122 | 7 | instead of an offline icon. | ||
2123 | 8 | |||
2124 | 9 | Closes: #471191 | ||
2125 | 10 | --- | ||
2126 | 11 | src/applet.c | 4 ++++ | ||
2127 | 12 | 1 file changed, 4 insertions(+) | ||
2128 | 13 | |||
2129 | 14 | diff --git a/src/applet.c b/src/applet.c | ||
2130 | 15 | index 39ea8e4..0a1043b 100644 | ||
2131 | 16 | --- a/src/applet.c | ||
2132 | 17 | +++ b/src/applet.c | ||
2133 | 18 | @@ -2952,6 +2952,10 @@ applet_update_icon (gpointer user_data) | ||
2134 | 19 | break; | ||
2135 | 20 | default: | ||
2136 | 21 | applet_get_device_icon_for_state (applet, &pixbuf, &icon_name, &dev_tip); | ||
2137 | 22 | + if (!pixbuf && state == NM_STATE_CONNECTED) { | ||
2138 | 23 | + icon_name = g_strdup ("nm-device-wired"); | ||
2139 | 24 | + pixbuf = g_object_ref (nma_icon_check_and_load (icon_name, applet)); | ||
2140 | 25 | + } | ||
2141 | 26 | break; | ||
2142 | 27 | } | ||
2143 | 28 | |||
2144 | 0 | 29 | ||
2145 | === modified file 'debian/patches/nm-applet-use-indicator.patch' | |||
2146 | --- debian/patches/nm-applet-use-indicator.patch 2015-10-07 09:06:59 +0000 | |||
2147 | +++ debian/patches/nm-applet-use-indicator.patch 2015-12-02 15:57:13 +0000 | |||
2148 | @@ -100,17 +100,17 @@ | |||
2149 | 100 | info->modem_enabled, | 100 | info->modem_enabled, |
2150 | 101 | applet); | 101 | applet); |
2151 | 102 | +#else | 102 | +#else |
2163 | 103 | + text = mobile_helper_get_connection_label (nm_setting_connection_get_id (s_con), | 103 | + text = mobile_helper_get_connection_label (nm_setting_connection_get_id (s_con), |
2164 | 104 | + info->provider_name, | 104 | + info->provider_name, |
2165 | 105 | + cdma_act_to_mb_act (info), | 105 | + cdma_act_to_mb_act (info), |
2166 | 106 | + cdma_state_to_mb_state (info)); | 106 | + cdma_state_to_mb_state (info)); |
2167 | 107 | + item = gtk_image_menu_item_new_with_label (text); | 107 | + item = gtk_image_menu_item_new_with_label (text); |
2168 | 108 | + g_free (text); | 108 | + g_free (text); |
2169 | 109 | + icon_name = mobile_helper_get_quality_icon_name (info->quality_valid ? | 109 | + icon_name = mobile_helper_get_quality_icon_name (info->quality_valid ? |
2170 | 110 | + info->quality : 0); | 110 | + info->quality : 0); |
2171 | 111 | + signal_icon = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR); | 111 | + signal_icon = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR); |
2172 | 112 | + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), signal_icon); | 112 | + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), signal_icon); |
2173 | 113 | + gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE); | 113 | + gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE); |
2174 | 114 | +#endif | 114 | +#endif |
2175 | 115 | gtk_widget_set_sensitive (GTK_WIDGET (item), TRUE); | 115 | gtk_widget_set_sensitive (GTK_WIDGET (item), TRUE); |
2176 | 116 | add_connection_item (device, active, item, menu, applet); | 116 | add_connection_item (device, active, item, menu, applet); |
2177 | @@ -128,17 +128,17 @@ | |||
2178 | 128 | info->modem_enabled, | 128 | info->modem_enabled, |
2179 | 129 | applet); | 129 | applet); |
2180 | 130 | +#else | 130 | +#else |
2192 | 131 | + text = mobile_helper_get_connection_label (NULL, | 131 | + text = mobile_helper_get_connection_label (NULL, |
2193 | 132 | + info->provider_name, | 132 | + info->provider_name, |
2194 | 133 | + cdma_act_to_mb_act (info), | 133 | + cdma_act_to_mb_act (info), |
2195 | 134 | + cdma_state_to_mb_state (info)); | 134 | + cdma_state_to_mb_state (info)); |
2196 | 135 | + item = gtk_image_menu_item_new_with_label (text); | 135 | + item = gtk_image_menu_item_new_with_label (text); |
2197 | 136 | + g_free (text); | 136 | + g_free (text); |
2198 | 137 | + icon_name = mobile_helper_get_quality_icon_name (info->quality_valid ? | 137 | + icon_name = mobile_helper_get_quality_icon_name (info->quality_valid ? |
2199 | 138 | + info->quality : 0); | 138 | + info->quality : 0); |
2200 | 139 | + signal_icon = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR); | 139 | + signal_icon = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR); |
2201 | 140 | + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), signal_icon); | 140 | + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), signal_icon); |
2202 | 141 | + gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE); | 141 | + gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE); |
2203 | 142 | +#endif | 142 | +#endif |
2204 | 143 | gtk_widget_set_sensitive (GTK_WIDGET (item), FALSE); | 143 | gtk_widget_set_sensitive (GTK_WIDGET (item), FALSE); |
2205 | 144 | gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); | 144 | gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); |
2206 | @@ -201,17 +201,17 @@ | |||
2207 | 201 | info->modem_enabled, | 201 | info->modem_enabled, |
2208 | 202 | applet); | 202 | applet); |
2209 | 203 | +#else | 203 | +#else |
2221 | 204 | + text = mobile_helper_get_connection_label (nm_setting_connection_get_id (s_con), | 204 | + text = mobile_helper_get_connection_label (nm_setting_connection_get_id (s_con), |
2222 | 205 | + info->op_name, | 205 | + info->op_name, |
2223 | 206 | + gsm_act_to_mb_act (info), | 206 | + gsm_act_to_mb_act (info), |
2224 | 207 | + gsm_state_to_mb_state (info)); | 207 | + gsm_state_to_mb_state (info)); |
2225 | 208 | + item = gtk_image_menu_item_new_with_label (text); | 208 | + item = gtk_image_menu_item_new_with_label (text); |
2226 | 209 | + g_free (text); | 209 | + g_free (text); |
2227 | 210 | + icon_name = mobile_helper_get_quality_icon_name (info->quality_valid ? | 210 | + icon_name = mobile_helper_get_quality_icon_name (info->quality_valid ? |
2228 | 211 | + info->quality : 0); | 211 | + info->quality : 0); |
2229 | 212 | + signal_icon = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR); | 212 | + signal_icon = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR); |
2230 | 213 | + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), signal_icon); | 213 | + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), signal_icon); |
2231 | 214 | + gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE); | 214 | + gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE); |
2232 | 215 | +#endif | 215 | +#endif |
2233 | 216 | gtk_widget_set_sensitive (GTK_WIDGET (item), TRUE); | 216 | gtk_widget_set_sensitive (GTK_WIDGET (item), TRUE); |
2234 | 217 | add_connection_item (device, active, item, menu, applet); | 217 | add_connection_item (device, active, item, menu, applet); |
2235 | @@ -229,18 +229,18 @@ | |||
2236 | 229 | info->modem_enabled, | 229 | info->modem_enabled, |
2237 | 230 | applet); | 230 | applet); |
2238 | 231 | +#else | 231 | +#else |
2251 | 232 | + text = mobile_helper_get_connection_label (NULL, | 232 | + text = mobile_helper_get_connection_label (NULL, |
2252 | 233 | + info->op_name, | 233 | + info->op_name, |
2253 | 234 | + gsm_act_to_mb_act (info), | 234 | + gsm_act_to_mb_act (info), |
2254 | 235 | + gsm_state_to_mb_state (info)); | 235 | + gsm_state_to_mb_state (info)); |
2255 | 236 | + item = gtk_image_menu_item_new_with_label (text); | 236 | + item = gtk_image_menu_item_new_with_label (text); |
2256 | 237 | + g_free (text); | 237 | + g_free (text); |
2257 | 238 | + icon_name = mobile_helper_get_quality_icon_name (info->quality_valid ? | 238 | + icon_name = mobile_helper_get_quality_icon_name (info->quality_valid ? |
2258 | 239 | + info->quality : 0); | 239 | + info->quality : 0); |
2259 | 240 | + signal_icon = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR); | 240 | + signal_icon = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR); |
2260 | 241 | + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), signal_icon); | 241 | + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), signal_icon); |
2261 | 242 | + gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE); | 242 | + gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE); |
2262 | 243 | + gtk_widget_set_sensitive (item, FALSE); | 243 | + gtk_widget_set_sensitive (item, FALSE); |
2263 | 244 | +#endif | 244 | +#endif |
2264 | 245 | + | 245 | + |
2265 | 246 | gtk_widget_set_sensitive (GTK_WIDGET (item), FALSE); | 246 | gtk_widget_set_sensitive (GTK_WIDGET (item), FALSE); |
2266 | @@ -284,14 +284,14 @@ | |||
2267 | 284 | +static gboolean | 284 | +static gboolean |
2268 | 285 | +get_ap_is_encrypted (NMAccessPoint *ap) | 285 | +get_ap_is_encrypted (NMAccessPoint *ap) |
2269 | 286 | +{ | 286 | +{ |
2278 | 287 | + guint32 ap_flags, ap_wpa, ap_rsn; | 287 | + guint32 ap_flags, ap_wpa, ap_rsn; |
2279 | 288 | + | 288 | + |
2280 | 289 | + ap_flags = nm_access_point_get_flags (ap); | 289 | + ap_flags = nm_access_point_get_flags (ap); |
2281 | 290 | + ap_wpa = nm_access_point_get_wpa_flags (ap); | 290 | + ap_wpa = nm_access_point_get_wpa_flags (ap); |
2282 | 291 | + ap_rsn = nm_access_point_get_rsn_flags (ap); | 291 | + ap_rsn = nm_access_point_get_rsn_flags (ap); |
2283 | 292 | + | 292 | + |
2284 | 293 | + if ((ap_flags & NM_802_11_AP_FLAGS_PRIVACY) || ap_wpa || ap_rsn) | 293 | + if ((ap_flags & NM_802_11_AP_FLAGS_PRIVACY) || ap_wpa || ap_rsn) |
2285 | 294 | + return TRUE; | 294 | + return TRUE; |
2286 | 295 | + | 295 | + |
2287 | 296 | + return FALSE; | 296 | + return FALSE; |
2288 | 297 | +} | 297 | +} |
2289 | @@ -300,11 +300,11 @@ | |||
2290 | 300 | +ap_menu_item_set_sensitive (GtkWidget *item, NMAccessPoint *ap, guint32 dev_caps) | 300 | +ap_menu_item_set_sensitive (GtkWidget *item, NMAccessPoint *ap, guint32 dev_caps) |
2291 | 301 | +{ | 301 | +{ |
2292 | 302 | + gboolean is_adhoc = FALSE; | 302 | + gboolean is_adhoc = FALSE; |
2294 | 303 | + guint32 ap_flags, ap_wpa, ap_rsn; | 303 | + guint32 ap_flags, ap_wpa, ap_rsn; |
2295 | 304 | + | 304 | + |
2299 | 305 | + ap_flags = nm_access_point_get_flags (ap); | 305 | + ap_flags = nm_access_point_get_flags (ap); |
2300 | 306 | + ap_wpa = nm_access_point_get_wpa_flags (ap); | 306 | + ap_wpa = nm_access_point_get_wpa_flags (ap); |
2301 | 307 | + ap_rsn = nm_access_point_get_rsn_flags (ap); | 307 | + ap_rsn = nm_access_point_get_rsn_flags (ap); |
2302 | 308 | + | 308 | + |
2303 | 309 | + if (nm_access_point_get_mode (ap) == NM_802_11_MODE_ADHOC) | 309 | + if (nm_access_point_get_mode (ap) == NM_802_11_MODE_ADHOC) |
2304 | 310 | + is_adhoc = TRUE; | 310 | + is_adhoc = TRUE; |
2305 | @@ -336,18 +336,18 @@ | |||
2306 | 336 | + | 336 | + |
2307 | 337 | + icon_name = g_string_new (""); | 337 | + icon_name = g_string_new (""); |
2308 | 338 | + if (strength > 80) | 338 | + if (strength > 80) |
2318 | 339 | + icon_name = g_string_assign (icon_name, "nm-signal-100"); | 339 | + icon_name = g_string_assign (icon_name, "nm-signal-100"); |
2319 | 340 | + else if (strength > 55) | 340 | + else if (strength > 55) |
2320 | 341 | + icon_name = g_string_assign (icon_name, "nm-signal-75"); | 341 | + icon_name = g_string_assign (icon_name, "nm-signal-75"); |
2321 | 342 | + else if (strength > 30) | 342 | + else if (strength > 30) |
2322 | 343 | + icon_name = g_string_assign (icon_name, "nm-signal-50"); | 343 | + icon_name = g_string_assign (icon_name, "nm-signal-50"); |
2323 | 344 | + else if (strength > 5) | 344 | + else if (strength > 5) |
2324 | 345 | + icon_name = g_string_assign (icon_name, "nm-signal-25"); | 345 | + icon_name = g_string_assign (icon_name, "nm-signal-25"); |
2325 | 346 | + else | 346 | + else |
2326 | 347 | + icon_name = g_string_assign (icon_name, "nm-signal-00"); | 347 | + icon_name = g_string_assign (icon_name, "nm-signal-00"); |
2327 | 348 | + | 348 | + |
2330 | 349 | + if (nm_access_point_get_mode (ap) == NM_802_11_MODE_ADHOC) { | 349 | + if (nm_access_point_get_mode (ap) == NM_802_11_MODE_ADHOC) { |
2331 | 350 | + icon_name = g_string_assign (icon_name, "nm-adhoc"); | 350 | + icon_name = g_string_assign (icon_name, "nm-adhoc"); |
2332 | 351 | + goto out; | 351 | + goto out; |
2333 | 352 | + } | 352 | + } |
2334 | 353 | + | 353 | + |
2335 | @@ -363,8 +363,8 @@ | |||
2336 | 363 | + | 363 | + |
2337 | 364 | +static void | 364 | +static void |
2338 | 365 | +set_menu_item_accessible_desc (NMAccessPoint *ap, | 365 | +set_menu_item_accessible_desc (NMAccessPoint *ap, |
2341 | 366 | + GtkMenuItem *item, | 366 | + GtkMenuItem *item, |
2342 | 367 | + gboolean is_encrypted) | 367 | + gboolean is_encrypted) |
2343 | 368 | +{ | 368 | +{ |
2344 | 369 | + guint32 strength; | 369 | + guint32 strength; |
2345 | 370 | + gchar *ssid = NULL; | 370 | + gchar *ssid = NULL; |
2346 | @@ -542,8 +542,8 @@ | |||
2347 | 542 | g_return_val_if_fail (dup_data.hash != NULL, NULL); | 542 | g_return_val_if_fail (dup_data.hash != NULL, NULL); |
2348 | 543 | +#else | 543 | +#else |
2349 | 544 | + /* heh, not much choice here, otherwise on startup we get tons of errors | 544 | + /* heh, not much choice here, otherwise on startup we get tons of errors |
2352 | 545 | + * because g_return_val_if_fail prints assertion errors. | 545 | + * because g_return_val_if_fail prints assertion errors. |
2353 | 546 | + */ | 546 | + */ |
2354 | 547 | + if (dup_data.hash == NULL) | 547 | + if (dup_data.hash == NULL) |
2355 | 548 | + return NULL; | 548 | + return NULL; |
2356 | 549 | +#endif | 549 | +#endif |
2357 | @@ -1083,7 +1083,6 @@ | |||
2358 | 1083 | + | 1083 | + |
2359 | 1084 | + return FALSE; | 1084 | + return FALSE; |
2360 | 1085 | +} | 1085 | +} |
2361 | 1086 | +#endif | ||
2362 | 1087 | + | 1086 | + |
2363 | 1088 | +void | 1087 | +void |
2364 | 1089 | +applet_schedule_update_menu (NMApplet *applet) | 1088 | +applet_schedule_update_menu (NMApplet *applet) |
2365 | @@ -1091,6 +1090,7 @@ | |||
2366 | 1091 | + if (!applet->update_menu_id) | 1090 | + if (!applet->update_menu_id) |
2367 | 1092 | + applet->update_menu_id = g_idle_add (applet_update_indicator_menu, applet); | 1091 | + applet->update_menu_id = g_idle_add (applet_update_indicator_menu, applet); |
2368 | 1093 | +} | 1092 | +} |
2369 | 1093 | +#endif /* ENABLE_INDICATOR */ | ||
2370 | 1094 | + | 1094 | + |
2371 | 1095 | typedef struct { | 1095 | typedef struct { |
2372 | 1096 | NMApplet *applet; | 1096 | NMApplet *applet; |
2373 | @@ -1139,7 +1139,7 @@ | |||
2374 | 1139 | + | 1139 | + |
2375 | 1140 | +#ifdef ENABLE_INDICATOR | 1140 | +#ifdef ENABLE_INDICATOR |
2376 | 1141 | + if (icon_name == NULL && layer == ICON_LAYER_LINK) { | 1141 | + if (icon_name == NULL && layer == ICON_LAYER_LINK) { |
2378 | 1142 | + icon_name = g_strdup ("nm-no-connection"); | 1142 | + icon_name = "nm-no-connection"; |
2379 | 1143 | + } | 1143 | + } |
2380 | 1144 | + | 1144 | + |
2381 | 1145 | + if (icon_name != NULL && | 1145 | + if (icon_name != NULL && |
2382 | @@ -1255,7 +1255,7 @@ | |||
2383 | 1255 | } | 1255 | } |
2384 | 1256 | 1256 | ||
2385 | 1257 | - foo_set_icon (applet, ICON_LAYER_LINK, pixbuf, icon_name); | 1257 | - foo_set_icon (applet, ICON_LAYER_LINK, pixbuf, icon_name); |
2387 | 1258 | + foo_set_icon (applet, ICON_LAYER_LINK, pixbuf, icon_name, dev_tip); | 1258 | + foo_set_icon (applet, ICON_LAYER_LINK, pixbuf, icon_name, g_strdup (dev_tip)); |
2388 | 1259 | if (pixbuf) | 1259 | if (pixbuf) |
2389 | 1260 | g_object_unref (pixbuf); | 1260 | g_object_unref (pixbuf); |
2390 | 1261 | if (icon_name) | 1261 | if (icon_name) |
2391 | @@ -1276,7 +1276,7 @@ | |||
2392 | 1276 | } | 1276 | } |
2393 | 1277 | } | 1277 | } |
2394 | 1278 | - foo_set_icon (applet, ICON_LAYER_VPN, pixbuf, icon_name); | 1278 | - foo_set_icon (applet, ICON_LAYER_VPN, pixbuf, icon_name); |
2396 | 1279 | + foo_set_icon (applet, ICON_LAYER_VPN, pixbuf, icon_name, dev_tip); | 1279 | + foo_set_icon (applet, ICON_LAYER_VPN, pixbuf, icon_name, g_strdup (dev_tip)); |
2397 | 1280 | if (icon_name) | 1280 | if (icon_name) |
2398 | 1281 | g_free (icon_name); | 1281 | g_free (icon_name); |
2399 | 1282 | 1282 | ||
2400 | @@ -1377,7 +1377,7 @@ | |||
2401 | 1377 | if (!applet->status_icon) | 1377 | if (!applet->status_icon) |
2402 | 1378 | return FALSE; | 1378 | return FALSE; |
2403 | 1379 | if (shell_debug) | 1379 | if (shell_debug) |
2405 | 1380 | @@ -3602,11 +3873,34 @@ setup_widgets (NMApplet *applet) | 1380 | @@ -3602,13 +3873,36 @@ setup_widgets (NMApplet *applet) |
2406 | 1381 | g_signal_connect (applet->status_icon, "popup-menu", | 1381 | g_signal_connect (applet->status_icon, "popup-menu", |
2407 | 1382 | G_CALLBACK (status_icon_popup_menu_cb), applet); | 1382 | G_CALLBACK (status_icon_popup_menu_cb), applet); |
2408 | 1383 | 1383 | ||
2409 | @@ -1390,10 +1390,9 @@ | |||
2410 | 1390 | + if (!applet->context_menu) | 1390 | + if (!applet->context_menu) |
2411 | 1391 | + return FALSE; | 1391 | + return FALSE; |
2412 | 1392 | 1392 | ||
2417 | 1393 | - return TRUE; | 1393 | return TRUE; |
2418 | 1394 | + return TRUE; | 1394 | } |
2419 | 1395 | +} | 1395 | |
2416 | 1396 | + | ||
2420 | 1397 | +static gboolean | 1396 | +static gboolean |
2421 | 1398 | +setup_widgets (NMApplet *applet) | 1397 | +setup_widgets (NMApplet *applet) |
2422 | 1399 | +{ | 1398 | +{ |
2423 | @@ -1413,9 +1412,11 @@ | |||
2424 | 1413 | +#else | 1412 | +#else |
2425 | 1414 | + return success || indicator_success; | 1413 | + return success || indicator_success; |
2426 | 1415 | +#endif | 1414 | +#endif |
2429 | 1416 | } | 1415 | +} |
2430 | 1417 | 1416 | + | |
2431 | 1418 | static void | 1417 | static void |
2432 | 1418 | applet_embedded_cb (GObject *object, GParamSpec *pspec, gpointer user_data) | ||
2433 | 1419 | { | ||
2434 | 1419 | @@ -3697,6 +3991,8 @@ initable_init (GInitable *initable, GCan | 1420 | @@ -3697,6 +3991,8 @@ initable_init (GInitable *initable, GCan |
2435 | 1420 | G_CALLBACK (applet_gsettings_show_changed), applet); | 1421 | G_CALLBACK (applet_gsettings_show_changed), applet); |
2436 | 1421 | 1422 | ||
2437 | 1422 | 1423 | ||
2438 | === modified file 'debian/patches/series' | |||
2439 | --- debian/patches/series 2015-10-07 03:56:07 +0000 | |||
2440 | +++ debian/patches/series 2015-12-02 15:57:13 +0000 | |||
2441 | @@ -1,3 +1,6 @@ | |||
2442 | 1 | Allow-to-create-connections-without-admin-privileges.patch | ||
2443 | 2 | Force-online-state-with-unmanaged-devices.patch | ||
2444 | 3 | Don-t-hard-code-gnome-bluetooth-plugin-directory.patch | ||
2445 | 1 | lp341684_device_sensitive_disconnect_notify.patch | 4 | lp341684_device_sensitive_disconnect_notify.patch |
2446 | 2 | lp460144_correctly_update_notification.patch | 5 | lp460144_correctly_update_notification.patch |
2447 | 3 | applet-wifi-menu-before-vpn.patch | 6 | applet-wifi-menu-before-vpn.patch |
2448 | @@ -9,6 +12,5 @@ | |||
2449 | 9 | lp1048516_dont_req_keyring_in_greeter.patch | 12 | lp1048516_dont_req_keyring_in_greeter.patch |
2450 | 10 | lp1048520_delay_pin_dialog_in_greeter.patch | 13 | lp1048520_delay_pin_dialog_in_greeter.patch |
2451 | 11 | rebuild_menu_after_init.patch | 14 | rebuild_menu_after_init.patch |
2452 | 12 | 11-user-connections.patch | ||
2453 | 13 | ubuntu_dont_autostart_under_GNOME.patch | 15 | ubuntu_dont_autostart_under_GNOME.patch |
2454 | 14 | hide_virtual_devices.patch | 16 | hide_virtual_devices.patch |
2455 | 15 | 17 | ||
2456 | === modified file 'debian/rules' | |||
2457 | --- debian/rules 2015-01-27 01:15:32 +0000 | |||
2458 | +++ debian/rules 2015-12-02 15:57:13 +0000 | |||
2459 | @@ -13,18 +13,16 @@ | |||
2460 | 13 | --disable-more-warnings \ | 13 | --disable-more-warnings \ |
2461 | 14 | --enable-migration \ | 14 | --enable-migration \ |
2462 | 15 | --enable-introspection \ | 15 | --enable-introspection \ |
2465 | 16 | --with-modem-manager-1=yes \ | 16 | --with-modem-manager-1 \ |
2466 | 17 | --enable-indicator \ | 17 | --enable-indicator |
2467 | 18 | 18 | ||
2468 | 19 | override_dh_auto_clean: | 19 | override_dh_auto_clean: |
2469 | 20 | dh_auto_clean | 20 | dh_auto_clean |
2470 | 21 | rm -f icons/22/*-secure.png icons/22/nm-active-device.png | 21 | rm -f icons/22/*-secure.png icons/22/nm-active-device.png |
2471 | 22 | rm -f debian/*.1 | ||
2472 | 23 | 22 | ||
2473 | 24 | override_dh_auto_build: | 23 | override_dh_auto_build: |
2474 | 25 | dh_auto_build | 24 | dh_auto_build |
2475 | 26 | cp -rf $(CURDIR)/debian/icons/22 icons/ | 25 | cp -rf $(CURDIR)/debian/icons/22 icons/ |
2476 | 27 | docbook-to-man debian/nm-applet.sgml > debian/nm-applet.1 | ||
2477 | 28 | 26 | ||
2478 | 29 | override_dh_install: | 27 | override_dh_install: |
2479 | 30 | dh_install -X.la -X.a --fail-missing | 28 | dh_install -X.la -X.a --fail-missing |
Looks good!