Merge lp:~darkxst/ubuntu/utopic/gnome-control-center/lp1372346 into lp:~ubuntu-desktop/gnome-control-center/ubuntu
- Utopic (14.10)
- lp1372346
- Merge into ubuntu
Proposed by
Tim Lunn
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Martin Pitt | ||||
Approved revision: | 648 | ||||
Merged at revision: | 647 | ||||
Proposed branch: | lp:~darkxst/ubuntu/utopic/gnome-control-center/lp1372346 | ||||
Merge into: | lp:~ubuntu-desktop/gnome-control-center/ubuntu | ||||
Diff against target: |
5698 lines (+3404/-1523) 32 files modified
debian/changelog (+392/-0) debian/control (+45/-44) debian/control.in (+44/-43) debian/gnome-control-center-data.maintscript (+2/-0) debian/gnome-control-center-data.postinst (+8/-0) debian/gnome-control-center.install (+6/-1) debian/gnome-control-center.pkla (+2/-2) debian/gnome-control-center.postinst (+7/-0) debian/gnome-control-center.postrm (+12/-0) debian/patches/01_menu_category.patch (+13/-0) debian/patches/02_new_goa.patch (+0/-46) debian/patches/06_handle_passwd_with_ldap.patch (+19/-0) debian/patches/07_polkit_wheel_sudo_group.patch (+16/-0) debian/patches/52_region_language.patch (+40/-40) debian/patches/99_add_lock-on-suspend.patch (+2/-9) debian/patches/gcc_not_in_unity.patch (+0/-154) debian/patches/git-background-lock-screen.patch (+0/-862) debian/patches/git-background-remove-unused-widget.patch (+0/-111) debian/patches/git-online-accounts-chat-providers.patch (+0/-51) debian/patches/git_fix_libbackground_linking.patch (+0/-24) debian/patches/git_iconview_columns.patch (+0/-16) debian/patches/git_rename_natural_scrolling.patch (+0/-26) debian/patches/power-panel-3.10.patch (+979/-0) debian/patches/revert-bluetooth-BlueZ5-interface.patch (+34/-0) debian/patches/revert_git_dont_hide_zoom.patch (+23/-25) debian/patches/revert_git_drop_library.patch (+10/-11) debian/patches/revert_git_new_bluetooth_panel.patch (+1607/-0) debian/patches/revert_new_bluetooth.patch (+68/-0) debian/patches/series (+7/-8) debian/patches/ubuntu-gnome-version.patch (+14/-8) debian/patches/ubuntu_external_panels.patch (+53/-41) debian/watch (+1/-1) |
||||
To merge this branch: | bzr merge lp:~darkxst/ubuntu/utopic/gnome-control-center/lp1372346 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Pitt | Approve | ||
Review via email: mp+236309@code.launchpad.net |
Commit message
Description of the change
Merge 3.12 from debian
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'debian/changelog' | |||
2 | --- debian/changelog 2014-08-20 03:43:40 +0000 | |||
3 | +++ debian/changelog 2014-09-30 05:25:02 +0000 | |||
4 | @@ -1,3 +1,150 @@ | |||
5 | 1 | gnome-control-center (1:3.12.1-5ubuntu1) utopic; urgency=medium | ||
6 | 2 | |||
7 | 3 | * New Upstream Release (LP: #1372346) | ||
8 | 4 | * Merge with Debian, remaining changes: | ||
9 | 5 | + debian/patches: | ||
10 | 6 | - revert_git_new_bluetooth_panel.patch, | ||
11 | 7 | revert_new_bluetooth.patch, | ||
12 | 8 | revert-bluetooth-BlueZ5-interface.patch: | ||
13 | 9 | Revert bluetooth back to Bluez4 | ||
14 | 10 | - 52_region_language.patch | ||
15 | 11 | Adapt region panel to use Ubuntu style regions and UTF-8 | ||
16 | 12 | - 56_use_ubuntu_info_branding.patch, | ||
17 | 13 | ubuntu-gnome-version.patch | ||
18 | 14 | Use Ubuntu GNOME branding | ||
19 | 15 | - 64_restore_terminal_keyboard_shortcut.patch | ||
20 | 16 | Bring back terminal shortcut | ||
21 | 17 | - 92_ubuntu_system_proxy.patch | ||
22 | 18 | Add system proxy support | ||
23 | 19 | - 99_add_lock-on-suspend.patch | ||
24 | 20 | Add option to lock on suspend | ||
25 | 21 | - revert_git_dont_hide_zoom.patch | ||
26 | 22 | Bring back zoom settings | ||
27 | 23 | - revert_git_drop_library.patch, | ||
28 | 24 | ubuntu_external_panels.patch | ||
29 | 25 | Reimplement support for external panels | ||
30 | 26 | + debian/control.in: | ||
31 | 27 | - Relax build-deps on upower and gnome-bluetooth | ||
32 | 28 | - Drop Recommends for packages not in main | ||
33 | 29 | - Various other Ubuntu specific changes | ||
34 | 30 | + debian/libgnome-control-center1.symbols: | ||
35 | 31 | - Add new symbols from external panel patch | ||
36 | 32 | + debian/gnome-control-center-data.install: | ||
37 | 33 | - don't install the pkla yet | ||
38 | 34 | + Split out shared data that is used by unity-control-center | ||
39 | 35 | + Add a wrapper to run unity-control-center in Unity | ||
40 | 36 | + Install apport hook | ||
41 | 37 | + Revert to 3.10 power panel, until we have new upower | ||
42 | 38 | |||
43 | 39 | -- Tim Lunn <tim@feathertop.org> Thu, 18 Sep 2014 09:31:20 +1000 | ||
44 | 40 | |||
45 | 41 | gnome-control-center (1:3.12.1-5) unstable; urgency=medium | ||
46 | 42 | |||
47 | 43 | [ Jordi Mallach ] | ||
48 | 44 | * Add cracklib-runtime to Recommends, it's needed for password changing. | ||
49 | 45 | |||
50 | 46 | [ Laurent Bigonville ] | ||
51 | 47 | * Add debian/patches/07_polkit_wheel_sudo_group.patch: The "wheel" group is | ||
52 | 48 | not existing on debian, check if the user is member of the "sudo" group | ||
53 | 49 | instead (Closes: #760722) | ||
54 | 50 | |||
55 | 51 | [ Andreas Henriksson ] | ||
56 | 52 | * Update debian/gnome-control-center.pkla with what is currently listed | ||
57 | 53 | in upstreams panels/common/gnome-control-center.rules since we don't yet | ||
58 | 54 | have/depend-on policykit-1 >= 0.106 which means the rules file is still | ||
59 | 55 | unused. This fixes automatic time/timezone, etc. | ||
60 | 56 | |||
61 | 57 | -- Laurent Bigonville <bigon@debian.org> Sun, 07 Sep 2014 12:31:59 +0200 | ||
62 | 58 | |||
63 | 59 | gnome-control-center (1:3.12.1-4) unstable; urgency=medium | ||
64 | 60 | |||
65 | 61 | [ Laurent Bigonville ] | ||
66 | 62 | * debian/control.in: Recommends realmd package | ||
67 | 63 | |||
68 | 64 | [ Emilio Pozuelo Monfort ] | ||
69 | 65 | * debian/control.in: | ||
70 | 66 | + Drop duplicate libgnome-bluetooth-dev build dependency. | ||
71 | 67 | |||
72 | 68 | [ Andreas Henriksson ] | ||
73 | 69 | * Bump dependency on gsettings-desktop-schemas to >= 3.9.91 | ||
74 | 70 | - build-dependency already set to this version. | ||
75 | 71 | - needed for newly added datetime schema | ||
76 | 72 | (Closes: #752569) | ||
77 | 73 | * Upload to unstable. | ||
78 | 74 | |||
79 | 75 | -- Andreas Henriksson <andreas@fatal.se> Mon, 14 Jul 2014 23:49:42 +0200 | ||
80 | 76 | |||
81 | 77 | gnome-control-center (1:3.12.1-3) experimental; urgency=medium | ||
82 | 78 | |||
83 | 79 | * debian/control.in: | ||
84 | 80 | Add recommends to libnss-myhostname (Closes: #705319) | ||
85 | 81 | |||
86 | 82 | -- Sjoerd Simons <sjoerd@debian.org> Sun, 27 Apr 2014 18:20:29 +0200 | ||
87 | 83 | |||
88 | 84 | gnome-control-center (1:3.12.1-2) experimental; urgency=medium | ||
89 | 85 | |||
90 | 86 | [ Josselin Mouette ] | ||
91 | 87 | * Remove Suggests on screensavers. | ||
92 | 88 | |||
93 | 89 | -- Sjoerd Simons <sjoerd@debian.org> Sun, 27 Apr 2014 10:14:45 +0200 | ||
94 | 90 | |||
95 | 91 | gnome-control-center (1:3.12.1-1) experimental; urgency=medium | ||
96 | 92 | |||
97 | 93 | [ Laurent Bigonville] | ||
98 | 94 | * New upstream release. | ||
99 | 95 | - Add libkrb5-dev to the build-dependencies | ||
100 | 96 | - Re-add libgnome-bluetooth-dev build-dependency | ||
101 | 97 | * debian/control.in: Bump Standards-Version to 3.9.5 (no further changes) | ||
102 | 98 | |||
103 | 99 | [ Sjoerd Simons ] | ||
104 | 100 | * Re-add gnome-bluetooth support | ||
105 | 101 | |||
106 | 102 | -- Sjoerd Simons <sjoerd@debian.org> Sat, 26 Apr 2014 18:41:34 +0200 | ||
107 | 103 | |||
108 | 104 | gnome-control-center (1:3.12.0-1) experimental; urgency=medium | ||
109 | 105 | |||
110 | 106 | * New upstream release. | ||
111 | 107 | |||
112 | 108 | -- Andreas Henriksson <andreas@fatal.se> Mon, 24 Mar 2014 19:58:34 +0100 | ||
113 | 109 | |||
114 | 110 | gnome-control-center (1:3.11.91-1) experimental; urgency=medium | ||
115 | 111 | |||
116 | 112 | [ Jordi Mallach ] | ||
117 | 113 | * Bumb Build-Depends for libgnome-bluetooth-dev to >= 3.9.3. | ||
118 | 114 | |||
119 | 115 | [ Andreas Henriksson ] | ||
120 | 116 | * New upstream release. | ||
121 | 117 | * Update build-dependencies according to configure.ac changes: | ||
122 | 118 | - Bump libgnome-desktop-3-dev to >= 3.11.3 | ||
123 | 119 | - Bump libgtk-3-dev to >= 3.11.1 | ||
124 | 120 | - Bump libupower-glib-dev to >= 0.99.0 | ||
125 | 121 | - Add libgrilo-0.2-dev (>= 0.2.6) | ||
126 | 122 | - Drop libsocialweb-client-dev | ||
127 | 123 | * Drop debian/patches/background-Fix-compilation-with-libsocialweb.patch | ||
128 | 124 | - socialweb integration dropped upstream. | ||
129 | 125 | * debian/rules: remove --with-libsocialweb configure flag | ||
130 | 126 | * Drop d/p/background-Fix-test-chooser-dialog-build-with-some-l.patch | ||
131 | 127 | - merged upstream. | ||
132 | 128 | * Have quilt refresh remaining patches | ||
133 | 129 | * Drop build-dependency on libgnome-bluetooth-dev [linux-any] | ||
134 | 130 | - Looks like we won't get bluez 5.x in unstable until some time | ||
135 | 131 | after hell freezes over, so just disable the bluetooth panel | ||
136 | 132 | for now to not let this hold us back. | ||
137 | 133 | |||
138 | 134 | -- Andreas Henriksson <andreas@fatal.se> Tue, 11 Mar 2014 23:44:49 +0100 | ||
139 | 135 | |||
140 | 136 | gnome-control-center (1:3.10.1-1) experimental; urgency=low | ||
141 | 137 | |||
142 | 138 | * New upstream release | ||
143 | 139 | * debian/patches/background-Fix-compilation-with-libsocialweb.patch | ||
144 | 140 | + Fix compilation with libsocialweb | ||
145 | 141 | * debian/patches/background-Fix-test-chooser-dialog-build-with-some-l.patch | ||
146 | 142 | + Fix compilation with more strictl linkers | ||
147 | 143 | * debian/control: Recommend network-manager instead of depending | ||
148 | 144 | (Closes: #726395) | ||
149 | 145 | |||
150 | 146 | -- Sjoerd Simons <sjoerd@debian.org> Fri, 01 Nov 2013 23:11:23 +0100 | ||
151 | 147 | |||
152 | 1 | gnome-control-center (1:3.8.6-0ubuntu5) utopic; urgency=medium | 148 | gnome-control-center (1:3.8.6-0ubuntu5) utopic; urgency=medium |
153 | 2 | 149 | ||
154 | 3 | * Actually do a no change rebuild against new libgtop | 150 | * Actually do a no change rebuild against new libgtop |
155 | @@ -67,6 +214,153 @@ | |||
156 | 67 | 214 | ||
157 | 68 | -- Robert Ancell <robert.ancell@canonical.com> Wed, 04 Dec 2013 11:03:26 +1300 | 215 | -- Robert Ancell <robert.ancell@canonical.com> Wed, 04 Dec 2013 11:03:26 +1300 |
158 | 69 | 216 | ||
159 | 217 | gnome-control-center (1:3.8.3-3) unstable; urgency=low | ||
160 | 218 | |||
161 | 219 | * Drop recommends on gnome-session, it doesn't seem to be needed anymore | ||
162 | 220 | and brings in all of gnome when installing network-manager-gnome which | ||
163 | 221 | is also used in non-gnome environments. | ||
164 | 222 | * Upload to unstable. | ||
165 | 223 | |||
166 | 224 | -- Emilio Pozuelo Monfort <pochu@debian.org> Sun, 13 Oct 2013 18:04:36 +0200 | ||
167 | 225 | |||
168 | 226 | gnome-control-center (1:3.8.3-2) experimental; urgency=low | ||
169 | 227 | |||
170 | 228 | [ Emilio Pozuelo Monfort ] | ||
171 | 229 | * debian/control.in: | ||
172 | 230 | + Recommend gkbd-capplet, used by the Region & Language panel to | ||
173 | 231 | display the selected keyboard layout. | ||
174 | 232 | + Recommend ntp for the Date & Time panel. | ||
175 | 233 | |||
176 | 234 | [ Laurent Bigonville ] | ||
177 | 235 | * debian/control.in: | ||
178 | 236 | - Use canonical URL for Vcs-Svn field | ||
179 | 237 | - Drop duplicate Section to please lintian | ||
180 | 238 | - Also Suggests libcanberra-gtk3-module | ||
181 | 239 | * debian/rules: | ||
182 | 240 | - Use DEB_LDFLAGS_MAINT_APPEND instead of LDFLAGS so we are | ||
183 | 241 | sure we are not overrinding the hardening flags | ||
184 | 242 | - Pass -Wl,-z,defs to DEB_LDFLAGS_MAINT_APPEND so we can detect undefined | ||
185 | 243 | symbols during build | ||
186 | 244 | * gnome-control-center-data.maintscript: Remove /etc/xdg/menus/gnomecc.menu | ||
187 | 245 | and /etc/xdg/autostart/gnome-sound-applet.desktop on upgrade, the files | ||
188 | 246 | are no longer shipped (Closes: #712831) | ||
189 | 247 | * debian/control.in, debian/rules: Re-enable ibus support (Closes: #720585) | ||
190 | 248 | |||
191 | 249 | [ Jeremy Bicha ] | ||
192 | 250 | * Build-depend on gtk-doc-tools instead of docbook directly | ||
193 | 251 | * Don't build-depend on gnome-doc-utils | ||
194 | 252 | |||
195 | 253 | -- Laurent Bigonville <bigon@debian.org> Sat, 24 Aug 2013 14:05:49 +0200 | ||
196 | 254 | |||
197 | 255 | gnome-control-center (1:3.8.3-1) experimental; urgency=low | ||
198 | 256 | |||
199 | 257 | [ Andreas Henriksson ] | ||
200 | 258 | * Recommend both gnome-user-share and rygel | rygel-tracker | ||
201 | 259 | - Needs to be of recent version, but we don't have versioned recommends. | ||
202 | 260 | - This Makes Bluetooth Sharing, Personal File Sharing and Media Sharing | ||
203 | 261 | visible under the Sharing panel. | ||
204 | 262 | (Also, Remote Login will not show up until we ship a sshd.service | ||
205 | 263 | in Debian.) | ||
206 | 264 | |||
207 | 265 | [ Emilio Pozuelo Monfort ] | ||
208 | 266 | * New upstream release. | ||
209 | 267 | |||
210 | 268 | -- Emilio Pozuelo Monfort <pochu@debian.org> Sat, 08 Jun 2013 18:32:00 +0200 | ||
211 | 269 | |||
212 | 270 | gnome-control-center (1:3.8.2-1) experimental; urgency=low | ||
213 | 271 | |||
214 | 272 | [ Thomas Bechtold ] | ||
215 | 273 | * New upstream release 3.8.1. | ||
216 | 274 | * debian/control: | ||
217 | 275 | - Build-Depends on libgoa-1.0-dev (>= 3.8.1) according to | ||
218 | 276 | configure.ac. | ||
219 | 277 | - Bump Standards-Version to 3.9.4. | ||
220 | 278 | |||
221 | 279 | [ Emilio Pozuelo Monfort ] | ||
222 | 280 | * debian/control.in: | ||
223 | 281 | + Bump minimum gnome-menus dependency to fix loading desktop | ||
224 | 282 | files from the shell. Thanks to Luca Bruno for pointing it | ||
225 | 283 | out. | ||
226 | 284 | + Recommend system-config-printer for the printers panel. | ||
227 | 285 | * New upstream release 3.8.2. | ||
228 | 286 | + Doesn't crash if the printing dbus service is missing. | ||
229 | 287 | Closes: #709451. | ||
230 | 288 | |||
231 | 289 | -- Emilio Pozuelo Monfort <pochu@debian.org> Sat, 25 May 2013 13:00:07 +0200 | ||
232 | 290 | |||
233 | 291 | gnome-control-center (1:3.8.0-2) experimental; urgency=low | ||
234 | 292 | |||
235 | 293 | [ Emilio Pozuelo Monfort ] | ||
236 | 294 | * debian/control.in: | ||
237 | 295 | + Remove obsolete libgconf2-dev build dependency. | ||
238 | 296 | |||
239 | 297 | [ Sjoerd Simons ] | ||
240 | 298 | * debian/control.in: Add libsmbclient-dev for the printer panel | ||
241 | 299 | * debian/control.in: Add libnm*-dev (>= 0.9.8) for the network panel | ||
242 | 300 | * debian/control.in: Add run-time depend on network-manager-gnome (>= 0.9.8) | ||
243 | 301 | |||
244 | 302 | -- Sjoerd Simons <sjoerd@debian.org> Wed, 10 Apr 2013 09:22:02 +0100 | ||
245 | 303 | |||
246 | 304 | gnome-control-center (1:3.8.0-1) experimental; urgency=low | ||
247 | 305 | |||
248 | 306 | [ Jeremy Bicha ] | ||
249 | 307 | * debian/gnome-control-center-data.install, gnome-control-center.install: | ||
250 | 308 | - Move the new polkit rules to gnome-control-center-data | ||
251 | 309 | like the existing rule | ||
252 | 310 | * debian/control.in: | ||
253 | 311 | - Add temporary breaks/replaces for the previous change | ||
254 | 312 | * Add gnome-control-center.pkla to allow admins to change the hostname | ||
255 | 313 | without needing policykit from experimental (Closes: #693071) | ||
256 | 314 | |||
257 | 315 | [ Thomas Bechtold ] | ||
258 | 316 | * New upstream release | ||
259 | 317 | |||
260 | 318 | -- Thomas Bechtold <thomasbechtold@jpberlin.de> Wed, 27 Mar 2013 19:02:54 +0100 | ||
261 | 319 | |||
262 | 320 | gnome-control-center (1:3.7.92-1) experimental; urgency=low | ||
263 | 321 | |||
264 | 322 | [ Sjoerd Simons ] | ||
265 | 323 | * New upstream release | ||
266 | 324 | * debian/patches/90_force_fallback.patch | ||
267 | 325 | + Dropped, no longer applicable | ||
268 | 326 | * debian/patches/revert_git_datetime_port.patch | ||
269 | 327 | + Follow upstream in the systemd datetime usage | ||
270 | 328 | * debian/control.in: Bump build-deps | ||
271 | 329 | * debian/control.in: Add run-time depend on colord | ||
272 | 330 | * debian/gnome-control-center.install: Don't install panel .so files, all | ||
273 | 331 | plugins are now static | ||
274 | 332 | * debian/gnome-control-center-data.install: Remove installation of fallback | ||
275 | 333 | files, no longer shipped with g-c-c | ||
276 | 334 | |||
277 | 335 | [ Jean Schurger ] | ||
278 | 336 | * debian/control.in: Dropped valac build-dependency (not longer needed). | ||
279 | 337 | |||
280 | 338 | [ Sjoerd Simons ] | ||
281 | 339 | * New upstream release (3.7.92) | ||
282 | 340 | * debian/gnome-control-center.install: Install policykit rules & search | ||
283 | 341 | provider | ||
284 | 342 | * debian/control.in: Depend on gnome-icon-theme >= 3.7 | ||
285 | 343 | |||
286 | 344 | -- Sjoerd Simons <sjoerd@debian.org> Sat, 23 Mar 2013 20:19:50 +0100 | ||
287 | 345 | |||
288 | 346 | gnome-control-center (1:3.6.3-1) experimental; urgency=low | ||
289 | 347 | |||
290 | 348 | [ Sjoerd Simons ] | ||
291 | 349 | * debian/control.in: Bump libgnome-bluetooth-dev to >= 3.5.5 | ||
292 | 350 | * debian/control.in: Bump libcheese-gtk-dev to >= 3.5.91 | ||
293 | 351 | |||
294 | 352 | [ Jeremy Bicha ] | ||
295 | 353 | * New upstream version. | ||
296 | 354 | * debian/gnome-control-center.sgml, debian/gnome-control-center.install | ||
297 | 355 | debian/rules | ||
298 | 356 | - Ship improved man page from GNOME | ||
299 | 357 | |||
300 | 358 | [ Aron Xu ] | ||
301 | 359 | * debian/control.in debian/rules: disable ibus integration. | ||
302 | 360 | (Closes: #694301, #691656) | ||
303 | 361 | |||
304 | 362 | -- Sjoerd Simons <sjoerd@debian.org> Sun, 10 Feb 2013 13:17:20 +0100 | ||
305 | 363 | |||
306 | 70 | gnome-control-center (1:3.6.3-0ubuntu57) utopic; urgency=medium | 364 | gnome-control-center (1:3.6.3-0ubuntu57) utopic; urgency=medium |
307 | 71 | 365 | ||
308 | 72 | * debian/patches/ubuntu-gnome-version.patch: Merge build-time versioned | 366 | * debian/patches/ubuntu-gnome-version.patch: Merge build-time versioned |
309 | @@ -713,6 +1007,96 @@ | |||
310 | 713 | 1007 | ||
311 | 714 | -- Sebastien Bacher <seb128@ubuntu.com> Wed, 21 Nov 2012 19:32:45 +0100 | 1008 | -- Sebastien Bacher <seb128@ubuntu.com> Wed, 21 Nov 2012 19:32:45 +0100 |
312 | 715 | 1009 | ||
313 | 1010 | gnome-control-center (1:3.6.2-1) experimental; urgency=low | ||
314 | 1011 | |||
315 | 1012 | * Team upload | ||
316 | 1013 | |||
317 | 1014 | [ Andreas Henriksson ] | ||
318 | 1015 | * Fix typo in gsettings-desktop-schemas-dev build dependency version | ||
319 | 1016 | (3.3.91 should be 3.5.91). (Closes: #693027) | ||
320 | 1017 | |||
321 | 1018 | [ Simon McVittie ] | ||
322 | 1019 | * Bump build-dependency to libgnome-desktop-3-dev (>= 3.5.91) as well, | ||
323 | 1020 | otherwise it'll continue to FTBFS | ||
324 | 1021 | * New upstream release | ||
325 | 1022 | * Install org.gnome.controlcenter.user-accounts.policy PolicyKit rule, | ||
326 | 1023 | which means that authenticating for | ||
327 | 1024 | org.gnome.controlcenter.user-accounts.administration is sufficient | ||
328 | 1025 | to administer accountsservice and (if later added to Debian) realmd | ||
329 | 1026 | * Do not install gnome-control-center.rules for now; it won't work in Debian | ||
330 | 1027 | since we don't have a wheel group. Patching it to use group sudo is | ||
331 | 1028 | a possibility for a future upload. | ||
332 | 1029 | |||
333 | 1030 | -- Simon McVittie <smcv@debian.org> Mon, 12 Nov 2012 17:14:50 +0000 | ||
334 | 1031 | |||
335 | 1032 | gnome-control-center (1:3.6.1-1) experimental; urgency=low | ||
336 | 1033 | |||
337 | 1034 | [ Josselin Mouette ] | ||
338 | 1035 | * Add missing epoch on libxi build-dependency. | ||
339 | 1036 | |||
340 | 1037 | [ Michael Biebl ] | ||
341 | 1038 | * Rebuild with xz compression. Closes: #687279 | ||
342 | 1039 | |||
343 | 1040 | [ Sjoerd Simons ] | ||
344 | 1041 | * New upstream release (3.6.1) | ||
345 | 1042 | * debian/control.in: Updated dependencies | ||
346 | 1043 | * debian/patches/02_no_assert_on_null_streams.patch | ||
347 | 1044 | + Removed, was supposed to be a temporary patch | ||
348 | 1045 | * debian/patches/10_optional_wacom_support.patch | ||
349 | 1046 | + Removed, fixed upstream | ||
350 | 1047 | * debian/patches/90_force_fallback.patch: Refreshed | ||
351 | 1048 | |||
352 | 1049 | -- Sjoerd Simons <sjoerd@debian.org> Sun, 14 Oct 2012 21:42:26 +0200 | ||
353 | 1050 | |||
354 | 1051 | gnome-control-center (1:3.4.2-2) unstable; urgency=low | ||
355 | 1052 | |||
356 | 1053 | * Upload to unstable. | ||
357 | 1054 | |||
358 | 1055 | -- Michael Biebl <biebl@debian.org> Wed, 30 May 2012 12:54:24 +0200 | ||
359 | 1056 | |||
360 | 1057 | gnome-control-center (1:3.4.2-1) experimental; urgency=low | ||
361 | 1058 | |||
362 | 1059 | [ Sjoerd Simons ] | ||
363 | 1060 | * New upstream release | ||
364 | 1061 | * Sync with Ubuntu: | ||
365 | 1062 | + debian/control.in: Update build-depends | ||
366 | 1063 | + debian/patches/02_no_assert_on_null_streams.patch: | ||
367 | 1064 | - Don't crash on null streams (bgo: #633728, LP: #741155) | ||
368 | 1065 | + debian/patches/90_force_fallback.patch: | ||
369 | 1066 | - Refreshed | ||
370 | 1067 | + debian/patches/06_handle_passwd_with_ldap.patch: | ||
371 | 1068 | - Refreshed | ||
372 | 1069 | + debian/patches/revert_git_datetime_port.patch: | ||
373 | 1070 | - Added, don't switch to systemd for datetime functionality just yet. | ||
374 | 1071 | * Drop libgnome-control-center1 package, gnome-control-center no longer | ||
375 | 1072 | builds a library. | ||
376 | 1073 | * debian/patches/00git_handle_media_dialog_close.patch, | ||
377 | 1074 | debian/patches/91_configure_cheese.patch, | ||
378 | 1075 | debian/patches/08_dont_crash_on_null_territories.patch, | ||
379 | 1076 | debian/patches/92_link_language_chooser_against_fontconfig.patch: | ||
380 | 1077 | + All removed, fixed upstream | ||
381 | 1078 | * debian/rules: Don't use -Wl,-z,defs as it cause the panel plugins to fail | ||
382 | 1079 | to build | ||
383 | 1080 | * debian/gnome-control-center-data.install: gnome-control-center no longer | ||
384 | 1081 | ships a manual. | ||
385 | 1082 | |||
386 | 1083 | [ Michael Biebl ] | ||
387 | 1084 | * Add Build-Depends on libwacom-dev and libxi-dev for the Wacom panel and | ||
388 | 1085 | libgnome-bluetooth-dev for the Bluetooth panel. | ||
389 | 1086 | * Mark libwacom-dev and libgnome-bluetooth-dev as linux-any. | ||
390 | 1087 | * Update Build-Depends according to configure.ac. | ||
391 | 1088 | * Add Breaks/Replaces: gnome-bluetooth (<< 3.4) as the Bluetooth panel moved | ||
392 | 1089 | into gnome-control-center. | ||
393 | 1090 | * debian/patches/10_optional_wacom_support.patch: Build the Wacom panel | ||
394 | 1091 | conditionally to support plattforms where libwacom-dev is not available. | ||
395 | 1092 | * Bump Standards-Version to 3.9.3. | ||
396 | 1093 | * Add Breaks against libgnome-bluetooth8 since loading booth | ||
397 | 1094 | libgnome-bluetooth8 and libgnome-bluetooth10 will lead to crashes when | ||
398 | 1095 | using the Bluetooth panel. Eventually we should use versioned directories | ||
399 | 1096 | for the gnome-bluetooth plugins but for now the Breaks will do. | ||
400 | 1097 | |||
401 | 1098 | -- Michael Biebl <biebl@debian.org> Sat, 19 May 2012 23:57:55 +0200 | ||
402 | 1099 | |||
403 | 716 | gnome-control-center (1:3.4.2-0ubuntu20) quantal-proposed; urgency=low | 1100 | gnome-control-center (1:3.4.2-0ubuntu20) quantal-proposed; urgency=low |
404 | 717 | 1101 | ||
405 | 718 | * debian/patches/04_new_appearance_settings.patch | 1102 | * debian/patches/04_new_appearance_settings.patch |
406 | @@ -1382,6 +1766,14 @@ | |||
407 | 1382 | 1766 | ||
408 | 1383 | -- Sebastien Bacher <seb128@ubuntu.com> Wed, 15 Feb 2012 23:16:31 +0100 | 1767 | -- Sebastien Bacher <seb128@ubuntu.com> Wed, 15 Feb 2012 23:16:31 +0100 |
409 | 1384 | 1768 | ||
410 | 1769 | gnome-control-center (1:3.2.2-3) unstable; urgency=low | ||
411 | 1770 | |||
412 | 1771 | * debian/patches/92_link_language_chooser_against_fontconfig.patch: Link | ||
413 | 1772 | language chooser panel against fontconfig. Patch cherry-picked from | ||
414 | 1773 | upstream Git. | ||
415 | 1774 | |||
416 | 1775 | -- Michael Biebl <biebl@debian.org> Thu, 29 Mar 2012 23:36:02 +0200 | ||
417 | 1776 | |||
418 | 1385 | gnome-control-center (1:3.2.2-2ubuntu10) precise; urgency=low | 1777 | gnome-control-center (1:3.2.2-2ubuntu10) precise; urgency=low |
419 | 1386 | 1778 | ||
420 | 1387 | * debian/patches/97_unity_power_ui.patch: | 1779 | * debian/patches/97_unity_power_ui.patch: |
421 | 1388 | 1780 | ||
422 | === modified file 'debian/control' | |||
423 | --- debian/control 2014-05-06 09:05:08 +0000 | |||
424 | +++ debian/control 2014-09-30 05:25:02 +0000 | |||
425 | @@ -7,65 +7,62 @@ | |||
426 | 7 | Priority: optional | 7 | Priority: optional |
427 | 8 | Maintainer: Ubuntu Desktop Team <ubuntu-desktop@lists.ubuntu.com> | 8 | Maintainer: Ubuntu Desktop Team <ubuntu-desktop@lists.ubuntu.com> |
428 | 9 | XSBC-Original-Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org> | 9 | XSBC-Original-Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org> |
431 | 10 | Uploaders: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org> | 10 | Uploaders: Andreas Henriksson <andreas@fatal.se>, Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>, Laurent Bigonville <bigon@debian.org>, Sjoerd Simons <sjoerd@debian.org> |
432 | 11 | Standards-Version: 3.9.4 | 11 | Standards-Version: 3.9.5 |
433 | 12 | Build-Depends: autotools-dev, | 12 | Build-Depends: autotools-dev, |
434 | 13 | cdbs (>= 0.4.41), | 13 | cdbs (>= 0.4.41), |
435 | 14 | debhelper (>= 9), | 14 | debhelper (>= 9), |
436 | 15 | dpkg-dev (>= 1.16.1~), | ||
437 | 16 | libaccountsservice-dev (>= 0.6.30), | ||
438 | 15 | desktop-file-utils, | 17 | desktop-file-utils, |
439 | 16 | dh-autoreconf, | 18 | dh-autoreconf, |
440 | 17 | gtk-doc-tools, | ||
441 | 18 | libgirepository1.0-dev (>= 0.9.7), | ||
442 | 19 | gnome-common, | 19 | gnome-common, |
443 | 20 | gnome-pkg-tools (>= 0.10), | 20 | gnome-pkg-tools (>= 0.10), |
447 | 21 | gnome-settings-daemon-dev (>= 3.8.4), | 21 | gnome-settings-daemon-dev (>= 3.7.3), |
448 | 22 | gsettings-desktop-schemas-dev (>= 3.7.2.2), | 22 | gsettings-desktop-schemas-dev (>= 3.9.91), |
449 | 23 | hardening-wrapper, | 23 | gtk-doc-tools, |
450 | 24 | intltool (>= 0.37.1), | 24 | intltool (>= 0.37.1), |
451 | 25 | libcanberra-gtk3-dev, | 25 | libcanberra-gtk3-dev, |
453 | 26 | libcheese-gtk-dev (>= 2.91.91.1), | 26 | libcheese-gtk-dev (>= 3.5.91), |
454 | 27 | libcolord-dev (>= 0.1.29), | 27 | libcolord-dev (>= 0.1.29), |
455 | 28 | libcolord-gtk-dev (>= 0.1.24), | 28 | libcolord-gtk-dev (>= 0.1.24), |
456 | 29 | libcups2-dev, | 29 | libcups2-dev, |
457 | 30 | libdbus-1-dev (>= 0.32), | 30 | libdbus-1-dev (>= 0.32), |
458 | 31 | libdbus-glib-1-dev (>= 0.32), | 31 | libdbus-glib-1-dev (>= 0.32), |
459 | 32 | libgdk-pixbuf2.0-dev (>= 2.23.0), | 32 | libgdk-pixbuf2.0-dev (>= 2.23.0), |
463 | 33 | libglib2.0-dev (>= 2.35.1), | 33 | libgirepository1.0-dev, |
464 | 34 | libgnome-bluetooth-dev (>= 3.3.4), | 34 | libglib2.0-dev (>= 2.37.7), |
465 | 35 | libgnome-desktop-3-dev (>= 3.7.5), | 35 | libgnome-desktop-3-dev (>= 3.11.3), |
466 | 36 | libgnome-menu-3-dev, | 36 | libgnome-menu-3-dev, |
472 | 37 | libgnomekbd-dev, | 37 | libgnomekbd-dev (>= 2.91.91), |
473 | 38 | libgoa-1.0-dev (>= 3.10.0), | 38 | libgnome-bluetooth-dev (>= 3.3.4) [linux-any], |
474 | 39 | libaccountsservice-dev (>= 0.6.30), | 39 | libibus-1.0-dev (>= 1.5.2), |
475 | 40 | libgstreamer-plugins-base0.10-dev, | 40 | libgoa-1.0-dev (>= 3.9.90), |
476 | 41 | libgtk-3-dev (>= 3.7.7), | 41 | libgrilo-0.2-dev (>= 0.2.6), |
477 | 42 | libgtk-3-dev (>= 3.11.1), | ||
478 | 42 | libgtop2-dev, | 43 | libgtop2-dev, |
479 | 43 | libibus-1.0-dev (>= 1.5.0), | ||
480 | 44 | libkrb5-dev, | 44 | libkrb5-dev, |
481 | 45 | libnm-glib-dev (>= 0.9.8) [linux-any], | 45 | libnm-glib-dev (>= 0.9.8) [linux-any], |
484 | 46 | libnm-glib-vpn-dev (>= 0.9.8) [linux-any], | 46 | libnm-glib-vpn-dev (>= 0.9.8) [linux-any], |
485 | 47 | libnm-gtk-dev (>= 0.9.7.995) [linux-any], | 47 | libnm-gtk-dev (>= 0.9.8) [linux-any], |
486 | 48 | libnm-util-dev (>= 0.9.8) [linux-any], | 48 | libnm-util-dev (>= 0.9.8) [linux-any], |
487 | 49 | libmm-glib-dev [linux-any], | 49 | libmm-glib-dev [linux-any], |
488 | 50 | libnotify-dev (>= 0.7.3), | 50 | libnotify-dev (>= 0.7.3), |
489 | 51 | libpolkit-gobject-1-dev (>= 0.103), | 51 | libpolkit-gobject-1-dev (>= 0.103), |
491 | 52 | libpulse-dev (>= 1:2.0), | 52 | libpulse-dev, |
492 | 53 | libpwquality-dev, | 53 | libpwquality-dev, |
498 | 54 | libsmbclient-dev, | 54 | libsmbclient-dev (>= 2:3.6.12), |
499 | 55 | # libsocialweb-client-dev, | 55 | libupower-glib-dev (>= 0.9.0), |
500 | 56 | libupower-glib-dev (>= 0.9.1), | 56 | libwacom-dev (>= 0.7) [linux-any], |
501 | 57 | libsystemd-login-dev, | 57 | libxi-dev (>= 2:1.2), |
497 | 58 | libwacom-dev (>= 0.7), | ||
502 | 59 | libx11-dev, | 58 | libx11-dev, |
503 | 60 | libxft-dev (>= 2.1.2), | 59 | libxft-dev (>= 2.1.2), |
504 | 61 | libxkbfile-dev, | ||
505 | 62 | libxklavier-dev (>= 5.1), | 60 | libxklavier-dev (>= 5.1), |
506 | 63 | libxml2-dev, | 61 | libxml2-dev, |
507 | 64 | locales, | 62 | locales, |
508 | 65 | network-manager-dev (>= 0.9.8) [linux-any], | 63 | network-manager-dev (>= 0.9.8) [linux-any], |
509 | 66 | shared-mime-info, | 64 | shared-mime-info, |
510 | 67 | ttf-ubuntu-font-family, | 65 | ttf-ubuntu-font-family, |
511 | 68 | libwebkitgtk-3.0-dev, | ||
512 | 69 | libgl1-mesa-dev, | 66 | libgl1-mesa-dev, |
513 | 70 | valac (>= 0.20.0), | 67 | valac (>= 0.20.0), |
514 | 71 | Vcs-Bzr: http://code.launchpad.net/~ubuntu-desktop/gnome-control-center/ubuntu | 68 | Vcs-Bzr: http://code.launchpad.net/~ubuntu-desktop/gnome-control-center/ubuntu |
515 | @@ -77,38 +74,40 @@ | |||
516 | 77 | ${shlibs:Depends}, | 74 | ${shlibs:Depends}, |
517 | 78 | accountsservice, | 75 | accountsservice, |
518 | 79 | apg, | 76 | apg, |
519 | 77 | colord (>= 0.1.30), | ||
520 | 80 | desktop-file-utils, | 78 | desktop-file-utils, |
521 | 81 | gkbd-capplet (>= 3.5.90), | ||
522 | 82 | gnome-control-center-data (<< ${gnome:NextVersion}), | 79 | gnome-control-center-data (<< ${gnome:NextVersion}), |
523 | 83 | gnome-control-center-data (>= ${source:Version}), | 80 | gnome-control-center-data (>= ${source:Version}), |
524 | 84 | gnome-desktop3-data, | 81 | gnome-desktop3-data, |
530 | 85 | gnome-icon-theme (>= 2.24), | 82 | gnome-icon-theme (>= 3.7), |
531 | 86 | gnome-icon-theme-symbolic, | 83 | gnome-icon-theme-symbolic (>= 3.7), |
532 | 87 | gnome-menus (>= 2.12.0), | 84 | gnome-menus (>= 3.7.90), |
533 | 88 | gnome-settings-daemon (>= 3.8.4), | 85 | gnome-settings-daemon (>= 3.7.91), |
534 | 89 | gsettings-desktop-schemas (>= 3.5.91), | 86 | gsettings-desktop-schemas (>= 3.9.91), |
535 | 90 | Recommends: cups-pk-helper, | 87 | Recommends: cups-pk-helper, |
538 | 91 | gnome-session-bin, | 88 | gnome-control-center-shared-data, |
539 | 92 | ubuntu-system-service, | 89 | # gnome-session-bin, |
540 | 90 | gnome-user-share, | ||
541 | 91 | gkbd-capplet, | ||
542 | 93 | ibus (>= 1.5.0), | 92 | ibus (>= 1.5.0), |
543 | 94 | iso-codes, | 93 | iso-codes, |
544 | 94 | libcanberra-pulse, | ||
545 | 95 | mousetweaks, | 95 | mousetweaks, |
546 | 96 | ntp, | ||
547 | 96 | policykit-1-gnome, | 97 | policykit-1-gnome, |
548 | 97 | libcanberra-pulse, | ||
549 | 98 | system-config-printer-gnome, | 98 | system-config-printer-gnome, |
552 | 99 | gnome-control-center-shared-data | 99 | cracklib-runtime, |
553 | 100 | Replaces: gnome-bluetooth (<< 3.4.0) | 100 | ubuntu-system-service, |
554 | 101 | Breaks: gnome-power-manager (<< 3.0), | 101 | Breaks: gnome-power-manager (<< 3.0), |
555 | 102 | gnome-session (<< 3.0), | 102 | gnome-session (<< 3.0), |
556 | 103 | libglib2.0-0 (<< 2.28.6-2), | 103 | libglib2.0-0 (<< 2.28.6-2), |
561 | 104 | gnome-bluetooth (<< 3.4.0), | 104 | gnome-bluetooth (<< 3.4), |
562 | 105 | compiz (<< 1:0.9.8+bzr330), | 105 | Replaces: gnome-bluetooth (<< 3.4.0) |
559 | 106 | metacity (<< 1:2.34.2), | ||
560 | 107 | unity (<< 6.2-0ubuntu2~), | ||
563 | 108 | Suggests: gnome-screensaver | xscreensaver, | 106 | Suggests: gnome-screensaver | xscreensaver, |
564 | 109 | gnome-user-guide | ubuntu-docs, | 107 | gnome-user-guide | ubuntu-docs, |
565 | 110 | gstreamer0.10-pulseaudio, | 108 | gstreamer0.10-pulseaudio, |
566 | 111 | libcanberra-gtk-module, | 109 | libcanberra-gtk-module, |
567 | 110 | libcanberra-gtk3-module, | ||
568 | 112 | x11-xserver-utils | 111 | x11-xserver-utils |
569 | 113 | Description: utilities to configure the GNOME desktop | 112 | Description: utilities to configure the GNOME desktop |
570 | 114 | This package contains configuration applets for the GNOME desktop, | 113 | This package contains configuration applets for the GNOME desktop, |
571 | @@ -138,11 +137,13 @@ | |||
572 | 138 | gdm3 (<< 3.0), | 137 | gdm3 (<< 3.0), |
573 | 139 | gnome-media-common (<< 2.91), | 138 | gnome-media-common (<< 2.91), |
574 | 140 | gnome-power-manager (<< 3.2), | 139 | gnome-power-manager (<< 3.2), |
576 | 141 | gnome-settings-daemon (<< 3.0) | 140 | gnome-settings-daemon (<< 3.0), |
577 | 141 | gnome-control-center (<< 1:3.7.92-2~) | ||
578 | 142 | Breaks: gdm (<< 3.0), | 142 | Breaks: gdm (<< 3.0), |
579 | 143 | gdm3 (<< 3.0), | 143 | gdm3 (<< 3.0), |
580 | 144 | gnome-power-manager (<< 3.2), | 144 | gnome-power-manager (<< 3.2), |
582 | 145 | gnome-settings-daemon (<< 3.0) | 145 | gnome-settings-daemon (<< 3.0), |
583 | 146 | gnome-control-center (<< 1:3.7.92-2~) | ||
584 | 146 | Description: configuration applets for GNOME - data files | 147 | Description: configuration applets for GNOME - data files |
585 | 147 | This package contains data files (icons, pixmaps, locales files) needed by | 148 | This package contains data files (icons, pixmaps, locales files) needed by |
586 | 148 | the configuration applets in the gnome-control-center package. | 149 | the configuration applets in the gnome-control-center package. |
587 | 149 | 150 | ||
588 | === modified file 'debian/control.in' | |||
589 | --- debian/control.in 2014-05-06 01:47:50 +0000 | |||
590 | +++ debian/control.in 2014-09-30 05:25:02 +0000 | |||
591 | @@ -4,64 +4,61 @@ | |||
592 | 4 | Maintainer: Ubuntu Desktop Team <ubuntu-desktop@lists.ubuntu.com> | 4 | Maintainer: Ubuntu Desktop Team <ubuntu-desktop@lists.ubuntu.com> |
593 | 5 | XSBC-Original-Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org> | 5 | XSBC-Original-Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org> |
594 | 6 | Uploaders: @GNOME_TEAM@ | 6 | Uploaders: @GNOME_TEAM@ |
596 | 7 | Standards-Version: 3.9.4 | 7 | Standards-Version: 3.9.5 |
597 | 8 | Build-Depends: autotools-dev, | 8 | Build-Depends: autotools-dev, |
598 | 9 | cdbs (>= 0.4.41), | 9 | cdbs (>= 0.4.41), |
599 | 10 | debhelper (>= 9), | 10 | debhelper (>= 9), |
600 | 11 | dpkg-dev (>= 1.16.1~), | ||
601 | 12 | libaccountsservice-dev (>= 0.6.30), | ||
602 | 11 | desktop-file-utils, | 13 | desktop-file-utils, |
603 | 12 | dh-autoreconf, | 14 | dh-autoreconf, |
604 | 13 | gtk-doc-tools, | ||
605 | 14 | libgirepository1.0-dev (>= 0.9.7), | ||
606 | 15 | gnome-common, | 15 | gnome-common, |
607 | 16 | gnome-pkg-tools (>= 0.10), | 16 | gnome-pkg-tools (>= 0.10), |
611 | 17 | gnome-settings-daemon-dev (>= 3.8.4), | 17 | gnome-settings-daemon-dev (>= 3.7.3), |
612 | 18 | gsettings-desktop-schemas-dev (>= 3.7.2.2), | 18 | gsettings-desktop-schemas-dev (>= 3.9.91), |
613 | 19 | hardening-wrapper, | 19 | gtk-doc-tools, |
614 | 20 | intltool (>= 0.37.1), | 20 | intltool (>= 0.37.1), |
615 | 21 | libcanberra-gtk3-dev, | 21 | libcanberra-gtk3-dev, |
617 | 22 | libcheese-gtk-dev (>= 2.91.91.1), | 22 | libcheese-gtk-dev (>= 3.5.91), |
618 | 23 | libcolord-dev (>= 0.1.29), | 23 | libcolord-dev (>= 0.1.29), |
619 | 24 | libcolord-gtk-dev (>= 0.1.24), | 24 | libcolord-gtk-dev (>= 0.1.24), |
620 | 25 | libcups2-dev, | 25 | libcups2-dev, |
621 | 26 | libdbus-1-dev (>= 0.32), | 26 | libdbus-1-dev (>= 0.32), |
622 | 27 | libdbus-glib-1-dev (>= 0.32), | 27 | libdbus-glib-1-dev (>= 0.32), |
623 | 28 | libgdk-pixbuf2.0-dev (>= 2.23.0), | 28 | libgdk-pixbuf2.0-dev (>= 2.23.0), |
627 | 29 | libglib2.0-dev (>= 2.35.1), | 29 | libgirepository1.0-dev, |
628 | 30 | libgnome-bluetooth-dev (>= 3.3.4), | 30 | libglib2.0-dev (>= 2.37.7), |
629 | 31 | libgnome-desktop-3-dev (>= 3.7.5), | 31 | libgnome-desktop-3-dev (>= 3.11.3), |
630 | 32 | libgnome-menu-3-dev, | 32 | libgnome-menu-3-dev, |
636 | 33 | libgnomekbd-dev, | 33 | libgnomekbd-dev (>= 2.91.91), |
637 | 34 | libgoa-1.0-dev (>= 3.10.0), | 34 | libgnome-bluetooth-dev (>= 3.3.4) [linux-any], |
638 | 35 | libaccountsservice-dev (>= 0.6.30), | 35 | libibus-1.0-dev (>= 1.5.2), |
639 | 36 | libgstreamer-plugins-base0.10-dev, | 36 | libgoa-1.0-dev (>= 3.9.90), |
640 | 37 | libgtk-3-dev (>= 3.7.7), | 37 | libgrilo-0.2-dev (>= 0.2.6), |
641 | 38 | libgtk-3-dev (>= 3.11.1), | ||
642 | 38 | libgtop2-dev, | 39 | libgtop2-dev, |
643 | 39 | libibus-1.0-dev (>= 1.5.0), | ||
644 | 40 | libkrb5-dev, | 40 | libkrb5-dev, |
645 | 41 | libnm-glib-dev (>= 0.9.8) [linux-any], | 41 | libnm-glib-dev (>= 0.9.8) [linux-any], |
648 | 42 | libnm-glib-vpn-dev (>= 0.9.8) [linux-any], | 42 | libnm-glib-vpn-dev (>= 0.9.8) [linux-any], |
649 | 43 | libnm-gtk-dev (>= 0.9.7.995) [linux-any], | 43 | libnm-gtk-dev (>= 0.9.8) [linux-any], |
650 | 44 | libnm-util-dev (>= 0.9.8) [linux-any], | 44 | libnm-util-dev (>= 0.9.8) [linux-any], |
651 | 45 | libmm-glib-dev [linux-any], | 45 | libmm-glib-dev [linux-any], |
652 | 46 | libnotify-dev (>= 0.7.3), | 46 | libnotify-dev (>= 0.7.3), |
653 | 47 | libpolkit-gobject-1-dev (>= 0.103), | 47 | libpolkit-gobject-1-dev (>= 0.103), |
655 | 48 | libpulse-dev (>= 1:2.0), | 48 | libpulse-dev, |
656 | 49 | libpwquality-dev, | 49 | libpwquality-dev, |
662 | 50 | libsmbclient-dev, | 50 | libsmbclient-dev (>= 2:3.6.12), |
663 | 51 | # libsocialweb-client-dev, | 51 | libupower-glib-dev (>= 0.9.0), |
664 | 52 | libupower-glib-dev (>= 0.9.1), | 52 | libwacom-dev (>= 0.7) [linux-any], |
665 | 53 | libsystemd-login-dev, | 53 | libxi-dev (>= 2:1.2), |
661 | 54 | libwacom-dev (>= 0.7), | ||
666 | 55 | libx11-dev, | 54 | libx11-dev, |
667 | 56 | libxft-dev (>= 2.1.2), | 55 | libxft-dev (>= 2.1.2), |
668 | 57 | libxkbfile-dev, | ||
669 | 58 | libxklavier-dev (>= 5.1), | 56 | libxklavier-dev (>= 5.1), |
670 | 59 | libxml2-dev, | 57 | libxml2-dev, |
671 | 60 | locales, | 58 | locales, |
672 | 61 | network-manager-dev (>= 0.9.8) [linux-any], | 59 | network-manager-dev (>= 0.9.8) [linux-any], |
673 | 62 | shared-mime-info, | 60 | shared-mime-info, |
674 | 63 | ttf-ubuntu-font-family, | 61 | ttf-ubuntu-font-family, |
675 | 64 | libwebkitgtk-3.0-dev, | ||
676 | 65 | libgl1-mesa-dev, | 62 | libgl1-mesa-dev, |
677 | 66 | valac (>= 0.20.0), | 63 | valac (>= 0.20.0), |
678 | 67 | Vcs-Bzr: http://code.launchpad.net/~ubuntu-desktop/gnome-control-center/ubuntu | 64 | Vcs-Bzr: http://code.launchpad.net/~ubuntu-desktop/gnome-control-center/ubuntu |
679 | @@ -73,38 +70,40 @@ | |||
680 | 73 | ${shlibs:Depends}, | 70 | ${shlibs:Depends}, |
681 | 74 | accountsservice, | 71 | accountsservice, |
682 | 75 | apg, | 72 | apg, |
683 | 73 | colord (>= 0.1.30), | ||
684 | 76 | desktop-file-utils, | 74 | desktop-file-utils, |
685 | 77 | gkbd-capplet (>= 3.5.90), | ||
686 | 78 | gnome-control-center-data (<< ${gnome:NextVersion}), | 75 | gnome-control-center-data (<< ${gnome:NextVersion}), |
687 | 79 | gnome-control-center-data (>= ${source:Version}), | 76 | gnome-control-center-data (>= ${source:Version}), |
688 | 80 | gnome-desktop3-data, | 77 | gnome-desktop3-data, |
694 | 81 | gnome-icon-theme (>= 2.24), | 78 | gnome-icon-theme (>= 3.7), |
695 | 82 | gnome-icon-theme-symbolic, | 79 | gnome-icon-theme-symbolic (>= 3.7), |
696 | 83 | gnome-menus (>= 2.12.0), | 80 | gnome-menus (>= 3.7.90), |
697 | 84 | gnome-settings-daemon (>= 3.8.4), | 81 | gnome-settings-daemon (>= 3.7.91), |
698 | 85 | gsettings-desktop-schemas (>= 3.5.91), | 82 | gsettings-desktop-schemas (>= 3.9.91), |
699 | 86 | Recommends: cups-pk-helper, | 83 | Recommends: cups-pk-helper, |
702 | 87 | gnome-session-bin, | 84 | gnome-control-center-shared-data, |
703 | 88 | ubuntu-system-service, | 85 | # gnome-session-bin, |
704 | 86 | gnome-user-share, | ||
705 | 87 | gkbd-capplet, | ||
706 | 89 | ibus (>= 1.5.0), | 88 | ibus (>= 1.5.0), |
707 | 90 | iso-codes, | 89 | iso-codes, |
708 | 90 | libcanberra-pulse, | ||
709 | 91 | mousetweaks, | 91 | mousetweaks, |
710 | 92 | ntp, | ||
711 | 92 | policykit-1-gnome, | 93 | policykit-1-gnome, |
712 | 93 | libcanberra-pulse, | ||
713 | 94 | system-config-printer-gnome, | 94 | system-config-printer-gnome, |
716 | 95 | gnome-control-center-shared-data | 95 | cracklib-runtime, |
717 | 96 | Replaces: gnome-bluetooth (<< 3.4.0) | 96 | ubuntu-system-service, |
718 | 97 | Breaks: gnome-power-manager (<< 3.0), | 97 | Breaks: gnome-power-manager (<< 3.0), |
719 | 98 | gnome-session (<< 3.0), | 98 | gnome-session (<< 3.0), |
720 | 99 | libglib2.0-0 (<< 2.28.6-2), | 99 | libglib2.0-0 (<< 2.28.6-2), |
725 | 100 | gnome-bluetooth (<< 3.4.0), | 100 | gnome-bluetooth (<< 3.4), |
726 | 101 | compiz (<< 1:0.9.8+bzr330), | 101 | Replaces: gnome-bluetooth (<< 3.4.0) |
723 | 102 | metacity (<< 1:2.34.2), | ||
724 | 103 | unity (<< 6.2-0ubuntu2~), | ||
727 | 104 | Suggests: gnome-screensaver | xscreensaver, | 102 | Suggests: gnome-screensaver | xscreensaver, |
728 | 105 | gnome-user-guide | ubuntu-docs, | 103 | gnome-user-guide | ubuntu-docs, |
729 | 106 | gstreamer0.10-pulseaudio, | 104 | gstreamer0.10-pulseaudio, |
730 | 107 | libcanberra-gtk-module, | 105 | libcanberra-gtk-module, |
731 | 106 | libcanberra-gtk3-module, | ||
732 | 108 | x11-xserver-utils | 107 | x11-xserver-utils |
733 | 109 | Description: utilities to configure the GNOME desktop | 108 | Description: utilities to configure the GNOME desktop |
734 | 110 | This package contains configuration applets for the GNOME desktop, | 109 | This package contains configuration applets for the GNOME desktop, |
735 | @@ -134,11 +133,13 @@ | |||
736 | 134 | gdm3 (<< 3.0), | 133 | gdm3 (<< 3.0), |
737 | 135 | gnome-media-common (<< 2.91), | 134 | gnome-media-common (<< 2.91), |
738 | 136 | gnome-power-manager (<< 3.2), | 135 | gnome-power-manager (<< 3.2), |
740 | 137 | gnome-settings-daemon (<< 3.0) | 136 | gnome-settings-daemon (<< 3.0), |
741 | 137 | gnome-control-center (<< 1:3.7.92-2~) | ||
742 | 138 | Breaks: gdm (<< 3.0), | 138 | Breaks: gdm (<< 3.0), |
743 | 139 | gdm3 (<< 3.0), | 139 | gdm3 (<< 3.0), |
744 | 140 | gnome-power-manager (<< 3.2), | 140 | gnome-power-manager (<< 3.2), |
746 | 141 | gnome-settings-daemon (<< 3.0) | 141 | gnome-settings-daemon (<< 3.0), |
747 | 142 | gnome-control-center (<< 1:3.7.92-2~) | ||
748 | 142 | Description: configuration applets for GNOME - data files | 143 | Description: configuration applets for GNOME - data files |
749 | 143 | This package contains data files (icons, pixmaps, locales files) needed by | 144 | This package contains data files (icons, pixmaps, locales files) needed by |
750 | 144 | the configuration applets in the gnome-control-center package. | 145 | the configuration applets in the gnome-control-center package. |
751 | 145 | 146 | ||
752 | === added file 'debian/gnome-control-center-data.maintscript' | |||
753 | --- debian/gnome-control-center-data.maintscript 1970-01-01 00:00:00 +0000 | |||
754 | +++ debian/gnome-control-center-data.maintscript 2014-09-30 05:25:02 +0000 | |||
755 | @@ -0,0 +1,2 @@ | |||
756 | 1 | rm_conffile /etc/xdg/menus/gnomecc.menu 1:3.8.3-2~ | ||
757 | 2 | rm_conffile /etc/xdg/autostart/gnome-sound-applet.desktop 1:3.8.3-2~ | ||
758 | 0 | 3 | ||
759 | === added file 'debian/gnome-control-center-data.postinst' | |||
760 | --- debian/gnome-control-center-data.postinst 1970-01-01 00:00:00 +0000 | |||
761 | +++ debian/gnome-control-center-data.postinst 2014-09-30 05:25:02 +0000 | |||
762 | @@ -0,0 +1,8 @@ | |||
763 | 1 | #! /bin/sh | ||
764 | 2 | set -e | ||
765 | 3 | |||
766 | 4 | if [ "$1" = configure ] && dpkg --compare-versions "$2" lt-nl "1:2.26"; then | ||
767 | 5 | rm -f /etc/xdg/autostart/gnome-at-session.desktop | ||
768 | 6 | fi | ||
769 | 7 | |||
770 | 8 | #DEBHELPER# | ||
771 | 0 | 9 | ||
772 | === modified file 'debian/gnome-control-center.install' | |||
773 | --- debian/gnome-control-center.install 2014-02-12 00:19:03 +0000 | |||
774 | +++ debian/gnome-control-center.install 2014-09-30 05:25:02 +0000 | |||
775 | @@ -1,3 +1,8 @@ | |||
777 | 1 | usr/bin/gnome-control-center | 1 | usr/bin |
778 | 2 | usr/share/applications | 2 | usr/share/applications |
779 | 3 | usr/share/man | 3 | usr/share/man |
780 | 4 | usr/lib/gnome-control-center | ||
781 | 5 | usr/share/bash-completion | ||
782 | 6 | usr/share/dbus-1 | ||
783 | 7 | usr/share/gnome-shell | ||
784 | 8 | |||
785 | 4 | 9 | ||
786 | === modified file 'debian/gnome-control-center.pkla' | |||
787 | --- debian/gnome-control-center.pkla 2013-04-10 20:04:02 +0000 | |||
788 | +++ debian/gnome-control-center.pkla 2014-09-30 05:25:02 +0000 | |||
789 | @@ -1,4 +1,4 @@ | |||
791 | 1 | [Allow admins to set the hostname without prompting] | 1 | [Allow admins to set the hostname,locale,keyboard,date/time without prompting] |
792 | 2 | Identity=unix-group:admin;unix-group:sudo | 2 | Identity=unix-group:admin;unix-group:sudo |
794 | 3 | Action=org.freedesktop.hostname1.set-static-hostname;org.freedesktop.hostname1.set-hostname | 3 | Action=org.freedesktop.locale1.set-locale;org.freedesktop.locale1.set-keyboard;org.freedesktop.hostname1.set-static-hostname;org.freedesktop.hostname1.set-hostname;org.gnome.controlcenter.datetime.configure |
795 | 4 | ResultActive=yes | 4 | ResultActive=yes |
796 | 5 | 5 | ||
797 | === added file 'debian/gnome-control-center.postinst' | |||
798 | --- debian/gnome-control-center.postinst 1970-01-01 00:00:00 +0000 | |||
799 | +++ debian/gnome-control-center.postinst 2014-09-30 05:25:02 +0000 | |||
800 | @@ -0,0 +1,7 @@ | |||
801 | 1 | #! /bin/sh | ||
802 | 2 | set -e | ||
803 | 3 | |||
804 | 4 | rm -f /etc/gnome-vfs-2.0/modules/theme-method.conf | ||
805 | 5 | rm -f /etc/gnome-vfs-2.0/modules/font-method.conf | ||
806 | 6 | |||
807 | 7 | #DEBHELPER# | ||
808 | 0 | 8 | ||
809 | === added file 'debian/gnome-control-center.postrm' | |||
810 | --- debian/gnome-control-center.postrm 1970-01-01 00:00:00 +0000 | |||
811 | +++ debian/gnome-control-center.postrm 2014-09-30 05:25:02 +0000 | |||
812 | @@ -0,0 +1,12 @@ | |||
813 | 1 | #! /bin/sh | ||
814 | 2 | set -e | ||
815 | 3 | |||
816 | 4 | case "$1" in | ||
817 | 5 | purge) | ||
818 | 6 | rm -f /etc/gnome-settings-daemon/xrandr/monitors.xml || true | ||
819 | 7 | ;; | ||
820 | 8 | *) | ||
821 | 9 | ;; | ||
822 | 10 | esac | ||
823 | 11 | |||
824 | 12 | #DEBHELPER# | ||
825 | 0 | 13 | ||
826 | === added file 'debian/patches/01_menu_category.patch' | |||
827 | --- debian/patches/01_menu_category.patch 1970-01-01 00:00:00 +0000 | |||
828 | +++ debian/patches/01_menu_category.patch 2014-09-30 05:25:02 +0000 | |||
829 | @@ -0,0 +1,13 @@ | |||
830 | 1 | diff --git a/shell/gnome-control-center.desktop.in.in b/shell/gnome-control-center.desktop.in.in | ||
831 | 2 | index a7160bd..b8c543f 100644 | ||
832 | 3 | --- a/shell/gnome-control-center.desktop.in.in | ||
833 | 4 | +++ b/shell/gnome-control-center.desktop.in.in | ||
834 | 5 | @@ -5,7 +5,7 @@ Exec=gnome-control-center --overview | ||
835 | 6 | Terminal=false | ||
836 | 7 | Type=Application | ||
837 | 8 | StartupNotify=true | ||
838 | 9 | -Categories=GNOME;GTK;System; | ||
839 | 10 | +Categories=GNOME;GTK;Settings; | ||
840 | 11 | OnlyShowIn=GNOME;Unity; | ||
841 | 12 | X-GNOME-Bugzilla-Bugzilla=GNOME | ||
842 | 13 | X-GNOME-Bugzilla-Product=gnome-control-center | ||
843 | 0 | 14 | ||
844 | === removed file 'debian/patches/02_new_goa.patch' | |||
845 | --- debian/patches/02_new_goa.patch 2014-02-12 00:19:03 +0000 | |||
846 | +++ debian/patches/02_new_goa.patch 1970-01-01 00:00:00 +0000 | |||
847 | @@ -1,46 +0,0 @@ | |||
848 | 1 | Index: gnome-control-center-3.8.6/panels/online-accounts/cc-online-accounts-panel.c | ||
849 | 2 | =================================================================== | ||
850 | 3 | --- gnome-control-center-3.8.6.orig/panels/online-accounts/cc-online-accounts-panel.c 2013-12-12 14:00:10.759923318 +1300 | ||
851 | 4 | +++ gnome-control-center-3.8.6/panels/online-accounts/cc-online-accounts-panel.c 2013-12-12 14:00:10.755923318 +1300 | ||
852 | 5 | @@ -617,8 +617,11 @@ | ||
853 | 6 | /* ---------------------------------------------------------------------------------------------------- */ | ||
854 | 7 | |||
855 | 8 | static void | ||
856 | 9 | -add_account (CcGoaPanel *panel) | ||
857 | 10 | +get_all_providers_cb (GObject *source, | ||
858 | 11 | + GAsyncResult *res, | ||
859 | 12 | + gpointer user_data) | ||
860 | 13 | { | ||
861 | 14 | + CcGoaPanel *panel = CC_GOA_PANEL (user_data); | ||
862 | 15 | GtkWindow *parent; | ||
863 | 16 | GtkWidget *dialog; | ||
864 | 17 | gint response; | ||
865 | 18 | @@ -629,12 +632,14 @@ | ||
866 | 19 | |||
867 | 20 | providers = NULL; | ||
868 | 21 | |||
869 | 22 | + if (!goa_provider_get_all_finish (&providers, res, NULL)) | ||
870 | 23 | + goto out; | ||
871 | 24 | + | ||
872 | 25 | parent = GTK_WINDOW (cc_shell_get_toplevel (cc_panel_get_shell (CC_PANEL (panel)))); | ||
873 | 26 | |||
874 | 27 | dialog = goa_panel_add_account_dialog_new (panel->client); | ||
875 | 28 | gtk_window_set_transient_for (GTK_WINDOW (dialog), parent); | ||
876 | 29 | |||
877 | 30 | - providers = goa_provider_get_all (); | ||
878 | 31 | for (l = providers; l != NULL; l = l->next) | ||
879 | 32 | { | ||
880 | 33 | GoaProvider *provider; | ||
881 | 34 | @@ -697,6 +703,12 @@ | ||
882 | 35 | g_list_free (providers); | ||
883 | 36 | } | ||
884 | 37 | |||
885 | 38 | +static void | ||
886 | 39 | +add_account (CcGoaPanel *panel) | ||
887 | 40 | +{ | ||
888 | 41 | + goa_provider_get_all (get_all_providers_cb, panel); | ||
889 | 42 | +} | ||
890 | 43 | + | ||
891 | 44 | /* ---------------------------------------------------------------------------------------------------- */ | ||
892 | 45 | |||
893 | 46 | static void | ||
894 | 47 | 0 | ||
895 | === added file 'debian/patches/06_handle_passwd_with_ldap.patch' | |||
896 | --- debian/patches/06_handle_passwd_with_ldap.patch 1970-01-01 00:00:00 +0000 | |||
897 | +++ debian/patches/06_handle_passwd_with_ldap.patch 2014-09-30 05:25:02 +0000 | |||
898 | @@ -0,0 +1,19 @@ | |||
899 | 1 | Description: Handle the case where passwd re-asks for the current password when it was entered incorrectly (when using LDAP) | ||
900 | 2 | Based on a patch from Ryan Tandy | ||
901 | 3 | Author: Chris Coulson <chris.coulson@canonical.com> | ||
902 | 4 | Bug-Ubuntu: https:/launchpad.net/bugs/607357 | ||
903 | 5 | Forwarded: no | ||
904 | 6 | |||
905 | 7 | Index: gnome-control-center-3.3.91/panels/user-accounts/run-passwd.c | ||
906 | 8 | =================================================================== | ||
907 | 9 | --- gnome-control-center-3.3.91.orig/panels/user-accounts/run-passwd.c 2011-08-25 17:09:31.000000000 +0200 | ||
908 | 10 | +++ gnome-control-center-3.3.91/panels/user-accounts/run-passwd.c 2012-03-06 17:52:14.335082975 +0100 | ||
909 | 11 | @@ -408,7 +408,7 @@ | ||
910 | 12 | |||
911 | 13 | if (is_string_complete (str->str, "assword: ", "failure", "wrong", "error", NULL)) { | ||
912 | 14 | |||
913 | 15 | - if (strstr (str->str, "assword: ") != NULL) { | ||
914 | 16 | + if (strstr (str->str, "assword: ") != NULL && strstr (str->str, "incorrect") == NULL) { | ||
915 | 17 | /* Authentication successful */ | ||
916 | 18 | |||
917 | 19 | passwd_handler->backend_state = PASSWD_STATE_NEW; | ||
918 | 0 | 20 | ||
919 | === added file 'debian/patches/07_polkit_wheel_sudo_group.patch' | |||
920 | --- debian/patches/07_polkit_wheel_sudo_group.patch 1970-01-01 00:00:00 +0000 | |||
921 | +++ debian/patches/07_polkit_wheel_sudo_group.patch 2014-09-30 05:25:02 +0000 | |||
922 | @@ -0,0 +1,16 @@ | |||
923 | 1 | Description: The "wheel" group is not existing on debian, check the "sudo" one instead | ||
924 | 2 | Author: Laurent Bigonville <bigon@debian.org> | ||
925 | 3 | Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760722 | ||
926 | 4 | Forwarded: not-needed | ||
927 | 5 | |||
928 | 6 | --- a/panels/common/gnome-control-center.rules | ||
929 | 7 | +++ b/panels/common/gnome-control-center.rules | ||
930 | 8 | @@ -6,7 +6,7 @@ polkit.addRule(function(action, subject) | ||
931 | 9 | action.id == "org.gnome.controlcenter.datetime.configure") && | ||
932 | 10 | subject.local && | ||
933 | 11 | subject.active && | ||
934 | 12 | - subject.isInGroup ("wheel")) { | ||
935 | 13 | + subject.isInGroup ("sudo")) { | ||
936 | 14 | return polkit.Result.YES; | ||
937 | 15 | } | ||
938 | 16 | }); | ||
939 | 0 | 17 | ||
940 | === modified file 'debian/patches/52_region_language.patch' | |||
941 | --- debian/patches/52_region_language.patch 2014-02-12 00:19:03 +0000 | |||
942 | +++ debian/patches/52_region_language.patch 2014-09-30 05:25:02 +0000 | |||
943 | @@ -140,7 +140,7 @@ | |||
944 | 140 | g_debug ("Trying to select lang '%s' in treeview", lang); | 140 | g_debug ("Trying to select lang '%s' in treeview", lang); |
945 | 141 | model = gtk_tree_view_get_model (treeview); | 141 | model = gtk_tree_view_get_model (treeview); |
946 | 142 | found = FALSE; | 142 | found = FALSE; |
948 | 143 | @@ -513,6 +574,7 @@ | 143 | @@ -518,6 +579,7 @@ |
949 | 144 | return lang; | 144 | return lang; |
950 | 145 | } | 145 | } |
951 | 146 | 146 | ||
952 | @@ -148,7 +148,7 @@ | |||
953 | 148 | static void | 148 | static void |
954 | 149 | add_other_users_language (GHashTable *ht) | 149 | add_other_users_language (GHashTable *ht) |
955 | 150 | { | 150 | { |
957 | 151 | @@ -573,6 +635,7 @@ | 151 | @@ -578,6 +640,7 @@ |
958 | 152 | 152 | ||
959 | 153 | g_object_unref (proxy); | 153 | g_object_unref (proxy); |
960 | 154 | } | 154 | } |
961 | @@ -156,7 +156,7 @@ | |||
962 | 156 | 156 | ||
963 | 157 | static void | 157 | static void |
964 | 158 | insert_language (GHashTable *ht, | 158 | insert_language (GHashTable *ht, |
966 | 159 | @@ -596,10 +659,10 @@ | 159 | @@ -601,10 +664,10 @@ |
967 | 160 | 160 | ||
968 | 161 | g_debug ("We have translations for %s", lang); | 161 | g_debug ("We have translations for %s", lang); |
969 | 162 | 162 | ||
970 | @@ -169,7 +169,7 @@ | |||
971 | 169 | 169 | ||
972 | 170 | label_own_lang = gnome_get_language_from_locale (key, key); | 170 | label_own_lang = gnome_get_language_from_locale (key, key); |
973 | 171 | label_current_lang = gnome_get_language_from_locale (key, NULL); | 171 | label_current_lang = gnome_get_language_from_locale (key, NULL); |
975 | 172 | @@ -625,9 +688,18 @@ | 172 | @@ -630,9 +693,18 @@ |
976 | 173 | cc_common_language_get_initial_languages (void) | 173 | cc_common_language_get_initial_languages (void) |
977 | 174 | { | 174 | { |
978 | 175 | GHashTable *ht; | 175 | GHashTable *ht; |
979 | @@ -188,7 +188,7 @@ | |||
980 | 188 | insert_language (ht, "en_US"); | 188 | insert_language (ht, "en_US"); |
981 | 189 | insert_language (ht, "en_GB"); | 189 | insert_language (ht, "en_GB"); |
982 | 190 | insert_language (ht, "de_DE"); | 190 | insert_language (ht, "de_DE"); |
984 | 191 | @@ -637,7 +709,7 @@ | 191 | @@ -642,7 +714,7 @@ |
985 | 192 | insert_language (ht, "ja_JP"); | 192 | insert_language (ht, "ja_JP"); |
986 | 193 | insert_language (ht, "ru_RU"); | 193 | insert_language (ht, "ru_RU"); |
987 | 194 | insert_language (ht, "ar_EG"); | 194 | insert_language (ht, "ar_EG"); |
988 | @@ -197,7 +197,7 @@ | |||
989 | 197 | return ht; | 197 | return ht; |
990 | 198 | } | 198 | } |
991 | 199 | 199 | ||
993 | 200 | @@ -651,10 +723,10 @@ | 200 | @@ -656,10 +728,10 @@ |
994 | 201 | ht = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); | 201 | ht = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); |
995 | 202 | 202 | ||
996 | 203 | /* Add the languages used by other users on the system */ | 203 | /* Add the languages used by other users on the system */ |
997 | @@ -210,7 +210,7 @@ | |||
998 | 210 | if (g_hash_table_lookup (ht, name) == NULL) { | 210 | if (g_hash_table_lookup (ht, name) == NULL) { |
999 | 211 | language = gnome_get_language_from_locale (name, NULL); | 211 | language = gnome_get_language_from_locale (name, NULL); |
1000 | 212 | g_hash_table_insert (ht, name, language); | 212 | g_hash_table_insert (ht, name, language); |
1002 | 213 | @@ -703,6 +775,28 @@ | 213 | @@ -708,6 +780,28 @@ |
1003 | 214 | return ht; | 214 | return ht; |
1004 | 215 | } | 215 | } |
1005 | 216 | 216 | ||
1006 | @@ -239,7 +239,7 @@ | |||
1007 | 239 | static void | 239 | static void |
1008 | 240 | foreach_user_lang_cb (gpointer key, | 240 | foreach_user_lang_cb (gpointer key, |
1009 | 241 | gpointer value, | 241 | gpointer value, |
1011 | 242 | @@ -734,7 +828,7 @@ | 242 | @@ -739,7 +833,7 @@ |
1012 | 243 | user_langs = cc_common_language_get_initial_languages (); | 243 | user_langs = cc_common_language_get_initial_languages (); |
1013 | 244 | 244 | ||
1014 | 245 | /* Add the current locale first */ | 245 | /* Add the current locale first */ |
1015 | @@ -248,7 +248,7 @@ | |||
1016 | 248 | display = g_hash_table_lookup (user_langs, name); | 248 | display = g_hash_table_lookup (user_langs, name); |
1017 | 249 | if (!display) { | 249 | if (!display) { |
1018 | 250 | insert_language (user_langs, name); | 250 | insert_language (user_langs, name); |
1020 | 251 | @@ -750,8 +844,8 @@ | 251 | @@ -755,8 +849,8 @@ |
1021 | 252 | g_hash_table_foreach (user_langs, (GHFunc) foreach_user_lang_cb, store); | 252 | g_hash_table_foreach (user_langs, (GHFunc) foreach_user_lang_cb, store); |
1022 | 253 | 253 | ||
1023 | 254 | /* And now the "Otherā¦" selection */ | 254 | /* And now the "Otherā¦" selection */ |
1024 | @@ -287,8 +287,8 @@ | |||
1025 | 287 | * Copyright (C) 2013 Red Hat, Inc | 287 | * Copyright (C) 2013 Red Hat, Inc |
1026 | 288 | * | 288 | * |
1027 | 289 | * This program is free software; you can redistribute it and/or modify | 289 | * This program is free software; you can redistribute it and/or modify |
1030 | 290 | @@ -79,7 +78,9 @@ | 290 | @@ -335,7 +334,9 @@ |
1031 | 291 | egg_list_box_refilter (EGG_LIST_BOX (priv->language_list)); | 291 | gtk_list_box_invalidate_filter (GTK_LIST_BOX (priv->language_list)); |
1032 | 292 | } | 292 | } |
1033 | 293 | } else { | 293 | } else { |
1034 | 294 | + | 294 | + |
1035 | @@ -299,7 +299,7 @@ | |||
1036 | 299 | g_list_free (children); | 299 | g_list_free (children); |
1037 | 300 | --- a/panels/region/cc-format-chooser.c | 300 | --- a/panels/region/cc-format-chooser.c |
1038 | 301 | +++ b/panels/region/cc-format-chooser.c | 301 | +++ b/panels/region/cc-format-chooser.c |
1040 | 302 | @@ -170,7 +170,9 @@ | 302 | @@ -168,7 +168,9 @@ |
1041 | 303 | 303 | ||
1042 | 304 | } else { | 304 | } else { |
1043 | 305 | /* mark as unselected */ | 305 | /* mark as unselected */ |
1044 | @@ -311,7 +311,7 @@ | |||
1045 | 311 | g_list_free (children); | 311 | g_list_free (children); |
1046 | 312 | --- a/panels/region/cc-input-chooser.c | 312 | --- a/panels/region/cc-input-chooser.c |
1047 | 313 | +++ b/panels/region/cc-input-chooser.c | 313 | +++ b/panels/region/cc-input-chooser.c |
1049 | 314 | @@ -909,7 +909,7 @@ | 314 | @@ -891,7 +891,7 @@ |
1050 | 315 | lang_code != NULL && | 315 | lang_code != NULL && |
1051 | 316 | country_code != NULL) | 316 | country_code != NULL) |
1052 | 317 | { | 317 | { |
1053 | @@ -320,7 +320,7 @@ | |||
1054 | 320 | 320 | ||
1055 | 321 | info = g_hash_table_lookup (priv->locales, locale); | 321 | info = g_hash_table_lookup (priv->locales, locale); |
1056 | 322 | if (info) | 322 | if (info) |
1058 | 323 | @@ -1034,7 +1034,7 @@ | 323 | @@ -1016,7 +1016,7 @@ |
1059 | 324 | if (!gnome_parse_locale (*locale, &lang_code, &country_code, NULL, NULL)) | 324 | if (!gnome_parse_locale (*locale, &lang_code, &country_code, NULL, NULL)) |
1060 | 325 | continue; | 325 | continue; |
1061 | 326 | 326 | ||
1062 | @@ -331,7 +331,7 @@ | |||
1063 | 331 | g_free (simple_locale); | 331 | g_free (simple_locale); |
1064 | 332 | --- a/panels/region/cc-region-panel.c | 332 | --- a/panels/region/cc-region-panel.c |
1065 | 333 | +++ b/panels/region/cc-region-panel.c | 333 | +++ b/panels/region/cc-region-panel.c |
1067 | 334 | @@ -404,14 +404,55 @@ | 334 | @@ -424,6 +424,47 @@ |
1068 | 335 | } | 335 | } |
1069 | 336 | 336 | ||
1070 | 337 | static void | 337 | static void |
1071 | @@ -379,17 +379,15 @@ | |||
1072 | 379 | update_region (CcRegionPanel *self, | 379 | update_region (CcRegionPanel *self, |
1073 | 380 | const gchar *region) | 380 | const gchar *region) |
1074 | 381 | { | 381 | { |
1086 | 382 | - CcRegionPanelPrivate *priv = self->priv; | 382 | @@ -434,6 +475,7 @@ |
1087 | 383 | + CcRegionPanelPrivate *priv = self->priv; | 383 | } else { |
1088 | 384 | 384 | if (g_strcmp0 (region, priv->region) == 0) | |
1089 | 385 | if (g_strcmp0 (region, priv->region) == 0) | 385 | return; |
1090 | 386 | return; | 386 | + set_formats_locale(region); |
1091 | 387 | - | 387 | g_settings_set_string (priv->locale_settings, KEY_REGION, region); |
1092 | 388 | + set_formats_locale(region); | 388 | if (priv->login_auto_apply) |
1093 | 389 | g_settings_set_string (priv->locale_settings, KEY_REGION, region); | 389 | set_system_region (self, region); |
1094 | 390 | maybe_notify (self, LC_TIME, region); | 390 | @@ -595,7 +637,7 @@ |
1084 | 391 | } | ||
1085 | 392 | @@ -545,7 +586,7 @@ | ||
1095 | 393 | CcRegionPanelPrivate *priv = self->priv; | 391 | CcRegionPanelPrivate *priv = self->priv; |
1096 | 394 | 392 | ||
1097 | 395 | g_free (priv->region); | 393 | g_free (priv->region); |
1098 | @@ -398,20 +396,21 @@ | |||
1099 | 398 | update_region_label (self); | 396 | update_region_label (self); |
1100 | 399 | } | 397 | } |
1101 | 400 | 398 | ||
1103 | 401 | @@ -576,14 +617,16 @@ | 399 | @@ -628,15 +670,17 @@ |
1104 | 400 | update_language_from_user (CcRegionPanel *self) | ||
1105 | 402 | { | 401 | { |
1106 | 403 | CcRegionPanelPrivate *priv = self->priv; | 402 | CcRegionPanelPrivate *priv = self->priv; |
1109 | 404 | const gchar *language; | 403 | - const gchar *language; |
1110 | 405 | - | 404 | + const gchar *language, *locale; |
1111 | 405 | |||
1112 | 406 | - if (act_user_is_loaded (priv->user)) | 406 | - if (act_user_is_loaded (priv->user)) |
1113 | 407 | + const gchar *locale; | ||
1114 | 408 | + if (act_user_is_loaded (priv->user)){ | 407 | + if (act_user_is_loaded (priv->user)){ |
1115 | 409 | language = act_user_get_language (priv->user); | 408 | language = act_user_get_language (priv->user); |
1116 | 410 | + cc_common_language_get_locale (language, &locale); | 409 | + cc_common_language_get_locale (language, &locale); |
1117 | 411 | + } | 410 | + } |
1118 | 412 | else | 411 | else |
1121 | 413 | - language = "en_US.utf-8"; | 412 | - language = setlocale (LC_MESSAGES, NULL); |
1122 | 414 | + locale = "en_US.UTF-8"; | 413 | + locale = setlocale (LC_MESSAGES, NULL); |
1123 | 415 | 414 | ||
1124 | 416 | g_free (priv->language); | 415 | g_free (priv->language); |
1125 | 417 | - priv->language = g_strdup (language); | 416 | - priv->language = g_strdup (language); |
1126 | @@ -419,7 +418,7 @@ | |||
1127 | 419 | update_language_label (self); | 418 | update_language_label (self); |
1128 | 420 | } | 419 | } |
1129 | 421 | 420 | ||
1131 | 422 | @@ -1428,6 +1471,16 @@ | 421 | @@ -1484,6 +1528,16 @@ |
1132 | 423 | update_buttons (self); | 422 | update_buttons (self); |
1133 | 424 | } | 423 | } |
1134 | 425 | 424 | ||
1135 | @@ -436,7 +435,7 @@ | |||
1136 | 436 | static void | 435 | static void |
1137 | 437 | on_localed_properties_changed (GDBusProxy *proxy, | 436 | on_localed_properties_changed (GDBusProxy *proxy, |
1138 | 438 | GVariant *changed_properties, | 437 | GVariant *changed_properties, |
1140 | 439 | @@ -1442,34 +1495,49 @@ | 438 | @@ -1498,34 +1552,50 @@ |
1141 | 440 | const gchar **strv; | 439 | const gchar **strv; |
1142 | 441 | gsize len; | 440 | gsize len; |
1143 | 442 | gint i; | 441 | gint i; |
1144 | @@ -468,11 +467,12 @@ | |||
1145 | 468 | + g_free (strv); | 467 | + g_free (strv); |
1146 | 469 | + | 468 | + |
1147 | 470 | if (!lang) { | 469 | if (!lang) { |
1149 | 471 | - lang = ""; | 470 | - lang = setlocale (LC_MESSAGES, NULL); |
1150 | 472 | + lang = g_strdup ("en_US.UTF-8"); | 471 | + lang = g_strdup ("en_US.UTF-8"); |
1151 | 473 | } | 472 | } |
1152 | 474 | - if (!messages) { | 473 | - if (!messages) { |
1153 | 475 | - messages = lang; | 474 | - messages = lang; |
1154 | 475 | + | ||
1155 | 476 | + if (!language) { | 476 | + if (!language) { |
1156 | 477 | + if (messages) | 477 | + if (messages) |
1157 | 478 | + language = g_strdup (messages); | 478 | + language = g_strdup (messages); |
1158 | @@ -496,7 +496,7 @@ | |||
1159 | 496 | 496 | ||
1160 | 497 | update_language_label (self); | 497 | update_language_label (self); |
1161 | 498 | } | 498 | } |
1163 | 499 | @@ -1539,29 +1607,28 @@ | 499 | @@ -1595,29 +1665,28 @@ |
1164 | 500 | CcRegionPanelPrivate *priv = self->priv; | 500 | CcRegionPanelPrivate *priv = self->priv; |
1165 | 501 | GVariantBuilder *b; | 501 | GVariantBuilder *b; |
1166 | 502 | gchar *s; | 502 | gchar *s; |
1167 | @@ -542,7 +542,7 @@ | |||
1168 | 542 | g_variant_new ("(asb)", b, TRUE), | 542 | g_variant_new ("(asb)", b, TRUE), |
1169 | 543 | --- a/panels/user-accounts/um-user-panel.c | 543 | --- a/panels/user-accounts/um-user-panel.c |
1170 | 544 | +++ b/panels/user-accounts/um-user-panel.c | 544 | +++ b/panels/user-accounts/um-user-panel.c |
1172 | 545 | @@ -697,8 +697,9 @@ | 545 | @@ -701,8 +701,9 @@ |
1173 | 546 | cc_common_language_add_user_languages (model); | 546 | cc_common_language_add_user_languages (model); |
1174 | 547 | 547 | ||
1175 | 548 | lang = g_strdup (act_user_get_language (user)); | 548 | lang = g_strdup (act_user_get_language (user)); |
1176 | @@ -553,7 +553,7 @@ | |||
1177 | 553 | if (cc_common_language_get_iter_for_language (model, lang, &iter)) | 553 | if (cc_common_language_get_iter_for_language (model, lang, &iter)) |
1178 | 554 | um_editable_combo_set_active_iter (UM_EDITABLE_COMBO (widget), &iter); | 554 | um_editable_combo_set_active_iter (UM_EDITABLE_COMBO (widget), &iter); |
1179 | 555 | g_free (lang); | 555 | g_free (lang); |
1181 | 556 | @@ -824,8 +825,9 @@ | 556 | @@ -828,8 +829,9 @@ |
1182 | 557 | } | 557 | } |
1183 | 558 | else { | 558 | else { |
1184 | 559 | lang = g_strdup (act_user_get_language (user)); | 559 | lang = g_strdup (act_user_get_language (user)); |
1185 | @@ -564,7 +564,7 @@ | |||
1186 | 564 | } | 564 | } |
1187 | 565 | } | 565 | } |
1188 | 566 | cc_common_language_get_iter_for_language (model, lang, &iter); | 566 | cc_common_language_get_iter_for_language (model, lang, &iter); |
1190 | 567 | @@ -845,6 +847,7 @@ | 567 | @@ -849,6 +851,7 @@ |
1191 | 568 | GtkTreeModel *model; | 568 | GtkTreeModel *model; |
1192 | 569 | GtkTreeIter iter; | 569 | GtkTreeIter iter; |
1193 | 570 | gchar *lang; | 570 | gchar *lang; |
1194 | @@ -572,7 +572,7 @@ | |||
1195 | 572 | ActUser *user; | 572 | ActUser *user; |
1196 | 573 | 573 | ||
1197 | 574 | if (!um_editable_combo_get_active_iter (combo, &iter)) | 574 | if (!um_editable_combo_get_active_iter (combo, &iter)) |
1199 | 575 | @@ -855,8 +858,10 @@ | 575 | @@ -859,8 +862,10 @@ |
1200 | 576 | model = um_editable_combo_get_model (combo); | 576 | model = um_editable_combo_get_model (combo); |
1201 | 577 | 577 | ||
1202 | 578 | gtk_tree_model_get (model, &iter, 0, &lang, -1); | 578 | gtk_tree_model_get (model, &iter, 0, &lang, -1); |
1203 | 579 | 579 | ||
1204 | === modified file 'debian/patches/99_add_lock-on-suspend.patch' | |||
1205 | --- debian/patches/99_add_lock-on-suspend.patch 2014-02-12 00:19:03 +0000 | |||
1206 | +++ debian/patches/99_add_lock-on-suspend.patch 2014-09-30 05:25:02 +0000 | |||
1207 | @@ -12,11 +12,9 @@ | |||
1208 | 12 | panels/privacy/privacy.ui | 31 +++++++++++++++++++++++++++++++ | 12 | panels/privacy/privacy.ui | 31 +++++++++++++++++++++++++++++++ |
1209 | 13 | 2 files changed, 36 insertions(+) | 13 | 2 files changed, 36 insertions(+) |
1210 | 14 | 14 | ||
1211 | 15 | diff --git a/panels/privacy/cc-privacy-panel.c b/panels/privacy/cc-privacy-panel.c | ||
1212 | 16 | index d92b9e4..fb1be4c 100644 | ||
1213 | 17 | --- a/panels/privacy/cc-privacy-panel.c | 15 | --- a/panels/privacy/cc-privacy-panel.c |
1214 | 18 | +++ b/panels/privacy/cc-privacy-panel.c | 16 | +++ b/panels/privacy/cc-privacy-panel.c |
1216 | 19 | @@ -299,6 +299,11 @@ add_screen_lock (CcPrivacyPanel *self) | 17 | @@ -276,6 +276,11 @@ |
1217 | 20 | g_settings_bind (self->priv->notification_settings, "show-in-lock-screen", | 18 | g_settings_bind (self->priv->notification_settings, "show-in-lock-screen", |
1218 | 21 | w, "active", | 19 | w, "active", |
1219 | 22 | G_SETTINGS_BIND_DEFAULT); | 20 | G_SETTINGS_BIND_DEFAULT); |
1220 | @@ -28,11 +26,9 @@ | |||
1221 | 28 | } | 26 | } |
1222 | 29 | 27 | ||
1223 | 30 | static void | 28 | static void |
1224 | 31 | diff --git a/panels/privacy/privacy.ui b/panels/privacy/privacy.ui | ||
1225 | 32 | index ec62b70..b5d43f4 100644 | ||
1226 | 33 | --- a/panels/privacy/privacy.ui | 29 | --- a/panels/privacy/privacy.ui |
1227 | 34 | +++ b/panels/privacy/privacy.ui | 30 | +++ b/panels/privacy/privacy.ui |
1229 | 35 | @@ -612,6 +612,37 @@ | 31 | @@ -653,6 +653,37 @@ |
1230 | 36 | <property name="height">1</property> | 32 | <property name="height">1</property> |
1231 | 37 | </packing> | 33 | </packing> |
1232 | 38 | </child> | 34 | </child> |
1233 | @@ -70,6 +66,3 @@ | |||
1234 | 70 | </object> | 66 | </object> |
1235 | 71 | <packing> | 67 | <packing> |
1236 | 72 | <property name="expand">False</property> | 68 | <property name="expand">False</property> |
1237 | 73 | -- | ||
1238 | 74 | 1.8.1.2 | ||
1239 | 75 | |||
1240 | 76 | 69 | ||
1241 | === removed file 'debian/patches/gcc_not_in_unity.patch' | |||
1242 | --- debian/patches/gcc_not_in_unity.patch 2014-05-06 00:21:13 +0000 | |||
1243 | +++ debian/patches/gcc_not_in_unity.patch 1970-01-01 00:00:00 +0000 | |||
1244 | @@ -1,154 +0,0 @@ | |||
1245 | 1 | --- a/panels/bluetooth/gnome-bluetooth-panel.desktop.in.in | ||
1246 | 2 | +++ b/panels/bluetooth/gnome-bluetooth-panel.desktop.in.in | ||
1247 | 3 | @@ -6,7 +6,7 @@ | ||
1248 | 4 | Terminal=false | ||
1249 | 5 | Type=Application | ||
1250 | 6 | Categories=GTK;GNOME;Settings;X-GNOME-NetworkSettings;HardwareSettings;X-GNOME-Settings-Panel; | ||
1251 | 7 | -OnlyShowIn=GNOME;Unity; | ||
1252 | 8 | +OnlyShowIn=GNOME; | ||
1253 | 9 | StartupNotify=true | ||
1254 | 10 | X-GNOME-Bugzilla-Bugzilla=GNOME | ||
1255 | 11 | X-GNOME-Bugzilla-Product=gnome-bluetooth | ||
1256 | 12 | --- a/panels/color/gnome-color-panel.desktop.in.in | ||
1257 | 13 | +++ b/panels/color/gnome-color-panel.desktop.in.in | ||
1258 | 14 | @@ -7,7 +7,7 @@ | ||
1259 | 15 | Type=Application | ||
1260 | 16 | StartupNotify=true | ||
1261 | 17 | Categories=GNOME;GTK;Settings;X-GNOME-Settings-Panel;HardwareSettings; | ||
1262 | 18 | -OnlyShowIn=GNOME;Unity; | ||
1263 | 19 | +OnlyShowIn=GNOME | ||
1264 | 20 | X-GNOME-Bugzilla-Bugzilla=GNOME | ||
1265 | 21 | X-GNOME-Bugzilla-Product=gnome-control-center | ||
1266 | 22 | X-GNOME-Bugzilla-Component=color | ||
1267 | 23 | --- a/panels/display/gnome-display-panel.desktop.in.in | ||
1268 | 24 | +++ b/panels/display/gnome-display-panel.desktop.in.in | ||
1269 | 25 | @@ -7,7 +7,7 @@ | ||
1270 | 26 | Type=Application | ||
1271 | 27 | StartupNotify=true | ||
1272 | 28 | Categories=GNOME;GTK;Settings;HardwareSettings;X-GNOME-Settings-Panel; | ||
1273 | 29 | -OnlyShowIn=GNOME;Unity; | ||
1274 | 30 | +OnlyShowIn=GNOME; | ||
1275 | 31 | X-GNOME-Bugzilla-Bugzilla=GNOME | ||
1276 | 32 | X-GNOME-Bugzilla-Product=gnome-control-center | ||
1277 | 33 | X-GNOME-Bugzilla-Component=Screen resolution | ||
1278 | 34 | --- a/panels/info/gnome-info-panel.desktop.in.in | ||
1279 | 35 | +++ b/panels/info/gnome-info-panel.desktop.in.in | ||
1280 | 36 | @@ -7,7 +7,7 @@ | ||
1281 | 37 | Type=Application | ||
1282 | 38 | StartupNotify=true | ||
1283 | 39 | Categories=GNOME;GTK;Settings;X-GNOME-SystemSettings;X-GNOME-Settings-Panel; | ||
1284 | 40 | -OnlyShowIn=GNOME;Unity; | ||
1285 | 41 | +OnlyShowIn=GNOME; | ||
1286 | 42 | X-GNOME-Bugzilla-Bugzilla=GNOME | ||
1287 | 43 | X-GNOME-Bugzilla-Product=gnome-control-center | ||
1288 | 44 | X-GNOME-Bugzilla-Component=info | ||
1289 | 45 | --- a/panels/keyboard/gnome-keyboard-panel.desktop.in.in | ||
1290 | 46 | +++ b/panels/keyboard/gnome-keyboard-panel.desktop.in.in | ||
1291 | 47 | @@ -7,7 +7,7 @@ | ||
1292 | 48 | Type=Application | ||
1293 | 49 | StartupNotify=true | ||
1294 | 50 | Categories=GNOME;GTK;Settings;HardwareSettings;X-GNOME-Settings-Panel; | ||
1295 | 51 | -OnlyShowIn=GNOME;Unity; | ||
1296 | 52 | +OnlyShowIn=GNOME; | ||
1297 | 53 | X-GNOME-Bugzilla-Bugzilla=GNOME | ||
1298 | 54 | X-GNOME-Bugzilla-Product=gnome-control-center | ||
1299 | 55 | X-GNOME-Bugzilla-Component=keyboard | ||
1300 | 56 | --- a/panels/mouse/gnome-mouse-panel.desktop.in.in | ||
1301 | 57 | +++ b/panels/mouse/gnome-mouse-panel.desktop.in.in | ||
1302 | 58 | @@ -7,7 +7,7 @@ | ||
1303 | 59 | Type=Application | ||
1304 | 60 | StartupNotify=true | ||
1305 | 61 | Categories=GNOME;GTK;Settings;HardwareSettings;X-GNOME-Settings-Panel; | ||
1306 | 62 | -OnlyShowIn=GNOME;Unity; | ||
1307 | 63 | +OnlyShowIn=GNOME; | ||
1308 | 64 | X-GNOME-Bugzilla-Bugzilla=GNOME | ||
1309 | 65 | X-GNOME-Bugzilla-Product=gnome-control-center | ||
1310 | 66 | X-GNOME-Bugzilla-Component=mouse | ||
1311 | 67 | --- a/panels/network/gnome-network-panel.desktop.in.in | ||
1312 | 68 | +++ b/panels/network/gnome-network-panel.desktop.in.in | ||
1313 | 69 | @@ -7,7 +7,7 @@ | ||
1314 | 70 | Type=Application | ||
1315 | 71 | StartupNotify=true | ||
1316 | 72 | Categories=GNOME;GTK;Settings;HardwareSettings;X-GNOME-Settings-Panel; | ||
1317 | 73 | -OnlyShowIn=GNOME;Unity; | ||
1318 | 74 | +OnlyShowIn=GNOME; | ||
1319 | 75 | X-GNOME-Bugzilla-Bugzilla=GNOME | ||
1320 | 76 | X-GNOME-Bugzilla-Product=gnome-control-center | ||
1321 | 77 | X-GNOME-Bugzilla-Component=network | ||
1322 | 78 | --- a/panels/power/gnome-power-panel.desktop.in.in | ||
1323 | 79 | +++ b/panels/power/gnome-power-panel.desktop.in.in | ||
1324 | 80 | @@ -7,7 +7,7 @@ | ||
1325 | 81 | Type=Application | ||
1326 | 82 | StartupNotify=true | ||
1327 | 83 | Categories=GNOME;GTK;Settings;DesktopSettings;X-GNOME-Settings-Panel;HardwareSettings; | ||
1328 | 84 | -OnlyShowIn=GNOME;Unity; | ||
1329 | 85 | +OnlyShowIn=GNOME; | ||
1330 | 86 | X-GNOME-Bugzilla-Bugzilla=GNOME | ||
1331 | 87 | X-GNOME-Bugzilla-Product=gnome-control-center | ||
1332 | 88 | X-GNOME-Bugzilla-Component=power | ||
1333 | 89 | --- a/panels/universal-access/gnome-universal-access-panel.desktop.in.in | ||
1334 | 90 | +++ b/panels/universal-access/gnome-universal-access-panel.desktop.in.in | ||
1335 | 91 | @@ -7,7 +7,7 @@ | ||
1336 | 92 | Type=Application | ||
1337 | 93 | StartupNotify=true | ||
1338 | 94 | Categories=GNOME;GTK;Settings;X-GNOME-SystemSettings;X-GNOME-Settings-Panel; | ||
1339 | 95 | -OnlyShowIn=GNOME;Unity; | ||
1340 | 96 | +OnlyShowIn=GNOME; | ||
1341 | 97 | X-GNOME-Bugzilla-Bugzilla=GNOME | ||
1342 | 98 | X-GNOME-Bugzilla-Product=gnome-control-center | ||
1343 | 99 | X-GNOME-Bugzilla-Component=Universal Access | ||
1344 | 100 | --- a/panels/user-accounts/data/gnome-user-accounts-panel.desktop.in.in | ||
1345 | 101 | +++ b/panels/user-accounts/data/gnome-user-accounts-panel.desktop.in.in | ||
1346 | 102 | @@ -7,7 +7,7 @@ | ||
1347 | 103 | Type=Application | ||
1348 | 104 | StartupNotify=true | ||
1349 | 105 | Categories=System;Settings;X-GNOME-Settings-Panel;X-GNOME-SystemSettings; | ||
1350 | 106 | -OnlyShowIn=GNOME;Unity; | ||
1351 | 107 | +OnlyShowIn=GNOME; | ||
1352 | 108 | X-GNOME-Bugzilla-Bugzilla=GNOME | ||
1353 | 109 | X-GNOME-Bugzilla-Product=gnome-control-center | ||
1354 | 110 | X-GNOME-Bugzilla-Component=user-accounts | ||
1355 | 111 | --- a/panels/wacom/gnome-wacom-panel.desktop.in.in | ||
1356 | 112 | +++ b/panels/wacom/gnome-wacom-panel.desktop.in.in | ||
1357 | 113 | @@ -7,7 +7,7 @@ | ||
1358 | 114 | Type=Application | ||
1359 | 115 | StartupNotify=true | ||
1360 | 116 | Categories=GNOME;GTK;Settings;HardwareSettings;X-GNOME-Settings-Panel; | ||
1361 | 117 | -OnlyShowIn=GNOME;Unity; | ||
1362 | 118 | +OnlyShowIn=GNOME; | ||
1363 | 119 | X-GNOME-Bugzilla-Bugzilla=GNOME | ||
1364 | 120 | X-GNOME-Bugzilla-Product=gnome-control-center | ||
1365 | 121 | X-GNOME-Bugzilla-Component=wacom | ||
1366 | 122 | --- a/shell/gnome-control-center.desktop.in.in | ||
1367 | 123 | +++ b/shell/gnome-control-center.desktop.in.in | ||
1368 | 124 | @@ -6,7 +6,7 @@ | ||
1369 | 125 | Type=Application | ||
1370 | 126 | StartupNotify=true | ||
1371 | 127 | Categories=GNOME;GTK;System; | ||
1372 | 128 | -OnlyShowIn=GNOME;Unity; | ||
1373 | 129 | +OnlyShowIn=GNOME; | ||
1374 | 130 | X-GNOME-Bugzilla-Bugzilla=GNOME | ||
1375 | 131 | X-GNOME-Bugzilla-Product=gnome-control-center | ||
1376 | 132 | X-GNOME-Bugzilla-Component=shell | ||
1377 | 133 | --- a/panels/region/gnome-region-panel.desktop.in.in | ||
1378 | 134 | +++ b/panels/region/gnome-region-panel.desktop.in.in | ||
1379 | 135 | @@ -7,7 +7,7 @@ | ||
1380 | 136 | Type=Application | ||
1381 | 137 | StartupNotify=true | ||
1382 | 138 | Categories=GNOME;GTK;Settings;DesktopSettings;X-GNOME-Settings-Panel;X-GNOME-PersonalSettings; | ||
1383 | 139 | -OnlyShowIn=GNOME;Unity; | ||
1384 | 140 | +OnlyShowIn=GNOME; | ||
1385 | 141 | X-GNOME-Bugzilla-Bugzilla=GNOME | ||
1386 | 142 | X-GNOME-Bugzilla-Product=gnome-control-center | ||
1387 | 143 | X-GNOME-Bugzilla-Component=region | ||
1388 | 144 | --- a/panels/sound/data/gnome-sound-panel.desktop.in.in | ||
1389 | 145 | +++ b/panels/sound/data/gnome-sound-panel.desktop.in.in | ||
1390 | 146 | @@ -7,7 +7,7 @@ | ||
1391 | 147 | Type=Application | ||
1392 | 148 | StartupNotify=true | ||
1393 | 149 | Categories=GNOME;GTK;Settings;HardwareSettings;X-GNOME-Settings-Panel; | ||
1394 | 150 | -OnlyShowIn=GNOME;Unity; | ||
1395 | 151 | +OnlyShowIn=GNOME; | ||
1396 | 152 | X-GNOME-Bugzilla-Bugzilla=GNOME | ||
1397 | 153 | X-GNOME-Bugzilla-Product=gnome-control-center | ||
1398 | 154 | X-GNOME-Bugzilla-Component=sound | ||
1399 | 155 | 0 | ||
1400 | === removed file 'debian/patches/git-background-lock-screen.patch' | |||
1401 | --- debian/patches/git-background-lock-screen.patch 2014-02-12 00:19:03 +0000 | |||
1402 | +++ debian/patches/git-background-lock-screen.patch 1970-01-01 00:00:00 +0000 | |||
1403 | @@ -1,862 +0,0 @@ | |||
1404 | 1 | From 5e7afdf89c5722f494ecaac6179e2aed256d1976 Mon Sep 17 00:00:00 2001 | ||
1405 | 2 | From: Bastien Nocera <hadess@hadess.net> | ||
1406 | 3 | Date: Mon, 19 Aug 2013 21:00:48 +0200 | ||
1407 | 4 | Subject: [PATCH] background: Add support for lock screen background | ||
1408 | 5 | |||
1409 | 6 | https://bugzilla.gnome.org/show_bug.cgi?id=696166 | ||
1410 | 7 | --- | ||
1411 | 8 | panels/background/background.ui | 289 +++++++++++++++++++++++++------- | ||
1412 | 9 | panels/background/cc-background-panel.c | 208 ++++++++++++++++------- | ||
1413 | 10 | 2 files changed, 375 insertions(+), 122 deletions(-) | ||
1414 | 11 | |||
1415 | 12 | diff --git a/panels/background/background.ui b/panels/background/background.ui | ||
1416 | 13 | index 77e9968..2b72502 100644 | ||
1417 | 14 | --- a/panels/background/background.ui | ||
1418 | 15 | +++ b/panels/background/background.ui | ||
1419 | 16 | @@ -4,115 +4,286 @@ | ||
1420 | 17 | <object class="GtkHBox" id="background-panel"> | ||
1421 | 18 | <property name="visible">True</property> | ||
1422 | 19 | <property name="can_focus">False</property> | ||
1423 | 20 | + <property name="margin_left">6</property> | ||
1424 | 21 | + <property name="margin_right">6</property> | ||
1425 | 22 | + <property name="margin_top">6</property> | ||
1426 | 23 | + <property name="margin_bottom">6</property> | ||
1427 | 24 | <property name="border_width">10</property> | ||
1428 | 25 | <property name="spacing">12</property> | ||
1429 | 26 | - <property name="margin-left">6</property> | ||
1430 | 27 | - <property name="margin-right">6</property> | ||
1431 | 28 | - <property name="margin-top">6</property> | ||
1432 | 29 | - <property name="margin-bottom">6</property> | ||
1433 | 30 | <child> | ||
1434 | 31 | - <object class="GtkVBox" id="vbox3"> | ||
1435 | 32 | + <object class="GtkBox" id="box1"> | ||
1436 | 33 | <property name="visible">True</property> | ||
1437 | 34 | <property name="can_focus">False</property> | ||
1438 | 35 | - <property name="spacing">6</property> | ||
1439 | 36 | + <property name="margin_top">100</property> | ||
1440 | 37 | + <property name="margin_bottom">100</property> | ||
1441 | 38 | <child> | ||
1442 | 39 | - <object class="GtkAspectFrame" id="aspectframe1"> | ||
1443 | 40 | + <object class="GtkVBox" id="vbox3"> | ||
1444 | 41 | <property name="visible">True</property> | ||
1445 | 42 | <property name="can_focus">False</property> | ||
1446 | 43 | - <property name="margin_left">12</property> | ||
1447 | 44 | - <property name="label_xalign">0</property> | ||
1448 | 45 | - <property name="shadow_type">none</property> | ||
1449 | 46 | <child> | ||
1450 | 47 | - <object class="GtkButton" id="background-set-button"> | ||
1451 | 48 | - <property name="use_action_appearance">False</property> | ||
1452 | 49 | + <object class="GtkAspectFrame" id="aspectframe1"> | ||
1453 | 50 | <property name="visible">True</property> | ||
1454 | 51 | - <property name="can_focus">True</property> | ||
1455 | 52 | - <property name="receives_default">True</property> | ||
1456 | 53 | - <property name="valign">center</property> | ||
1457 | 54 | + <property name="can_focus">False</property> | ||
1458 | 55 | + <property name="margin_right">12</property> | ||
1459 | 56 | + <property name="label_xalign">0</property> | ||
1460 | 57 | + <property name="shadow_type">none</property> | ||
1461 | 58 | <child> | ||
1462 | 59 | - <object class="GtkDrawingArea" id="background-desktop-drawingarea"> | ||
1463 | 60 | - <property name="width_request">417</property> | ||
1464 | 61 | - <property name="height_request">250</property> | ||
1465 | 62 | + <object class="GtkButton" id="background-set-button"> | ||
1466 | 63 | <property name="visible">True</property> | ||
1467 | 64 | - <property name="can_focus">False</property> | ||
1468 | 65 | + <property name="can_focus">True</property> | ||
1469 | 66 | + <property name="receives_default">True</property> | ||
1470 | 67 | <property name="valign">center</property> | ||
1471 | 68 | - <property name="margin_left">6</property> | ||
1472 | 69 | - <property name="margin_right">6</property> | ||
1473 | 70 | - <property name="margin_top">6</property> | ||
1474 | 71 | - <property name="margin_bottom">6</property> | ||
1475 | 72 | - <property name="hexpand">True</property> | ||
1476 | 73 | - <property name="vexpand">True</property> | ||
1477 | 74 | + <child> | ||
1478 | 75 | + <object class="GtkBox" id="box2"> | ||
1479 | 76 | + <property name="visible">True</property> | ||
1480 | 77 | + <property name="can_focus">False</property> | ||
1481 | 78 | + <property name="orientation">vertical</property> | ||
1482 | 79 | + <child> | ||
1483 | 80 | + <object class="GtkDrawingArea" id="background-desktop-drawingarea"> | ||
1484 | 81 | + <property name="width_request">310</property> | ||
1485 | 82 | + <property name="height_request">170</property> | ||
1486 | 83 | + <property name="visible">True</property> | ||
1487 | 84 | + <property name="can_focus">False</property> | ||
1488 | 85 | + <property name="valign">center</property> | ||
1489 | 86 | + <property name="margin_left">6</property> | ||
1490 | 87 | + <property name="margin_right">6</property> | ||
1491 | 88 | + <property name="margin_top">6</property> | ||
1492 | 89 | + <property name="margin_bottom">6</property> | ||
1493 | 90 | + <property name="hexpand">True</property> | ||
1494 | 91 | + <property name="vexpand">True</property> | ||
1495 | 92 | + </object> | ||
1496 | 93 | + <packing> | ||
1497 | 94 | + <property name="expand">False</property> | ||
1498 | 95 | + <property name="fill">True</property> | ||
1499 | 96 | + <property name="position">0</property> | ||
1500 | 97 | + </packing> | ||
1501 | 98 | + </child> | ||
1502 | 99 | + <child> | ||
1503 | 100 | + <object class="GtkLabel" id="label1"> | ||
1504 | 101 | + <property name="visible">True</property> | ||
1505 | 102 | + <property name="can_focus">False</property> | ||
1506 | 103 | + <property name="label" translatable="yes">Background</property> | ||
1507 | 104 | + </object> | ||
1508 | 105 | + <packing> | ||
1509 | 106 | + <property name="expand">False</property> | ||
1510 | 107 | + <property name="fill">True</property> | ||
1511 | 108 | + <property name="position">1</property> | ||
1512 | 109 | + </packing> | ||
1513 | 110 | + </child> | ||
1514 | 111 | + </object> | ||
1515 | 112 | + </child> | ||
1516 | 113 | </object> | ||
1517 | 114 | </child> | ||
1518 | 115 | </object> | ||
1519 | 116 | + <packing> | ||
1520 | 117 | + <property name="expand">True</property> | ||
1521 | 118 | + <property name="fill">True</property> | ||
1522 | 119 | + <property name="position">0</property> | ||
1523 | 120 | + </packing> | ||
1524 | 121 | </child> | ||
1525 | 122 | - </object> | ||
1526 | 123 | - <packing> | ||
1527 | 124 | - <property name="expand">True</property> | ||
1528 | 125 | - <property name="fill">True</property> | ||
1529 | 126 | - <property name="position">0</property> | ||
1530 | 127 | - </packing> | ||
1531 | 128 | - </child> | ||
1532 | 129 | - <child> | ||
1533 | 130 | - <object class="GtkHBox" id="bottom-hbox"> | ||
1534 | 131 | - <property name="visible">True</property> | ||
1535 | 132 | - <property name="can_focus">False</property> | ||
1536 | 133 | - <property name="spacing">12</property> | ||
1537 | 134 | <child> | ||
1538 | 135 | - <object class="GtkHBox" id="hbox2"> | ||
1539 | 136 | + <object class="GtkHBox" id="bottom-hbox"> | ||
1540 | 137 | <property name="visible">True</property> | ||
1541 | 138 | <property name="can_focus">False</property> | ||
1542 | 139 | - <property name="halign">center</property> | ||
1543 | 140 | - <property name="spacing">2</property> | ||
1544 | 141 | + <property name="spacing">12</property> | ||
1545 | 142 | <child> | ||
1546 | 143 | - <object class="GtkImage" id="slide_image"> | ||
1547 | 144 | + <object class="GtkHBox" id="hbox2"> | ||
1548 | 145 | <property name="visible">True</property> | ||
1549 | 146 | <property name="can_focus">False</property> | ||
1550 | 147 | - <property name="icon_name">slideshow-symbolic</property> | ||
1551 | 148 | + <property name="halign">center</property> | ||
1552 | 149 | + <property name="margin_top">12</property> | ||
1553 | 150 | + <property name="spacing">2</property> | ||
1554 | 151 | + <child> | ||
1555 | 152 | + <object class="GtkImage" id="slide_image"> | ||
1556 | 153 | + <property name="visible">True</property> | ||
1557 | 154 | + <property name="can_focus">False</property> | ||
1558 | 155 | + <property name="icon_name">slideshow-symbolic</property> | ||
1559 | 156 | + </object> | ||
1560 | 157 | + <packing> | ||
1561 | 158 | + <property name="expand">False</property> | ||
1562 | 159 | + <property name="fill">True</property> | ||
1563 | 160 | + <property name="position">0</property> | ||
1564 | 161 | + </packing> | ||
1565 | 162 | + </child> | ||
1566 | 163 | + <child> | ||
1567 | 164 | + <object class="GtkLabel" id="strut"> | ||
1568 | 165 | + <property name="visible">True</property> | ||
1569 | 166 | + <property name="can_focus">False</property> | ||
1570 | 167 | + <property name="label"> </property> | ||
1571 | 168 | + </object> | ||
1572 | 169 | + <packing> | ||
1573 | 170 | + <property name="expand">False</property> | ||
1574 | 171 | + <property name="fill">True</property> | ||
1575 | 172 | + <property name="position">1</property> | ||
1576 | 173 | + </packing> | ||
1577 | 174 | + </child> | ||
1578 | 175 | + <child> | ||
1579 | 176 | + <object class="GtkLabel" id="slide-label"> | ||
1580 | 177 | + <property name="visible">True</property> | ||
1581 | 178 | + <property name="can_focus">False</property> | ||
1582 | 179 | + <property name="xalign">0</property> | ||
1583 | 180 | + <property name="label" translatable="yes" comments="This refers to a slideshow background">Changes throughout the day</property> | ||
1584 | 181 | + </object> | ||
1585 | 182 | + <packing> | ||
1586 | 183 | + <property name="expand">False</property> | ||
1587 | 184 | + <property name="fill">True</property> | ||
1588 | 185 | + <property name="position">1</property> | ||
1589 | 186 | + </packing> | ||
1590 | 187 | + </child> | ||
1591 | 188 | </object> | ||
1592 | 189 | <packing> | ||
1593 | 190 | - <property name="expand">False</property> | ||
1594 | 191 | + <property name="expand">True</property> | ||
1595 | 192 | <property name="fill">True</property> | ||
1596 | 193 | <property name="position">0</property> | ||
1597 | 194 | </packing> | ||
1598 | 195 | </child> | ||
1599 | 196 | + </object> | ||
1600 | 197 | + <packing> | ||
1601 | 198 | + <property name="expand">False</property> | ||
1602 | 199 | + <property name="fill">True</property> | ||
1603 | 200 | + <property name="position">2</property> | ||
1604 | 201 | + </packing> | ||
1605 | 202 | + </child> | ||
1606 | 203 | + </object> | ||
1607 | 204 | + <packing> | ||
1608 | 205 | + <property name="expand">False</property> | ||
1609 | 206 | + <property name="fill">True</property> | ||
1610 | 207 | + <property name="position">0</property> | ||
1611 | 208 | + </packing> | ||
1612 | 209 | + </child> | ||
1613 | 210 | + <child> | ||
1614 | 211 | + <object class="GtkVBox" id="vbox1"> | ||
1615 | 212 | + <property name="visible">True</property> | ||
1616 | 213 | + <property name="can_focus">False</property> | ||
1617 | 214 | + <child> | ||
1618 | 215 | + <object class="GtkAspectFrame" id="aspectframe2"> | ||
1619 | 216 | + <property name="visible">True</property> | ||
1620 | 217 | + <property name="can_focus">False</property> | ||
1621 | 218 | + <property name="margin_left">12</property> | ||
1622 | 219 | + <property name="label_xalign">0</property> | ||
1623 | 220 | + <property name="shadow_type">none</property> | ||
1624 | 221 | <child> | ||
1625 | 222 | - <object class="GtkLabel" id="strut"> | ||
1626 | 223 | + <object class="GtkButton" id="background-lock-set-button"> | ||
1627 | 224 | <property name="visible">True</property> | ||
1628 | 225 | - <property name="can_focus">False</property> | ||
1629 | 226 | - <property name="label"> </property> | ||
1630 | 227 | + <property name="can_focus">True</property> | ||
1631 | 228 | + <property name="receives_default">True</property> | ||
1632 | 229 | + <property name="valign">center</property> | ||
1633 | 230 | + <child> | ||
1634 | 231 | + <object class="GtkBox" id="box3"> | ||
1635 | 232 | + <property name="visible">True</property> | ||
1636 | 233 | + <property name="can_focus">False</property> | ||
1637 | 234 | + <property name="orientation">vertical</property> | ||
1638 | 235 | + <child> | ||
1639 | 236 | + <object class="GtkDrawingArea" id="background-lock-drawingarea"> | ||
1640 | 237 | + <property name="width_request">310</property> | ||
1641 | 238 | + <property name="height_request">170</property> | ||
1642 | 239 | + <property name="visible">True</property> | ||
1643 | 240 | + <property name="can_focus">False</property> | ||
1644 | 241 | + <property name="valign">center</property> | ||
1645 | 242 | + <property name="margin_left">6</property> | ||
1646 | 243 | + <property name="margin_right">6</property> | ||
1647 | 244 | + <property name="margin_top">6</property> | ||
1648 | 245 | + <property name="margin_bottom">6</property> | ||
1649 | 246 | + <property name="hexpand">True</property> | ||
1650 | 247 | + <property name="vexpand">True</property> | ||
1651 | 248 | + </object> | ||
1652 | 249 | + <packing> | ||
1653 | 250 | + <property name="expand">False</property> | ||
1654 | 251 | + <property name="fill">True</property> | ||
1655 | 252 | + <property name="position">0</property> | ||
1656 | 253 | + </packing> | ||
1657 | 254 | + </child> | ||
1658 | 255 | + <child> | ||
1659 | 256 | + <object class="GtkLabel" id="label2"> | ||
1660 | 257 | + <property name="visible">True</property> | ||
1661 | 258 | + <property name="can_focus">False</property> | ||
1662 | 259 | + <property name="label" translatable="yes">Lock Screen</property> | ||
1663 | 260 | + </object> | ||
1664 | 261 | + <packing> | ||
1665 | 262 | + <property name="expand">False</property> | ||
1666 | 263 | + <property name="fill">True</property> | ||
1667 | 264 | + <property name="position">1</property> | ||
1668 | 265 | + </packing> | ||
1669 | 266 | + </child> | ||
1670 | 267 | + </object> | ||
1671 | 268 | + </child> | ||
1672 | 269 | </object> | ||
1673 | 270 | - <packing> | ||
1674 | 271 | - <property name="expand">False</property> | ||
1675 | 272 | - <property name="fill">True</property> | ||
1676 | 273 | - <property name="position">1</property> | ||
1677 | 274 | - </packing> | ||
1678 | 275 | </child> | ||
1679 | 276 | + </object> | ||
1680 | 277 | + <packing> | ||
1681 | 278 | + <property name="expand">True</property> | ||
1682 | 279 | + <property name="fill">True</property> | ||
1683 | 280 | + <property name="position">0</property> | ||
1684 | 281 | + </packing> | ||
1685 | 282 | + </child> | ||
1686 | 283 | + <child> | ||
1687 | 284 | + <object class="GtkHBox" id="bottom-hbox1"> | ||
1688 | 285 | + <property name="visible">True</property> | ||
1689 | 286 | + <property name="can_focus">False</property> | ||
1690 | 287 | + <property name="spacing">12</property> | ||
1691 | 288 | <child> | ||
1692 | 289 | - <object class="GtkLabel" id="slide-label"> | ||
1693 | 290 | + <object class="GtkHBox" id="hbox1"> | ||
1694 | 291 | <property name="visible">True</property> | ||
1695 | 292 | <property name="can_focus">False</property> | ||
1696 | 293 | - <property name="xalign">0</property> | ||
1697 | 294 | - <property name="label" translatable="yes" comments="This refers to a slideshow background">Changes throughout the day</property> | ||
1698 | 295 | + <property name="halign">center</property> | ||
1699 | 296 | + <property name="margin_top">12</property> | ||
1700 | 297 | + <property name="spacing">2</property> | ||
1701 | 298 | + <child> | ||
1702 | 299 | + <object class="GtkImage" id="slide_image1"> | ||
1703 | 300 | + <property name="visible">True</property> | ||
1704 | 301 | + <property name="can_focus">False</property> | ||
1705 | 302 | + <property name="icon_name">slideshow-symbolic</property> | ||
1706 | 303 | + </object> | ||
1707 | 304 | + <packing> | ||
1708 | 305 | + <property name="expand">False</property> | ||
1709 | 306 | + <property name="fill">True</property> | ||
1710 | 307 | + <property name="position">0</property> | ||
1711 | 308 | + </packing> | ||
1712 | 309 | + </child> | ||
1713 | 310 | + <child> | ||
1714 | 311 | + <object class="GtkLabel" id="strut1"> | ||
1715 | 312 | + <property name="visible">True</property> | ||
1716 | 313 | + <property name="can_focus">False</property> | ||
1717 | 314 | + <property name="label"> </property> | ||
1718 | 315 | + </object> | ||
1719 | 316 | + <packing> | ||
1720 | 317 | + <property name="expand">False</property> | ||
1721 | 318 | + <property name="fill">True</property> | ||
1722 | 319 | + <property name="position">1</property> | ||
1723 | 320 | + </packing> | ||
1724 | 321 | + </child> | ||
1725 | 322 | + <child> | ||
1726 | 323 | + <object class="GtkLabel" id="slide-label1"> | ||
1727 | 324 | + <property name="visible">True</property> | ||
1728 | 325 | + <property name="can_focus">False</property> | ||
1729 | 326 | + <property name="xalign">0</property> | ||
1730 | 327 | + <property name="label" translatable="yes" comments="This refers to a slideshow background">Changes throughout the day</property> | ||
1731 | 328 | + </object> | ||
1732 | 329 | + <packing> | ||
1733 | 330 | + <property name="expand">False</property> | ||
1734 | 331 | + <property name="fill">True</property> | ||
1735 | 332 | + <property name="position">1</property> | ||
1736 | 333 | + </packing> | ||
1737 | 334 | + </child> | ||
1738 | 335 | </object> | ||
1739 | 336 | <packing> | ||
1740 | 337 | - <property name="expand">False</property> | ||
1741 | 338 | + <property name="expand">True</property> | ||
1742 | 339 | <property name="fill">True</property> | ||
1743 | 340 | - <property name="position">1</property> | ||
1744 | 341 | + <property name="position">0</property> | ||
1745 | 342 | </packing> | ||
1746 | 343 | </child> | ||
1747 | 344 | </object> | ||
1748 | 345 | <packing> | ||
1749 | 346 | - <property name="expand">True</property> | ||
1750 | 347 | + <property name="expand">False</property> | ||
1751 | 348 | <property name="fill">True</property> | ||
1752 | 349 | - <property name="position">0</property> | ||
1753 | 350 | + <property name="position">2</property> | ||
1754 | 351 | </packing> | ||
1755 | 352 | </child> | ||
1756 | 353 | </object> | ||
1757 | 354 | <packing> | ||
1758 | 355 | <property name="expand">False</property> | ||
1759 | 356 | <property name="fill">True</property> | ||
1760 | 357 | - <property name="position">2</property> | ||
1761 | 358 | + <property name="position">1</property> | ||
1762 | 359 | </packing> | ||
1763 | 360 | </child> | ||
1764 | 361 | </object> | ||
1765 | 362 | diff --git a/panels/background/cc-background-panel.c b/panels/background/cc-background-panel.c | ||
1766 | 363 | index 14fa244..8de6e23 100644 | ||
1767 | 364 | --- a/panels/background/cc-background-panel.c | ||
1768 | 365 | +++ b/panels/background/cc-background-panel.c | ||
1769 | 366 | @@ -38,6 +38,7 @@ | ||
1770 | 367 | #include "bg-pictures-source.h" | ||
1771 | 368 | |||
1772 | 369 | #define WP_PATH_ID "org.gnome.desktop.background" | ||
1773 | 370 | +#define WP_LOCK_PATH_ID "org.gnome.desktop.screensaver" | ||
1774 | 371 | #define WP_URI_KEY "picture-uri" | ||
1775 | 372 | #define WP_OPTIONS_KEY "picture-options" | ||
1776 | 373 | #define WP_SHADING_KEY "color-shading-type" | ||
1777 | 374 | @@ -55,10 +56,12 @@ struct _CcBackgroundPanelPrivate | ||
1778 | 375 | GDBusConnection *connection; | ||
1779 | 376 | |||
1780 | 377 | GSettings *settings; | ||
1781 | 378 | + GSettings *lock_settings; | ||
1782 | 379 | |||
1783 | 380 | GnomeDesktopThumbnailFactory *thumb_factory; | ||
1784 | 381 | |||
1785 | 382 | CcBackgroundItem *current_background; | ||
1786 | 383 | + CcBackgroundItem *current_lock_background; | ||
1787 | 384 | |||
1788 | 385 | GCancellable *copy_cancellable; | ||
1789 | 386 | GCancellable *capture_cancellable; | ||
1790 | 387 | @@ -71,6 +74,8 @@ struct _CcBackgroundPanelPrivate | ||
1791 | 388 | }; | ||
1792 | 389 | |||
1793 | 390 | #define WID(y) (GtkWidget *) gtk_builder_get_object (priv->builder, y) | ||
1794 | 391 | +#define CURRENT_BG (settings == priv->settings ? priv->current_background : priv->current_lock_background) | ||
1795 | 392 | +#define SAVE_PATH (settings == priv->settings ? "last-edited.xml" : "last-edited-lock.xml") | ||
1796 | 393 | |||
1797 | 394 | static const char * | ||
1798 | 395 | cc_background_panel_get_help_uri (CcPanel *panel) | ||
1799 | 396 | @@ -89,6 +94,7 @@ cc_background_panel_dispose (GObject *object) | ||
1800 | 397 | priv->spinner = NULL; | ||
1801 | 398 | |||
1802 | 399 | g_clear_object (&priv->settings); | ||
1803 | 400 | + g_clear_object (&priv->lock_settings); | ||
1804 | 401 | |||
1805 | 402 | if (priv->copy_cancellable) | ||
1806 | 403 | { | ||
1807 | 404 | @@ -131,6 +137,7 @@ cc_background_panel_finalize (GObject *object) | ||
1808 | 405 | CcBackgroundPanelPrivate *priv = CC_BACKGROUND_PANEL (object)->priv; | ||
1809 | 406 | |||
1810 | 407 | g_clear_object (&priv->current_background); | ||
1811 | 408 | + g_clear_object (&priv->current_lock_background); | ||
1812 | 409 | |||
1813 | 410 | G_OBJECT_CLASS (cc_background_panel_parent_class)->finalize (object); | ||
1814 | 411 | } | ||
1815 | 412 | @@ -151,59 +158,77 @@ cc_background_panel_class_init (CcBackgroundPanelClass *klass) | ||
1816 | 413 | |||
1817 | 414 | static void | ||
1818 | 415 | update_preview (CcBackgroundPanelPrivate *priv, | ||
1819 | 416 | + GSettings *settings, | ||
1820 | 417 | CcBackgroundItem *item) | ||
1821 | 418 | { | ||
1822 | 419 | gboolean changes_with_time; | ||
1823 | 420 | + CcBackgroundItem *current_background; | ||
1824 | 421 | + | ||
1825 | 422 | + current_background = CURRENT_BG; | ||
1826 | 423 | |||
1827 | 424 | - if (item && priv->current_background) | ||
1828 | 425 | + if (item && current_background) | ||
1829 | 426 | { | ||
1830 | 427 | - g_object_unref (priv->current_background); | ||
1831 | 428 | - priv->current_background = cc_background_item_copy (item); | ||
1832 | 429 | - cc_background_item_load (priv->current_background, NULL); | ||
1833 | 430 | + g_object_unref (current_background); | ||
1834 | 431 | + current_background = cc_background_item_copy (item); | ||
1835 | 432 | + if (settings == priv->settings) | ||
1836 | 433 | + priv->current_background = current_background; | ||
1837 | 434 | + else | ||
1838 | 435 | + priv->current_lock_background = current_background; | ||
1839 | 436 | + cc_background_item_load (current_background, NULL); | ||
1840 | 437 | } | ||
1841 | 438 | |||
1842 | 439 | changes_with_time = FALSE; | ||
1843 | 440 | |||
1844 | 441 | - if (priv->current_background) | ||
1845 | 442 | + if (current_background) | ||
1846 | 443 | { | ||
1847 | 444 | - changes_with_time = cc_background_item_changes_with_time (priv->current_background); | ||
1848 | 445 | + changes_with_time = cc_background_item_changes_with_time (current_background); | ||
1849 | 446 | } | ||
1850 | 447 | |||
1851 | 448 | - gtk_widget_set_visible (WID ("slide_image"), changes_with_time); | ||
1852 | 449 | - gtk_widget_set_visible (WID ("slide-label"), changes_with_time); | ||
1853 | 450 | + if (settings == priv->settings) | ||
1854 | 451 | + { | ||
1855 | 452 | + gtk_widget_set_visible (WID ("slide_image"), changes_with_time); | ||
1856 | 453 | + gtk_widget_set_visible (WID ("slide-label"), changes_with_time); | ||
1857 | 454 | + | ||
1858 | 455 | + gtk_widget_queue_draw (WID ("background-desktop-drawingarea")); | ||
1859 | 456 | + } | ||
1860 | 457 | + else | ||
1861 | 458 | + { | ||
1862 | 459 | + gtk_widget_set_visible (WID ("slide_image1"), changes_with_time); | ||
1863 | 460 | + gtk_widget_set_visible (WID ("slide-label1"), changes_with_time); | ||
1864 | 461 | |||
1865 | 462 | - gtk_widget_queue_draw (WID ("background-desktop-drawingarea")); | ||
1866 | 463 | + gtk_widget_queue_draw (WID ("background-lock-drawingarea")); | ||
1867 | 464 | + } | ||
1868 | 465 | } | ||
1869 | 466 | |||
1870 | 467 | static char * | ||
1871 | 468 | -get_save_path (void) | ||
1872 | 469 | +get_save_path (const char *filename) | ||
1873 | 470 | { | ||
1874 | 471 | return g_build_filename (g_get_user_config_dir (), | ||
1875 | 472 | "gnome-control-center", | ||
1876 | 473 | "backgrounds", | ||
1877 | 474 | - "last-edited.xml", | ||
1878 | 475 | + filename, | ||
1879 | 476 | NULL); | ||
1880 | 477 | } | ||
1881 | 478 | |||
1882 | 479 | static void | ||
1883 | 480 | -update_display_preview (CcBackgroundPanel *panel) | ||
1884 | 481 | +update_display_preview (CcBackgroundPanel *panel, | ||
1885 | 482 | + GtkWidget *widget, | ||
1886 | 483 | + CcBackgroundItem *current_background) | ||
1887 | 484 | { | ||
1888 | 485 | CcBackgroundPanelPrivate *priv = panel->priv; | ||
1889 | 486 | - GtkWidget *widget; | ||
1890 | 487 | GtkAllocation allocation; | ||
1891 | 488 | - const gint preview_width = 416; | ||
1892 | 489 | - const gint preview_height = 248; | ||
1893 | 490 | + const gint preview_width = 309; | ||
1894 | 491 | + const gint preview_height = 168; | ||
1895 | 492 | GdkPixbuf *pixbuf; | ||
1896 | 493 | GIcon *icon; | ||
1897 | 494 | cairo_t *cr; | ||
1898 | 495 | |||
1899 | 496 | - widget = WID ("background-desktop-drawingarea"); | ||
1900 | 497 | gtk_widget_get_allocation (widget, &allocation); | ||
1901 | 498 | |||
1902 | 499 | - if (!priv->current_background) | ||
1903 | 500 | + if (!current_background) | ||
1904 | 501 | return; | ||
1905 | 502 | |||
1906 | 503 | - icon = cc_background_item_get_frame_thumbnail (priv->current_background, | ||
1907 | 504 | + icon = cc_background_item_get_frame_thumbnail (current_background, | ||
1908 | 505 | priv->thumb_factory, | ||
1909 | 506 | preview_width, | ||
1910 | 507 | preview_height, | ||
1911 | 508 | @@ -218,11 +243,14 @@ update_display_preview (CcBackgroundPanel *panel) | ||
1912 | 509 | g_object_unref (pixbuf); | ||
1913 | 510 | |||
1914 | 511 | pixbuf = NULL; | ||
1915 | 512 | - if (panel->priv->display_screenshot != NULL) | ||
1916 | 513 | - pixbuf = gdk_pixbuf_scale_simple (panel->priv->display_screenshot, | ||
1917 | 514 | - preview_width, | ||
1918 | 515 | - preview_height, | ||
1919 | 516 | - GDK_INTERP_BILINEAR); | ||
1920 | 517 | + if (current_background == priv->current_background && | ||
1921 | 518 | + panel->priv->display_screenshot != NULL) | ||
1922 | 519 | + { | ||
1923 | 520 | + pixbuf = gdk_pixbuf_scale_simple (panel->priv->display_screenshot, | ||
1924 | 521 | + preview_width, | ||
1925 | 522 | + preview_height, | ||
1926 | 523 | + GDK_INTERP_BILINEAR); | ||
1927 | 524 | + } | ||
1928 | 525 | |||
1929 | 526 | if (pixbuf) | ||
1930 | 527 | { | ||
1931 | 528 | @@ -271,6 +299,7 @@ on_screenshot_finished (GObject *source, | ||
1932 | 529 | error->message); | ||
1933 | 530 | g_error_free (error); | ||
1934 | 531 | /* fallback? */ | ||
1935 | 532 | + priv = panel->priv; | ||
1936 | 533 | goto out; | ||
1937 | 534 | } | ||
1938 | 535 | g_variant_unref (result); | ||
1939 | 536 | @@ -322,7 +351,7 @@ on_screenshot_finished (GObject *source, | ||
1940 | 537 | cairo_surface_destroy (surface); | ||
1941 | 538 | |||
1942 | 539 | out: | ||
1943 | 540 | - update_display_preview (panel); | ||
1944 | 541 | + update_display_preview (panel, WID ("background-desktop-drawingarea"), priv->current_background); | ||
1945 | 542 | } | ||
1946 | 543 | |||
1947 | 544 | static gboolean | ||
1948 | 545 | @@ -407,6 +436,7 @@ on_preview_draw (GtkWidget *widget, | ||
1949 | 546 | cairo_t *cr, | ||
1950 | 547 | CcBackgroundPanel *panel) | ||
1951 | 548 | { | ||
1952 | 549 | + CcBackgroundPanelPrivate *priv = panel->priv; | ||
1953 | 550 | /* we have another shot in flight or an existing cache */ | ||
1954 | 551 | if (panel->priv->display_screenshot == NULL | ||
1955 | 552 | && panel->priv->screenshot_path == NULL) | ||
1956 | 553 | @@ -414,13 +444,24 @@ on_preview_draw (GtkWidget *widget, | ||
1957 | 554 | get_screenshot_async (panel); | ||
1958 | 555 | } | ||
1959 | 556 | else | ||
1960 | 557 | - update_display_preview (panel); | ||
1961 | 558 | + update_display_preview (panel, widget, priv->current_background); | ||
1962 | 559 | + | ||
1963 | 560 | + return TRUE; | ||
1964 | 561 | +} | ||
1965 | 562 | |||
1966 | 563 | +static gboolean | ||
1967 | 564 | +on_lock_preview_draw (GtkWidget *widget, | ||
1968 | 565 | + cairo_t *cr, | ||
1969 | 566 | + CcBackgroundPanel *panel) | ||
1970 | 567 | +{ | ||
1971 | 568 | + CcBackgroundPanelPrivate *priv = panel->priv; | ||
1972 | 569 | + update_display_preview (panel, widget, priv->current_lock_background); | ||
1973 | 570 | return TRUE; | ||
1974 | 571 | } | ||
1975 | 572 | |||
1976 | 573 | static void | ||
1977 | 574 | -reload_current_bg (CcBackgroundPanel *self) | ||
1978 | 575 | +reload_current_bg (CcBackgroundPanel *self, | ||
1979 | 576 | + GSettings *settings) | ||
1980 | 577 | { | ||
1981 | 578 | CcBackgroundPanelPrivate *priv; | ||
1982 | 579 | CcBackgroundItem *saved, *configured; | ||
1983 | 580 | @@ -429,12 +470,12 @@ reload_current_bg (CcBackgroundPanel *self) | ||
1984 | 581 | priv = self->priv; | ||
1985 | 582 | |||
1986 | 583 | /* Load the saved configuration */ | ||
1987 | 584 | - uri = get_save_path (); | ||
1988 | 585 | + uri = get_save_path (SAVE_PATH); | ||
1989 | 586 | saved = cc_background_xml_get_item (uri); | ||
1990 | 587 | g_free (uri); | ||
1991 | 588 | |||
1992 | 589 | /* initalise the current background information from settings */ | ||
1993 | 590 | - uri = g_settings_get_string (priv->settings, WP_URI_KEY); | ||
1994 | 591 | + uri = g_settings_get_string (settings, WP_URI_KEY); | ||
1995 | 592 | if (uri && *uri == '\0') | ||
1996 | 593 | { | ||
1997 | 594 | g_free (uri); | ||
1998 | 595 | @@ -450,12 +491,12 @@ reload_current_bg (CcBackgroundPanel *self) | ||
1999 | 596 | configured = cc_background_item_new (uri); | ||
2000 | 597 | g_free (uri); | ||
2001 | 598 | |||
2002 | 599 | - pcolor = g_settings_get_string (priv->settings, WP_PCOLOR_KEY); | ||
2003 | 600 | - scolor = g_settings_get_string (priv->settings, WP_SCOLOR_KEY); | ||
2004 | 601 | + pcolor = g_settings_get_string (settings, WP_PCOLOR_KEY); | ||
2005 | 602 | + scolor = g_settings_get_string (settings, WP_SCOLOR_KEY); | ||
2006 | 603 | g_object_set (G_OBJECT (configured), | ||
2007 | 604 | "name", _("Current background"), | ||
2008 | 605 | - "placement", g_settings_get_enum (priv->settings, WP_OPTIONS_KEY), | ||
2009 | 606 | - "shading", g_settings_get_enum (priv->settings, WP_SHADING_KEY), | ||
2010 | 607 | + "placement", g_settings_get_enum (settings, WP_OPTIONS_KEY), | ||
2011 | 608 | + "shading", g_settings_get_enum (settings, WP_SHADING_KEY), | ||
2012 | 609 | "primary-color", pcolor, | ||
2013 | 610 | "secondary-color", scolor, | ||
2014 | 611 | NULL); | ||
2015 | 612 | @@ -479,9 +520,17 @@ reload_current_bg (CcBackgroundPanel *self) | ||
2016 | 613 | if (saved != NULL) | ||
2017 | 614 | g_object_unref (saved); | ||
2018 | 615 | |||
2019 | 616 | - g_clear_object (&priv->current_background); | ||
2020 | 617 | - priv->current_background = configured; | ||
2021 | 618 | - cc_background_item_load (priv->current_background, NULL); | ||
2022 | 619 | + if (settings == priv->settings) | ||
2023 | 620 | + { | ||
2024 | 621 | + g_clear_object (&priv->current_background); | ||
2025 | 622 | + priv->current_background = configured; | ||
2026 | 623 | + } | ||
2027 | 624 | + else | ||
2028 | 625 | + { | ||
2029 | 626 | + g_clear_object (&priv->current_lock_background); | ||
2030 | 627 | + priv->current_lock_background = configured; | ||
2031 | 628 | + } | ||
2032 | 629 | + cc_background_item_load (configured, NULL); | ||
2033 | 630 | } | ||
2034 | 631 | |||
2035 | 632 | static gboolean | ||
2036 | 633 | @@ -512,6 +561,8 @@ copy_finished_cb (GObject *source_object, | ||
2037 | 634 | CcBackgroundPanel *panel = (CcBackgroundPanel *) pointer; | ||
2038 | 635 | CcBackgroundPanelPrivate *priv = panel->priv; | ||
2039 | 636 | CcBackgroundItem *item; | ||
2040 | 637 | + CcBackgroundItem *current_background; | ||
2041 | 638 | + GSettings *settings; | ||
2042 | 639 | |||
2043 | 640 | if (!g_file_copy_finish (G_FILE (source_object), result, &err)) | ||
2044 | 641 | { | ||
2045 | 642 | @@ -523,8 +574,10 @@ copy_finished_cb (GObject *source_object, | ||
2046 | 643 | g_error_free (err); | ||
2047 | 644 | } | ||
2048 | 645 | item = g_object_get_data (source_object, "item"); | ||
2049 | 646 | + settings = g_object_get_data (source_object, "settings"); | ||
2050 | 647 | + current_background = CURRENT_BG; | ||
2051 | 648 | |||
2052 | 649 | - g_settings_apply (priv->settings); | ||
2053 | 650 | + g_settings_apply (settings); | ||
2054 | 651 | |||
2055 | 652 | /* the panel may have been destroyed before the callback is run, so be sure | ||
2056 | 653 | * to check the widgets are not NULL */ | ||
2057 | 654 | @@ -535,19 +588,19 @@ copy_finished_cb (GObject *source_object, | ||
2058 | 655 | priv->spinner = NULL; | ||
2059 | 656 | } | ||
2060 | 657 | |||
2061 | 658 | - if (priv->current_background) | ||
2062 | 659 | - cc_background_item_load (priv->current_background, NULL); | ||
2063 | 660 | + if (current_background) | ||
2064 | 661 | + cc_background_item_load (current_background, NULL); | ||
2065 | 662 | |||
2066 | 663 | if (priv->builder) | ||
2067 | 664 | { | ||
2068 | 665 | char *filename; | ||
2069 | 666 | |||
2070 | 667 | - update_preview (priv, item); | ||
2071 | 668 | + update_preview (priv, settings, item); | ||
2072 | 669 | |||
2073 | 670 | /* Save the source XML if there is one */ | ||
2074 | 671 | - filename = get_save_path (); | ||
2075 | 672 | + filename = get_save_path (SAVE_PATH); | ||
2076 | 673 | if (create_save_dir ()) | ||
2077 | 674 | - cc_background_xml_save (priv->current_background, filename); | ||
2078 | 675 | + cc_background_xml_save (current_background, filename); | ||
2079 | 676 | } | ||
2080 | 677 | |||
2081 | 678 | /* remove the reference taken when the copy was set up */ | ||
2082 | 679 | @@ -556,6 +609,7 @@ copy_finished_cb (GObject *source_object, | ||
2083 | 680 | |||
2084 | 681 | static void | ||
2085 | 682 | set_background (CcBackgroundPanel *panel, | ||
2086 | 683 | + GSettings *settings, | ||
2087 | 684 | CcBackgroundItem *item) | ||
2088 | 685 | { | ||
2089 | 686 | CcBackgroundPanelPrivate *priv = panel->priv; | ||
2090 | 687 | @@ -573,8 +627,8 @@ set_background (CcBackgroundPanel *panel, | ||
2091 | 688 | |||
2092 | 689 | if ((flags & CC_BACKGROUND_ITEM_HAS_URI) && uri == NULL) | ||
2093 | 690 | { | ||
2094 | 691 | - g_settings_set_enum (priv->settings, WP_OPTIONS_KEY, G_DESKTOP_BACKGROUND_STYLE_NONE); | ||
2095 | 692 | - g_settings_set_string (priv->settings, WP_URI_KEY, ""); | ||
2096 | 693 | + g_settings_set_enum (settings, WP_OPTIONS_KEY, G_DESKTOP_BACKGROUND_STYLE_NONE); | ||
2097 | 694 | + g_settings_set_string (settings, WP_URI_KEY, ""); | ||
2098 | 695 | } | ||
2099 | 696 | else if (cc_background_item_get_source_url (item) != NULL && | ||
2100 | 697 | cc_background_item_get_needs_download (item)) | ||
2101 | 698 | @@ -631,6 +685,7 @@ set_background (CcBackgroundPanel *panel, | ||
2102 | 699 | * finished */ | ||
2103 | 700 | g_object_ref (panel); | ||
2104 | 701 | g_object_set_data_full (G_OBJECT (source), "item", g_object_ref (item), g_object_unref); | ||
2105 | 702 | + g_object_set_data (G_OBJECT (source), "settings", settings); | ||
2106 | 703 | g_file_copy_async (source, dest, G_FILE_COPY_OVERWRITE, | ||
2107 | 704 | G_PRIORITY_DEFAULT, priv->copy_cancellable, | ||
2108 | 705 | NULL, NULL, | ||
2109 | 706 | @@ -639,7 +694,7 @@ set_background (CcBackgroundPanel *panel, | ||
2110 | 707 | dest_uri = g_file_get_uri (dest); | ||
2111 | 708 | g_object_unref (dest); | ||
2112 | 709 | |||
2113 | 710 | - g_settings_set_string (priv->settings, WP_URI_KEY, dest_uri); | ||
2114 | 711 | + g_settings_set_string (settings, WP_URI_KEY, dest_uri); | ||
2115 | 712 | g_object_set (G_OBJECT (item), | ||
2116 | 713 | "uri", dest_uri, | ||
2117 | 714 | "needs-download", FALSE, | ||
2118 | 715 | @@ -653,37 +708,37 @@ set_background (CcBackgroundPanel *panel, | ||
2119 | 716 | } | ||
2120 | 717 | else | ||
2121 | 718 | { | ||
2122 | 719 | - g_settings_set_string (priv->settings, WP_URI_KEY, uri); | ||
2123 | 720 | + g_settings_set_string (settings, WP_URI_KEY, uri); | ||
2124 | 721 | } | ||
2125 | 722 | |||
2126 | 723 | /* Also set the placement if we have a URI and the previous value was none */ | ||
2127 | 724 | if (flags & CC_BACKGROUND_ITEM_HAS_PLACEMENT) | ||
2128 | 725 | { | ||
2129 | 726 | - g_settings_set_enum (priv->settings, WP_OPTIONS_KEY, cc_background_item_get_placement (item)); | ||
2130 | 727 | + g_settings_set_enum (settings, WP_OPTIONS_KEY, cc_background_item_get_placement (item)); | ||
2131 | 728 | } | ||
2132 | 729 | else if (uri != NULL) | ||
2133 | 730 | { | ||
2134 | 731 | - style = g_settings_get_enum (priv->settings, WP_OPTIONS_KEY); | ||
2135 | 732 | + style = g_settings_get_enum (settings, WP_OPTIONS_KEY); | ||
2136 | 733 | if (style == G_DESKTOP_BACKGROUND_STYLE_NONE) | ||
2137 | 734 | - g_settings_set_enum (priv->settings, WP_OPTIONS_KEY, cc_background_item_get_placement (item)); | ||
2138 | 735 | + g_settings_set_enum (settings, WP_OPTIONS_KEY, cc_background_item_get_placement (item)); | ||
2139 | 736 | } | ||
2140 | 737 | |||
2141 | 738 | if (flags & CC_BACKGROUND_ITEM_HAS_SHADING) | ||
2142 | 739 | - g_settings_set_enum (priv->settings, WP_SHADING_KEY, cc_background_item_get_shading (item)); | ||
2143 | 740 | + g_settings_set_enum (settings, WP_SHADING_KEY, cc_background_item_get_shading (item)); | ||
2144 | 741 | |||
2145 | 742 | - g_settings_set_string (priv->settings, WP_PCOLOR_KEY, cc_background_item_get_pcolor (item)); | ||
2146 | 743 | - g_settings_set_string (priv->settings, WP_SCOLOR_KEY, cc_background_item_get_scolor (item)); | ||
2147 | 744 | + g_settings_set_string (settings, WP_PCOLOR_KEY, cc_background_item_get_pcolor (item)); | ||
2148 | 745 | + g_settings_set_string (settings, WP_SCOLOR_KEY, cc_background_item_get_scolor (item)); | ||
2149 | 746 | |||
2150 | 747 | /* update the preview information */ | ||
2151 | 748 | if (save_settings != FALSE) | ||
2152 | 749 | { | ||
2153 | 750 | /* Apply all changes */ | ||
2154 | 751 | - g_settings_apply (priv->settings); | ||
2155 | 752 | + g_settings_apply (settings); | ||
2156 | 753 | |||
2157 | 754 | /* Save the source XML if there is one */ | ||
2158 | 755 | - filename = get_save_path (); | ||
2159 | 756 | + filename = get_save_path (SAVE_PATH); | ||
2160 | 757 | if (create_save_dir ()) | ||
2161 | 758 | - cc_background_xml_save (priv->current_background, filename); | ||
2162 | 759 | + cc_background_xml_save (CURRENT_BG, filename); | ||
2163 | 760 | } | ||
2164 | 761 | } | ||
2165 | 762 | |||
2166 | 763 | @@ -699,7 +754,7 @@ on_chooser_dialog_response (GtkDialog *dialog, | ||
2167 | 764 | item = cc_background_chooser_dialog_get_item (CC_BACKGROUND_CHOOSER_DIALOG (dialog)); | ||
2168 | 765 | if (item != NULL) | ||
2169 | 766 | { | ||
2170 | 767 | - set_background (self, item); | ||
2171 | 768 | + set_background (self, g_object_get_data (G_OBJECT (dialog), "settings"), item); | ||
2172 | 769 | g_object_unref (item); | ||
2173 | 770 | } | ||
2174 | 771 | } | ||
2175 | 772 | @@ -708,13 +763,14 @@ on_chooser_dialog_response (GtkDialog *dialog, | ||
2176 | 773 | } | ||
2177 | 774 | |||
2178 | 775 | static void | ||
2179 | 776 | -on_background_button_clicked (GtkButton *button, | ||
2180 | 777 | - CcBackgroundPanel *self) | ||
2181 | 778 | +launch_chooser (CcBackgroundPanel *self, | ||
2182 | 779 | + GSettings *settings) | ||
2183 | 780 | { | ||
2184 | 781 | CcBackgroundPanelPrivate *priv = self->priv; | ||
2185 | 782 | GtkWidget *dialog; | ||
2186 | 783 | |||
2187 | 784 | dialog = cc_background_chooser_dialog_new (); | ||
2188 | 785 | + g_object_set_data (G_OBJECT (dialog), "settings", settings); | ||
2189 | 786 | gtk_window_set_transient_for (GTK_WINDOW (dialog), | ||
2190 | 787 | GTK_WINDOW (gtk_widget_get_toplevel (WID ("background-panel")))); | ||
2191 | 788 | gtk_widget_show (dialog); | ||
2192 | 789 | @@ -724,12 +780,26 @@ on_background_button_clicked (GtkButton *button, | ||
2193 | 790 | } | ||
2194 | 791 | |||
2195 | 792 | static void | ||
2196 | 793 | +on_background_button_clicked (GtkButton *button, | ||
2197 | 794 | + CcBackgroundPanel *self) | ||
2198 | 795 | +{ | ||
2199 | 796 | + launch_chooser (self, self->priv->settings); | ||
2200 | 797 | +} | ||
2201 | 798 | + | ||
2202 | 799 | +static void | ||
2203 | 800 | +on_lock_button_clicked (GtkButton *button, | ||
2204 | 801 | + CcBackgroundPanel *self) | ||
2205 | 802 | +{ | ||
2206 | 803 | + launch_chooser (self, self->priv->lock_settings); | ||
2207 | 804 | +} | ||
2208 | 805 | + | ||
2209 | 806 | +static void | ||
2210 | 807 | on_settings_changed (GSettings *settings, | ||
2211 | 808 | gchar *key, | ||
2212 | 809 | CcBackgroundPanel *self) | ||
2213 | 810 | { | ||
2214 | 811 | - reload_current_bg (self); | ||
2215 | 812 | - update_preview (self->priv, NULL); | ||
2216 | 813 | + reload_current_bg (self, settings); | ||
2217 | 814 | + update_preview (self->priv, settings, NULL); | ||
2218 | 815 | } | ||
2219 | 816 | |||
2220 | 817 | static void | ||
2221 | 818 | @@ -760,6 +830,9 @@ cc_background_panel_init (CcBackgroundPanel *self) | ||
2222 | 819 | priv->settings = g_settings_new (WP_PATH_ID); | ||
2223 | 820 | g_settings_delay (priv->settings); | ||
2224 | 821 | |||
2225 | 822 | + priv->lock_settings = g_settings_new (WP_LOCK_PATH_ID); | ||
2226 | 823 | + g_settings_delay (priv->lock_settings); | ||
2227 | 824 | + | ||
2228 | 825 | /* add the top level widget */ | ||
2229 | 826 | widget = WID ("background-panel"); | ||
2230 | 827 | |||
2231 | 828 | @@ -768,19 +841,28 @@ cc_background_panel_init (CcBackgroundPanel *self) | ||
2232 | 829 | |||
2233 | 830 | /* setup preview area */ | ||
2234 | 831 | widget = WID ("background-desktop-drawingarea"); | ||
2235 | 832 | - g_signal_connect (widget, "draw", G_CALLBACK (on_preview_draw), | ||
2236 | 833 | - self); | ||
2237 | 834 | + g_signal_connect (widget, "draw", G_CALLBACK (on_preview_draw), self); | ||
2238 | 835 | + widget = WID ("background-lock-drawingarea"); | ||
2239 | 836 | + g_signal_connect (widget, "draw", G_CALLBACK (on_lock_preview_draw), self); | ||
2240 | 837 | |||
2241 | 838 | priv->copy_cancellable = g_cancellable_new (); | ||
2242 | 839 | priv->capture_cancellable = g_cancellable_new (); | ||
2243 | 840 | |||
2244 | 841 | priv->thumb_factory = gnome_desktop_thumbnail_factory_new (GNOME_DESKTOP_THUMBNAIL_SIZE_LARGE); | ||
2245 | 842 | |||
2246 | 843 | - reload_current_bg (self); | ||
2247 | 844 | - update_preview (priv, NULL); | ||
2248 | 845 | + /* Load the backgrounds */ | ||
2249 | 846 | + reload_current_bg (self, priv->settings); | ||
2250 | 847 | + update_preview (priv, priv->settings, NULL); | ||
2251 | 848 | + reload_current_bg (self, priv->lock_settings); | ||
2252 | 849 | + update_preview (priv, priv->lock_settings, NULL); | ||
2253 | 850 | |||
2254 | 851 | + /* Background settings */ | ||
2255 | 852 | g_signal_connect (priv->settings, "changed", G_CALLBACK (on_settings_changed), self); | ||
2256 | 853 | + g_signal_connect (priv->lock_settings, "changed", G_CALLBACK (on_settings_changed), self); | ||
2257 | 854 | |||
2258 | 855 | + /* Background buttons */ | ||
2259 | 856 | widget = WID ("background-set-button"); | ||
2260 | 857 | g_signal_connect (widget, "clicked", G_CALLBACK (on_background_button_clicked), self); | ||
2261 | 858 | + widget = WID ("background-lock-set-button"); | ||
2262 | 859 | + g_signal_connect (widget, "clicked", G_CALLBACK (on_lock_button_clicked), self); | ||
2263 | 860 | } | ||
2264 | 861 | -- | ||
2265 | 862 | 1.8.3.1 | ||
2266 | 863 | 0 | ||
2267 | === removed file 'debian/patches/git-background-remove-unused-widget.patch' | |||
2268 | --- debian/patches/git-background-remove-unused-widget.patch 2014-02-12 00:19:03 +0000 | |||
2269 | +++ debian/patches/git-background-remove-unused-widget.patch 1970-01-01 00:00:00 +0000 | |||
2270 | @@ -1,111 +0,0 @@ | |||
2271 | 1 | From dd56de9653361d17a300aeb7872f152a7e2de356 Mon Sep 17 00:00:00 2001 | ||
2272 | 2 | From: Bastien Nocera <hadess@hadess.net> | ||
2273 | 3 | Date: Mon, 19 Aug 2013 20:55:29 +0200 | ||
2274 | 4 | Subject: [PATCH] background: Remove unused "lock" preview widgets | ||
2275 | 5 | |||
2276 | 6 | https://bugzilla.gnome.org/show_bug.cgi?id=696166 | ||
2277 | 7 | --- | ||
2278 | 8 | panels/background/background.ui | 60 ++++++++++------------------------------- | ||
2279 | 9 | 1 file changed, 14 insertions(+), 46 deletions(-) | ||
2280 | 10 | |||
2281 | 11 | diff --git a/panels/background/background.ui b/panels/background/background.ui | ||
2282 | 12 | index 651cf69..77e9968 100644 | ||
2283 | 13 | --- a/panels/background/background.ui | ||
2284 | 14 | +++ b/panels/background/background.ui | ||
2285 | 15 | @@ -30,48 +30,18 @@ | ||
2286 | 16 | <property name="receives_default">True</property> | ||
2287 | 17 | <property name="valign">center</property> | ||
2288 | 18 | <child> | ||
2289 | 19 | - <object class="GtkBox" id="box1"> | ||
2290 | 20 | + <object class="GtkDrawingArea" id="background-desktop-drawingarea"> | ||
2291 | 21 | + <property name="width_request">417</property> | ||
2292 | 22 | + <property name="height_request">250</property> | ||
2293 | 23 | <property name="visible">True</property> | ||
2294 | 24 | <property name="can_focus">False</property> | ||
2295 | 25 | + <property name="valign">center</property> | ||
2296 | 26 | + <property name="margin_left">6</property> | ||
2297 | 27 | + <property name="margin_right">6</property> | ||
2298 | 28 | + <property name="margin_top">6</property> | ||
2299 | 29 | + <property name="margin_bottom">6</property> | ||
2300 | 30 | <property name="hexpand">True</property> | ||
2301 | 31 | - <property name="spacing">18</property> | ||
2302 | 32 | - <child> | ||
2303 | 33 | - <object class="GtkDrawingArea" id="background-desktop-drawingarea"> | ||
2304 | 34 | - <property name="width_request">417</property> | ||
2305 | 35 | - <property name="height_request">250</property> | ||
2306 | 36 | - <property name="visible">True</property> | ||
2307 | 37 | - <property name="can_focus">False</property> | ||
2308 | 38 | - <property name="valign">center</property> | ||
2309 | 39 | - <property name="margin_left">6</property> | ||
2310 | 40 | - <property name="margin_right">6</property> | ||
2311 | 41 | - <property name="margin_top">6</property> | ||
2312 | 42 | - <property name="margin_bottom">6</property> | ||
2313 | 43 | - <property name="hexpand">True</property> | ||
2314 | 44 | - <property name="vexpand">True</property> | ||
2315 | 45 | - </object> | ||
2316 | 46 | - <packing> | ||
2317 | 47 | - <property name="expand">True</property> | ||
2318 | 48 | - <property name="fill">True</property> | ||
2319 | 49 | - <property name="position">0</property> | ||
2320 | 50 | - </packing> | ||
2321 | 51 | - </child> | ||
2322 | 52 | - <child> | ||
2323 | 53 | - <object class="GtkDrawingArea" id="background-lock-drawingarea"> | ||
2324 | 54 | - <property name="can_focus">False</property> | ||
2325 | 55 | - <property name="no_show_all">True</property> | ||
2326 | 56 | - <property name="valign">center</property> | ||
2327 | 57 | - <property name="margin_left">6</property> | ||
2328 | 58 | - <property name="margin_right">6</property> | ||
2329 | 59 | - <property name="margin_top">6</property> | ||
2330 | 60 | - <property name="hexpand">True</property> | ||
2331 | 61 | - <property name="vexpand">True</property> | ||
2332 | 62 | - </object> | ||
2333 | 63 | - <packing> | ||
2334 | 64 | - <property name="expand">True</property> | ||
2335 | 65 | - <property name="fill">True</property> | ||
2336 | 66 | - <property name="position">1</property> | ||
2337 | 67 | - </packing> | ||
2338 | 68 | - </child> | ||
2339 | 69 | + <property name="vexpand">True</property> | ||
2340 | 70 | </object> | ||
2341 | 71 | </child> | ||
2342 | 72 | </object> | ||
2343 | 73 | @@ -107,11 +77,10 @@ | ||
2344 | 74 | </packing> | ||
2345 | 75 | </child> | ||
2346 | 76 | <child> | ||
2347 | 77 | - <object class="GtkLabel" id="slide-label"> | ||
2348 | 78 | + <object class="GtkLabel" id="strut"> | ||
2349 | 79 | <property name="visible">True</property> | ||
2350 | 80 | <property name="can_focus">False</property> | ||
2351 | 81 | - <property name="xalign">0</property> | ||
2352 | 82 | - <property name="label" translatable="yes" comments="This refers to a slideshow background">Changes throughout the day</property> | ||
2353 | 83 | + <property name="label"> </property> | ||
2354 | 84 | </object> | ||
2355 | 85 | <packing> | ||
2356 | 86 | <property name="expand">False</property> | ||
2357 | 87 | @@ -120,10 +89,11 @@ | ||
2358 | 88 | </packing> | ||
2359 | 89 | </child> | ||
2360 | 90 | <child> | ||
2361 | 91 | - <object class="GtkLabel" id="strut"> | ||
2362 | 92 | + <object class="GtkLabel" id="slide-label"> | ||
2363 | 93 | <property name="visible">True</property> | ||
2364 | 94 | <property name="can_focus">False</property> | ||
2365 | 95 | - <property name="label"> </property> | ||
2366 | 96 | + <property name="xalign">0</property> | ||
2367 | 97 | + <property name="label" translatable="yes" comments="This refers to a slideshow background">Changes throughout the day</property> | ||
2368 | 98 | </object> | ||
2369 | 99 | <packing> | ||
2370 | 100 | <property name="expand">False</property> | ||
2371 | 101 | @@ -200,8 +170,6 @@ | ||
2372 | 102 | <object class="GtkSizeGroup" id="sizegroup"> | ||
2373 | 103 | <property name="mode">vertical</property> | ||
2374 | 104 | <widgets> | ||
2375 | 105 | - <widget name="sources-combobox"/> | ||
2376 | 106 | - <widget name="heading-hbox"/> | ||
2377 | 107 | <widget name="slide-label"/> | ||
2378 | 108 | <widget name="strut"/> | ||
2379 | 109 | </widgets> | ||
2380 | 110 | -- | ||
2381 | 111 | 1.8.3.1 | ||
2382 | 112 | 0 | ||
2383 | === removed file 'debian/patches/git-online-accounts-chat-providers.patch' | |||
2384 | --- debian/patches/git-online-accounts-chat-providers.patch 2014-05-27 07:29:07 +0000 | |||
2385 | +++ debian/patches/git-online-accounts-chat-providers.patch 1970-01-01 00:00:00 +0000 | |||
2386 | @@ -1,51 +0,0 @@ | |||
2387 | 1 | From 570611752e1bf1a0cf01f2581ec03525381066bd Mon Sep 17 00:00:00 2001 | ||
2388 | 2 | From: Marco Barisione <marco.barisione@collabora.co.uk> | ||
2389 | 3 | Date: Thu, 25 Jul 2013 13:08:58 +0100 | ||
2390 | 4 | Subject: online-accounts: handle unbranded chat providers | ||
2391 | 5 | |||
2392 | 6 | https://bugzilla.gnome.org/show_bug.cgi?id=706148 | ||
2393 | 7 | |||
2394 | 8 | Index: gnome-control-center-3.8.6/panels/online-accounts/cc-online-accounts-add-account-dialog.c | ||
2395 | 9 | =================================================================== | ||
2396 | 10 | --- gnome-control-center-3.8.6.orig/panels/online-accounts/cc-online-accounts-add-account-dialog.c | ||
2397 | 11 | +++ gnome-control-center-3.8.6/panels/online-accounts/cc-online-accounts-add-account-dialog.c | ||
2398 | 12 | @@ -41,6 +41,7 @@ struct _GoaPanelAddAccountDialogPrivate | ||
2399 | 13 | EggListBox *branded_list_box; | ||
2400 | 14 | EggListBox *contacts_list_box; | ||
2401 | 15 | EggListBox *mail_list_box; | ||
2402 | 16 | + EggListBox *chat_list_box; | ||
2403 | 17 | EggListBox *ticketing_list_box; | ||
2404 | 18 | GError *error; | ||
2405 | 19 | GoaClient *client; | ||
2406 | 20 | @@ -48,6 +49,7 @@ struct _GoaPanelAddAccountDialogPrivate | ||
2407 | 21 | GtkListStore *list_store; | ||
2408 | 22 | GtkWidget *contacts_grid; | ||
2409 | 23 | GtkWidget *mail_grid; | ||
2410 | 24 | + GtkWidget *chat_grid; | ||
2411 | 25 | GtkWidget *ticketing_grid; | ||
2412 | 26 | GtkWidget *stack; | ||
2413 | 27 | gboolean add_other; | ||
2414 | 28 | @@ -336,6 +338,12 @@ goa_panel_add_account_dialog_init (GoaPa | ||
2415 | 29 | _("Contacts")); | ||
2416 | 30 | |||
2417 | 31 | add_account_dialog_create_group_ui (add_account, | ||
2418 | 32 | + &priv->chat_list_box, | ||
2419 | 33 | + &priv->chat_grid, | ||
2420 | 34 | + grid, | ||
2421 | 35 | + _("Chat")); | ||
2422 | 36 | + | ||
2423 | 37 | + add_account_dialog_create_group_ui (add_account, | ||
2424 | 38 | &priv->ticketing_list_box, | ||
2425 | 39 | &priv->ticketing_grid, | ||
2426 | 40 | grid, | ||
2427 | 41 | @@ -414,6 +422,10 @@ goa_panel_add_account_dialog_add_provide | ||
2428 | 42 | group_grid = priv->mail_grid; | ||
2429 | 43 | list_box = priv->mail_list_box; | ||
2430 | 44 | break; | ||
2431 | 45 | + case GOA_PROVIDER_GROUP_CHAT: | ||
2432 | 46 | + group_grid = priv->chat_grid; | ||
2433 | 47 | + list_box = priv->chat_list_box; | ||
2434 | 48 | + break; | ||
2435 | 49 | case GOA_PROVIDER_GROUP_TICKETING: | ||
2436 | 50 | group_grid = priv->ticketing_grid; | ||
2437 | 51 | list_box = priv->ticketing_list_box; | ||
2438 | 52 | 0 | ||
2439 | === removed file 'debian/patches/git_fix_libbackground_linking.patch' | |||
2440 | --- debian/patches/git_fix_libbackground_linking.patch 2014-02-12 00:19:03 +0000 | |||
2441 | +++ debian/patches/git_fix_libbackground_linking.patch 1970-01-01 00:00:00 +0000 | |||
2442 | @@ -1,24 +0,0 @@ | |||
2443 | 1 | From acd7785692109a8ad2590e19302ce34170e610f2 Mon Sep 17 00:00:00 2001 | ||
2444 | 2 | From: Kalev Lember <kalevlember@gmail.com> | ||
2445 | 3 | Date: Wed, 16 Oct 2013 10:01:36 +0000 | ||
2446 | 4 | Subject: background: Fix test-chooser-dialog build with some linkers | ||
2447 | 5 | |||
2448 | 6 | List missing libs for the libbackground-chooser.la convenience library. | ||
2449 | 7 | |||
2450 | 8 | https://bugzilla.gnome.org/show_bug.cgi?id=709302 | ||
2451 | 9 | --- | ||
2452 | 10 | diff --git a/panels/background/Makefile.am b/panels/background/Makefile.am | ||
2453 | 11 | index f24f8b3..2766207 100644 | ||
2454 | 12 | --- a/panels/background/Makefile.am | ||
2455 | 13 | +++ b/panels/background/Makefile.am | ||
2456 | 14 | @@ -40,6 +40,8 @@ libbackground_chooser_la_SOURCES = \ | ||
2457 | 15 | bg-colors-source.c \ | ||
2458 | 16 | bg-colors-source.h | ||
2459 | 17 | |||
2460 | 18 | +libbackground_chooser_la_LIBADD = $(PANEL_LIBS) $(BACKGROUND_PANEL_LIBS) | ||
2461 | 19 | + | ||
2462 | 20 | libbackground_la_SOURCES = \ | ||
2463 | 21 | cc-background-panel.c \ | ||
2464 | 22 | cc-background-panel.h | ||
2465 | 23 | -- | ||
2466 | 24 | cgit v0.9.2 | ||
2467 | 25 | 0 | ||
2468 | === removed file 'debian/patches/git_iconview_columns.patch' | |||
2469 | --- debian/patches/git_iconview_columns.patch 2014-02-12 00:19:03 +0000 | |||
2470 | +++ debian/patches/git_iconview_columns.patch 1970-01-01 00:00:00 +0000 | |||
2471 | @@ -1,16 +0,0 @@ | |||
2472 | 1 | # Description: git patch, updated for our layout | ||
2473 | 2 | diff --git a/shell/cc-shell-category-view.c b/shell/cc-shell-category-view.c | ||
2474 | 3 | index 4b05d8c..d7094ab 100644 | ||
2475 | 4 | --- a/shell/cc-shell-category-view.c | ||
2476 | 5 | +++ b/shell/cc-shell-category-view.c | ||
2477 | 6 | @@ -138,6 +138,7 @@ cc_shell_category_view_constructed (GObject *object) | ||
2478 | 7 | gtk_icon_view_set_text_column (GTK_ICON_VIEW (iconview), COL_NAME); | ||
2479 | 8 | gtk_icon_view_set_item_width (GTK_ICON_VIEW (iconview), 100); | ||
2480 | 9 | cc_shell_item_view_update_cells (CC_SHELL_ITEM_VIEW (iconview)); | ||
2481 | 10 | + gtk_icon_view_set_columns (GTK_ICON_VIEW (iconview), 7); | ||
2482 | 11 | |||
2483 | 12 | /* create the header if required */ | ||
2484 | 13 | if (priv->name) | ||
2485 | 14 | -- | ||
2486 | 15 | cgit v0.9.2 | ||
2487 | 16 | |||
2488 | 17 | 0 | ||
2489 | === removed file 'debian/patches/git_rename_natural_scrolling.patch' | |||
2490 | --- debian/patches/git_rename_natural_scrolling.patch 2014-02-12 00:19:03 +0000 | |||
2491 | +++ debian/patches/git_rename_natural_scrolling.patch 1970-01-01 00:00:00 +0000 | |||
2492 | @@ -1,26 +0,0 @@ | |||
2493 | 1 | From 92148a4be791614eaf4582ea540cff82e27134de Mon Sep 17 00:00:00 2001 | ||
2494 | 2 | From: Ondrej Holy <oholy@redhat.com> | ||
2495 | 3 | Date: Tue, 11 Jun 2013 12:58:28 +0000 | ||
2496 | 4 | Subject: mouse: Rename "Content sticks to fingers" | ||
2497 | 5 | |||
2498 | 6 | ...to "Natural scrolling". The previous name was a little bit | ||
2499 | 7 | disgusting, and people didn't understand its purpose. Using the | ||
2500 | 8 | same name as OSX means that people will either know it, or be less | ||
2501 | 9 | afraid of testing it. | ||
2502 | 10 | |||
2503 | 11 | https://bugzilla.gnome.org/show_bug.cgi?id=689128 | ||
2504 | 12 | --- | ||
2505 | 13 | diff --git a/panels/mouse/gnome-mouse-properties.ui b/panels/mouse/gnome-mouse-properties.ui | ||
2506 | 14 | index cd77080..3735903 100644 | ||
2507 | 15 | --- a/panels/mouse/gnome-mouse-properties.ui | ||
2508 | 16 | +++ b/panels/mouse/gnome-mouse-properties.ui | ||
2509 | 17 | @@ -655,7 +655,7 @@ | ||
2510 | 18 | </child> | ||
2511 | 19 | <child> | ||
2512 | 20 | <object class="GtkCheckButton" id="natural_scroll_toggle"> | ||
2513 | 21 | - <property name="label" translatable="yes">C_ontent sticks to fingers</property> | ||
2514 | 22 | + <property name="label" translatable="yes" comments="Translators: This switch reverses the scrolling direction for touchpads. The term used comes from OS X so use the same translation if possible. ">_Natural scrolling</property> | ||
2515 | 23 | <property name="use_action_appearance">False</property> | ||
2516 | 24 | <property name="visible">True</property> | ||
2517 | 25 | <property name="can_focus">True</property> | ||
2518 | 26 | |||
2519 | 27 | 0 | ||
2520 | === added file 'debian/patches/power-panel-3.10.patch' | |||
2521 | --- debian/patches/power-panel-3.10.patch 1970-01-01 00:00:00 +0000 | |||
2522 | +++ debian/patches/power-panel-3.10.patch 2014-09-30 05:25:02 +0000 | |||
2523 | @@ -0,0 +1,979 @@ | |||
2524 | 1 | From b21275ac750465c36370834daf537b8a05adf4ad Mon Sep 17 00:00:00 2001 | ||
2525 | 2 | From: Tim Lunn <tim@feathertop.org> | ||
2526 | 3 | Date: Thu, 18 Sep 2014 09:26:50 +1000 | ||
2527 | 4 | Subject: [PATCH] Copy power panel from 3.10 | ||
2528 | 5 | |||
2529 | 6 | --- | ||
2530 | 7 | configure.ac | 2 +- | ||
2531 | 8 | panels/power/cc-power-panel.c | 450 ++++++++++++++------------- | ||
2532 | 9 | panels/power/cc-power-panel.h | 3 +- | ||
2533 | 10 | panels/power/gnome-power-panel.desktop.in.in | 1 - | ||
2534 | 11 | panels/power/power.ui | 13 +- | ||
2535 | 12 | 5 files changed, 254 insertions(+), 215 deletions(-) | ||
2536 | 13 | |||
2537 | 14 | Index: gnome-control-center/configure.ac | ||
2538 | 15 | =================================================================== | ||
2539 | 16 | --- gnome-control-center.orig/configure.ac | ||
2540 | 17 | +++ gnome-control-center/configure.ac | ||
2541 | 18 | @@ -128,7 +128,7 @@ PKG_CHECK_MODULES(DATETIME_PANEL, $COMMO | ||
2542 | 19 | polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION | ||
2543 | 20 | gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED_VERSION) | ||
2544 | 21 | PKG_CHECK_MODULES(DISPLAY_PANEL, $COMMON_MODULES gnome-desktop-3.0 >= 3.1.0 | ||
2545 | 22 | - upower-glib >= 0.99.0) | ||
2546 | 23 | + upower-glib >= 0.9.0) | ||
2547 | 24 | PKG_CHECK_MODULES(INFO_PANEL, $COMMON_MODULES libgtop-2.0 gl | ||
2548 | 25 | polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION) | ||
2549 | 26 | PKG_CHECK_MODULES(KEYBOARD_PANEL, $COMMON_MODULES | ||
2550 | 27 | @@ -140,7 +140,7 @@ PKG_CHECK_MODULES(MOUSE_PANEL, $COMMON_M | ||
2551 | 28 | PKG_CHECK_MODULES(NETWORK_PANEL, $COMMON_MODULES gmodule-2.0) | ||
2552 | 29 | PKG_CHECK_MODULES(NOTIFICATIONS_PANEL, $COMMON_MODULES libgnome-menu-3.0) | ||
2553 | 30 | PKG_CHECK_MODULES(ONLINE_ACCOUNTS_PANEL, $COMMON_MODULES goa-1.0 goa-backend-1.0 >= $GOA_REQUIRED_VERSION) | ||
2554 | 31 | -PKG_CHECK_MODULES(POWER_PANEL, $COMMON_MODULES upower-glib >= 0.99.0 | ||
2555 | 32 | +PKG_CHECK_MODULES(POWER_PANEL, $COMMON_MODULES upower-glib >= 0.9.0 | ||
2556 | 33 | gnome-settings-daemon >= $GSD_REQUIRED_VERSION) | ||
2557 | 34 | PKG_CHECK_MODULES(COLOR_PANEL, $COMMON_MODULES | ||
2558 | 35 | colord >= $COLORD_REQUIRED_VERSION | ||
2559 | 36 | Index: gnome-control-center/panels/power/cc-power-panel.c | ||
2560 | 37 | =================================================================== | ||
2561 | 38 | --- gnome-control-center.orig/panels/power/cc-power-panel.c | ||
2562 | 39 | +++ gnome-control-center/panels/power/cc-power-panel.c | ||
2563 | 40 | @@ -15,7 +15,8 @@ | ||
2564 | 41 | * GNU General Public License for more details. | ||
2565 | 42 | * | ||
2566 | 43 | * You should have received a copy of the GNU General Public License | ||
2567 | 44 | - * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
2568 | 45 | + * along with this program; if not, write to the Free Software | ||
2569 | 46 | + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
2570 | 47 | * | ||
2571 | 48 | */ | ||
2572 | 49 | |||
2573 | 50 | @@ -25,6 +26,16 @@ | ||
2574 | 51 | #include <glib/gi18n.h> | ||
2575 | 52 | #include <gnome-settings-daemon/gsd-enums.h> | ||
2576 | 53 | |||
2577 | 54 | +#ifdef HAVE_BLUETOOTH | ||
2578 | 55 | +/* Handling is broken: | ||
2579 | 56 | + * https://bugzilla.gnome.org/show_bug.cgi?id=691730 | ||
2580 | 57 | + * https://bugzilla.gnome.org/show_bug.cgi?id=691151 | ||
2581 | 58 | + * #include <bluetooth-client.h> */ | ||
2582 | 59 | +#undef HAVE_BLUETOOTH | ||
2583 | 60 | +#endif | ||
2584 | 61 | + | ||
2585 | 62 | + | ||
2586 | 63 | + | ||
2587 | 64 | #ifdef HAVE_NETWORK_MANAGER | ||
2588 | 65 | #include <nm-client.h> | ||
2589 | 66 | #endif | ||
2590 | 67 | @@ -59,7 +70,6 @@ struct _CcPowerPanelPrivate | ||
2591 | 68 | GtkBuilder *builder; | ||
2592 | 69 | GtkWidget *automatic_suspend_dialog; | ||
2593 | 70 | UpClient *up_client; | ||
2594 | 71 | - GPtrArray *devices; | ||
2595 | 72 | GDBusProxy *screen_proxy; | ||
2596 | 73 | GDBusProxy *kbd_proxy; | ||
2597 | 74 | gboolean has_batteries; | ||
2598 | 75 | @@ -93,9 +103,10 @@ struct _CcPowerPanelPrivate | ||
2599 | 76 | GtkWidget *critical_battery_row; | ||
2600 | 77 | GtkWidget *critical_battery_combo; | ||
2601 | 78 | |||
2602 | 79 | - GDBusProxy *bt_rfkill; | ||
2603 | 80 | - GDBusProxy *bt_properties; | ||
2604 | 81 | - GtkWidget *bt_switch; | ||
2605 | 82 | +#ifdef HAVE_BLUETOOTH | ||
2606 | 83 | + BluetoothClient *bt_client; | ||
2607 | 84 | + GtkWidget *bt_switch; | ||
2608 | 85 | +#endif | ||
2609 | 86 | |||
2610 | 87 | #ifdef HAVE_NETWORK_MANAGER | ||
2611 | 88 | NMClient *nm_client; | ||
2612 | 89 | @@ -131,14 +142,10 @@ cc_power_panel_dispose (GObject *object) | ||
2613 | 90 | g_clear_object (&priv->builder); | ||
2614 | 91 | g_clear_object (&priv->screen_proxy); | ||
2615 | 92 | g_clear_object (&priv->kbd_proxy); | ||
2616 | 93 | - if (priv->devices) | ||
2617 | 94 | - { | ||
2618 | 95 | - g_ptr_array_foreach (priv->devices, (GFunc) g_object_unref, NULL); | ||
2619 | 96 | - g_clear_pointer (&priv->devices, g_ptr_array_unref); | ||
2620 | 97 | - } | ||
2621 | 98 | g_clear_object (&priv->up_client); | ||
2622 | 99 | - g_clear_object (&priv->bt_rfkill); | ||
2623 | 100 | - g_clear_object (&priv->bt_properties); | ||
2624 | 101 | +#ifdef HAVE_BLUETOOTH | ||
2625 | 102 | + g_clear_object (&priv->bt_client); | ||
2626 | 103 | +#endif | ||
2627 | 104 | #ifdef HAVE_NETWORK_MANAGER | ||
2628 | 105 | g_clear_object (&priv->nm_client); | ||
2629 | 106 | #endif | ||
2630 | 107 | @@ -324,8 +331,8 @@ set_primary (CcPowerPanel *panel, UpDevi | ||
2631 | 108 | box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); | ||
2632 | 109 | gtk_container_add (GTK_CONTAINER (row), box); | ||
2633 | 110 | |||
2634 | 111 | - gtk_widget_set_margin_start (box, 20); | ||
2635 | 112 | - gtk_widget_set_margin_end (box, 20); | ||
2636 | 113 | + gtk_widget_set_margin_left (box, 20); | ||
2637 | 114 | + gtk_widget_set_margin_right (box, 20); | ||
2638 | 115 | gtk_widget_set_margin_top (box, 6); | ||
2639 | 116 | gtk_widget_set_margin_bottom (box, 6); | ||
2640 | 117 | |||
2641 | 118 | @@ -380,7 +387,6 @@ add_battery (CcPowerPanel *panel, UpDevi | ||
2642 | 119 | GtkWidget *widget; | ||
2643 | 120 | gchar *s; | ||
2644 | 121 | gchar *native_path; | ||
2645 | 122 | - gchar *icon_name; | ||
2646 | 123 | const gchar *name; | ||
2647 | 124 | |||
2648 | 125 | g_object_get (device, | ||
2649 | 126 | @@ -388,7 +394,6 @@ add_battery (CcPowerPanel *panel, UpDevi | ||
2650 | 127 | "state", &state, | ||
2651 | 128 | "percentage", &percentage, | ||
2652 | 129 | "native-path", &native_path, | ||
2653 | 130 | - "icon-name", &icon_name, | ||
2654 | 131 | NULL); | ||
2655 | 132 | |||
2656 | 133 | if (native_path && strstr (native_path, "BAT0")) | ||
2657 | 134 | @@ -404,17 +409,18 @@ add_battery (CcPowerPanel *panel, UpDevi | ||
2658 | 135 | label = gtk_label_new (name); | ||
2659 | 136 | gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); | ||
2660 | 137 | gtk_size_group_add_widget (priv->battery_sizegroup, box2); | ||
2661 | 138 | - gtk_widget_set_margin_start (label, 20); | ||
2662 | 139 | - gtk_widget_set_margin_end (label, 20); | ||
2663 | 140 | + gtk_widget_set_margin_left (label, 20); | ||
2664 | 141 | + gtk_widget_set_margin_right (label, 20); | ||
2665 | 142 | gtk_widget_set_margin_top (label, 6); | ||
2666 | 143 | gtk_widget_set_margin_bottom (label, 6); | ||
2667 | 144 | gtk_box_pack_start (GTK_BOX (box2), label, FALSE, TRUE, 0); | ||
2668 | 145 | gtk_box_pack_start (GTK_BOX (box), box2, FALSE, TRUE, 0); | ||
2669 | 146 | |||
2670 | 147 | #if 1 | ||
2671 | 148 | - if (icon_name != NULL && *icon_name != '\0') | ||
2672 | 149 | + if (state == UP_DEVICE_STATE_DISCHARGING || | ||
2673 | 150 | + state == UP_DEVICE_STATE_CHARGING) | ||
2674 | 151 | { | ||
2675 | 152 | - widget = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_BUTTON); | ||
2676 | 153 | + widget = gtk_image_new_from_icon_name ("battery-good-charging-symbolic", GTK_ICON_SIZE_BUTTON); | ||
2677 | 154 | gtk_style_context_add_class (gtk_widget_get_style_context (widget), GTK_STYLE_CLASS_DIM_LABEL); | ||
2678 | 155 | gtk_widget_set_halign (widget, GTK_ALIGN_END); | ||
2679 | 156 | gtk_widget_set_valign (widget, GTK_ALIGN_CENTER); | ||
2680 | 157 | @@ -423,8 +429,8 @@ add_battery (CcPowerPanel *panel, UpDevi | ||
2681 | 158 | #endif | ||
2682 | 159 | |||
2683 | 160 | box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12); | ||
2684 | 161 | - gtk_widget_set_margin_start (box2, 20); | ||
2685 | 162 | - gtk_widget_set_margin_end (box2, 20); | ||
2686 | 163 | + gtk_widget_set_margin_left (box2, 20); | ||
2687 | 164 | + gtk_widget_set_margin_right (box2, 20); | ||
2688 | 165 | |||
2689 | 166 | s = g_strdup_printf ("%d%%", (int)percentage); | ||
2690 | 167 | label = gtk_label_new (s); | ||
2691 | 168 | @@ -454,7 +460,6 @@ add_battery (CcPowerPanel *panel, UpDevi | ||
2692 | 169 | gtk_widget_show_all (row); | ||
2693 | 170 | |||
2694 | 171 | g_free (native_path); | ||
2695 | 172 | - g_free (icon_name); | ||
2696 | 173 | |||
2697 | 174 | gtk_widget_set_visible (priv->battery_section, TRUE); | ||
2698 | 175 | } | ||
2699 | 176 | @@ -578,16 +583,16 @@ add_device (CcPowerPanel *panel, UpDevic | ||
2700 | 177 | widget = gtk_label_new (""); | ||
2701 | 178 | gtk_misc_set_alignment (GTK_MISC (widget), 0.0f, 0.5f); | ||
2702 | 179 | gtk_label_set_markup (GTK_LABEL (widget), description->str); | ||
2703 | 180 | - gtk_widget_set_margin_start (widget, 20); | ||
2704 | 181 | - gtk_widget_set_margin_end (widget, 20); | ||
2705 | 182 | + gtk_widget_set_margin_left (widget, 20); | ||
2706 | 183 | + gtk_widget_set_margin_right (widget, 20); | ||
2707 | 184 | gtk_widget_set_margin_top (widget, 6); | ||
2708 | 185 | gtk_widget_set_margin_bottom (widget, 6); | ||
2709 | 186 | gtk_box_pack_start (GTK_BOX (hbox), widget, FALSE, TRUE, 0); | ||
2710 | 187 | gtk_size_group_add_widget (priv->battery_sizegroup, widget); | ||
2711 | 188 | |||
2712 | 189 | box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12); | ||
2713 | 190 | - gtk_widget_set_margin_start (box2, 20); | ||
2714 | 191 | - gtk_widget_set_margin_end (box2, 20); | ||
2715 | 192 | + gtk_widget_set_margin_left (box2, 20); | ||
2716 | 193 | + gtk_widget_set_margin_right (box2, 20); | ||
2717 | 194 | s = g_strdup_printf ("%d%%", (int)percentage); | ||
2718 | 195 | widget = gtk_label_new (s); | ||
2719 | 196 | g_free (s); | ||
2720 | 197 | @@ -622,12 +627,26 @@ up_client_changed (UpClient *client, | ||
2721 | 198 | CcPowerPanel *self) | ||
2722 | 199 | { | ||
2723 | 200 | CcPowerPanelPrivate *priv = self->priv; | ||
2724 | 201 | + GPtrArray *devices; | ||
2725 | 202 | GList *children, *l; | ||
2726 | 203 | gint i; | ||
2727 | 204 | UpDeviceKind kind; | ||
2728 | 205 | + UpDeviceState state; | ||
2729 | 206 | guint n_batteries; | ||
2730 | 207 | gboolean on_ups; | ||
2731 | 208 | UpDevice *composite; | ||
2732 | 209 | + gdouble percentage = 0.0; | ||
2733 | 210 | + gdouble energy = 0.0; | ||
2734 | 211 | + gdouble energy_full = 0.0; | ||
2735 | 212 | + gdouble energy_rate = 0.0; | ||
2736 | 213 | + gdouble energy_total = 0.0; | ||
2737 | 214 | + gdouble energy_full_total = 0.0; | ||
2738 | 215 | + gdouble energy_rate_total = 0.0; | ||
2739 | 216 | + gint64 time_to_empty = 0; | ||
2740 | 217 | + gint64 time_to_full = 0; | ||
2741 | 218 | + gboolean is_charging = FALSE; | ||
2742 | 219 | + gboolean is_discharging = FALSE; | ||
2743 | 220 | + gboolean is_fully_charged = TRUE; | ||
2744 | 221 | gchar *s; | ||
2745 | 222 | |||
2746 | 223 | children = gtk_container_get_children (GTK_CONTAINER (priv->battery_list)); | ||
2747 | 224 | @@ -642,6 +661,8 @@ up_client_changed (UpClient *client, | ||
2748 | 225 | g_list_free (children); | ||
2749 | 226 | gtk_widget_hide (priv->device_section); | ||
2750 | 227 | |||
2751 | 228 | + devices = up_client_get_devices (client); | ||
2752 | 229 | + | ||
2753 | 230 | #ifdef TEST_FAKE_DEVICES | ||
2754 | 231 | { | ||
2755 | 232 | static gboolean fake_devices_added = FALSE; | ||
2756 | 233 | @@ -653,60 +674,68 @@ up_client_changed (UpClient *client, | ||
2757 | 234 | device = up_device_new (); | ||
2758 | 235 | g_object_set (device, | ||
2759 | 236 | "kind", UP_DEVICE_KIND_MOUSE, | ||
2760 | 237 | - "native-path", "dummy:native-path1", | ||
2761 | 238 | - "model", "My mouse", | ||
2762 | 239 | "percentage", 71.0, | ||
2763 | 240 | "state", UP_DEVICE_STATE_DISCHARGING, | ||
2764 | 241 | "time-to-empty", 287, | ||
2765 | 242 | - "icon-name", "battery-full-symbolic", | ||
2766 | 243 | NULL); | ||
2767 | 244 | - g_ptr_array_add (priv->devices, device); | ||
2768 | 245 | + g_ptr_array_add (devices, device); | ||
2769 | 246 | device = up_device_new (); | ||
2770 | 247 | g_object_set (device, | ||
2771 | 248 | "kind", UP_DEVICE_KIND_KEYBOARD, | ||
2772 | 249 | - "native-path", "dummy:native-path2", | ||
2773 | 250 | - "model", "My keyboard", | ||
2774 | 251 | - "percentage", 59.0, | ||
2775 | 252 | + "percentage", 69.0, | ||
2776 | 253 | "state", UP_DEVICE_STATE_DISCHARGING, | ||
2777 | 254 | "time-to-empty", 250, | ||
2778 | 255 | - "icon-name", "battery-good-symbolic", | ||
2779 | 256 | NULL); | ||
2780 | 257 | - g_ptr_array_add (priv->devices, device); | ||
2781 | 258 | + g_ptr_array_add (devices, device); | ||
2782 | 259 | device = up_device_new (); | ||
2783 | 260 | g_object_set (device, | ||
2784 | 261 | "kind", UP_DEVICE_KIND_BATTERY, | ||
2785 | 262 | - "native-path", "dummy:native-path3", | ||
2786 | 263 | - "model", "Battery from some factory", | ||
2787 | 264 | "percentage", 100.0, | ||
2788 | 265 | "state", UP_DEVICE_STATE_FULLY_CHARGED, | ||
2789 | 266 | "energy", 55.0, | ||
2790 | 267 | "energy-full", 55.0, | ||
2791 | 268 | "energy-rate", 15.0, | ||
2792 | 269 | "time-to-empty", 400, | ||
2793 | 270 | - "icon-name", "battery-full-charged-symbolic", | ||
2794 | 271 | NULL); | ||
2795 | 272 | - g_ptr_array_add (priv->devices, device); | ||
2796 | 273 | + g_ptr_array_add (devices, device); | ||
2797 | 274 | } | ||
2798 | 275 | } | ||
2799 | 276 | #endif | ||
2800 | 277 | |||
2801 | 278 | on_ups = FALSE; | ||
2802 | 279 | n_batteries = 0; | ||
2803 | 280 | - composite = up_client_get_display_device (priv->up_client); | ||
2804 | 281 | - g_object_get (composite, "kind", &kind, NULL); | ||
2805 | 282 | - if (kind == UP_DEVICE_KIND_UPS) | ||
2806 | 283 | - { | ||
2807 | 284 | - on_ups = TRUE; | ||
2808 | 285 | - } | ||
2809 | 286 | - else | ||
2810 | 287 | + composite = up_device_new (); | ||
2811 | 288 | + g_object_set (composite, | ||
2812 | 289 | + "kind", UP_DEVICE_KIND_BATTERY, | ||
2813 | 290 | + "is-rechargeable", TRUE, | ||
2814 | 291 | + "native-path", "dummy:composite_battery", | ||
2815 | 292 | + "power-supply", TRUE, | ||
2816 | 293 | + "is-present", TRUE, | ||
2817 | 294 | + NULL); | ||
2818 | 295 | + for (i = 0; devices != NULL && i < devices->len; i++) | ||
2819 | 296 | { | ||
2820 | 297 | - /* Count the batteries */ | ||
2821 | 298 | - for (i = 0; priv->devices != NULL && i < priv->devices->len; i++) | ||
2822 | 299 | + UpDevice *device = (UpDevice*) g_ptr_array_index (devices, i); | ||
2823 | 300 | + g_object_get (device, | ||
2824 | 301 | + "kind", &kind, | ||
2825 | 302 | + "state", &state, | ||
2826 | 303 | + "energy", &energy, | ||
2827 | 304 | + "energy-full", &energy_full, | ||
2828 | 305 | + "energy-rate", &energy_rate, | ||
2829 | 306 | + NULL); | ||
2830 | 307 | + if (kind == UP_DEVICE_KIND_UPS && state == UP_DEVICE_STATE_DISCHARGING) | ||
2831 | 308 | + on_ups = TRUE; | ||
2832 | 309 | + if (kind == UP_DEVICE_KIND_BATTERY) | ||
2833 | 310 | { | ||
2834 | 311 | - UpDevice *device = (UpDevice*) g_ptr_array_index (priv->devices, i); | ||
2835 | 312 | - g_object_get (device, "kind", &kind, NULL); | ||
2836 | 313 | - if (kind == UP_DEVICE_KIND_BATTERY) | ||
2837 | 314 | - n_batteries++; | ||
2838 | 315 | + if (state == UP_DEVICE_STATE_CHARGING) | ||
2839 | 316 | + is_charging = TRUE; | ||
2840 | 317 | + if (state == UP_DEVICE_STATE_DISCHARGING) | ||
2841 | 318 | + is_discharging = TRUE; | ||
2842 | 319 | + if (state != UP_DEVICE_STATE_FULLY_CHARGED) | ||
2843 | 320 | + is_fully_charged = FALSE; | ||
2844 | 321 | + energy_total += energy; | ||
2845 | 322 | + energy_full_total += energy_full; | ||
2846 | 323 | + energy_rate_total += energy_rate; | ||
2847 | 324 | + n_batteries++; | ||
2848 | 325 | } | ||
2849 | 326 | } | ||
2850 | 327 | |||
2851 | 328 | @@ -717,12 +746,42 @@ up_client_changed (UpClient *client, | ||
2852 | 329 | gtk_label_set_label (GTK_LABEL (priv->battery_heading), s); | ||
2853 | 330 | g_free (s); | ||
2854 | 331 | |||
2855 | 332 | + if (energy_full_total > 0.0) | ||
2856 | 333 | + percentage = 100.0 * energy_total / energy_full_total; | ||
2857 | 334 | + | ||
2858 | 335 | + if (is_charging) | ||
2859 | 336 | + state = UP_DEVICE_STATE_CHARGING; | ||
2860 | 337 | + else if (is_discharging) | ||
2861 | 338 | + state = UP_DEVICE_STATE_DISCHARGING; | ||
2862 | 339 | + else if (is_fully_charged) | ||
2863 | 340 | + state = UP_DEVICE_STATE_FULLY_CHARGED; | ||
2864 | 341 | + else | ||
2865 | 342 | + state = UP_DEVICE_STATE_UNKNOWN; | ||
2866 | 343 | + | ||
2867 | 344 | + if (energy_rate_total > 0) | ||
2868 | 345 | + { | ||
2869 | 346 | + if (state == UP_DEVICE_STATE_DISCHARGING) | ||
2870 | 347 | + time_to_empty = 3600 * (energy_total / energy_rate_total); | ||
2871 | 348 | + else if (state == UP_DEVICE_STATE_CHARGING) | ||
2872 | 349 | + time_to_full = 3600 * ((energy_full_total - energy_total) / energy_rate_total); | ||
2873 | 350 | + } | ||
2874 | 351 | + | ||
2875 | 352 | + g_object_set (composite, | ||
2876 | 353 | + "energy", energy_total, | ||
2877 | 354 | + "energy-full", energy_full_total, | ||
2878 | 355 | + "energy-rate", energy_rate_total, | ||
2879 | 356 | + "time-to-empty", time_to_empty, | ||
2880 | 357 | + "time-to-full", time_to_full, | ||
2881 | 358 | + "percentage", percentage, | ||
2882 | 359 | + "state", state, | ||
2883 | 360 | + NULL); | ||
2884 | 361 | + | ||
2885 | 362 | if (!on_ups && n_batteries > 1) | ||
2886 | 363 | set_primary (self, composite); | ||
2887 | 364 | |||
2888 | 365 | - for (i = 0; priv->devices != NULL && i < priv->devices->len; i++) | ||
2889 | 366 | + for (i = 0; devices != NULL && i < devices->len; i++) | ||
2890 | 367 | { | ||
2891 | 368 | - UpDevice *device = (UpDevice*) g_ptr_array_index (priv->devices, i); | ||
2892 | 369 | + UpDevice *device = (UpDevice*) g_ptr_array_index (devices, i); | ||
2893 | 370 | g_object_get (device, "kind", &kind, NULL); | ||
2894 | 371 | if (kind == UP_DEVICE_KIND_LINE_POWER) | ||
2895 | 372 | { | ||
2896 | 373 | @@ -746,49 +805,11 @@ up_client_changed (UpClient *client, | ||
2897 | 374 | } | ||
2898 | 375 | } | ||
2899 | 376 | |||
2900 | 377 | + g_clear_pointer (&devices, g_ptr_array_unref); | ||
2901 | 378 | g_object_unref (composite); | ||
2902 | 379 | } | ||
2903 | 380 | |||
2904 | 381 | static void | ||
2905 | 382 | -up_client_device_removed (UpClient *client, | ||
2906 | 383 | - const char *object_path, | ||
2907 | 384 | - CcPowerPanel *self) | ||
2908 | 385 | -{ | ||
2909 | 386 | - CcPowerPanelPrivate *priv = self->priv; | ||
2910 | 387 | - guint i; | ||
2911 | 388 | - | ||
2912 | 389 | - if (priv->devices == NULL) | ||
2913 | 390 | - return; | ||
2914 | 391 | - | ||
2915 | 392 | - for (i = 0; i < priv->devices->len; i++) | ||
2916 | 393 | - { | ||
2917 | 394 | - UpDevice *device = g_ptr_array_index (priv->devices, i); | ||
2918 | 395 | - | ||
2919 | 396 | - if (g_strcmp0 (object_path, up_device_get_object_path (device)) == 0) | ||
2920 | 397 | - { | ||
2921 | 398 | - g_object_unref (device); | ||
2922 | 399 | - g_ptr_array_remove_index (priv->devices, i); | ||
2923 | 400 | - break; | ||
2924 | 401 | - } | ||
2925 | 402 | - } | ||
2926 | 403 | - | ||
2927 | 404 | - up_client_changed (self->priv->up_client, NULL, self); | ||
2928 | 405 | -} | ||
2929 | 406 | - | ||
2930 | 407 | -static void | ||
2931 | 408 | -up_client_device_added (UpClient *client, | ||
2932 | 409 | - UpDevice *device, | ||
2933 | 410 | - CcPowerPanel *self) | ||
2934 | 411 | -{ | ||
2935 | 412 | - CcPowerPanelPrivate *priv = self->priv; | ||
2936 | 413 | - | ||
2937 | 414 | - g_ptr_array_add (priv->devices, g_object_ref (device)); | ||
2938 | 415 | - g_signal_connect (G_OBJECT (device), "notify", | ||
2939 | 416 | - G_CALLBACK (up_client_changed), self); | ||
2940 | 417 | - up_client_changed (priv->up_client, NULL, self); | ||
2941 | 418 | -} | ||
2942 | 419 | - | ||
2943 | 420 | -static void | ||
2944 | 421 | set_brightness_cb (GObject *source_object, GAsyncResult *res, gpointer user_data) | ||
2945 | 422 | { | ||
2946 | 423 | GError *error = NULL; | ||
2947 | 424 | @@ -1077,11 +1098,22 @@ static void | ||
2948 | 425 | set_ac_battery_ui_mode (CcPowerPanel *self) | ||
2949 | 426 | { | ||
2950 | 427 | gboolean has_batteries = FALSE; | ||
2951 | 428 | + gboolean ret; | ||
2952 | 429 | + GError *error = NULL; | ||
2953 | 430 | GPtrArray *devices; | ||
2954 | 431 | guint i; | ||
2955 | 432 | UpDevice *device; | ||
2956 | 433 | UpDeviceKind kind; | ||
2957 | 434 | |||
2958 | 435 | + /* this is sync, but it's cached in the daemon and so quick */ | ||
2959 | 436 | + ret = up_client_enumerate_devices_sync (self->priv->up_client, NULL, &error); | ||
2960 | 437 | + if (!ret) | ||
2961 | 438 | + { | ||
2962 | 439 | + g_warning ("failed to get device list: %s", error->message); | ||
2963 | 440 | + g_error_free (error); | ||
2964 | 441 | + goto out; | ||
2965 | 442 | + } | ||
2966 | 443 | + | ||
2967 | 444 | devices = up_client_get_devices (self->priv->up_client); | ||
2968 | 445 | g_debug ("got %d devices from upower\n", devices->len); | ||
2969 | 446 | |||
2970 | 447 | @@ -1102,6 +1134,7 @@ set_ac_battery_ui_mode (CcPowerPanel *se | ||
2971 | 448 | has_batteries = FALSE; | ||
2972 | 449 | #endif | ||
2973 | 450 | |||
2974 | 451 | +out: | ||
2975 | 452 | self->priv->has_batteries = has_batteries; | ||
2976 | 453 | |||
2977 | 454 | gtk_widget_set_visible (self->priv->critical_battery_row, has_batteries); | ||
2978 | 455 | @@ -1136,18 +1169,41 @@ update_header_func (GtkListBoxRow *row, | ||
2979 | 456 | } | ||
2980 | 457 | } | ||
2981 | 458 | |||
2982 | 459 | +#ifdef HAVE_BLUETOOTH | ||
2983 | 460 | static void | ||
2984 | 461 | -bt_set_powered (CcPowerPanel *self, | ||
2985 | 462 | - gboolean powered) | ||
2986 | 463 | +bt_set_powered (BluetoothClient *client, | ||
2987 | 464 | + gboolean powered) | ||
2988 | 465 | { | ||
2989 | 466 | - g_dbus_proxy_call (self->priv->bt_properties, | ||
2990 | 467 | - "Set", | ||
2991 | 468 | - g_variant_new_parsed ("('org.gnome.SettingsDaemon.Rfkill', 'BluetoothAirplaneMode', %v)", | ||
2992 | 469 | - g_variant_new_boolean (!powered)), | ||
2993 | 470 | - G_DBUS_CALL_FLAGS_NONE, | ||
2994 | 471 | - -1, | ||
2995 | 472 | - self->priv->cancellable, | ||
2996 | 473 | - NULL, NULL); | ||
2997 | 474 | + GVariant *ret; | ||
2998 | 475 | + const gchar *adapter_path; | ||
2999 | 476 | + GDBusConnection *bus; | ||
3000 | 477 | + | ||
3001 | 478 | + bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL); | ||
3002 | 479 | + | ||
3003 | 480 | + ret = g_dbus_connection_call_sync (bus, | ||
3004 | 481 | + "org.bluez", | ||
3005 | 482 | + "/", | ||
3006 | 483 | + "org.bluez.Manager", | ||
3007 | 484 | + "DefaultAdapter", | ||
3008 | 485 | + NULL, | ||
3009 | 486 | + NULL, | ||
3010 | 487 | + 0, | ||
3011 | 488 | + G_MAXINT, | ||
3012 | 489 | + NULL, NULL); | ||
3013 | 490 | + g_variant_get (ret, "(&o)", &adapter_path); | ||
3014 | 491 | + | ||
3015 | 492 | + g_dbus_connection_call (bus, | ||
3016 | 493 | + "org.bluez", | ||
3017 | 494 | + adapter_path, | ||
3018 | 495 | + "org.freedesktop.Properties", | ||
3019 | 496 | + "SetProperty", | ||
3020 | 497 | + g_variant_new ("(sv)", "Powered", g_variant_new_boolean (powered)), | ||
3021 | 498 | + NULL, | ||
3022 | 499 | + 0, | ||
3023 | 500 | + G_MAXINT, | ||
3024 | 501 | + NULL, NULL, NULL); | ||
3025 | 502 | + | ||
3026 | 503 | + g_variant_unref (ret); | ||
3027 | 504 | } | ||
3028 | 505 | |||
3029 | 506 | static void | ||
3030 | 507 | @@ -1161,26 +1217,25 @@ bt_switch_changed (GtkSwitch *sw, | ||
3031 | 508 | |||
3032 | 509 | g_debug ("Setting bt power %s", powered ? "on" : "off"); | ||
3033 | 510 | |||
3034 | 511 | - bt_set_powered (panel, powered); | ||
3035 | 512 | + bt_set_powered (panel->priv->bt_client, powered); | ||
3036 | 513 | } | ||
3037 | 514 | |||
3038 | 515 | static void | ||
3039 | 516 | -bt_powered_state_changed (CcPowerPanel *panel) | ||
3040 | 517 | +bt_powered_state_changed (GObject *client, | ||
3041 | 518 | + GParamSpec *pspec, | ||
3042 | 519 | + CcPowerPanel *panel) | ||
3043 | 520 | { | ||
3044 | 521 | CcPowerPanelPrivate *priv = panel->priv; | ||
3045 | 522 | gboolean powered; | ||
3046 | 523 | - GVariant *v; | ||
3047 | 524 | - | ||
3048 | 525 | - v = g_dbus_proxy_get_cached_property (priv->bt_rfkill, "BluetoothAirplaneMode"); | ||
3049 | 526 | - powered = !g_variant_get_boolean (v); | ||
3050 | 527 | - g_variant_unref (v); | ||
3051 | 528 | |||
3052 | 529 | + g_object_get (client, "default-adapter-powered", &powered, NULL); | ||
3053 | 530 | g_debug ("bt powered state changed to %s", powered ? "on" : "off"); | ||
3054 | 531 | |||
3055 | 532 | g_signal_handlers_block_by_func (priv->bt_switch, bt_switch_changed, panel); | ||
3056 | 533 | gtk_switch_set_active (GTK_SWITCH (priv->bt_switch), powered); | ||
3057 | 534 | g_signal_handlers_unblock_by_func (priv->bt_switch, bt_switch_changed, panel); | ||
3058 | 535 | } | ||
3059 | 536 | +#endif | ||
3060 | 537 | |||
3061 | 538 | #ifdef HAVE_NETWORK_MANAGER | ||
3062 | 539 | static gboolean | ||
3063 | 540 | @@ -1419,8 +1474,8 @@ add_brightness_row (CcPowerPanel *self, | ||
3064 | 541 | label = gtk_label_new (text); | ||
3065 | 542 | gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); | ||
3066 | 543 | gtk_label_set_use_underline (GTK_LABEL (label), TRUE); | ||
3067 | 544 | - gtk_widget_set_margin_start (label, 20); | ||
3068 | 545 | - gtk_widget_set_margin_end (label, 20); | ||
3069 | 546 | + gtk_widget_set_margin_left (label, 20); | ||
3070 | 547 | + gtk_widget_set_margin_right (label, 20); | ||
3071 | 548 | gtk_widget_set_margin_top (label, 6); | ||
3072 | 549 | gtk_widget_set_margin_bottom (label, 6); | ||
3073 | 550 | gtk_box_pack_start (GTK_BOX (box), label, FALSE, TRUE, 0); | ||
3074 | 551 | @@ -1433,8 +1488,8 @@ add_brightness_row (CcPowerPanel *self, | ||
3075 | 552 | *brightness_scale = scale = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, 0, 100, 1); | ||
3076 | 553 | gtk_label_set_mnemonic_widget (GTK_LABEL (label), scale); | ||
3077 | 554 | gtk_scale_set_draw_value (GTK_SCALE (scale), FALSE); | ||
3078 | 555 | - gtk_widget_set_margin_start (scale, 20); | ||
3079 | 556 | - gtk_widget_set_margin_end (scale, 20); | ||
3080 | 557 | + gtk_widget_set_margin_left (scale, 20); | ||
3081 | 558 | + gtk_widget_set_margin_right (scale, 20); | ||
3082 | 559 | gtk_box_pack_start (GTK_BOX (box2), scale, TRUE, TRUE, 0); | ||
3083 | 560 | gtk_size_group_add_widget (priv->level_sizegroup, scale); | ||
3084 | 561 | g_signal_connect (scale, "value-changed", | ||
3085 | 562 | @@ -1465,8 +1520,8 @@ add_power_saving_section (CcPowerPanel * | ||
3086 | 563 | g_free (s); | ||
3087 | 564 | gtk_label_set_use_markup (GTK_LABEL (widget), TRUE); | ||
3088 | 565 | gtk_misc_set_alignment (GTK_MISC (widget), 0, 0.5); | ||
3089 | 566 | - gtk_widget_set_margin_start (widget, 56); | ||
3090 | 567 | - gtk_widget_set_margin_end (widget, 56); | ||
3091 | 568 | + gtk_widget_set_margin_left (widget, 56); | ||
3092 | 569 | + gtk_widget_set_margin_right (widget, 56); | ||
3093 | 570 | gtk_widget_set_margin_bottom (widget, 6); | ||
3094 | 571 | gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE, TRUE, 0); | ||
3095 | 572 | gtk_widget_show (widget); | ||
3096 | 573 | @@ -1481,8 +1536,8 @@ add_power_saving_section (CcPowerPanel * | ||
3097 | 574 | |||
3098 | 575 | box = gtk_frame_new (NULL); | ||
3099 | 576 | gtk_frame_set_shadow_type (GTK_FRAME (box), GTK_SHADOW_IN); | ||
3100 | 577 | - gtk_widget_set_margin_start (box, 50); | ||
3101 | 578 | - gtk_widget_set_margin_end (box, 50); | ||
3102 | 579 | + gtk_widget_set_margin_left (box, 50); | ||
3103 | 580 | + gtk_widget_set_margin_right (box, 50); | ||
3104 | 581 | gtk_widget_set_margin_bottom (box, 24); | ||
3105 | 582 | gtk_widget_show (box); | ||
3106 | 583 | gtk_container_add (GTK_CONTAINER (box), widget); | ||
3107 | 584 | @@ -1507,8 +1562,8 @@ add_power_saving_section (CcPowerPanel * | ||
3108 | 585 | label = gtk_label_new (_("_Dim screen when inactive")); | ||
3109 | 586 | gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); | ||
3110 | 587 | gtk_label_set_use_underline (GTK_LABEL (label), TRUE); | ||
3111 | 588 | - gtk_widget_set_margin_start (label, 20); | ||
3112 | 589 | - gtk_widget_set_margin_end (label, 20); | ||
3113 | 590 | + gtk_widget_set_margin_left (label, 20); | ||
3114 | 591 | + gtk_widget_set_margin_right (label, 20); | ||
3115 | 592 | gtk_widget_set_margin_top (label, 6); | ||
3116 | 593 | gtk_widget_set_margin_bottom (label, 6); | ||
3117 | 594 | gtk_box_pack_start (GTK_BOX (box), label, TRUE, TRUE, 0); | ||
3118 | 595 | @@ -1517,8 +1572,8 @@ add_power_saving_section (CcPowerPanel * | ||
3119 | 596 | g_settings_bind (priv->gsd_settings, "idle-dim", | ||
3120 | 597 | sw, "active", | ||
3121 | 598 | G_SETTINGS_BIND_DEFAULT); | ||
3122 | 599 | - gtk_widget_set_margin_start (sw, 20); | ||
3123 | 600 | - gtk_widget_set_margin_end (sw, 20); | ||
3124 | 601 | + gtk_widget_set_margin_left (sw, 20); | ||
3125 | 602 | + gtk_widget_set_margin_right (sw, 20); | ||
3126 | 603 | gtk_widget_set_valign (sw, GTK_ALIGN_CENTER); | ||
3127 | 604 | gtk_box_pack_start (GTK_BOX (box), sw, FALSE, TRUE, 0); | ||
3128 | 605 | gtk_label_set_mnemonic_widget (GTK_LABEL (label), sw); | ||
3129 | 606 | @@ -1532,8 +1587,8 @@ add_power_saving_section (CcPowerPanel * | ||
3130 | 607 | label = gtk_label_new (_("_Blank screen")); | ||
3131 | 608 | gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); | ||
3132 | 609 | gtk_label_set_use_underline (GTK_LABEL (label), TRUE); | ||
3133 | 610 | - gtk_widget_set_margin_start (label, 20); | ||
3134 | 611 | - gtk_widget_set_margin_end (label, 20); | ||
3135 | 612 | + gtk_widget_set_margin_left (label, 20); | ||
3136 | 613 | + gtk_widget_set_margin_right (label, 20); | ||
3137 | 614 | gtk_widget_set_margin_top (label, 6); | ||
3138 | 615 | gtk_widget_set_margin_bottom (label, 6); | ||
3139 | 616 | gtk_box_pack_start (GTK_BOX (box), label, TRUE, TRUE, 0); | ||
3140 | 617 | @@ -1546,8 +1601,8 @@ add_power_saving_section (CcPowerPanel * | ||
3141 | 618 | set_value_for_combo (GTK_COMBO_BOX (combo), value); | ||
3142 | 619 | g_signal_connect (combo, "changed", | ||
3143 | 620 | G_CALLBACK (combo_idle_delay_changed_cb), self); | ||
3144 | 621 | - gtk_widget_set_margin_start (combo, 20); | ||
3145 | 622 | - gtk_widget_set_margin_end (combo, 20); | ||
3146 | 623 | + gtk_widget_set_margin_left (combo, 20); | ||
3147 | 624 | + gtk_widget_set_margin_right (combo, 20); | ||
3148 | 625 | gtk_widget_set_valign (combo, GTK_ALIGN_CENTER); | ||
3149 | 626 | gtk_box_pack_start (GTK_BOX (box), combo, FALSE, TRUE, 0); | ||
3150 | 627 | gtk_label_set_mnemonic_widget (GTK_LABEL (label), combo); | ||
3151 | 628 | @@ -1560,8 +1615,8 @@ add_power_saving_section (CcPowerPanel * | ||
3152 | 629 | gtk_container_add (GTK_CONTAINER (row), box); | ||
3153 | 630 | |||
3154 | 631 | box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); | ||
3155 | 632 | - gtk_widget_set_margin_start (box2, 20); | ||
3156 | 633 | - gtk_widget_set_margin_end (box2, 20); | ||
3157 | 634 | + gtk_widget_set_margin_left (box2, 20); | ||
3158 | 635 | + gtk_widget_set_margin_right (box2, 20); | ||
3159 | 636 | gtk_widget_set_margin_top (box2, 6); | ||
3160 | 637 | gtk_widget_set_margin_bottom (box2, 6); | ||
3161 | 638 | gtk_box_pack_start (GTK_BOX (box), box2, TRUE, TRUE, 0); | ||
3162 | 639 | @@ -1577,8 +1632,8 @@ add_power_saving_section (CcPowerPanel * | ||
3163 | 640 | gtk_box_pack_start (GTK_BOX (box2), w, TRUE, TRUE, 0); | ||
3164 | 641 | |||
3165 | 642 | priv->wifi_switch = sw = gtk_switch_new (); | ||
3166 | 643 | - gtk_widget_set_margin_start (sw, 20); | ||
3167 | 644 | - gtk_widget_set_margin_end (sw, 20); | ||
3168 | 645 | + gtk_widget_set_margin_left (sw, 20); | ||
3169 | 646 | + gtk_widget_set_margin_right (sw, 20); | ||
3170 | 647 | gtk_widget_set_valign (sw, GTK_ALIGN_CENTER); | ||
3171 | 648 | gtk_box_pack_start (GTK_BOX (box), sw, FALSE, TRUE, 0); | ||
3172 | 649 | gtk_label_set_mnemonic_widget (GTK_LABEL (label), sw); | ||
3173 | 650 | @@ -1590,8 +1645,8 @@ add_power_saving_section (CcPowerPanel * | ||
3174 | 651 | gtk_container_add (GTK_CONTAINER (row), box); | ||
3175 | 652 | |||
3176 | 653 | box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); | ||
3177 | 654 | - gtk_widget_set_margin_start (box2, 20); | ||
3178 | 655 | - gtk_widget_set_margin_end (box2, 20); | ||
3179 | 656 | + gtk_widget_set_margin_left (box2, 20); | ||
3180 | 657 | + gtk_widget_set_margin_right (box2, 20); | ||
3181 | 658 | gtk_widget_set_margin_top (box2, 6); | ||
3182 | 659 | gtk_widget_set_margin_bottom (box2, 6); | ||
3183 | 660 | gtk_box_pack_start (GTK_BOX (box), box2, TRUE, TRUE, 0); | ||
3184 | 661 | @@ -1607,8 +1662,8 @@ add_power_saving_section (CcPowerPanel * | ||
3185 | 662 | gtk_box_pack_start (GTK_BOX (box2), w, TRUE, TRUE, 0); | ||
3186 | 663 | |||
3187 | 664 | priv->mobile_switch = sw = gtk_switch_new (); | ||
3188 | 665 | - gtk_widget_set_margin_start (sw, 20); | ||
3189 | 666 | - gtk_widget_set_margin_end (sw, 20); | ||
3190 | 667 | + gtk_widget_set_margin_left (sw, 20); | ||
3191 | 668 | + gtk_widget_set_margin_right (sw, 20); | ||
3192 | 669 | gtk_widget_set_valign (sw, GTK_ALIGN_CENTER); | ||
3193 | 670 | gtk_box_pack_start (GTK_BOX (box), sw, FALSE, TRUE, 0); | ||
3194 | 671 | gtk_label_set_mnemonic_widget (GTK_LABEL (label), sw); | ||
3195 | 672 | @@ -1631,47 +1686,33 @@ add_power_saving_section (CcPowerPanel * | ||
3196 | 673 | G_CALLBACK (wifi_switch_changed), self); | ||
3197 | 674 | #endif | ||
3198 | 675 | |||
3199 | 676 | - priv->bt_rfkill = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION, | ||
3200 | 677 | - G_DBUS_PROXY_FLAGS_NONE, | ||
3201 | 678 | - NULL, | ||
3202 | 679 | - "org.gnome.SettingsDaemon.Rfkill", | ||
3203 | 680 | - "/org/gnome/SettingsDaemon/Rfkill", | ||
3204 | 681 | - "org.gnome.SettingsDaemon.Rfkill", | ||
3205 | 682 | - NULL, NULL); | ||
3206 | 683 | - if (priv->bt_rfkill) | ||
3207 | 684 | - { | ||
3208 | 685 | - priv->bt_properties = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION, | ||
3209 | 686 | - G_DBUS_PROXY_FLAGS_NONE, | ||
3210 | 687 | - NULL, | ||
3211 | 688 | - "org.gnome.SettingsDaemon.Rfkill", | ||
3212 | 689 | - "/org/gnome/SettingsDaemon/Rfkill", | ||
3213 | 690 | - "org.freedesktop.DBus.Properties", | ||
3214 | 691 | - NULL, NULL); | ||
3215 | 692 | - row = gtk_list_box_row_new (); | ||
3216 | 693 | - box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 50); | ||
3217 | 694 | - gtk_container_add (GTK_CONTAINER (row), box); | ||
3218 | 695 | - label = gtk_label_new (_("_Bluetooth")); | ||
3219 | 696 | - gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); | ||
3220 | 697 | - gtk_label_set_use_underline (GTK_LABEL (label), TRUE); | ||
3221 | 698 | - gtk_widget_set_margin_start (label, 20); | ||
3222 | 699 | - gtk_widget_set_margin_end (label, 20); | ||
3223 | 700 | - gtk_widget_set_margin_top (label, 6); | ||
3224 | 701 | - gtk_widget_set_margin_bottom (label, 6); | ||
3225 | 702 | - gtk_box_pack_start (GTK_BOX (box), label, TRUE, TRUE, 0); | ||
3226 | 703 | - | ||
3227 | 704 | - priv->bt_switch = sw = gtk_switch_new (); | ||
3228 | 705 | - gtk_widget_set_margin_start (sw, 20); | ||
3229 | 706 | - gtk_widget_set_margin_end (sw, 20); | ||
3230 | 707 | - gtk_widget_set_valign (sw, GTK_ALIGN_CENTER); | ||
3231 | 708 | - gtk_box_pack_start (GTK_BOX (box), sw, FALSE, TRUE, 0); | ||
3232 | 709 | - gtk_label_set_mnemonic_widget (GTK_LABEL (label), sw); | ||
3233 | 710 | - gtk_container_add (GTK_CONTAINER (widget), row); | ||
3234 | 711 | - gtk_size_group_add_widget (priv->row_sizegroup, row); | ||
3235 | 712 | - g_signal_connect_swapped (G_OBJECT (priv->bt_rfkill), "g-properties-changed", | ||
3236 | 713 | - G_CALLBACK (bt_powered_state_changed), self); | ||
3237 | 714 | - g_signal_connect (G_OBJECT (priv->bt_switch), "notify::active", | ||
3238 | 715 | - G_CALLBACK (bt_switch_changed), self); | ||
3239 | 716 | - } | ||
3240 | 717 | +#ifdef HAVE_BLUETOOTH | ||
3241 | 718 | + priv->bt_client = bluetooth_client_new (); | ||
3242 | 719 | + row = gtk_list_box_row_new (); | ||
3243 | 720 | + box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 50); | ||
3244 | 721 | + gtk_container_add (GTK_CONTAINER (row), box); | ||
3245 | 722 | + label = gtk_label_new (_("_Bluetooth")); | ||
3246 | 723 | + gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); | ||
3247 | 724 | + gtk_label_set_use_underline (GTK_LABEL (label), TRUE); | ||
3248 | 725 | + gtk_widget_set_margin_left (label, 20); | ||
3249 | 726 | + gtk_widget_set_margin_right (label, 20); | ||
3250 | 727 | + gtk_widget_set_margin_top (label, 6); | ||
3251 | 728 | + gtk_widget_set_margin_bottom (label, 6); | ||
3252 | 729 | + gtk_box_pack_start (GTK_BOX (box), label, TRUE, TRUE, 0); | ||
3253 | 730 | + | ||
3254 | 731 | + priv->bt_switch = sw = gtk_switch_new (); | ||
3255 | 732 | + gtk_widget_set_margin_left (sw, 20); | ||
3256 | 733 | + gtk_widget_set_margin_right (sw, 20); | ||
3257 | 734 | + gtk_widget_set_valign (sw, GTK_ALIGN_CENTER); | ||
3258 | 735 | + gtk_box_pack_start (GTK_BOX (box), sw, FALSE, TRUE, 0); | ||
3259 | 736 | + gtk_label_set_mnemonic_widget (GTK_LABEL (label), sw); | ||
3260 | 737 | + gtk_container_add (GTK_CONTAINER (widget), row); | ||
3261 | 738 | + gtk_size_group_add_widget (priv->row_sizegroup, row); | ||
3262 | 739 | + g_signal_connect (G_OBJECT (priv->bt_client), "notify::default-adapter-powered", | ||
3263 | 740 | + G_CALLBACK (bt_powered_state_changed), self); | ||
3264 | 741 | + g_signal_connect (G_OBJECT (priv->bt_switch), "notify::active", | ||
3265 | 742 | + G_CALLBACK (bt_switch_changed), self); | ||
3266 | 743 | +#endif | ||
3267 | 744 | |||
3268 | 745 | gtk_widget_show_all (widget); | ||
3269 | 746 | } | ||
3270 | 747 | @@ -1837,8 +1878,8 @@ add_automatic_suspend_section (CcPowerPa | ||
3271 | 748 | g_free (s); | ||
3272 | 749 | gtk_label_set_use_markup (GTK_LABEL (widget), TRUE); | ||
3273 | 750 | gtk_misc_set_alignment (GTK_MISC (widget), 0, 0.5); | ||
3274 | 751 | - gtk_widget_set_margin_start (widget, 56); | ||
3275 | 752 | - gtk_widget_set_margin_end (widget, 50); | ||
3276 | 753 | + gtk_widget_set_margin_left (widget, 56); | ||
3277 | 754 | + gtk_widget_set_margin_right (widget, 50); | ||
3278 | 755 | gtk_widget_set_margin_bottom (widget, 6); | ||
3279 | 756 | gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE, TRUE, 0); | ||
3280 | 757 | gtk_widget_show (widget); | ||
3281 | 758 | @@ -1855,8 +1896,8 @@ add_automatic_suspend_section (CcPowerPa | ||
3282 | 759 | |||
3283 | 760 | box = gtk_frame_new (NULL); | ||
3284 | 761 | gtk_frame_set_shadow_type (GTK_FRAME (box), GTK_SHADOW_IN); | ||
3285 | 762 | - gtk_widget_set_margin_start (box, 50); | ||
3286 | 763 | - gtk_widget_set_margin_end (box, 50); | ||
3287 | 764 | + gtk_widget_set_margin_left (box, 50); | ||
3288 | 765 | + gtk_widget_set_margin_right (box, 50); | ||
3289 | 766 | gtk_widget_set_margin_bottom (box, 24); | ||
3290 | 767 | gtk_widget_show (box); | ||
3291 | 768 | gtk_container_add (GTK_CONTAINER (box), widget); | ||
3292 | 769 | @@ -1868,8 +1909,8 @@ add_automatic_suspend_section (CcPowerPa | ||
3293 | 770 | label = gtk_label_new (_("_Automatic suspend")); | ||
3294 | 771 | gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); | ||
3295 | 772 | gtk_label_set_use_underline (GTK_LABEL (label), TRUE); | ||
3296 | 773 | - gtk_widget_set_margin_start (label, 20); | ||
3297 | 774 | - gtk_widget_set_margin_end (label, 20); | ||
3298 | 775 | + gtk_widget_set_margin_left (label, 20); | ||
3299 | 776 | + gtk_widget_set_margin_right (label, 20); | ||
3300 | 777 | gtk_widget_set_margin_top (label, 6); | ||
3301 | 778 | gtk_widget_set_margin_bottom (label, 6); | ||
3302 | 779 | gtk_box_pack_start (GTK_BOX (box), label, TRUE, TRUE, 0); | ||
3303 | 780 | @@ -1879,8 +1920,8 @@ add_automatic_suspend_section (CcPowerPa | ||
3304 | 781 | g_signal_connect (sw, "mnemonic-activate", | ||
3305 | 782 | G_CALLBACK (automatic_suspend_activate), self); | ||
3306 | 783 | gtk_misc_set_alignment (GTK_MISC (sw), 1, 0.5); | ||
3307 | 784 | - gtk_widget_set_margin_start (sw, 24); | ||
3308 | 785 | - gtk_widget_set_margin_end (sw, 24); | ||
3309 | 786 | + gtk_widget_set_margin_left (sw, 24); | ||
3310 | 787 | + gtk_widget_set_margin_right (sw, 24); | ||
3311 | 788 | gtk_box_pack_start (GTK_BOX (box), sw, FALSE, TRUE, 0); | ||
3312 | 789 | gtk_container_add (GTK_CONTAINER (widget), row); | ||
3313 | 790 | gtk_size_group_add_widget (priv->row_sizegroup, row); | ||
3314 | 791 | @@ -1892,8 +1933,8 @@ add_automatic_suspend_section (CcPowerPa | ||
3315 | 792 | label = gtk_label_new (_("When battery power is _critical")); | ||
3316 | 793 | gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); | ||
3317 | 794 | gtk_label_set_use_underline (GTK_LABEL (label), TRUE); | ||
3318 | 795 | - gtk_widget_set_margin_start (label, 20); | ||
3319 | 796 | - gtk_widget_set_margin_end (label, 20); | ||
3320 | 797 | + gtk_widget_set_margin_left (label, 20); | ||
3321 | 798 | + gtk_widget_set_margin_right (label, 20); | ||
3322 | 799 | gtk_widget_set_margin_top (label, 6); | ||
3323 | 800 | gtk_widget_set_margin_bottom (label, 6); | ||
3324 | 801 | gtk_box_pack_start (GTK_BOX (box), label, TRUE, TRUE, 0); | ||
3325 | 802 | @@ -1930,8 +1971,8 @@ add_automatic_suspend_section (CcPowerPa | ||
3326 | 803 | cell = gtk_cell_renderer_text_new (); | ||
3327 | 804 | gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (sw), cell, TRUE); | ||
3328 | 805 | gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (sw), cell, "text", 0); | ||
3329 | 806 | - gtk_widget_set_margin_start (sw, 20); | ||
3330 | 807 | - gtk_widget_set_margin_end (sw, 20); | ||
3331 | 808 | + gtk_widget_set_margin_left (sw, 20); | ||
3332 | 809 | + gtk_widget_set_margin_right (sw, 20); | ||
3333 | 810 | gtk_widget_set_valign (sw, GTK_ALIGN_CENTER); | ||
3334 | 811 | |||
3335 | 812 | g_object_set_data (G_OBJECT (sw), "_gsettings_key", "critical-battery-action"); | ||
3336 | 813 | @@ -1947,8 +1988,8 @@ add_automatic_suspend_section (CcPowerPa | ||
3337 | 814 | else | ||
3338 | 815 | { | ||
3339 | 816 | label = gtk_label_new (_("Power Off")); | ||
3340 | 817 | - gtk_widget_set_margin_start (label, 20); | ||
3341 | 818 | - gtk_widget_set_margin_end (label, 20); | ||
3342 | 819 | + gtk_widget_set_margin_left (label, 20); | ||
3343 | 820 | + gtk_widget_set_margin_right (label, 20); | ||
3344 | 821 | gtk_widget_set_margin_top (label, 6); | ||
3345 | 822 | gtk_widget_set_margin_bottom (label, 6); | ||
3346 | 823 | gtk_box_pack_start (GTK_BOX (box), label, FALSE, TRUE, 0); | ||
3347 | 824 | @@ -2030,8 +2071,8 @@ add_battery_section (CcPowerPanel *self) | ||
3348 | 825 | vbox = WID (priv->builder, "vbox_power"); | ||
3349 | 826 | |||
3350 | 827 | priv->battery_section = box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); | ||
3351 | 828 | - gtk_widget_set_margin_start (box, 50); | ||
3352 | 829 | - gtk_widget_set_margin_end (box, 50); | ||
3353 | 830 | + gtk_widget_set_margin_left (box, 50); | ||
3354 | 831 | + gtk_widget_set_margin_right (box, 50); | ||
3355 | 832 | gtk_widget_set_margin_bottom (box, 6); | ||
3356 | 833 | gtk_widget_set_margin_bottom (box, 24); | ||
3357 | 834 | gtk_box_pack_start (GTK_BOX (vbox), box, FALSE, TRUE, 0); | ||
3358 | 835 | @@ -2041,8 +2082,8 @@ add_battery_section (CcPowerPanel *self) | ||
3359 | 836 | g_free (s); | ||
3360 | 837 | gtk_label_set_use_markup (GTK_LABEL (widget), TRUE); | ||
3361 | 838 | gtk_misc_set_alignment (GTK_MISC (widget), 0, 0.5); | ||
3362 | 839 | - gtk_widget_set_margin_start (widget, 6); | ||
3363 | 840 | - gtk_widget_set_margin_end (widget, 6); | ||
3364 | 841 | + gtk_widget_set_margin_left (widget, 6); | ||
3365 | 842 | + gtk_widget_set_margin_right (widget, 6); | ||
3366 | 843 | gtk_widget_set_margin_bottom (widget, 6); | ||
3367 | 844 | gtk_widget_set_margin_bottom (box, 24); | ||
3368 | 845 | gtk_box_pack_start (GTK_BOX (box), widget, FALSE, TRUE, 0); | ||
3369 | 846 | @@ -2077,8 +2118,8 @@ add_device_section (CcPowerPanel *self) | ||
3370 | 847 | vbox = WID (priv->builder, "vbox_power"); | ||
3371 | 848 | |||
3372 | 849 | priv->device_section = box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); | ||
3373 | 850 | - gtk_widget_set_margin_start (box, 50); | ||
3374 | 851 | - gtk_widget_set_margin_end (box, 50); | ||
3375 | 852 | + gtk_widget_set_margin_left (box, 50); | ||
3376 | 853 | + gtk_widget_set_margin_right (box, 50); | ||
3377 | 854 | gtk_widget_set_margin_top (box, 6); | ||
3378 | 855 | gtk_widget_set_margin_bottom (box, 24); | ||
3379 | 856 | gtk_box_pack_start (GTK_BOX (vbox), box, FALSE, TRUE, 0); | ||
3380 | 857 | @@ -2088,8 +2129,8 @@ add_device_section (CcPowerPanel *self) | ||
3381 | 858 | g_free (s); | ||
3382 | 859 | gtk_label_set_use_markup (GTK_LABEL (widget), TRUE); | ||
3383 | 860 | gtk_misc_set_alignment (GTK_MISC (widget), 0, 0.5); | ||
3384 | 861 | - gtk_widget_set_margin_start (widget, 6); | ||
3385 | 862 | - gtk_widget_set_margin_end (widget, 6); | ||
3386 | 863 | + gtk_widget_set_margin_left (widget, 6); | ||
3387 | 864 | + gtk_widget_set_margin_right (widget, 6); | ||
3388 | 865 | gtk_widget_set_margin_bottom (widget, 6); | ||
3389 | 866 | gtk_box_pack_start (GTK_BOX (box), widget, FALSE, TRUE, 0); | ||
3390 | 867 | |||
3391 | 868 | @@ -2137,7 +2178,6 @@ cc_power_panel_init (CcPowerPanel *self) | ||
3392 | 869 | GError *error; | ||
3393 | 870 | GtkWidget *widget; | ||
3394 | 871 | GtkWidget *box; | ||
3395 | 872 | - guint i; | ||
3396 | 873 | |||
3397 | 874 | priv = self->priv = POWER_PANEL_PRIVATE (self); | ||
3398 | 875 | g_resources_register (cc_power_get_resource ()); | ||
3399 | 876 | @@ -2201,15 +2241,9 @@ cc_power_panel_init (CcPowerPanel *self) | ||
3400 | 877 | update_automatic_suspend_label (self); | ||
3401 | 878 | |||
3402 | 879 | /* populate batteries */ | ||
3403 | 880 | - g_signal_connect (priv->up_client, "device-added", G_CALLBACK (up_client_device_added), self); | ||
3404 | 881 | - g_signal_connect (priv->up_client, "device-removed", G_CALLBACK (up_client_device_removed), self); | ||
3405 | 882 | - | ||
3406 | 883 | - priv->devices = up_client_get_devices (priv->up_client); | ||
3407 | 884 | - for (i = 0; priv->devices != NULL && i < priv->devices->len; i++) { | ||
3408 | 885 | - UpDevice *device = g_ptr_array_index (priv->devices, i); | ||
3409 | 886 | - g_signal_connect (G_OBJECT (device), "notify", | ||
3410 | 887 | - G_CALLBACK (up_client_changed), self); | ||
3411 | 888 | - } | ||
3412 | 889 | + g_signal_connect (priv->up_client, "device-added", G_CALLBACK (up_client_changed), self); | ||
3413 | 890 | + g_signal_connect (priv->up_client, "device-changed", G_CALLBACK (up_client_changed), self); | ||
3414 | 891 | + g_signal_connect (priv->up_client, "device-removed", G_CALLBACK (up_client_changed), self); | ||
3415 | 892 | up_client_changed (priv->up_client, NULL, self); | ||
3416 | 893 | |||
3417 | 894 | widget = WID (priv->builder, "vbox_power"); | ||
3418 | 895 | Index: gnome-control-center/panels/power/cc-power-panel.h | ||
3419 | 896 | =================================================================== | ||
3420 | 897 | --- gnome-control-center.orig/panels/power/cc-power-panel.h | ||
3421 | 898 | +++ gnome-control-center/panels/power/cc-power-panel.h | ||
3422 | 899 | @@ -13,7 +13,8 @@ | ||
3423 | 900 | * GNU General Public License for more details. | ||
3424 | 901 | * | ||
3425 | 902 | * You should have received a copy of the GNU General Public License | ||
3426 | 903 | - * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
3427 | 904 | + * along with this program; if not, write to the Free Software | ||
3428 | 905 | + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
3429 | 906 | * | ||
3430 | 907 | */ | ||
3431 | 908 | |||
3432 | 909 | Index: gnome-control-center/panels/power/gnome-power-panel.desktop.in.in | ||
3433 | 910 | =================================================================== | ||
3434 | 911 | --- gnome-control-center.orig/panels/power/gnome-power-panel.desktop.in.in | ||
3435 | 912 | +++ gnome-control-center/panels/power/gnome-power-panel.desktop.in.in | ||
3436 | 913 | @@ -5,7 +5,6 @@ Exec=gnome-control-center power | ||
3437 | 914 | Icon=gnome-power-manager | ||
3438 | 915 | Terminal=false | ||
3439 | 916 | Type=Application | ||
3440 | 917 | -NoDisplay=true | ||
3441 | 918 | StartupNotify=true | ||
3442 | 919 | Categories=GNOME;GTK;Settings;DesktopSettings;X-GNOME-Settings-Panel;HardwareSettings; | ||
3443 | 920 | OnlyShowIn=GNOME;Unity; | ||
3444 | 921 | Index: gnome-control-center/panels/power/power.ui | ||
3445 | 922 | =================================================================== | ||
3446 | 923 | --- gnome-control-center.orig/panels/power/power.ui | ||
3447 | 924 | +++ gnome-control-center/panels/power/power.ui | ||
3448 | 925 | @@ -129,6 +129,7 @@ | ||
3449 | 926 | <child internal-child="vbox"> | ||
3450 | 927 | <object class="GtkBox" id="asdf"> | ||
3451 | 928 | <property name="can_focus">False</property> | ||
3452 | 929 | + <property name="resize_mode">immediate</property> | ||
3453 | 930 | <property name="orientation">vertical</property> | ||
3454 | 931 | <property name="spacing">2</property> | ||
3455 | 932 | <child internal-child="action_area"> | ||
3456 | 933 | @@ -163,8 +164,8 @@ | ||
3457 | 934 | <object class="GtkGrid" id="grid1"> | ||
3458 | 935 | <property name="visible">True</property> | ||
3459 | 936 | <property name="can_focus">False</property> | ||
3460 | 937 | - <property name="margin_start">12</property> | ||
3461 | 938 | - <property name="margin_end">6</property> | ||
3462 | 939 | + <property name="margin_left">12</property> | ||
3463 | 940 | + <property name="margin_right">6</property> | ||
3464 | 941 | <property name="margin_top">12</property> | ||
3465 | 942 | <property name="margin_bottom">12</property> | ||
3466 | 943 | <property name="row_spacing">12</property> | ||
3467 | 944 | @@ -219,6 +220,8 @@ | ||
3468 | 945 | <object class="GtkComboBoxText" id="suspend_on_battery_delay_combo"> | ||
3469 | 946 | <property name="visible">True</property> | ||
3470 | 947 | <property name="can_focus">False</property> | ||
3471 | 948 | + <property name="margin_left">4</property> | ||
3472 | 949 | + <property name="margin_right">4</property> | ||
3473 | 950 | <property name="entry_text_column">0</property> | ||
3474 | 951 | <property name="id_column">1</property> | ||
3475 | 952 | <property name="model">liststore_time</property> | ||
3476 | 953 | @@ -234,7 +237,7 @@ | ||
3477 | 954 | <object class="GtkLabel" id="suspend_on_battery_delay_label"> | ||
3478 | 955 | <property name="visible">True</property> | ||
3479 | 956 | <property name="can_focus">False</property> | ||
3480 | 957 | - <property name="margin_start">20</property> | ||
3481 | 958 | + <property name="margin_left">20</property> | ||
3482 | 959 | <property name="xalign">1</property> | ||
3483 | 960 | <property name="label" translatable="yes">Delay</property> | ||
3484 | 961 | <property name="mnemonic_widget">suspend_on_battery_delay_combo</property> | ||
3485 | 962 | @@ -267,6 +270,8 @@ | ||
3486 | 963 | <object class="GtkComboBoxText" id="suspend_on_ac_delay_combo"> | ||
3487 | 964 | <property name="visible">True</property> | ||
3488 | 965 | <property name="can_focus">False</property> | ||
3489 | 966 | + <property name="margin_left">4</property> | ||
3490 | 967 | + <property name="margin_right">4</property> | ||
3491 | 968 | <property name="entry_text_column">0</property> | ||
3492 | 969 | <property name="id_column">1</property> | ||
3493 | 970 | <property name="model">liststore_time</property> | ||
3494 | 971 | @@ -294,7 +299,7 @@ | ||
3495 | 972 | <object class="GtkLabel" id="suspend_on_ac_delay_label"> | ||
3496 | 973 | <property name="visible">True</property> | ||
3497 | 974 | <property name="can_focus">False</property> | ||
3498 | 975 | - <property name="margin_start">20</property> | ||
3499 | 976 | + <property name="margin_left">20</property> | ||
3500 | 977 | <property name="xalign">1</property> | ||
3501 | 978 | <property name="label" translatable="yes">Delay</property> | ||
3502 | 979 | <property name="mnemonic_widget">suspend_on_ac_delay_combo</property> | ||
3503 | 0 | 980 | ||
3504 | === added file 'debian/patches/revert-bluetooth-BlueZ5-interface.patch' | |||
3505 | --- debian/patches/revert-bluetooth-BlueZ5-interface.patch 1970-01-01 00:00:00 +0000 | |||
3506 | +++ debian/patches/revert-bluetooth-BlueZ5-interface.patch 2014-09-30 05:25:02 +0000 | |||
3507 | @@ -0,0 +1,34 @@ | |||
3508 | 1 | From d15a9709f2782dc36b8d86905507a014922f01ed Mon Sep 17 00:00:00 2001 | ||
3509 | 2 | From: Tim Lunn <tim@feathertop.org> | ||
3510 | 3 | Date: Wed, 23 Oct 2013 07:39:24 +1100 | ||
3511 | 4 | Subject: [PATCH] Revert "Update adapter interface for BlueZ 5" | ||
3512 | 5 | |||
3513 | 6 | This reverts commit ac43647ac01cb990555c7b4ff7b8bf5fb8b17b83. | ||
3514 | 7 | --- | ||
3515 | 8 | panels/bluetooth/cc-bluetooth-panel.c | 7 ++----- | ||
3516 | 9 | 1 file changed, 2 insertions(+), 5 deletions(-) | ||
3517 | 10 | |||
3518 | 11 | --- a/panels/bluetooth/cc-bluetooth-panel.c | ||
3519 | 12 | +++ b/panels/bluetooth/cc-bluetooth-panel.c | ||
3520 | 13 | @@ -43,9 +43,6 @@ | ||
3521 | 14 | |||
3522 | 15 | #define WID(s) GTK_WIDGET (gtk_builder_get_object (self->priv->builder, s)) | ||
3523 | 16 | |||
3524 | 17 | -#define BLUEZ_SERVICE "org.bluez" | ||
3525 | 18 | -#define ADAPTER_IFACE "org.bluez.Adapter1" | ||
3526 | 19 | - | ||
3527 | 20 | #define KEYBOARD_PREFS "keyboard" | ||
3528 | 21 | #define MOUSE_PREFS "mouse" | ||
3529 | 22 | #define SOUND_PREFS "sound" | ||
3530 | 23 | @@ -675,9 +672,9 @@ | ||
3531 | 24 | adapter_proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM, | ||
3532 | 25 | G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES | G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START, | ||
3533 | 26 | NULL, | ||
3534 | 27 | - BLUEZ_SERVICE, | ||
3535 | 28 | + "org.bluez", | ||
3536 | 29 | adapter, | ||
3537 | 30 | - ADAPTER_IFACE, | ||
3538 | 31 | + "org.bluez.Adapter", | ||
3539 | 32 | NULL, | ||
3540 | 33 | &error); | ||
3541 | 34 | g_free (adapter); | ||
3542 | 0 | 35 | ||
3543 | === modified file 'debian/patches/revert_git_dont_hide_zoom.patch' | |||
3544 | --- debian/patches/revert_git_dont_hide_zoom.patch 2014-02-12 00:19:03 +0000 | |||
3545 | +++ debian/patches/revert_git_dont_hide_zoom.patch 2014-09-30 05:25:02 +0000 | |||
3546 | @@ -7,19 +7,17 @@ | |||
3547 | 7 | 7 | ||
3548 | 8 | https://bugzilla.gnome.org/show_bug.cgi?id=682862 | 8 | https://bugzilla.gnome.org/show_bug.cgi?id=682862 |
3549 | 9 | --- | 9 | --- |
3556 | 10 | Index: gnome-control-center-3.8.3/panels/universal-access/cc-ua-panel.c | 10 | --- a/panels/universal-access/cc-ua-panel.c |
3557 | 11 | =================================================================== | 11 | +++ b/panels/universal-access/cc-ua-panel.c |
3558 | 12 | --- gnome-control-center-3.8.3.orig/panels/universal-access/cc-ua-panel.c 2013-06-11 20:04:34.087380775 -0400 | 12 | @@ -102,6 +102,7 @@ |
3559 | 13 | +++ gnome-control-center-3.8.3/panels/universal-access/cc-ua-panel.c 2013-06-11 20:04:34.083380775 -0400 | 13 | GSettings *application_settings; |
3554 | 14 | @@ -60,6 +60,7 @@ | ||
3555 | 15 | GSettings *mediakeys_settings; | ||
3560 | 16 | 14 | ||
3561 | 17 | ZoomOptions *zoom_options; | 15 | ZoomOptions *zoom_options; |
3562 | 18 | + guint shell_watch_id; | 16 | + guint shell_watch_id; |
3567 | 19 | }; | 17 | |
3568 | 20 | 18 | GtkAdjustment *focus_adjustment; | |
3569 | 21 | 19 | ||
3570 | 22 | @@ -94,6 +95,12 @@ | 20 | @@ -116,6 +117,12 @@ |
3571 | 23 | { | 21 | { |
3572 | 24 | CcUaPanelPrivate *priv = CC_UA_PANEL (object)->priv; | 22 | CcUaPanelPrivate *priv = CC_UA_PANEL (object)->priv; |
3573 | 25 | 23 | ||
3574 | @@ -29,11 +27,11 @@ | |||
3575 | 29 | + priv->shell_watch_id = 0; | 27 | + priv->shell_watch_id = 0; |
3576 | 30 | + } | 28 | + } |
3577 | 31 | + | 29 | + |
3583 | 32 | if (priv->builder) | 30 | g_clear_object (&priv->builder); |
3584 | 33 | { | 31 | g_slist_free_full (priv->toplevels, (GDestroyNotify)gtk_widget_destroy); |
3585 | 34 | g_object_unref (priv->builder); | 32 | priv->toplevels = NULL; |
3586 | 35 | @@ -300,6 +307,29 @@ | 33 | @@ -177,6 +184,29 @@ |
3587 | 36 | g_free (text); | 34 | return (factor > DPI_FACTOR_NORMAL); |
3588 | 37 | } | 35 | } |
3589 | 38 | 36 | ||
3590 | 39 | +static void | 37 | +static void |
3591 | @@ -43,8 +41,8 @@ | |||
3592 | 43 | +{ | 41 | +{ |
3593 | 44 | + CcUaPanelPrivate *priv = self->priv; | 42 | + CcUaPanelPrivate *priv = self->priv; |
3594 | 45 | + | 43 | + |
3597 | 46 | + gtk_widget_hide (WID (priv->builder, "zoom_label_box")); | 44 | + gtk_widget_hide (WID ("zoom_label_box")); |
3598 | 47 | + gtk_widget_hide (WID (priv->builder, "zoom_value_box")); | 45 | + gtk_widget_hide (WID ("zoom_value_box")); |
3599 | 48 | +} | 46 | +} |
3600 | 49 | + | 47 | + |
3601 | 50 | +static void | 48 | +static void |
3602 | @@ -55,17 +53,17 @@ | |||
3603 | 55 | +{ | 53 | +{ |
3604 | 56 | + CcUaPanelPrivate *priv = self->priv; | 54 | + CcUaPanelPrivate *priv = self->priv; |
3605 | 57 | + | 55 | + |
3608 | 58 | + gtk_widget_show (WID (priv->builder, "zoom_label_box")); | 56 | + gtk_widget_show (WID ("zoom_label_box")); |
3609 | 59 | + gtk_widget_show (WID (priv->builder, "zoom_value_box")); | 57 | + gtk_widget_show (WID ("zoom_value_box")); |
3610 | 60 | +} | 58 | +} |
3611 | 61 | + | 59 | + |
3612 | 62 | static gboolean | 60 | static gboolean |
3613 | 63 | get_large_text_mapping (GValue *value, | 61 | get_large_text_mapping (GValue *value, |
3614 | 64 | GVariant *variant, | 62 | GVariant *variant, |
3618 | 65 | @@ -401,6 +431,13 @@ | 63 | @@ -445,6 +475,13 @@ |
3619 | 66 | WID (priv->builder, "seeing_toggle_keys_switch"), "active", | 64 | NULL); |
3617 | 67 | G_SETTINGS_BIND_DEFAULT); | ||
3620 | 68 | 65 | ||
3621 | 66 | /* zoom */ | ||
3622 | 69 | + priv->shell_watch_id = g_bus_watch_name (G_BUS_TYPE_SESSION, | 67 | + priv->shell_watch_id = g_bus_watch_name (G_BUS_TYPE_SESSION, |
3623 | 70 | + "org.gnome.Shell", | 68 | + "org.gnome.Shell", |
3624 | 71 | + G_BUS_NAME_WATCHER_FLAGS_NONE, | 69 | + G_BUS_NAME_WATCHER_FLAGS_NONE, |
3625 | @@ -73,6 +71,6 @@ | |||
3626 | 73 | + (GBusNameVanishedCallback) shell_vanished_cb, | 71 | + (GBusNameVanishedCallback) shell_vanished_cb, |
3627 | 74 | + self, | 72 | + self, |
3628 | 75 | + NULL); | 73 | + NULL); |
3632 | 76 | g_signal_connect (WID (priv->builder, "seeing_zoom_preferences_button"), | 74 | |
3633 | 77 | "clicked", | 75 | g_settings_bind_with_mapping (priv->application_settings, "screen-magnifier-enabled", |
3634 | 78 | G_CALLBACK (zoom_options_launch_cb), self); | 76 | WID ("value_zoom"), |
3635 | 79 | 77 | ||
3636 | === modified file 'debian/patches/revert_git_drop_library.patch' | |||
3637 | --- debian/patches/revert_git_drop_library.patch 2014-02-12 00:19:03 +0000 | |||
3638 | +++ debian/patches/revert_git_drop_library.patch 2014-09-30 05:25:02 +0000 | |||
3639 | @@ -29,7 +29,7 @@ | |||
3640 | 29 | # Internationalization support | 29 | # Internationalization support |
3641 | 30 | 30 | ||
3642 | 31 | IT_PROG_INTLTOOL([0.40.1]) | 31 | IT_PROG_INTLTOOL([0.40.1]) |
3644 | 32 | @@ -326,9 +335,12 @@ | 32 | @@ -334,9 +343,12 @@ |
3645 | 33 | PANEL_CFLAGS="-I\$(top_srcdir)/ -DG_LOG_DOMAIN=\"\\\"\$(cappletname)-cc-panel\\\"\" -DPANEL_ID=\"\\\"\$(cappletname)\\\"\"" | 33 | PANEL_CFLAGS="-I\$(top_srcdir)/ -DG_LOG_DOMAIN=\"\\\"\$(cappletname)-cc-panel\\\"\" -DPANEL_ID=\"\\\"\$(cappletname)\\\"\"" |
3646 | 34 | AC_SUBST(PANEL_CFLAGS) | 34 | AC_SUBST(PANEL_CFLAGS) |
3647 | 35 | 35 | ||
3648 | @@ -40,10 +40,10 @@ | |||
3649 | 40 | +PANEL_LDFLAGS="-export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_io_module_(load|unload)'" | 40 | +PANEL_LDFLAGS="-export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_io_module_(load|unload)'" |
3650 | 41 | +AC_SUBST(PANEL_LDFLAGS) | 41 | +AC_SUBST(PANEL_LDFLAGS) |
3651 | 42 | + | 42 | + |
3656 | 43 | dnl ============================================== | 43 | dnl ======================================= |
3657 | 44 | dnl libsocialweb | 44 | dnl Update Mime Database |
3658 | 45 | dnl ============================================== | 45 | dnl ======================================= |
3659 | 46 | @@ -426,6 +438,7 @@ | 46 | @@ -416,6 +428,7 @@ |
3660 | 47 | 47 | ||
3661 | 48 | AC_CONFIG_FILES([ | 48 | AC_CONFIG_FILES([ |
3662 | 49 | Makefile | 49 | Makefile |
3663 | @@ -67,7 +67,7 @@ | |||
3664 | 67 | $(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-source --c-name cc_common $< | 67 | $(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-source --c-name cc_common $< |
3665 | 68 | --- a/shell/Makefile.am | 68 | --- a/shell/Makefile.am |
3666 | 69 | +++ b/shell/Makefile.am | 69 | +++ b/shell/Makefile.am |
3668 | 70 | @@ -28,14 +28,8 @@ | 70 | @@ -29,14 +29,8 @@ |
3669 | 71 | cc-shell-category-view.h \ | 71 | cc-shell-category-view.h \ |
3670 | 72 | cc-shell-item-view.c \ | 72 | cc-shell-item-view.c \ |
3671 | 73 | cc-shell-item-view.h \ | 73 | cc-shell-item-view.h \ |
3672 | @@ -84,7 +84,7 @@ | |||
3673 | 84 | hostname-helper.c \ | 84 | hostname-helper.c \ |
3674 | 85 | hostname-helper.h \ | 85 | hostname-helper.h \ |
3675 | 86 | cc-hostname-entry.c \ | 86 | cc-hostname-entry.c \ |
3677 | 87 | @@ -44,8 +38,43 @@ | 87 | @@ -45,8 +39,43 @@ |
3678 | 88 | 88 | ||
3679 | 89 | gnome_control_center_LDFLAGS = -export-dynamic | 89 | gnome_control_center_LDFLAGS = -export-dynamic |
3680 | 90 | 90 | ||
3681 | @@ -128,15 +128,14 @@ | |||
3682 | 128 | $(SHELL_LIBS) \ | 128 | $(SHELL_LIBS) \ |
3683 | 129 | $(CHEESE_LIBS) \ | 129 | $(CHEESE_LIBS) \ |
3684 | 130 | $(top_builddir)/libgd/libgd.la \ | 130 | $(top_builddir)/libgd/libgd.la \ |
3686 | 131 | @@ -99,6 +128,8 @@ | 131 | @@ -107,6 +136,7 @@ |
3687 | 132 | 132 | ||
3688 | 133 | EXTRA_DIST = \ | 133 | EXTRA_DIST = \ |
3689 | 134 | gnome-control-center.desktop.in.in \ | 134 | gnome-control-center.desktop.in.in \ |
3690 | 135 | + libgnome-control-center.pc.in \ | 135 | + libgnome-control-center.pc.in \ |
3692 | 136 | + $(servicefile_in_files) \ | 136 | $(servicefile_in_files) \ |
3693 | 137 | $(completion_in_files) \ | 137 | $(completion_in_files) \ |
3694 | 138 | list-panel.sh | 138 | list-panel.sh |
3695 | 139 | |||
3696 | 140 | --- /dev/null | 139 | --- /dev/null |
3697 | 141 | +++ b/shell/libgnome-control-center.pc.in | 140 | +++ b/shell/libgnome-control-center.pc.in |
3698 | 142 | @@ -0,0 +1,12 @@ | 141 | @@ -0,0 +1,12 @@ |
3699 | @@ -155,7 +154,7 @@ | |||
3700 | 155 | \ No newline at end of file | 154 | \ No newline at end of file |
3701 | 156 | --- a/Makefile.am | 155 | --- a/Makefile.am |
3702 | 157 | +++ b/Makefile.am | 156 | +++ b/Makefile.am |
3704 | 158 | @@ -34,6 +34,12 @@ | 157 | @@ -35,6 +35,12 @@ |
3705 | 159 | 158 | ||
3706 | 160 | -include $(top_srcdir)/git.mk | 159 | -include $(top_srcdir)/git.mk |
3707 | 161 | 160 | ||
3708 | 162 | 161 | ||
3709 | === added file 'debian/patches/revert_git_new_bluetooth_panel.patch' | |||
3710 | --- debian/patches/revert_git_new_bluetooth_panel.patch 1970-01-01 00:00:00 +0000 | |||
3711 | +++ debian/patches/revert_git_new_bluetooth_panel.patch 2014-09-30 05:25:02 +0000 | |||
3712 | @@ -0,0 +1,1607 @@ | |||
3713 | 1 | From 258759f58d7e4095de9bd4623cc9b8680f37bc52 Mon Sep 17 00:00:00 2001 | ||
3714 | 2 | From: Tim Lunn <tim@feathertop.org> | ||
3715 | 3 | Date: Sun, 19 Jan 2014 09:29:54 +1100 | ||
3716 | 4 | Subject: [PATCH] This reverts commit 07c354661102669d7ec8e7d1f00c2f70982ad226. | ||
3717 | 5 | |||
3718 | 6 | Revert "bluetooth: Updated design" | ||
3719 | 7 | |||
3720 | 8 | This reverts commit 28fecc01c46a7b082f9746744c938e499a522e4f. | ||
3721 | 9 | --- | ||
3722 | 10 | configure.ac | 2 +- | ||
3723 | 11 | panels/bluetooth/bluetooth.ui | 641 ++++++++++++++++++++++++++- | ||
3724 | 12 | panels/bluetooth/cc-bluetooth-panel.c | 799 +++++++++++++++++++++++++++++----- | ||
3725 | 13 | 3 files changed, 1317 insertions(+), 125 deletions(-) | ||
3726 | 14 | |||
3727 | 15 | --- a/configure.ac | ||
3728 | 16 | +++ b/configure.ac | ||
3729 | 17 | @@ -206,7 +206,7 @@ | ||
3730 | 18 | AM_CONDITIONAL(HAVE_NM_UNSTABLE, [test x$nm_unstable = xyes]) | ||
3731 | 19 | |||
3732 | 20 | # Check for gnome-bluetooth | ||
3733 | 21 | -PKG_CHECK_MODULES(BLUETOOTH, $COMMON_MODULES gnome-bluetooth-1.0 >= 3.11.1, | ||
3734 | 22 | +PKG_CHECK_MODULES(BLUETOOTH, $COMMON_MODULES gnome-bluetooth-1.0 >= 3.9.3, | ||
3735 | 23 | [have_bluetooth=yes], have_bluetooth=no) | ||
3736 | 24 | if test "x$have_bluetooth" = xyes ; then | ||
3737 | 25 | AC_DEFINE(BUILD_BLUETOOTH, 1, [Define to 1 to build the Bluetooth panel]) | ||
3738 | 26 | --- a/panels/bluetooth/bluetooth.ui | ||
3739 | 27 | +++ b/panels/bluetooth/bluetooth.ui | ||
3740 | 28 | @@ -1,5 +1,4 @@ | ||
3741 | 29 | <?xml version="1.0" encoding="UTF-8"?> | ||
3742 | 30 | -<!-- Generated with glade 3.16.0 on Fri Nov 29 16:46:49 2013 --> | ||
3743 | 31 | <interface> | ||
3744 | 32 | <!-- interface-requires gtk+ 3.0 --> | ||
3745 | 33 | <object class="GtkBox" id="box_power"> | ||
3746 | 34 | @@ -7,18 +6,654 @@ | ||
3747 | 35 | <property name="can_focus">False</property> | ||
3748 | 36 | <child> | ||
3749 | 37 | <object class="GtkSwitch" id="switch_bluetooth"> | ||
3750 | 38 | - <property name="use_action_appearance">False</property> | ||
3751 | 39 | <property name="visible">True</property> | ||
3752 | 40 | <property name="can_focus">True</property> | ||
3753 | 41 | <property name="valign">center</property> | ||
3754 | 42 | + <property name="use_action_appearance">False</property> | ||
3755 | 43 | </object> | ||
3756 | 44 | <packing> | ||
3757 | 45 | <property name="expand">False</property> | ||
3758 | 46 | <property name="fill">True</property> | ||
3759 | 47 | - <property name="padding">4</property> | ||
3760 | 48 | <property name="pack_type">end</property> | ||
3761 | 49 | <property name="position">2</property> | ||
3762 | 50 | + <property name="padding">4</property> | ||
3763 | 51 | </packing> | ||
3764 | 52 | </child> | ||
3765 | 53 | </object> | ||
3766 | 54 | + <object class="GtkGrid" id="grid"> | ||
3767 | 55 | + <property name="visible">True</property> | ||
3768 | 56 | + <property name="can_focus">False</property> | ||
3769 | 57 | + <property name="border_width">8</property> | ||
3770 | 58 | + <property name="margin-start">6</property> | ||
3771 | 59 | + <property name="margin-end">6</property> | ||
3772 | 60 | + <property name="margin-top">6</property> | ||
3773 | 61 | + <property name="margin-bottom">6</property> | ||
3774 | 62 | + <child> | ||
3775 | 63 | + <placeholder/> | ||
3776 | 64 | + </child> | ||
3777 | 65 | + <child> | ||
3778 | 66 | + <object class="GtkBox" id="vbox"> | ||
3779 | 67 | + <property name="visible">True</property> | ||
3780 | 68 | + <property name="can_focus">False</property> | ||
3781 | 69 | + <property name="orientation">vertical</property> | ||
3782 | 70 | + <child> | ||
3783 | 71 | + <object class="GtkBox" id="box_devices"> | ||
3784 | 72 | + <property name="visible">True</property> | ||
3785 | 73 | + <property name="can_focus">False</property> | ||
3786 | 74 | + <property name="orientation">vertical</property> | ||
3787 | 75 | + <child> | ||
3788 | 76 | + <object class="GtkScrolledWindow" id="message_scrolledwindow"> | ||
3789 | 77 | + <property name="sensitive">False</property> | ||
3790 | 78 | + <property name="can_focus">True</property> | ||
3791 | 79 | + <property name="no_show_all">True</property> | ||
3792 | 80 | + <property name="hscrollbar_policy">never</property> | ||
3793 | 81 | + <property name="shadow_type">in</property> | ||
3794 | 82 | + <property name="min_content_width">200</property> | ||
3795 | 83 | + <property name="min_content_height">250</property> | ||
3796 | 84 | + <child> | ||
3797 | 85 | + <object class="GtkViewport" id="viewport2"> | ||
3798 | 86 | + <property name="visible">True</property> | ||
3799 | 87 | + <property name="can_focus">False</property> | ||
3800 | 88 | + <property name="shadow_type">none</property> | ||
3801 | 89 | + <child> | ||
3802 | 90 | + <object class="GtkLabel" id="message_label"> | ||
3803 | 91 | + <property name="visible">True</property> | ||
3804 | 92 | + <property name="can_focus">False</property> | ||
3805 | 93 | + <property name="xalign">0</property> | ||
3806 | 94 | + <property name="yalign">0</property> | ||
3807 | 95 | + <property name="xpad">12</property> | ||
3808 | 96 | + <property name="ypad">12</property> | ||
3809 | 97 | + <property name="label">Bluetooth is disabled by hardware switch</property> | ||
3810 | 98 | + <property name="wrap">True</property> | ||
3811 | 99 | + </object> | ||
3812 | 100 | + </child> | ||
3813 | 101 | + </object> | ||
3814 | 102 | + </child> | ||
3815 | 103 | + </object> | ||
3816 | 104 | + <packing> | ||
3817 | 105 | + <property name="expand">True</property> | ||
3818 | 106 | + <property name="fill">True</property> | ||
3819 | 107 | + <property name="position">0</property> | ||
3820 | 108 | + </packing> | ||
3821 | 109 | + </child> | ||
3822 | 110 | + </object> | ||
3823 | 111 | + <packing> | ||
3824 | 112 | + <property name="expand">True</property> | ||
3825 | 113 | + <property name="fill">True</property> | ||
3826 | 114 | + <property name="position">0</property> | ||
3827 | 115 | + </packing> | ||
3828 | 116 | + </child> | ||
3829 | 117 | + <child> | ||
3830 | 118 | + <object class="GtkToolbar" id="toolbar"> | ||
3831 | 119 | + <property name="visible">True</property> | ||
3832 | 120 | + <property name="can_focus">False</property> | ||
3833 | 121 | + <property name="toolbar_style">icons</property> | ||
3834 | 122 | + <property name="icon_size">1</property> | ||
3835 | 123 | + <style> | ||
3836 | 124 | + <class name="inline-toolbar"/> | ||
3837 | 125 | + </style> | ||
3838 | 126 | + <child> | ||
3839 | 127 | + <object class="GtkToolButton" id="button_setup"> | ||
3840 | 128 | + <property name="visible">True</property> | ||
3841 | 129 | + <property name="can_focus">False</property> | ||
3842 | 130 | + <property name="use_action_appearance">False</property> | ||
3843 | 131 | + <property name="use_underline">True</property> | ||
3844 | 132 | + <property name="icon_name">list-add-symbolic</property> | ||
3845 | 133 | + <property name="label" translatable="yes">Set Up New Device</property> | ||
3846 | 134 | + </object> | ||
3847 | 135 | + <packing> | ||
3848 | 136 | + <property name="expand">False</property> | ||
3849 | 137 | + <property name="homogeneous">True</property> | ||
3850 | 138 | + </packing> | ||
3851 | 139 | + </child> | ||
3852 | 140 | + <child> | ||
3853 | 141 | + <object class="GtkToolButton" id="button_delete"> | ||
3854 | 142 | + <property name="visible">True</property> | ||
3855 | 143 | + <property name="sensitive">False</property> | ||
3856 | 144 | + <property name="can_focus">False</property> | ||
3857 | 145 | + <property name="use_action_appearance">False</property> | ||
3858 | 146 | + <property name="use_underline">True</property> | ||
3859 | 147 | + <property name="icon_name">list-remove-symbolic</property> | ||
3860 | 148 | + <property name="label" translatable="yes">Remove Device</property> | ||
3861 | 149 | + </object> | ||
3862 | 150 | + <packing> | ||
3863 | 151 | + <property name="expand">False</property> | ||
3864 | 152 | + <property name="homogeneous">True</property> | ||
3865 | 153 | + </packing> | ||
3866 | 154 | + </child> | ||
3867 | 155 | + </object> | ||
3868 | 156 | + <packing> | ||
3869 | 157 | + <property name="expand">False</property> | ||
3870 | 158 | + <property name="fill">True</property> | ||
3871 | 159 | + <property name="position">1</property> | ||
3872 | 160 | + </packing> | ||
3873 | 161 | + </child> | ||
3874 | 162 | + </object> | ||
3875 | 163 | + <packing> | ||
3876 | 164 | + <property name="left_attach">0</property> | ||
3877 | 165 | + <property name="top_attach">1</property> | ||
3878 | 166 | + <property name="width">1</property> | ||
3879 | 167 | + <property name="height">1</property> | ||
3880 | 168 | + </packing> | ||
3881 | 169 | + </child> | ||
3882 | 170 | + <child> | ||
3883 | 171 | + <object class="GtkNotebook" id="props_notebook"> | ||
3884 | 172 | + <property name="visible">True</property> | ||
3885 | 173 | + <property name="can_focus">False</property> | ||
3886 | 174 | + <property name="margin_start">6</property> | ||
3887 | 175 | + <property name="hexpand">True</property> | ||
3888 | 176 | + <property name="vexpand">True</property> | ||
3889 | 177 | + <property name="show_tabs">False</property> | ||
3890 | 178 | + <property name="show_border">False</property> | ||
3891 | 179 | + <child> | ||
3892 | 180 | + <object class="GtkScrolledWindow" id="scrolledwindow2"> | ||
3893 | 181 | + <property name="visible">True</property> | ||
3894 | 182 | + <property name="can_focus">True</property> | ||
3895 | 183 | + <property name="shadow_type">in</property> | ||
3896 | 184 | + <child> | ||
3897 | 185 | + <object class="GtkViewport" id="viewport3"> | ||
3898 | 186 | + <property name="visible">True</property> | ||
3899 | 187 | + <property name="can_focus">False</property> | ||
3900 | 188 | + <property name="shadow_type">none</property> | ||
3901 | 189 | + <child> | ||
3902 | 190 | + <object class="GtkLabel" id="label8"> | ||
3903 | 191 | + <property name="visible">True</property> | ||
3904 | 192 | + <property name="can_focus">False</property> | ||
3905 | 193 | + </object> | ||
3906 | 194 | + </child> | ||
3907 | 195 | + </object> | ||
3908 | 196 | + </child> | ||
3909 | 197 | + </object> | ||
3910 | 198 | + </child> | ||
3911 | 199 | + <child type="tab"> | ||
3912 | 200 | + <object class="GtkLabel" id="label1"> | ||
3913 | 201 | + <property name="visible">True</property> | ||
3914 | 202 | + <property name="can_focus">False</property> | ||
3915 | 203 | + <property name="label">empty</property> | ||
3916 | 204 | + </object> | ||
3917 | 205 | + <packing> | ||
3918 | 206 | + <property name="tab_fill">False</property> | ||
3919 | 207 | + </packing> | ||
3920 | 208 | + </child> | ||
3921 | 209 | + <child> | ||
3922 | 210 | + <object class="GtkScrolledWindow" id="scrolledwindow1"> | ||
3923 | 211 | + <property name="visible">True</property> | ||
3924 | 212 | + <property name="can_focus">True</property> | ||
3925 | 213 | + <property name="hscrollbar_policy">never</property> | ||
3926 | 214 | + <property name="vscrollbar_policy">automatic</property> | ||
3927 | 215 | + <property name="shadow_type">in</property> | ||
3928 | 216 | + <child> | ||
3929 | 217 | + <object class="GtkViewport" id="viewport1"> | ||
3930 | 218 | + <property name="visible">True</property> | ||
3931 | 219 | + <property name="can_focus">False</property> | ||
3932 | 220 | + <property name="shadow_type">none</property> | ||
3933 | 221 | + <child> | ||
3934 | 222 | + <object class="GtkBox" id="properties_vbox"> | ||
3935 | 223 | + <property name="visible">True</property> | ||
3936 | 224 | + <property name="can_focus">False</property> | ||
3937 | 225 | + <property name="margin_top">8</property> | ||
3938 | 226 | + <property name="orientation">vertical</property> | ||
3939 | 227 | + <child> | ||
3940 | 228 | + <object class="GtkBox" id="box1"> | ||
3941 | 229 | + <property name="visible">True</property> | ||
3942 | 230 | + <property name="can_focus">False</property> | ||
3943 | 231 | + <property name="orientation">vertical</property> | ||
3944 | 232 | + <property name="spacing">6</property> | ||
3945 | 233 | + <child> | ||
3946 | 234 | + <object class="GtkBox" id="box2"> | ||
3947 | 235 | + <property name="visible">True</property> | ||
3948 | 236 | + <property name="can_focus">False</property> | ||
3949 | 237 | + <property name="spacing">18</property> | ||
3950 | 238 | + <property name="homogeneous">True</property> | ||
3951 | 239 | + <child> | ||
3952 | 240 | + <object class="GtkLabel" id="connection_label"> | ||
3953 | 241 | + <property name="visible">True</property> | ||
3954 | 242 | + <property name="can_focus">False</property> | ||
3955 | 243 | + <property name="xalign">1</property> | ||
3956 | 244 | + <property name="label" translatable="yes">Connection</property> | ||
3957 | 245 | + <style> | ||
3958 | 246 | + <class name="dim-label"/> | ||
3959 | 247 | + </style> | ||
3960 | 248 | + </object> | ||
3961 | 249 | + <packing> | ||
3962 | 250 | + <property name="expand">False</property> | ||
3963 | 251 | + <property name="fill">True</property> | ||
3964 | 252 | + <property name="position">0</property> | ||
3965 | 253 | + </packing> | ||
3966 | 254 | + </child> | ||
3967 | 255 | + <child> | ||
3968 | 256 | + <object class="GtkNotebook" id="connecting_notebook"> | ||
3969 | 257 | + <property name="visible">True</property> | ||
3970 | 258 | + <property name="can_focus">True</property> | ||
3971 | 259 | + <property name="show_tabs">False</property> | ||
3972 | 260 | + <property name="show_border">False</property> | ||
3973 | 261 | + <child> | ||
3974 | 262 | + <object class="GtkSwitch" id="switch_connection"> | ||
3975 | 263 | + <property name="visible">True</property> | ||
3976 | 264 | + <property name="can_focus">True</property> | ||
3977 | 265 | + <property name="halign">start</property> | ||
3978 | 266 | + <property name="use_action_appearance">False</property> | ||
3979 | 267 | + </object> | ||
3980 | 268 | + </child> | ||
3981 | 269 | + <child type="tab"> | ||
3982 | 270 | + <object class="GtkLabel" id="label3"> | ||
3983 | 271 | + <property name="visible">True</property> | ||
3984 | 272 | + <property name="can_focus">False</property> | ||
3985 | 273 | + <property name="label" translatable="yes">page 1</property> | ||
3986 | 274 | + </object> | ||
3987 | 275 | + <packing> | ||
3988 | 276 | + <property name="tab_fill">False</property> | ||
3989 | 277 | + </packing> | ||
3990 | 278 | + </child> | ||
3991 | 279 | + <child> | ||
3992 | 280 | + <object class="GtkSpinner" id="connecting_spinner"> | ||
3993 | 281 | + <property name="visible">True</property> | ||
3994 | 282 | + <property name="can_focus">False</property> | ||
3995 | 283 | + <property name="halign">start</property> | ||
3996 | 284 | + </object> | ||
3997 | 285 | + <packing> | ||
3998 | 286 | + <property name="position">1</property> | ||
3999 | 287 | + </packing> | ||
4000 | 288 | + </child> | ||
4001 | 289 | + <child type="tab"> | ||
4002 | 290 | + <object class="GtkLabel" id="label9"> | ||
4003 | 291 | + <property name="visible">True</property> | ||
4004 | 292 | + <property name="can_focus">False</property> | ||
4005 | 293 | + <property name="label" translatable="yes">page 2</property> | ||
4006 | 294 | + </object> | ||
4007 | 295 | + <packing> | ||
4008 | 296 | + <property name="position">1</property> | ||
4009 | 297 | + <property name="tab_fill">False</property> | ||
4010 | 298 | + </packing> | ||
4011 | 299 | + </child> | ||
4012 | 300 | + <child> | ||
4013 | 301 | + <placeholder/> | ||
4014 | 302 | + </child> | ||
4015 | 303 | + <child type="tab"> | ||
4016 | 304 | + <placeholder/> | ||
4017 | 305 | + </child> | ||
4018 | 306 | + </object> | ||
4019 | 307 | + <packing> | ||
4020 | 308 | + <property name="expand">False</property> | ||
4021 | 309 | + <property name="fill">True</property> | ||
4022 | 310 | + <property name="position">1</property> | ||
4023 | 311 | + </packing> | ||
4024 | 312 | + </child> | ||
4025 | 313 | + </object> | ||
4026 | 314 | + <packing> | ||
4027 | 315 | + <property name="expand">False</property> | ||
4028 | 316 | + <property name="fill">True</property> | ||
4029 | 317 | + <property name="position">0</property> | ||
4030 | 318 | + </packing> | ||
4031 | 319 | + </child> | ||
4032 | 320 | + <child> | ||
4033 | 321 | + <object class="GtkBox" id="box3"> | ||
4034 | 322 | + <property name="visible">True</property> | ||
4035 | 323 | + <property name="can_focus">False</property> | ||
4036 | 324 | + <property name="spacing">18</property> | ||
4037 | 325 | + <property name="homogeneous">True</property> | ||
4038 | 326 | + <child> | ||
4039 | 327 | + <object class="GtkLabel" id="label4"> | ||
4040 | 328 | + <property name="visible">True</property> | ||
4041 | 329 | + <property name="can_focus">False</property> | ||
4042 | 330 | + <property name="xalign">1</property> | ||
4043 | 331 | + <property name="label" translatable="yes">Paired</property> | ||
4044 | 332 | + <style> | ||
4045 | 333 | + <class name="dim-label"/> | ||
4046 | 334 | + </style> | ||
4047 | 335 | + </object> | ||
4048 | 336 | + <packing> | ||
4049 | 337 | + <property name="expand">False</property> | ||
4050 | 338 | + <property name="fill">True</property> | ||
4051 | 339 | + <property name="position">0</property> | ||
4052 | 340 | + </packing> | ||
4053 | 341 | + </child> | ||
4054 | 342 | + <child> | ||
4055 | 343 | + <object class="GtkLabel" id="paired_label"> | ||
4056 | 344 | + <property name="visible">True</property> | ||
4057 | 345 | + <property name="can_focus">False</property> | ||
4058 | 346 | + <property name="xalign">0</property> | ||
4059 | 347 | + <property name="label">Yes</property> | ||
4060 | 348 | + </object> | ||
4061 | 349 | + <packing> | ||
4062 | 350 | + <property name="expand">False</property> | ||
4063 | 351 | + <property name="fill">True</property> | ||
4064 | 352 | + <property name="position">1</property> | ||
4065 | 353 | + </packing> | ||
4066 | 354 | + </child> | ||
4067 | 355 | + </object> | ||
4068 | 356 | + <packing> | ||
4069 | 357 | + <property name="expand">False</property> | ||
4070 | 358 | + <property name="fill">True</property> | ||
4071 | 359 | + <property name="position">1</property> | ||
4072 | 360 | + </packing> | ||
4073 | 361 | + </child> | ||
4074 | 362 | + <child> | ||
4075 | 363 | + <object class="GtkBox" id="box4"> | ||
4076 | 364 | + <property name="visible">True</property> | ||
4077 | 365 | + <property name="can_focus">False</property> | ||
4078 | 366 | + <property name="spacing">18</property> | ||
4079 | 367 | + <property name="homogeneous">True</property> | ||
4080 | 368 | + <child> | ||
4081 | 369 | + <object class="GtkLabel" id="label5"> | ||
4082 | 370 | + <property name="visible">True</property> | ||
4083 | 371 | + <property name="can_focus">False</property> | ||
4084 | 372 | + <property name="xalign">1</property> | ||
4085 | 373 | + <property name="label" translatable="yes">Type</property> | ||
4086 | 374 | + <style> | ||
4087 | 375 | + <class name="dim-label"/> | ||
4088 | 376 | + </style> | ||
4089 | 377 | + </object> | ||
4090 | 378 | + <packing> | ||
4091 | 379 | + <property name="expand">False</property> | ||
4092 | 380 | + <property name="fill">True</property> | ||
4093 | 381 | + <property name="position">0</property> | ||
4094 | 382 | + </packing> | ||
4095 | 383 | + </child> | ||
4096 | 384 | + <child> | ||
4097 | 385 | + <object class="GtkLabel" id="type_label"> | ||
4098 | 386 | + <property name="visible">True</property> | ||
4099 | 387 | + <property name="can_focus">False</property> | ||
4100 | 388 | + <property name="xalign">0</property> | ||
4101 | 389 | + <property name="label">Keyboard</property> | ||
4102 | 390 | + </object> | ||
4103 | 391 | + <packing> | ||
4104 | 392 | + <property name="expand">False</property> | ||
4105 | 393 | + <property name="fill">True</property> | ||
4106 | 394 | + <property name="position">1</property> | ||
4107 | 395 | + </packing> | ||
4108 | 396 | + </child> | ||
4109 | 397 | + </object> | ||
4110 | 398 | + <packing> | ||
4111 | 399 | + <property name="expand">False</property> | ||
4112 | 400 | + <property name="fill">True</property> | ||
4113 | 401 | + <property name="position">2</property> | ||
4114 | 402 | + </packing> | ||
4115 | 403 | + </child> | ||
4116 | 404 | + <child> | ||
4117 | 405 | + <object class="GtkBox" id="box5"> | ||
4118 | 406 | + <property name="visible">True</property> | ||
4119 | 407 | + <property name="can_focus">False</property> | ||
4120 | 408 | + <property name="spacing">18</property> | ||
4121 | 409 | + <property name="homogeneous">True</property> | ||
4122 | 410 | + <child> | ||
4123 | 411 | + <object class="GtkLabel" id="label6"> | ||
4124 | 412 | + <property name="visible">True</property> | ||
4125 | 413 | + <property name="can_focus">False</property> | ||
4126 | 414 | + <property name="xalign">1</property> | ||
4127 | 415 | + <property name="label" translatable="yes">Address</property> | ||
4128 | 416 | + <style> | ||
4129 | 417 | + <class name="dim-label"/> | ||
4130 | 418 | + </style> | ||
4131 | 419 | + </object> | ||
4132 | 420 | + <packing> | ||
4133 | 421 | + <property name="expand">False</property> | ||
4134 | 422 | + <property name="fill">True</property> | ||
4135 | 423 | + <property name="position">0</property> | ||
4136 | 424 | + </packing> | ||
4137 | 425 | + </child> | ||
4138 | 426 | + <child> | ||
4139 | 427 | + <object class="GtkLabel" id="address_label"> | ||
4140 | 428 | + <property name="visible">True</property> | ||
4141 | 429 | + <property name="can_focus">False</property> | ||
4142 | 430 | + <property name="xalign">0</property> | ||
4143 | 431 | + <property name="label">00:00:00:00:00</property> | ||
4144 | 432 | + <property name="selectable">True</property> | ||
4145 | 433 | + </object> | ||
4146 | 434 | + <packing> | ||
4147 | 435 | + <property name="expand">False</property> | ||
4148 | 436 | + <property name="fill">True</property> | ||
4149 | 437 | + <property name="position">1</property> | ||
4150 | 438 | + </packing> | ||
4151 | 439 | + </child> | ||
4152 | 440 | + </object> | ||
4153 | 441 | + <packing> | ||
4154 | 442 | + <property name="expand">False</property> | ||
4155 | 443 | + <property name="fill">True</property> | ||
4156 | 444 | + <property name="position">3</property> | ||
4157 | 445 | + </packing> | ||
4158 | 446 | + </child> | ||
4159 | 447 | + </object> | ||
4160 | 448 | + <packing> | ||
4161 | 449 | + <property name="expand">False</property> | ||
4162 | 450 | + <property name="fill">True</property> | ||
4163 | 451 | + <property name="position">0</property> | ||
4164 | 452 | + </packing> | ||
4165 | 453 | + </child> | ||
4166 | 454 | + <child> | ||
4167 | 455 | + <object class="GtkBox" id="additional_setup_box"> | ||
4168 | 456 | + <property name="can_focus">False</property> | ||
4169 | 457 | + <property name="no_show_all">True</property> | ||
4170 | 458 | + <property name="orientation">vertical</property> | ||
4171 | 459 | + <property name="spacing">8</property> | ||
4172 | 460 | + <child> | ||
4173 | 461 | + <placeholder/> | ||
4174 | 462 | + </child> | ||
4175 | 463 | + </object> | ||
4176 | 464 | + <packing> | ||
4177 | 465 | + <property name="expand">True</property> | ||
4178 | 466 | + <property name="fill">True</property> | ||
4179 | 467 | + <property name="position">1</property> | ||
4180 | 468 | + </packing> | ||
4181 | 469 | + </child> | ||
4182 | 470 | + <child> | ||
4183 | 471 | + <object class="GtkBox" id="vbox3"> | ||
4184 | 472 | + <property name="visible">True</property> | ||
4185 | 473 | + <property name="can_focus">False</property> | ||
4186 | 474 | + <property name="margin_end">6</property> | ||
4187 | 475 | + <property name="margin_bottom">6</property> | ||
4188 | 476 | + <property name="orientation">vertical</property> | ||
4189 | 477 | + <property name="spacing">6</property> | ||
4190 | 478 | + <child> | ||
4191 | 479 | + <object class="GtkBox" id="mouse_box"> | ||
4192 | 480 | + <property name="visible">True</property> | ||
4193 | 481 | + <property name="can_focus">False</property> | ||
4194 | 482 | + <child> | ||
4195 | 483 | + <placeholder/> | ||
4196 | 484 | + </child> | ||
4197 | 485 | + <child> | ||
4198 | 486 | + <object class="GtkLinkButton" id="mouse_link"> | ||
4199 | 487 | + <property name="label" translatable="yes">Mouse & Touchpad Settings</property> | ||
4200 | 488 | + <property name="visible">True</property> | ||
4201 | 489 | + <property name="can_focus">True</property> | ||
4202 | 490 | + <property name="receives_default">True</property> | ||
4203 | 491 | + <property name="has_tooltip">False</property> | ||
4204 | 492 | + <property name="use_action_appearance">False</property> | ||
4205 | 493 | + <property name="relief">none</property> | ||
4206 | 494 | + </object> | ||
4207 | 495 | + <packing> | ||
4208 | 496 | + <property name="expand">False</property> | ||
4209 | 497 | + <property name="fill">False</property> | ||
4210 | 498 | + <property name="pack_type">end</property> | ||
4211 | 499 | + <property name="position">1</property> | ||
4212 | 500 | + </packing> | ||
4213 | 501 | + </child> | ||
4214 | 502 | + </object> | ||
4215 | 503 | + <packing> | ||
4216 | 504 | + <property name="expand">False</property> | ||
4217 | 505 | + <property name="fill">True</property> | ||
4218 | 506 | + <property name="position">0</property> | ||
4219 | 507 | + </packing> | ||
4220 | 508 | + </child> | ||
4221 | 509 | + <child> | ||
4222 | 510 | + <object class="GtkBox" id="sound_box"> | ||
4223 | 511 | + <property name="visible">True</property> | ||
4224 | 512 | + <property name="can_focus">False</property> | ||
4225 | 513 | + <child> | ||
4226 | 514 | + <placeholder/> | ||
4227 | 515 | + </child> | ||
4228 | 516 | + <child> | ||
4229 | 517 | + <object class="GtkLinkButton" id="sound_link"> | ||
4230 | 518 | + <property name="label" translatable="yes">Sound Settings</property> | ||
4231 | 519 | + <property name="visible">True</property> | ||
4232 | 520 | + <property name="can_focus">True</property> | ||
4233 | 521 | + <property name="receives_default">True</property> | ||
4234 | 522 | + <property name="has_tooltip">False</property> | ||
4235 | 523 | + <property name="use_action_appearance">False</property> | ||
4236 | 524 | + <property name="relief">none</property> | ||
4237 | 525 | + </object> | ||
4238 | 526 | + <packing> | ||
4239 | 527 | + <property name="expand">False</property> | ||
4240 | 528 | + <property name="fill">False</property> | ||
4241 | 529 | + <property name="pack_type">end</property> | ||
4242 | 530 | + <property name="position">1</property> | ||
4243 | 531 | + </packing> | ||
4244 | 532 | + </child> | ||
4245 | 533 | + </object> | ||
4246 | 534 | + <packing> | ||
4247 | 535 | + <property name="expand">False</property> | ||
4248 | 536 | + <property name="fill">True</property> | ||
4249 | 537 | + <property name="position">1</property> | ||
4250 | 538 | + </packing> | ||
4251 | 539 | + </child> | ||
4252 | 540 | + <child> | ||
4253 | 541 | + <object class="GtkBox" id="keyboard_box"> | ||
4254 | 542 | + <property name="visible">True</property> | ||
4255 | 543 | + <property name="can_focus">False</property> | ||
4256 | 544 | + <child> | ||
4257 | 545 | + <placeholder/> | ||
4258 | 546 | + </child> | ||
4259 | 547 | + <child> | ||
4260 | 548 | + <object class="GtkLinkButton" id="keyboard_link"> | ||
4261 | 549 | + <property name="label" translatable="yes">Keyboard Settings</property> | ||
4262 | 550 | + <property name="visible">True</property> | ||
4263 | 551 | + <property name="can_focus">True</property> | ||
4264 | 552 | + <property name="receives_default">True</property> | ||
4265 | 553 | + <property name="has_tooltip">False</property> | ||
4266 | 554 | + <property name="use_action_appearance">False</property> | ||
4267 | 555 | + <property name="relief">none</property> | ||
4268 | 556 | + </object> | ||
4269 | 557 | + <packing> | ||
4270 | 558 | + <property name="expand">False</property> | ||
4271 | 559 | + <property name="fill">False</property> | ||
4272 | 560 | + <property name="pack_type">end</property> | ||
4273 | 561 | + <property name="position">1</property> | ||
4274 | 562 | + </packing> | ||
4275 | 563 | + </child> | ||
4276 | 564 | + </object> | ||
4277 | 565 | + <packing> | ||
4278 | 566 | + <property name="expand">False</property> | ||
4279 | 567 | + <property name="fill">True</property> | ||
4280 | 568 | + <property name="position">2</property> | ||
4281 | 569 | + </packing> | ||
4282 | 570 | + </child> | ||
4283 | 571 | + <child> | ||
4284 | 572 | + <object class="GtkBox" id="send_box"> | ||
4285 | 573 | + <property name="visible">True</property> | ||
4286 | 574 | + <property name="can_focus">False</property> | ||
4287 | 575 | + <child> | ||
4288 | 576 | + <placeholder/> | ||
4289 | 577 | + </child> | ||
4290 | 578 | + <child> | ||
4291 | 579 | + <object class="GtkButton" id="send_button"> | ||
4292 | 580 | + <property name="label" translatable="yes">Send Filesā¦</property> | ||
4293 | 581 | + <property name="can_focus">True</property> | ||
4294 | 582 | + <property name="receives_default">True</property> | ||
4295 | 583 | + <property name="use_action_appearance">False</property> | ||
4296 | 584 | + </object> | ||
4297 | 585 | + <packing> | ||
4298 | 586 | + <property name="expand">False</property> | ||
4299 | 587 | + <property name="fill">False</property> | ||
4300 | 588 | + <property name="pack_type">end</property> | ||
4301 | 589 | + <property name="position">1</property> | ||
4302 | 590 | + </packing> | ||
4303 | 591 | + </child> | ||
4304 | 592 | + </object> | ||
4305 | 593 | + <packing> | ||
4306 | 594 | + <property name="expand">False</property> | ||
4307 | 595 | + <property name="fill">True</property> | ||
4308 | 596 | + <property name="position">3</property> | ||
4309 | 597 | + </packing> | ||
4310 | 598 | + </child> | ||
4311 | 599 | + </object> | ||
4312 | 600 | + <packing> | ||
4313 | 601 | + <property name="expand">False</property> | ||
4314 | 602 | + <property name="fill">True</property> | ||
4315 | 603 | + <property name="pack_type">end</property> | ||
4316 | 604 | + <property name="position">2</property> | ||
4317 | 605 | + </packing> | ||
4318 | 606 | + </child> | ||
4319 | 607 | + <child> | ||
4320 | 608 | + <object class="GtkLabel" id="label7"> | ||
4321 | 609 | + <property name="visible">True</property> | ||
4322 | 610 | + <property name="can_focus">False</property> | ||
4323 | 611 | + </object> | ||
4324 | 612 | + <packing> | ||
4325 | 613 | + <property name="expand">True</property> | ||
4326 | 614 | + <property name="fill">True</property> | ||
4327 | 615 | + <property name="position">3</property> | ||
4328 | 616 | + </packing> | ||
4329 | 617 | + </child> | ||
4330 | 618 | + </object> | ||
4331 | 619 | + </child> | ||
4332 | 620 | + </object> | ||
4333 | 621 | + </child> | ||
4334 | 622 | + </object> | ||
4335 | 623 | + <packing> | ||
4336 | 624 | + <property name="position">1</property> | ||
4337 | 625 | + </packing> | ||
4338 | 626 | + </child> | ||
4339 | 627 | + <child type="tab"> | ||
4340 | 628 | + <object class="GtkLabel" id="label2"> | ||
4341 | 629 | + <property name="visible">True</property> | ||
4342 | 630 | + <property name="can_focus">False</property> | ||
4343 | 631 | + <property name="label">properties</property> | ||
4344 | 632 | + </object> | ||
4345 | 633 | + <packing> | ||
4346 | 634 | + <property name="position">1</property> | ||
4347 | 635 | + <property name="tab_fill">False</property> | ||
4348 | 636 | + </packing> | ||
4349 | 637 | + </child> | ||
4350 | 638 | + <child> | ||
4351 | 639 | + <placeholder/> | ||
4352 | 640 | + </child> | ||
4353 | 641 | + </object> | ||
4354 | 642 | + <packing> | ||
4355 | 643 | + <property name="left_attach">1</property> | ||
4356 | 644 | + <property name="top_attach">1</property> | ||
4357 | 645 | + <property name="width">1</property> | ||
4358 | 646 | + <property name="height">1</property> | ||
4359 | 647 | + </packing> | ||
4360 | 648 | + </child> | ||
4361 | 649 | + <child> | ||
4362 | 650 | + <object class="GtkBox" id="box_vis"> | ||
4363 | 651 | + <property name="visible">True</property> | ||
4364 | 652 | + <property name="can_focus">False</property> | ||
4365 | 653 | + <property name="margin_bottom">12</property> | ||
4366 | 654 | + <child> | ||
4367 | 655 | + <object class="GtkLabel" id="visible_label"> | ||
4368 | 656 | + <property name="visible">True</property> | ||
4369 | 657 | + <property name="can_focus">False</property> | ||
4370 | 658 | + <property name="xalign">1</property> | ||
4371 | 659 | + <property name="mnemonic-widget">switch_discoverable</property> | ||
4372 | 660 | + <property name="label">Visibility of āBastien's computerā</property> | ||
4373 | 661 | + </object> | ||
4374 | 662 | + <packing> | ||
4375 | 663 | + <property name="expand">False</property> | ||
4376 | 664 | + <property name="fill">True</property> | ||
4377 | 665 | + <property name="padding">6</property> | ||
4378 | 666 | + <property name="position">0</property> | ||
4379 | 667 | + </packing> | ||
4380 | 668 | + </child> | ||
4381 | 669 | + <child> | ||
4382 | 670 | + <object class="GtkSwitch" id="switch_discoverable"> | ||
4383 | 671 | + <property name="visible">True</property> | ||
4384 | 672 | + <property name="can_focus">True</property> | ||
4385 | 673 | + <property name="use_action_appearance">False</property> | ||
4386 | 674 | + </object> | ||
4387 | 675 | + <packing> | ||
4388 | 676 | + <property name="expand">False</property> | ||
4389 | 677 | + <property name="fill">True</property> | ||
4390 | 678 | + <property name="position">1</property> | ||
4391 | 679 | + </packing> | ||
4392 | 680 | + </child> | ||
4393 | 681 | + </object> | ||
4394 | 682 | + <packing> | ||
4395 | 683 | + <property name="left_attach">0</property> | ||
4396 | 684 | + <property name="top_attach">0</property> | ||
4397 | 685 | + <property name="width">1</property> | ||
4398 | 686 | + <property name="height">1</property> | ||
4399 | 687 | + </packing> | ||
4400 | 688 | + </child> | ||
4401 | 689 | + </object> | ||
4402 | 690 | </interface> | ||
4403 | 691 | --- a/panels/bluetooth/cc-bluetooth-panel.c | ||
4404 | 692 | +++ b/panels/bluetooth/cc-bluetooth-panel.c | ||
4405 | 693 | @@ -1,6 +1,9 @@ | ||
4406 | 694 | /* | ||
4407 | 695 | * | ||
4408 | 696 | - * Copyright (C) 2013 Bastien Nocera <hadess@hadess.net> | ||
4409 | 697 | + * BlueZ - Bluetooth protocol stack for Linux | ||
4410 | 698 | + * | ||
4411 | 699 | + * Copyright (C) 2006-2010 Bastien Nocera <hadess@hadess.net> | ||
4412 | 700 | + * | ||
4413 | 701 | * | ||
4414 | 702 | * This program is free software; you can redistribute it and/or modify | ||
4415 | 703 | * it under the terms of the GNU General Public License as published by | ||
4416 | 704 | @@ -24,11 +27,14 @@ | ||
4417 | 705 | |||
4418 | 706 | #include <glib/gi18n-lib.h> | ||
4419 | 707 | #include <shell/cc-shell.h> | ||
4420 | 708 | -#include <bluetooth-settings-widget.h> | ||
4421 | 709 | |||
4422 | 710 | #include "cc-bluetooth-panel.h" | ||
4423 | 711 | #include "cc-bluetooth-resources.h" | ||
4424 | 712 | |||
4425 | 713 | +#include <bluetooth-client.h> | ||
4426 | 714 | +#include <bluetooth-utils.h> | ||
4427 | 715 | +#include <bluetooth-killswitch.h> | ||
4428 | 716 | +#include <bluetooth-chooser.h> | ||
4429 | 717 | |||
4430 | 718 | CC_PANEL_REGISTER (CcBluetoothPanel, cc_bluetooth_panel) | ||
4431 | 719 | |||
4432 | 720 | @@ -36,32 +42,44 @@ | ||
4433 | 721 | |||
4434 | 722 | #define WID(s) GTK_WIDGET (gtk_builder_get_object (self->priv->builder, s)) | ||
4435 | 723 | |||
4436 | 724 | -#define BLUETOOTH_DISABLED_PAGE "disabled-page" | ||
4437 | 725 | -#define BLUETOOTH_HW_DISABLED_PAGE "hw-disabled-page" | ||
4438 | 726 | -#define BLUETOOTH_NO_DEVICES_PAGE "no-devices-page" | ||
4439 | 727 | -#define BLUETOOTH_WORKING_PAGE "working-page" | ||
4440 | 728 | +#define BLUEZ_SERVICE "org.bluez" | ||
4441 | 729 | +#define ADAPTER_IFACE "org.bluez.Adapter1" | ||
4442 | 730 | + | ||
4443 | 731 | +#define KEYBOARD_PREFS "keyboard" | ||
4444 | 732 | +#define MOUSE_PREFS "mouse" | ||
4445 | 733 | +#define SOUND_PREFS "sound" | ||
4446 | 734 | +#define WIZARD "bluetooth-wizard" | ||
4447 | 735 | |||
4448 | 736 | struct CcBluetoothPanelPrivate { | ||
4449 | 737 | GtkBuilder *builder; | ||
4450 | 738 | - GtkWidget *stack; | ||
4451 | 739 | - GtkWidget *widget; | ||
4452 | 740 | - GCancellable *cancellable; | ||
4453 | 741 | - | ||
4454 | 742 | - /* Killswitch */ | ||
4455 | 743 | + GtkWidget *chooser; | ||
4456 | 744 | + char *selected_bdaddr; | ||
4457 | 745 | + BluetoothClient *client; | ||
4458 | 746 | + BluetoothKillswitch *killswitch; | ||
4459 | 747 | + gboolean debug; | ||
4460 | 748 | + GHashTable *connecting_devices; | ||
4461 | 749 | GtkWidget *kill_switch_header; | ||
4462 | 750 | - GDBusProxy *rfkill, *properties; | ||
4463 | 751 | - gboolean airplane_mode; | ||
4464 | 752 | - gboolean hardware_airplane_mode; | ||
4465 | 753 | - gboolean has_airplane_mode; | ||
4466 | 754 | + GCancellable *cancellable; | ||
4467 | 755 | }; | ||
4468 | 756 | |||
4469 | 757 | static void cc_bluetooth_panel_finalize (GObject *object); | ||
4470 | 758 | static void cc_bluetooth_panel_constructed (GObject *object); | ||
4471 | 759 | |||
4472 | 760 | +static void | ||
4473 | 761 | +launch_command (const char *command) | ||
4474 | 762 | +{ | ||
4475 | 763 | + GError *error = NULL; | ||
4476 | 764 | + | ||
4477 | 765 | + if (!g_spawn_command_line_async(command, &error)) { | ||
4478 | 766 | + g_warning ("Couldn't execute command '%s': %s\n", command, error->message); | ||
4479 | 767 | + g_error_free (error); | ||
4480 | 768 | + } | ||
4481 | 769 | +} | ||
4482 | 770 | + | ||
4483 | 771 | static const char * | ||
4484 | 772 | cc_bluetooth_panel_get_help_uri (CcPanel *panel) | ||
4485 | 773 | { | ||
4486 | 774 | - return "help:gnome-help/bluetooth"; | ||
4487 | 775 | + return "help:gnome-help/bluetooth"; | ||
4488 | 776 | } | ||
4489 | 777 | |||
4490 | 778 | static void | ||
4491 | 779 | @@ -84,17 +102,148 @@ | ||
4492 | 780 | CcBluetoothPanel *self; | ||
4493 | 781 | |||
4494 | 782 | self = CC_BLUETOOTH_PANEL (object); | ||
4495 | 783 | - | ||
4496 | 784 | g_cancellable_cancel (self->priv->cancellable); | ||
4497 | 785 | g_clear_object (&self->priv->cancellable); | ||
4498 | 786 | |||
4499 | 787 | - g_clear_object (&self->priv->properties); | ||
4500 | 788 | - g_clear_object (&self->priv->rfkill); | ||
4501 | 789 | + g_clear_object (&self->priv->builder); | ||
4502 | 790 | + g_clear_object (&self->priv->killswitch); | ||
4503 | 791 | + g_clear_object (&self->priv->client); | ||
4504 | 792 | + | ||
4505 | 793 | + g_clear_pointer (&self->priv->connecting_devices, g_hash_table_destroy); | ||
4506 | 794 | + g_clear_pointer (&self->priv->selected_bdaddr, g_free); | ||
4507 | 795 | g_clear_object (&self->priv->kill_switch_header); | ||
4508 | 796 | |||
4509 | 797 | G_OBJECT_CLASS (cc_bluetooth_panel_parent_class)->finalize (object); | ||
4510 | 798 | } | ||
4511 | 799 | |||
4512 | 800 | +enum { | ||
4513 | 801 | + CONNECTING_NOTEBOOK_PAGE_SWITCH = 0, | ||
4514 | 802 | + CONNECTING_NOTEBOOK_PAGE_SPINNER = 1 | ||
4515 | 803 | +}; | ||
4516 | 804 | + | ||
4517 | 805 | +static void | ||
4518 | 806 | +set_connecting_page (CcBluetoothPanel *self, | ||
4519 | 807 | + int page) | ||
4520 | 808 | +{ | ||
4521 | 809 | + if (page == CONNECTING_NOTEBOOK_PAGE_SPINNER) | ||
4522 | 810 | + gtk_spinner_start (GTK_SPINNER (WID ("connecting_spinner"))); | ||
4523 | 811 | + gtk_notebook_set_current_page (GTK_NOTEBOOK (WID ("connecting_notebook")), page); | ||
4524 | 812 | + if (page == CONNECTING_NOTEBOOK_PAGE_SWITCH) | ||
4525 | 813 | + gtk_spinner_start (GTK_SPINNER (WID ("connecting_spinner"))); | ||
4526 | 814 | +} | ||
4527 | 815 | + | ||
4528 | 816 | +static void | ||
4529 | 817 | +remove_connecting (CcBluetoothPanel *self, | ||
4530 | 818 | + const char *bdaddr) | ||
4531 | 819 | +{ | ||
4532 | 820 | + g_hash_table_remove (self->priv->connecting_devices, bdaddr); | ||
4533 | 821 | +} | ||
4534 | 822 | + | ||
4535 | 823 | +static void | ||
4536 | 824 | +add_connecting (CcBluetoothPanel *self, | ||
4537 | 825 | + const char *bdaddr) | ||
4538 | 826 | +{ | ||
4539 | 827 | + g_hash_table_insert (self->priv->connecting_devices, | ||
4540 | 828 | + g_strdup (bdaddr), | ||
4541 | 829 | + GINT_TO_POINTER (1)); | ||
4542 | 830 | +} | ||
4543 | 831 | + | ||
4544 | 832 | +static gboolean | ||
4545 | 833 | +is_connecting (CcBluetoothPanel *self, | ||
4546 | 834 | + const char *bdaddr) | ||
4547 | 835 | +{ | ||
4548 | 836 | + return GPOINTER_TO_INT (g_hash_table_lookup (self->priv->connecting_devices, | ||
4549 | 837 | + bdaddr)); | ||
4550 | 838 | +} | ||
4551 | 839 | + | ||
4552 | 840 | +typedef struct { | ||
4553 | 841 | + char *bdaddr; | ||
4554 | 842 | + CcBluetoothPanel *self; | ||
4555 | 843 | +} ConnectData; | ||
4556 | 844 | + | ||
4557 | 845 | +static void | ||
4558 | 846 | +connect_done (GObject *source_object, | ||
4559 | 847 | + GAsyncResult *res, | ||
4560 | 848 | + gpointer user_data) | ||
4561 | 849 | +{ | ||
4562 | 850 | + CcBluetoothPanel *self; | ||
4563 | 851 | + char *bdaddr; | ||
4564 | 852 | + gboolean success; | ||
4565 | 853 | + GError *error = NULL; | ||
4566 | 854 | + ConnectData *data = (ConnectData *) user_data; | ||
4567 | 855 | + | ||
4568 | 856 | + success = bluetooth_client_connect_service_finish (BLUETOOTH_CLIENT (source_object), | ||
4569 | 857 | + res, &error); | ||
4570 | 858 | + if (!success && g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) | ||
4571 | 859 | + goto out; | ||
4572 | 860 | + | ||
4573 | 861 | + self = data->self; | ||
4574 | 862 | + | ||
4575 | 863 | + /* Check whether the same device is now selected, and update the UI */ | ||
4576 | 864 | + bdaddr = bluetooth_chooser_get_selected_device (BLUETOOTH_CHOOSER (self->priv->chooser)); | ||
4577 | 865 | + if (g_strcmp0 (bdaddr, data->bdaddr) == 0) { | ||
4578 | 866 | + GtkSwitch *button; | ||
4579 | 867 | + | ||
4580 | 868 | + button = GTK_SWITCH (WID ("switch_connection")); | ||
4581 | 869 | + /* Reset the switch if it failed */ | ||
4582 | 870 | + if (success == FALSE) | ||
4583 | 871 | + gtk_switch_set_active (button, !gtk_switch_get_active (button)); | ||
4584 | 872 | + set_connecting_page (self, CONNECTING_NOTEBOOK_PAGE_SWITCH); | ||
4585 | 873 | + } | ||
4586 | 874 | + | ||
4587 | 875 | + remove_connecting (self, data->bdaddr); | ||
4588 | 876 | + | ||
4589 | 877 | + g_free (bdaddr); | ||
4590 | 878 | + | ||
4591 | 879 | +out: | ||
4592 | 880 | + g_clear_error (&error); | ||
4593 | 881 | + g_free (data->bdaddr); | ||
4594 | 882 | + g_free (data); | ||
4595 | 883 | +} | ||
4596 | 884 | + | ||
4597 | 885 | +static void | ||
4598 | 886 | +switch_connected_active_changed (GtkSwitch *button, | ||
4599 | 887 | + GParamSpec *spec, | ||
4600 | 888 | + CcBluetoothPanel *self) | ||
4601 | 889 | +{ | ||
4602 | 890 | + char *proxy; | ||
4603 | 891 | + GValue value = { 0, }; | ||
4604 | 892 | + ConnectData *data; | ||
4605 | 893 | + char *bdaddr; | ||
4606 | 894 | + | ||
4607 | 895 | + bdaddr = bluetooth_chooser_get_selected_device (BLUETOOTH_CHOOSER (self->priv->chooser)); | ||
4608 | 896 | + if (is_connecting (self, bdaddr)) { | ||
4609 | 897 | + g_free (bdaddr); | ||
4610 | 898 | + return; | ||
4611 | 899 | + } | ||
4612 | 900 | + | ||
4613 | 901 | + if (bluetooth_chooser_get_selected_device_info (BLUETOOTH_CHOOSER (self->priv->chooser), | ||
4614 | 902 | + "proxy", &value) == FALSE) { | ||
4615 | 903 | + g_warning ("Could not get D-Bus proxy for selected device"); | ||
4616 | 904 | + return; | ||
4617 | 905 | + } | ||
4618 | 906 | + proxy = g_strdup (g_dbus_proxy_get_object_path (g_value_get_object (&value))); | ||
4619 | 907 | + g_value_unset (&value); | ||
4620 | 908 | + | ||
4621 | 909 | + if (proxy == NULL) | ||
4622 | 910 | + return; | ||
4623 | 911 | + | ||
4624 | 912 | + data = g_new0 (ConnectData, 1); | ||
4625 | 913 | + data->bdaddr = bdaddr; | ||
4626 | 914 | + data->self = self; | ||
4627 | 915 | + | ||
4628 | 916 | + bluetooth_client_connect_service (self->priv->client, | ||
4629 | 917 | + proxy, | ||
4630 | 918 | + gtk_switch_get_active (button), | ||
4631 | 919 | + self->priv->cancellable, | ||
4632 | 920 | + connect_done, | ||
4633 | 921 | + data); | ||
4634 | 922 | + | ||
4635 | 923 | + add_connecting (self, data->bdaddr); | ||
4636 | 924 | + set_connecting_page (self, CONNECTING_NOTEBOOK_PAGE_SPINNER); | ||
4637 | 925 | + g_free (proxy); | ||
4638 | 926 | +} | ||
4639 | 927 | + | ||
4640 | 928 | static void | ||
4641 | 929 | cc_bluetooth_panel_constructed (GObject *object) | ||
4642 | 930 | { | ||
4643 | 931 | @@ -109,6 +258,120 @@ | ||
4644 | 932 | gtk_widget_show_all (self->priv->kill_switch_header); | ||
4645 | 933 | } | ||
4646 | 934 | |||
4647 | 935 | +enum { | ||
4648 | 936 | + NOTEBOOK_PAGE_EMPTY = 0, | ||
4649 | 937 | + NOTEBOOK_PAGE_PROPS = 1 | ||
4650 | 938 | +}; | ||
4651 | 939 | + | ||
4652 | 940 | +static void | ||
4653 | 941 | +set_notebook_page (CcBluetoothPanel *self, | ||
4654 | 942 | + int page) | ||
4655 | 943 | +{ | ||
4656 | 944 | + gtk_notebook_set_current_page (GTK_NOTEBOOK (WID ("props_notebook")), page); | ||
4657 | 945 | +} | ||
4658 | 946 | + | ||
4659 | 947 | +static void | ||
4660 | 948 | +cc_bluetooth_panel_update_properties (CcBluetoothPanel *self) | ||
4661 | 949 | +{ | ||
4662 | 950 | + char *bdaddr; | ||
4663 | 951 | + GtkSwitch *button; | ||
4664 | 952 | + | ||
4665 | 953 | + button = GTK_SWITCH (WID ("switch_connection")); | ||
4666 | 954 | + g_signal_handlers_block_by_func (button, switch_connected_active_changed, self); | ||
4667 | 955 | + | ||
4668 | 956 | + /* Hide all the buttons now, and show them again if we need to */ | ||
4669 | 957 | + gtk_widget_hide (WID ("keyboard_box")); | ||
4670 | 958 | + gtk_widget_hide (WID ("sound_box")); | ||
4671 | 959 | + gtk_widget_hide (WID ("mouse_box")); | ||
4672 | 960 | + gtk_widget_hide (WID ("send_box")); | ||
4673 | 961 | + | ||
4674 | 962 | + bdaddr = bluetooth_chooser_get_selected_device (BLUETOOTH_CHOOSER (self->priv->chooser)); | ||
4675 | 963 | + | ||
4676 | 964 | + if (bdaddr == NULL) { | ||
4677 | 965 | + gtk_widget_set_sensitive (WID ("properties_vbox"), FALSE); | ||
4678 | 966 | + gtk_switch_set_active (button, FALSE); | ||
4679 | 967 | + gtk_widget_set_sensitive (WID ("button_delete"), FALSE); | ||
4680 | 968 | + set_notebook_page (self, NOTEBOOK_PAGE_EMPTY); | ||
4681 | 969 | + } else { | ||
4682 | 970 | + BluetoothType type; | ||
4683 | 971 | + gboolean connected; | ||
4684 | 972 | + GValue value = { 0 }; | ||
4685 | 973 | + | ||
4686 | 974 | + if (self->priv->debug) | ||
4687 | 975 | + bluetooth_chooser_dump_selected_device (BLUETOOTH_CHOOSER (self->priv->chooser)); | ||
4688 | 976 | + | ||
4689 | 977 | + gtk_widget_set_sensitive (WID ("properties_vbox"), TRUE); | ||
4690 | 978 | + | ||
4691 | 979 | + if (is_connecting (self, bdaddr)) { | ||
4692 | 980 | + gtk_switch_set_active (button, TRUE); | ||
4693 | 981 | + set_connecting_page (self, CONNECTING_NOTEBOOK_PAGE_SPINNER); | ||
4694 | 982 | + } else { | ||
4695 | 983 | + connected = bluetooth_chooser_get_selected_device_is_connected (BLUETOOTH_CHOOSER (self->priv->chooser)); | ||
4696 | 984 | + gtk_switch_set_active (button, connected); | ||
4697 | 985 | + set_connecting_page (self, CONNECTING_NOTEBOOK_PAGE_SWITCH); | ||
4698 | 986 | + } | ||
4699 | 987 | + | ||
4700 | 988 | + /* Paired */ | ||
4701 | 989 | + bluetooth_chooser_get_selected_device_info (BLUETOOTH_CHOOSER (self->priv->chooser), | ||
4702 | 990 | + "paired", &value); | ||
4703 | 991 | + gtk_label_set_text (GTK_LABEL (WID ("paired_label")), | ||
4704 | 992 | + g_value_get_boolean (&value) ? _("Yes") : _("No")); | ||
4705 | 993 | + g_value_unset (&value); | ||
4706 | 994 | + | ||
4707 | 995 | + /* UUIDs */ | ||
4708 | 996 | + if (bluetooth_chooser_get_selected_device_info (BLUETOOTH_CHOOSER (self->priv->chooser), | ||
4709 | 997 | + "uuids", &value)) { | ||
4710 | 998 | + const char **uuids; | ||
4711 | 999 | + guint i; | ||
4712 | 1000 | + | ||
4713 | 1001 | + uuids = (const char **) g_value_get_boxed (&value); | ||
4714 | 1002 | + | ||
4715 | 1003 | + gtk_widget_set_sensitive (GTK_WIDGET(button), | ||
4716 | 1004 | + bluetooth_client_get_connectable (uuids)); | ||
4717 | 1005 | + | ||
4718 | 1006 | + for (i = 0; uuids && uuids[i] != NULL; i++) { | ||
4719 | 1007 | + if (g_str_equal (uuids[i], "OBEXObjectPush")) { | ||
4720 | 1008 | + gtk_widget_show (WID ("send_box")); | ||
4721 | 1009 | + break; | ||
4722 | 1010 | + } | ||
4723 | 1011 | + | ||
4724 | 1012 | + } | ||
4725 | 1013 | + | ||
4726 | 1014 | + g_value_unset (&value); | ||
4727 | 1015 | + } | ||
4728 | 1016 | + | ||
4729 | 1017 | + /* Type */ | ||
4730 | 1018 | + type = bluetooth_chooser_get_selected_device_type (BLUETOOTH_CHOOSER (self->priv->chooser)); | ||
4731 | 1019 | + gtk_label_set_text (GTK_LABEL (WID ("type_label")), bluetooth_type_to_string (type)); | ||
4732 | 1020 | + switch (type) { | ||
4733 | 1021 | + case BLUETOOTH_TYPE_KEYBOARD: | ||
4734 | 1022 | + gtk_widget_show (WID ("keyboard_box")); | ||
4735 | 1023 | + break; | ||
4736 | 1024 | + case BLUETOOTH_TYPE_MOUSE: | ||
4737 | 1025 | + case BLUETOOTH_TYPE_TABLET: | ||
4738 | 1026 | + gtk_widget_show (WID ("mouse_box")); | ||
4739 | 1027 | + break; | ||
4740 | 1028 | + case BLUETOOTH_TYPE_HEADSET: | ||
4741 | 1029 | + case BLUETOOTH_TYPE_HEADPHONES: | ||
4742 | 1030 | + case BLUETOOTH_TYPE_OTHER_AUDIO: | ||
4743 | 1031 | + gtk_widget_show (WID ("sound_box")); | ||
4744 | 1032 | + default: | ||
4745 | 1033 | + /* others? */ | ||
4746 | 1034 | + ; | ||
4747 | 1035 | + } | ||
4748 | 1036 | + | ||
4749 | 1037 | + gtk_label_set_text (GTK_LABEL (WID ("address_label")), bdaddr); | ||
4750 | 1038 | + | ||
4751 | 1039 | + gtk_widget_set_sensitive (WID ("button_delete"), TRUE); | ||
4752 | 1040 | + set_notebook_page (self, NOTEBOOK_PAGE_PROPS); | ||
4753 | 1041 | + } | ||
4754 | 1042 | + | ||
4755 | 1043 | + g_free (self->priv->selected_bdaddr); | ||
4756 | 1044 | + self->priv->selected_bdaddr = bdaddr; | ||
4757 | 1045 | + | ||
4758 | 1046 | + g_signal_handlers_unblock_by_func (button, switch_connected_active_changed, self); | ||
4759 | 1047 | +} | ||
4760 | 1048 | + | ||
4761 | 1049 | static void | ||
4762 | 1050 | power_callback (GObject *object, | ||
4763 | 1051 | GParamSpec *spec, | ||
4764 | 1052 | @@ -118,117 +381,375 @@ | ||
4765 | 1053 | |||
4766 | 1054 | state = gtk_switch_get_active (GTK_SWITCH (WID ("switch_bluetooth"))); | ||
4767 | 1055 | g_debug ("Power switched to %s", state ? "on" : "off"); | ||
4768 | 1056 | - g_dbus_proxy_call (self->priv->properties, | ||
4769 | 1057 | - "Set", | ||
4770 | 1058 | - g_variant_new_parsed ("('org.gnome.SettingsDaemon.Rfkill', 'BluetoothAirplaneMode', %v)", | ||
4771 | 1059 | - g_variant_new_boolean (!state)), | ||
4772 | 1060 | - G_DBUS_CALL_FLAGS_NONE, | ||
4773 | 1061 | - -1, | ||
4774 | 1062 | - self->priv->cancellable, | ||
4775 | 1063 | - NULL, NULL); | ||
4776 | 1064 | + bluetooth_killswitch_set_state (self->priv->killswitch, | ||
4777 | 1065 | + state ? BLUETOOTH_KILLSWITCH_STATE_UNBLOCKED : BLUETOOTH_KILLSWITCH_STATE_SOFT_BLOCKED); | ||
4778 | 1066 | } | ||
4779 | 1067 | |||
4780 | 1068 | static void | ||
4781 | 1069 | -cc_bluetooth_panel_update_power (CcBluetoothPanel *self) | ||
4782 | 1070 | +cc_bluetooth_panel_update_treeview_message (CcBluetoothPanel *self, | ||
4783 | 1071 | + const char *message) | ||
4784 | 1072 | { | ||
4785 | 1073 | - GObject *toggle; | ||
4786 | 1074 | - gboolean sensitive, powered; | ||
4787 | 1075 | - const char *page; | ||
4788 | 1076 | + if (message != NULL) { | ||
4789 | 1077 | + gtk_widget_hide (self->priv->chooser); | ||
4790 | 1078 | + gtk_widget_show (WID ("message_scrolledwindow")); | ||
4791 | 1079 | |||
4792 | 1080 | - g_debug ("Updating airplane mode: has_airplane_mode %d, hardware_airplane_mode %d, airplane_mode %d", | ||
4793 | 1081 | - self->priv->has_airplane_mode, self->priv->hardware_airplane_mode, self->priv->airplane_mode); | ||
4794 | 1082 | + gtk_label_set_text (GTK_LABEL (WID ("message_label")), | ||
4795 | 1083 | + message); | ||
4796 | 1084 | + } else { | ||
4797 | 1085 | + gtk_widget_hide (WID ("message_scrolledwindow")); | ||
4798 | 1086 | + gtk_widget_show (self->priv->chooser); | ||
4799 | 1087 | + } | ||
4800 | 1088 | +} | ||
4801 | 1089 | |||
4802 | 1090 | - if (self->priv->has_airplane_mode == FALSE) { | ||
4803 | 1091 | - g_debug ("No Bluetooth available"); | ||
4804 | 1092 | - sensitive = FALSE; | ||
4805 | 1093 | - powered = FALSE; | ||
4806 | 1094 | - page = BLUETOOTH_NO_DEVICES_PAGE; | ||
4807 | 1095 | - } else if (self->priv->hardware_airplane_mode) { | ||
4808 | 1096 | - g_debug ("Bluetooth is Hard blocked"); | ||
4809 | 1097 | - sensitive = FALSE; | ||
4810 | 1098 | - powered = FALSE; | ||
4811 | 1099 | - page = BLUETOOTH_HW_DISABLED_PAGE; | ||
4812 | 1100 | - } else if (self->priv->airplane_mode) { | ||
4813 | 1101 | +static void | ||
4814 | 1102 | +cc_bluetooth_panel_update_power (CcBluetoothPanel *self) | ||
4815 | 1103 | +{ | ||
4816 | 1104 | + BluetoothKillswitchState state; | ||
4817 | 1105 | + char *path; | ||
4818 | 1106 | + gboolean powered, sensitive; | ||
4819 | 1107 | + | ||
4820 | 1108 | + g_object_get (G_OBJECT (self->priv->client), | ||
4821 | 1109 | + "default-adapter", &path, | ||
4822 | 1110 | + "default-adapter-powered", &powered, | ||
4823 | 1111 | + NULL); | ||
4824 | 1112 | + state = bluetooth_killswitch_get_state (self->priv->killswitch); | ||
4825 | 1113 | + | ||
4826 | 1114 | + g_debug ("Updating power, default adapter: %s (powered: %s), killswitch: %s", | ||
4827 | 1115 | + path ? path : "(none)", | ||
4828 | 1116 | + powered ? "on" : "off", | ||
4829 | 1117 | + bluetooth_killswitch_state_to_string (state)); | ||
4830 | 1118 | + | ||
4831 | 1119 | + if (path == NULL && | ||
4832 | 1120 | + bluetooth_killswitch_has_killswitches (self->priv->killswitch) && | ||
4833 | 1121 | + state != BLUETOOTH_KILLSWITCH_STATE_HARD_BLOCKED) { | ||
4834 | 1122 | g_debug ("Default adapter is unpowered, but should be available"); | ||
4835 | 1123 | sensitive = TRUE; | ||
4836 | 1124 | - powered = FALSE; | ||
4837 | 1125 | - page = BLUETOOTH_DISABLED_PAGE; | ||
4838 | 1126 | + cc_bluetooth_panel_update_treeview_message (self, _("Bluetooth is disabled")); | ||
4839 | 1127 | + } else if (path == NULL && | ||
4840 | 1128 | + state == BLUETOOTH_KILLSWITCH_STATE_HARD_BLOCKED) { | ||
4841 | 1129 | + g_debug ("Bluetooth is Hard blocked"); | ||
4842 | 1130 | + sensitive = FALSE; | ||
4843 | 1131 | + cc_bluetooth_panel_update_treeview_message (self, _("Bluetooth is disabled by hardware switch")); | ||
4844 | 1132 | + } else if (path == NULL) { | ||
4845 | 1133 | + sensitive = FALSE; | ||
4846 | 1134 | + g_debug ("No Bluetooth available"); | ||
4847 | 1135 | + cc_bluetooth_panel_update_treeview_message (self, _("No Bluetooth adapters found")); | ||
4848 | 1136 | } else { | ||
4849 | 1137 | - g_debug ("Bluetooth is available and powered"); | ||
4850 | 1138 | sensitive = TRUE; | ||
4851 | 1139 | - powered = TRUE; | ||
4852 | 1140 | - page = BLUETOOTH_WORKING_PAGE; | ||
4853 | 1141 | + g_debug ("Bluetooth is available and powered"); | ||
4854 | 1142 | + cc_bluetooth_panel_update_treeview_message (self, NULL); | ||
4855 | 1143 | } | ||
4856 | 1144 | |||
4857 | 1145 | + g_free (path); | ||
4858 | 1146 | gtk_widget_set_sensitive (WID ("box_power") , sensitive); | ||
4859 | 1147 | + gtk_widget_set_sensitive (WID ("box_vis") , sensitive); | ||
4860 | 1148 | +} | ||
4861 | 1149 | |||
4862 | 1150 | - toggle = G_OBJECT (WID ("switch_bluetooth")); | ||
4863 | 1151 | - g_signal_handlers_block_by_func (toggle, power_callback, self); | ||
4864 | 1152 | - gtk_switch_set_active (GTK_SWITCH (toggle), powered); | ||
4865 | 1153 | - g_signal_handlers_unblock_by_func (toggle, power_callback, self); | ||
4866 | 1154 | +static void | ||
4867 | 1155 | +switch_panel (CcBluetoothPanel *self, | ||
4868 | 1156 | + const char *panel) | ||
4869 | 1157 | +{ | ||
4870 | 1158 | + CcShell *shell; | ||
4871 | 1159 | + GError *error = NULL; | ||
4872 | 1160 | + | ||
4873 | 1161 | + shell = cc_panel_get_shell (CC_PANEL (self)); | ||
4874 | 1162 | + if (cc_shell_set_active_panel_from_id (shell, panel, NULL, &error) == FALSE) | ||
4875 | 1163 | + { | ||
4876 | 1164 | + g_warning ("Failed to activate '%s' panel: %s", panel, error->message); | ||
4877 | 1165 | + g_error_free (error); | ||
4878 | 1166 | + } | ||
4879 | 1167 | +} | ||
4880 | 1168 | + | ||
4881 | 1169 | +static gboolean | ||
4882 | 1170 | +keyboard_callback (GtkButton *button, | ||
4883 | 1171 | + CcBluetoothPanel *self) | ||
4884 | 1172 | +{ | ||
4885 | 1173 | + switch_panel (self, KEYBOARD_PREFS); | ||
4886 | 1174 | + return TRUE; | ||
4887 | 1175 | +} | ||
4888 | 1176 | + | ||
4889 | 1177 | +static gboolean | ||
4890 | 1178 | +mouse_callback (GtkButton *button, | ||
4891 | 1179 | + CcBluetoothPanel *self) | ||
4892 | 1180 | +{ | ||
4893 | 1181 | + switch_panel (self, MOUSE_PREFS); | ||
4894 | 1182 | + return TRUE; | ||
4895 | 1183 | +} | ||
4896 | 1184 | |||
4897 | 1185 | - gtk_stack_set_visible_child_name (GTK_STACK (self->priv->stack), page); | ||
4898 | 1186 | +static gboolean | ||
4899 | 1187 | +sound_callback (GtkButton *button, | ||
4900 | 1188 | + CcBluetoothPanel *self) | ||
4901 | 1189 | +{ | ||
4902 | 1190 | + switch_panel (self, SOUND_PREFS); | ||
4903 | 1191 | + return TRUE; | ||
4904 | 1192 | } | ||
4905 | 1193 | |||
4906 | 1194 | static void | ||
4907 | 1195 | -airplane_mode_changed (GDBusProxy *proxy, | ||
4908 | 1196 | - GVariant *changed_properties, | ||
4909 | 1197 | - GStrv invalidated_properties, | ||
4910 | 1198 | - CcBluetoothPanel *self) | ||
4911 | 1199 | +send_callback (GtkButton *button, | ||
4912 | 1200 | + CcBluetoothPanel *self) | ||
4913 | 1201 | { | ||
4914 | 1202 | - GVariant *v; | ||
4915 | 1203 | + char *bdaddr, *alias; | ||
4916 | 1204 | + | ||
4917 | 1205 | + bdaddr = bluetooth_chooser_get_selected_device (BLUETOOTH_CHOOSER (self->priv->chooser)); | ||
4918 | 1206 | + alias = bluetooth_chooser_get_selected_device_name (BLUETOOTH_CHOOSER (self->priv->chooser)); | ||
4919 | 1207 | |||
4920 | 1208 | - v = g_dbus_proxy_get_cached_property (self->priv->rfkill, "BluetoothAirplaneMode"); | ||
4921 | 1209 | - self->priv->airplane_mode = g_variant_get_boolean (v); | ||
4922 | 1210 | - g_variant_unref (v); | ||
4923 | 1211 | + bluetooth_send_to_address (bdaddr, alias); | ||
4924 | 1212 | |||
4925 | 1213 | - v = g_dbus_proxy_get_cached_property (self->priv->rfkill, "BluetoothHardwareAirplaneMode"); | ||
4926 | 1214 | - self->priv->hardware_airplane_mode = g_variant_get_boolean (v); | ||
4927 | 1215 | - g_variant_unref (v); | ||
4928 | 1216 | + g_free (bdaddr); | ||
4929 | 1217 | + g_free (alias); | ||
4930 | 1218 | +} | ||
4931 | 1219 | |||
4932 | 1220 | - v = g_dbus_proxy_get_cached_property (self->priv->rfkill, "BluetoothHasAirplaneMode"); | ||
4933 | 1221 | - self->priv->has_airplane_mode = g_variant_get_boolean (v); | ||
4934 | 1222 | - g_variant_unref (v); | ||
4935 | 1223 | +/* Visibility/Discoverable */ | ||
4936 | 1224 | +static void discoverable_changed (BluetoothClient *client, | ||
4937 | 1225 | + GParamSpec *spec, | ||
4938 | 1226 | + CcBluetoothPanel *self); | ||
4939 | 1227 | |||
4940 | 1228 | - cc_bluetooth_panel_update_power (self); | ||
4941 | 1229 | +static void | ||
4942 | 1230 | +switch_discoverable_active_changed (GtkSwitch *button, | ||
4943 | 1231 | + GParamSpec *spec, | ||
4944 | 1232 | + CcBluetoothPanel *self) | ||
4945 | 1233 | +{ | ||
4946 | 1234 | + g_signal_handlers_block_by_func (self->priv->client, discoverable_changed, self); | ||
4947 | 1235 | + g_object_set (G_OBJECT (self->priv->client), "default-adapter-discoverable", | ||
4948 | 1236 | + gtk_switch_get_active (button), NULL); | ||
4949 | 1237 | + g_signal_handlers_unblock_by_func (self->priv->client, discoverable_changed, self); | ||
4950 | 1238 | } | ||
4951 | 1239 | |||
4952 | 1240 | static void | ||
4953 | 1241 | -add_stack_page (CcBluetoothPanel *self, | ||
4954 | 1242 | - const char *message, | ||
4955 | 1243 | - const char *name) | ||
4956 | 1244 | +cc_bluetooth_panel_update_visibility (CcBluetoothPanel *self) | ||
4957 | 1245 | { | ||
4958 | 1246 | - GtkWidget *label; | ||
4959 | 1247 | + gboolean discoverable; | ||
4960 | 1248 | + GtkSwitch *button; | ||
4961 | 1249 | + char *name; | ||
4962 | 1250 | + | ||
4963 | 1251 | + button = GTK_SWITCH (WID ("switch_discoverable")); | ||
4964 | 1252 | + g_object_get (G_OBJECT (self->priv->client), "default-adapter-discoverable", &discoverable, NULL); | ||
4965 | 1253 | + g_signal_handlers_block_by_func (button, switch_discoverable_active_changed, self); | ||
4966 | 1254 | + gtk_switch_set_active (button, discoverable); | ||
4967 | 1255 | + g_signal_handlers_unblock_by_func (button, switch_discoverable_active_changed, self); | ||
4968 | 1256 | + | ||
4969 | 1257 | + g_object_get (G_OBJECT (self->priv->client), "default-adapter-name", &name, NULL); | ||
4970 | 1258 | + if (name == NULL) { | ||
4971 | 1259 | + gtk_widget_set_sensitive (WID ("switch_discoverable"), FALSE); | ||
4972 | 1260 | + gtk_widget_set_sensitive (WID ("visible_label"), FALSE); | ||
4973 | 1261 | + gtk_label_set_text (GTK_LABEL (WID ("visible_label")), _("Visibility")); | ||
4974 | 1262 | + } else { | ||
4975 | 1263 | + char *label; | ||
4976 | 1264 | + | ||
4977 | 1265 | + label = g_strdup_printf (_("Visibility of ā%sā"), name); | ||
4978 | 1266 | + g_free (name); | ||
4979 | 1267 | + gtk_label_set_text (GTK_LABEL (WID ("visible_label")), label); | ||
4980 | 1268 | + g_free (label); | ||
4981 | 1269 | |||
4982 | 1270 | - label = gtk_label_new (message); | ||
4983 | 1271 | - gtk_stack_add_named (GTK_STACK (self->priv->stack), label, name); | ||
4984 | 1272 | - gtk_widget_show (label); | ||
4985 | 1273 | + gtk_widget_set_sensitive (WID ("switch_discoverable"), TRUE); | ||
4986 | 1274 | + gtk_widget_set_sensitive (WID ("visible_label"), TRUE); | ||
4987 | 1275 | + } | ||
4988 | 1276 | } | ||
4989 | 1277 | |||
4990 | 1278 | static void | ||
4991 | 1279 | -panel_changed (GtkWidget *settings_widget, | ||
4992 | 1280 | - const char *panel, | ||
4993 | 1281 | - CcBluetoothPanel *self) | ||
4994 | 1282 | +discoverable_changed (BluetoothClient *client, | ||
4995 | 1283 | + GParamSpec *spec, | ||
4996 | 1284 | + CcBluetoothPanel *self) | ||
4997 | 1285 | { | ||
4998 | 1286 | - CcShell *shell; | ||
4999 | 1287 | + cc_bluetooth_panel_update_visibility (self); | ||
5000 | 1288 | +} |
The diff has been truncated for viewing.
LGTM, thanks! gnome-control- center- shared- data didn't change, so this is safe for unity-control- center.