Compare commits
212 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
66a2d561a3 | ||
|
|
4eb075e5a5 | ||
|
|
e8fcfc05a6 | ||
|
|
dc8eb2c22c | ||
|
|
e7e80efcbc | ||
|
|
2f9ec8b0a8 | ||
|
|
7e08d6874f | ||
|
|
064c6a807d | ||
|
|
f923c3ca01 | ||
|
|
65d83189e9 | ||
|
|
05de8cb2ee | ||
|
|
f0890ca1b6 | ||
|
|
7e6022a048 | ||
|
|
bb89fc1d0e | ||
|
|
368ed784eb | ||
|
|
5c025fcff9 | ||
|
|
46d4338335 | ||
|
|
4723b8c1eb | ||
|
|
ccbf4d26fe | ||
|
|
3d5be3b1fd | ||
|
|
8baa16d891 | ||
|
|
150e92aa69 | ||
|
|
0671705610 | ||
|
|
38442303e0 | ||
|
|
478b472a9c | ||
|
|
c4ff476f2b | ||
|
|
850684d62e | ||
|
|
69598b9e08 | ||
|
|
9e4f15353c | ||
|
|
6087c0397b | ||
|
|
588e721472 | ||
|
|
fcf9a970df | ||
|
|
5d89ef3723 | ||
|
|
0c35f298ee | ||
|
|
733478920d | ||
|
|
dce8c31f05 | ||
|
|
1e372ae0af | ||
|
|
914657e405 | ||
|
|
599bb9fe4a | ||
|
|
dad011062b | ||
|
|
0fbe2ada5a | ||
|
|
3ca850b257 | ||
|
|
96e0db8ba0 | ||
|
|
e39de651a2 | ||
|
|
bd74296222 | ||
|
|
e68e93dc64 | ||
|
|
2148e23d97 | ||
|
|
6c34dc5089 | ||
|
|
2690daf819 | ||
|
|
07f850b65a | ||
|
|
cfc5fdb7c6 | ||
|
|
4159a5ca68 | ||
|
|
6911110111 | ||
|
|
a793e49acd | ||
|
|
c23c56a0a1 | ||
|
|
bb4acf75ef | ||
|
|
0f60cad6bd | ||
|
|
fd76bfb71e | ||
|
|
2252ee27b4 | ||
|
|
533b698f60 | ||
|
|
8cd39513be | ||
|
|
ca04a2b550 | ||
|
|
fa10fcfe5e | ||
|
|
ab852ca63c | ||
|
|
3a96f428ca | ||
|
|
c6fe35a310 | ||
|
|
840024b685 | ||
|
|
1e06a0e0dd | ||
|
|
87ef7e25f6 | ||
|
|
06b6614e9b | ||
|
|
01eb0e9ae1 | ||
|
|
cbf345069c | ||
|
|
35ac91e00f | ||
|
|
9ca6a7ab2c | ||
|
|
f0b9dae503 | ||
|
|
1e6e77e07d | ||
|
|
3375e87448 | ||
|
|
98fcce2202 | ||
|
|
2536f946eb | ||
|
|
7f4a7c125f | ||
|
|
dbfc44b1f4 | ||
|
|
91f3a7ec4f | ||
|
|
787e96de9b | ||
|
|
c42f3c3a2a | ||
|
|
44601644b3 | ||
|
|
fbad193899 | ||
|
|
ea635be532 | ||
|
|
8949aeb338 | ||
|
|
f2f2807e84 | ||
|
|
47c586a82e | ||
|
|
43419403b1 | ||
|
|
6b93b355bd | ||
|
|
6cdec6e3a4 | ||
|
|
e8b24c3d41 | ||
|
|
b76e109857 | ||
|
|
95d4e664b5 | ||
|
|
97cec8d167 | ||
|
|
e58a80d804 | ||
|
|
9327bbe759 | ||
|
|
7cb4dc4ff0 | ||
|
|
42f64f197f | ||
|
|
af197cb813 | ||
|
|
4f3eb61395 | ||
|
|
23d70d6952 | ||
|
|
46932dcffe | ||
|
|
fd7691c0b9 | ||
|
|
83d27d1081 | ||
|
|
93e7458569 | ||
|
|
e559ecb1b1 | ||
|
|
be6d2e38dd | ||
|
|
0e8835d18c | ||
|
|
6f887237fd | ||
|
|
666af4ddea | ||
|
|
6388d3715a | ||
|
|
7eda06f9ee | ||
|
|
5711ee0ce1 | ||
|
|
03f08faf81 | ||
|
|
c9448f76c2 | ||
|
|
7c4428eb59 | ||
|
|
eece14f1cd | ||
|
|
99f27e802f | ||
|
|
edbc075eb0 | ||
|
|
261545b6cb | ||
|
|
b2a3da4927 | ||
|
|
e5dbc0dcc1 | ||
|
|
aef272e3fa | ||
|
|
3088c5f673 | ||
|
|
a7287ebecb | ||
|
|
de40b25790 | ||
|
|
2641f68fcc | ||
|
|
9c54390320 | ||
|
|
05dc74f120 | ||
|
|
2dd2d2acab | ||
|
|
4d8bdd5d52 | ||
|
|
f6e6ff30a3 | ||
|
|
fc984e90a1 | ||
|
|
44293e9db2 | ||
|
|
fc1b750f19 | ||
|
|
afb59388c9 | ||
|
|
5137225383 | ||
|
|
bfa06d0978 | ||
|
|
a8db661166 | ||
|
|
64768de705 | ||
|
|
c09c25805b | ||
|
|
44fdf9a492 | ||
|
|
a701ab0b8b | ||
|
|
46e8eafa92 | ||
|
|
8320d17825 | ||
|
|
d548309f34 | ||
|
|
f2402869bb | ||
|
|
1523ab6c6b | ||
|
|
b7302348cf | ||
|
|
32a807b964 | ||
|
|
7bf240ca3f | ||
|
|
7d4c8346ca | ||
|
|
f94c96577b | ||
|
|
f9fd2587ca | ||
|
|
0118598763 | ||
|
|
69f51bdab0 | ||
|
|
88f87de748 | ||
|
|
bfc567955f | ||
|
|
d253fe188c | ||
|
|
8914fae8da | ||
|
|
95de2049c7 | ||
|
|
4a421d0abc | ||
|
|
e26f28d1fd | ||
|
|
de8d28c3eb | ||
|
|
df30f44709 | ||
|
|
450c05471b | ||
|
|
861d762ce5 | ||
|
|
3151598aef | ||
|
|
46673670d9 | ||
|
|
a477684f20 | ||
|
|
48354fde43 | ||
|
|
6affceebee | ||
|
|
aa7ebe5d7c | ||
|
|
df51bed16c | ||
|
|
54341cae07 | ||
|
|
b7c545a1e7 | ||
|
|
92ee00e39b | ||
|
|
42cb548115 | ||
|
|
ddfacc6b81 | ||
|
|
1204b91f52 | ||
|
|
9aff773564 | ||
|
|
1dccede9a7 | ||
|
|
adffd7a2df | ||
|
|
fbadba1a18 | ||
|
|
7b1af9c8ba | ||
|
|
31d6c7704c | ||
|
|
30b6d51c5a | ||
|
|
0be875c0b0 | ||
|
|
f7d0aa7a12 | ||
|
|
f1d5215cdd | ||
|
|
5329a8f942 | ||
|
|
e2c8b7d3a4 | ||
|
|
91b13f4283 | ||
|
|
faa9a7ace4 | ||
|
|
6129c1ce00 | ||
|
|
1b1b0fc5de | ||
|
|
5df1519d7d | ||
|
|
340ee1dc4a | ||
|
|
1abe3c3553 | ||
|
|
b807f242e6 | ||
|
|
cea7c82789 | ||
|
|
a556616081 | ||
|
|
7f77d087f4 | ||
|
|
a89f64dde7 | ||
|
|
b51513e4fa | ||
|
|
d8bad3eda1 | ||
|
|
62bde81c54 | ||
|
|
bbe3ae4a91 | ||
|
|
0bfb1e8906 |
@@ -52,7 +52,7 @@ stages:
|
||||
# stable branch.
|
||||
# Could probably also switch away from rawhide,
|
||||
# to stable fedora branch as well.
|
||||
FDO_DISTRIBUTION_TAG: '2022-10-25.0-main'
|
||||
FDO_DISTRIBUTION_TAG: '2022-03-29.0-main'
|
||||
FDO_DISTRIBUTION_VERSION: rawhide
|
||||
|
||||
#############################################
|
||||
@@ -130,7 +130,6 @@ build.container.fedora@x86_64:
|
||||
alsa-lib-devel
|
||||
nss-devel
|
||||
gcr-devel
|
||||
setxkbmap
|
||||
FDO_DISTRIBUTION_EXEC: |-
|
||||
git clone https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas.git && \
|
||||
cd gsettings-desktop-schemas && \
|
||||
@@ -224,7 +223,6 @@ test:
|
||||
|
||||
script:
|
||||
- *environment_information
|
||||
- *build_procedure
|
||||
- *run_tests
|
||||
|
||||
- |
|
||||
@@ -249,7 +247,7 @@ coverage:
|
||||
BUILD_OPTS: "-Db_coverage=true"
|
||||
coverage: '/^Lines:.\d+.\d+.(\d+\.\d+\%)/'
|
||||
only:
|
||||
- master@GNOME/gnome-control-center
|
||||
- main@GNOME/gnome-control-center
|
||||
|
||||
script:
|
||||
- *environment_information
|
||||
@@ -289,7 +287,7 @@ pages:
|
||||
paths:
|
||||
- public
|
||||
only:
|
||||
- master@GNOME/gnome-control-center
|
||||
- main@GNOME/gnome-control-center
|
||||
|
||||
except:
|
||||
variables:
|
||||
@@ -303,7 +301,7 @@ pages:
|
||||
##
|
||||
flatpak:
|
||||
stage: manual
|
||||
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
|
||||
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:main
|
||||
artifacts:
|
||||
name: package
|
||||
paths:
|
||||
@@ -314,7 +312,9 @@ flatpak:
|
||||
OLD_APPID: "org.gnome.Settings"
|
||||
APPID: "org.gnome.SettingsDevel"
|
||||
BUNDLE: "org.gnome.SettingsDevel.flatpak"
|
||||
MANIFEST_PATH: "build-aux/flatpak/org.gnome.Settings.json"
|
||||
MANIFEST_PATH: "org.gnome.Settings.json"
|
||||
PATCHES: "build-aux/flatpak/*.patch"
|
||||
PROJECT_FILE: "build-aux/flatpak/org.gnome.Settings.json"
|
||||
PROJECT_ID: "org.gnome.Settings"
|
||||
PROJECT_NAME: "gnome-control-center.git"
|
||||
RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo"
|
||||
@@ -322,6 +322,10 @@ flatpak:
|
||||
script:
|
||||
- echo "== Flatpak packaging =="
|
||||
|
||||
# Move needed files to the root folder
|
||||
- cp ${PATCHES} . || true
|
||||
- cp ${PROJECT_FILE} ${MANIFEST_PATH}
|
||||
|
||||
# Make it a develoment manifest
|
||||
- sed -i -n "p; s/$PROJECT_NAME//p" ${MANIFEST_PATH}
|
||||
- >
|
||||
@@ -339,7 +343,7 @@ flatpak:
|
||||
- mv data/icons/hicolor/scalable/apps/$OLD_APPID.svg data/icons/hicolor/scalable/apps/$APPID.svg
|
||||
- mv data/icons/hicolor/symbolic/apps/$OLD_APPID-symbolic.svg data/icons/hicolor/symbolic/apps/$APPID-symbolic.svg
|
||||
|
||||
- flatpak-builder --bundle-sources --disable-rofiles-fuse --repo=devel build ${MANIFEST_PATH}
|
||||
- flatpak-builder --bundle-sources --repo=devel build ${MANIFEST_PATH}
|
||||
- flatpak build-bundle devel ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${APPID}
|
||||
|
||||
cache:
|
||||
@@ -349,7 +353,7 @@ flatpak:
|
||||
except:
|
||||
- tags
|
||||
- gnome-3-.*
|
||||
- master@GNOME/gnome-control-center
|
||||
- main@GNOME/gnome-control-center
|
||||
|
||||
|
||||
# Runs the sanitizers [address, thread, undefined, and memory].
|
||||
|
||||
@@ -4,7 +4,7 @@ Not following the communication guidelines [1] will mean your issue or comment
|
||||
will be removed. Read it carefully before submitting this issue.
|
||||
|
||||
|
||||
[1] https://gitlab.gnome.org/GNOME/gnome-control-center/blob/master/docs/CONTRIBUTING.md#communication-guideline
|
||||
[1] https://gitlab.gnome.org/GNOME/gnome-control-center/blob/main/docs/CONTRIBUTING.md#communication-guideline
|
||||
|
||||
-->
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ Not following the communication guidelines [1] will mean your issue or comment
|
||||
will be removed. Read it carefully before submitting this issue.
|
||||
|
||||
|
||||
[1] https://gitlab.gnome.org/GNOME/gnome-control-center/blob/master/docs/CONTRIBUTING.md#communication-guideline
|
||||
[1] https://gitlab.gnome.org/GNOME/gnome-control-center/blob/main/docs/CONTRIBUTING.md#communication-guideline
|
||||
|
||||
-->
|
||||
|
||||
|
||||
137
NEWS
@@ -1,142 +1,19 @@
|
||||
================
|
||||
Version 42.9
|
||||
Version 43.alpha
|
||||
================
|
||||
|
||||
- Improved accessibility in various panels
|
||||
- New Device Security panel
|
||||
- Updated translations
|
||||
|
||||
Network:
|
||||
- Fix possible race in tests
|
||||
|
||||
================
|
||||
Version 42.4
|
||||
================
|
||||
|
||||
- Updated translations
|
||||
- Added various accessibility labels
|
||||
- Initialize locale early
|
||||
|
||||
About
|
||||
- Don't load version.xml info we don't use
|
||||
|
||||
Applications
|
||||
- Don't recurse into symlinks when clearing app cache
|
||||
|
||||
Color
|
||||
- Fix crash when there's no device rows to show
|
||||
|
||||
Cellular
|
||||
- Improve dbus error messaging
|
||||
- Handle cases when SIM ID is not present
|
||||
- Prevent duplicate entries in the SIM providers list
|
||||
|
||||
Keyboard
|
||||
- Fix activation of input source toggle button
|
||||
- Fix permission_acquired always returning FALSE
|
||||
|
||||
Mouse
|
||||
- Set rows as actiavatable widgets
|
||||
|
||||
Network
|
||||
- Fix crashes when EAP password is missing
|
||||
- Fix wrong signal of SEA password visibility toggle
|
||||
- Prevent crash when disconnecting wifi device
|
||||
- Use mime-types for file chooser filtering TLS files
|
||||
|
||||
Online Accounts
|
||||
- Fix crash when failing to find GOA helper executable
|
||||
|
||||
Power
|
||||
- Prevent terminal from getting spammed with ALS logs
|
||||
|
||||
Printers
|
||||
- Fix loading of UI resources
|
||||
- Show empty-state when removing the last printer
|
||||
|
||||
Region
|
||||
- Fix creating rows for locales without a country
|
||||
- Fix critical when changing language
|
||||
- Fix permission_acquired always returning FALSE
|
||||
|
||||
Search
|
||||
- Fix reordering of list rows
|
||||
|
||||
Users
|
||||
- Show a fallback avatar when failing to load one
|
||||
|
||||
Wifi
|
||||
- Allow accessing settings of known wifi networks
|
||||
|
||||
================
|
||||
Version 42.4
|
||||
================
|
||||
|
||||
- Updated translations
|
||||
|
||||
Background
|
||||
- Restore support for multiple file selection
|
||||
- Allow more image formats
|
||||
Date & Time
|
||||
- Update visual style of the timezone map
|
||||
|
||||
Display
|
||||
- Fix primary monitor selection
|
||||
|
||||
Network
|
||||
- Fix network profiles shown on wrong device
|
||||
- Various crash fixes
|
||||
|
||||
Power
|
||||
- Fix blank-screen settings not applying
|
||||
- Fix "Power Button Behavior" setting not applying
|
||||
|
||||
User Accounts
|
||||
- Disconnect fingerprint reading devices when closing dialog
|
||||
|
||||
Sharing
|
||||
- Don't set remote-desktop password entry if pw_generate fails
|
||||
- Don't assert if we can't find the widget for a profile
|
||||
|
||||
================
|
||||
Version 42.3
|
||||
================
|
||||
|
||||
- Updated translations
|
||||
|
||||
Display
|
||||
- Use virtual clone modes when mirroring
|
||||
|
||||
Network
|
||||
- Prevent crash by disconnecting device.
|
||||
- Fix Wi-Fi network with "&" in name not appearing.
|
||||
- Fix warning when panel closed.
|
||||
|
||||
================
|
||||
Version 42.2
|
||||
================
|
||||
|
||||
- Updated translations
|
||||
|
||||
Applications
|
||||
- Fix Snap permissions support failing to compile
|
||||
- Fix CcInfoRow having the wrong parent
|
||||
- Fix crash crash when switching between two apps
|
||||
|
||||
Background
|
||||
- Make sure the size of the light/dark previews are the same
|
||||
|
||||
Keyboard
|
||||
- Fix crash resetting all keyboard shortcuts
|
||||
|
||||
Network:
|
||||
- Stop freeze when closing wired connection properties with Escape
|
||||
|
||||
Sharing
|
||||
- Fix close button on Verify Encryption dialog
|
||||
- Turn off RDP gsettings key when turning off RDP
|
||||
|
||||
Shell
|
||||
- Initialise locale early
|
||||
- Various visual improvements
|
||||
|
||||
Sound
|
||||
- Update theme correctly so other apps respond to change
|
||||
- Remove dog barking sounds
|
||||
|
||||
================
|
||||
Version 42.1
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[](https://gitlab.gnome.org/GNOME/gnome-control-center/pipelines)
|
||||
[](https://gnome.pages.gitlab.gnome.org/gnome-control-center/)
|
||||
[](https://gitlab.gnome.org/GNOME/gnome-control-center/blob/master/COPYING)
|
||||
[](https://gitlab.gnome.org/GNOME/gnome-control-center/pipelines)
|
||||
[](https://gnome.pages.gitlab.gnome.org/gnome-control-center/)
|
||||
[](https://gitlab.gnome.org/GNOME/gnome-control-center/blob/main/COPYING)
|
||||
|
||||
GNOME Settings
|
||||
====================
|
||||
@@ -60,4 +60,4 @@ Note that GNOME Settings Flatpak will only work if you are running
|
||||
the latest GNOME version in your host system.
|
||||
|
||||
|
||||
[communication-guidelines]: https://gitlab.gnome.org/GNOME/gnome-control-center/blob/master/docs/CONTRIBUTING.md#communication-guidelines
|
||||
[communication-guidelines]: https://gitlab.gnome.org/GNOME/gnome-control-center/blob/main/docs/CONTRIBUTING.md#communication-guidelines
|
||||
|
||||
@@ -209,4 +209,4 @@ available at [http://contributor-covenant.org/version/1/4][version]
|
||||
|
||||
[homepage]: http://contributor-covenant.org
|
||||
[version]: http://contributor-covenant.org/version/1/4/
|
||||
[maintainers]: https://gitlab.gnome.org/GNOME/gnome-control-center/blob/master/docs/MAINTAINERS.md
|
||||
[maintainers]: https://gitlab.gnome.org/GNOME/gnome-control-center/blob/main/docs/MAINTAINERS.md
|
||||
|
||||
@@ -50,7 +50,7 @@ by being explicit. Suggested acceptance phrase:
|
||||
Urgency commits should never happen, but in case they're needed, they are defined by the following
|
||||
criteria:
|
||||
|
||||
* On stable branches (or master right after a stable release)
|
||||
* On stable branches (or `main` right after a stable release)
|
||||
* Symptoms:
|
||||
* Always OR often reproducible; AND
|
||||
* Crash; OR
|
||||
@@ -59,4 +59,4 @@ criteria:
|
||||
* Quickly followed by an emergency release (at most 2 days after the commit)
|
||||
|
||||
|
||||
[doap]: https://gitlab.gnome.org/GNOME/gnome-control-center/blob/master/gnome-control-center.doap
|
||||
[doap]: https://gitlab.gnome.org/GNOME/gnome-control-center/blob/main/gnome-control-center.doap
|
||||
|
||||
15
meson.build
@@ -1,6 +1,6 @@
|
||||
project(
|
||||
'gnome-control-center', 'c',
|
||||
version : '42.9',
|
||||
version : '43.alpha',
|
||||
license : 'GPL2+',
|
||||
meson_version : '>= 0.53.0'
|
||||
)
|
||||
@@ -50,6 +50,17 @@ foreach define: set_defines
|
||||
config_h.set_quoted(define[0], define[1])
|
||||
endforeach
|
||||
|
||||
distributor_logo = get_option('distributor_logo')
|
||||
if (distributor_logo != '')
|
||||
config_h.set_quoted('DISTRIBUTOR_LOGO', distributor_logo,
|
||||
description: 'Define to absolute path of distributor logo')
|
||||
dark_mode_distributor_logo = get_option('dark_mode_distributor_logo')
|
||||
if (dark_mode_distributor_logo != '')
|
||||
config_h.set_quoted('DARK_MODE_DISTRIBUTOR_LOGO', dark_mode_distributor_logo,
|
||||
description: 'Define to absolute path of distributor logo for use in dark mode')
|
||||
endif
|
||||
endif
|
||||
|
||||
# meson does not support octal values, so it must be handled as a
|
||||
# string. See: https://github.com/mesonbuild/meson/issues/2047
|
||||
config_h.set('USER_DIR_MODE', '0700',
|
||||
@@ -113,7 +124,7 @@ accounts_dep = dependency('accountsservice', version: '>= 0.6.39')
|
||||
colord_dep = dependency('colord', version: '>= 0.1.34')
|
||||
gdk_pixbuf_dep = dependency('gdk-pixbuf-2.0', version: '>= 2.23.0')
|
||||
gio_dep = dependency('gio-2.0')
|
||||
glib_dep = dependency('glib-2.0', version: '>= 2.68.0')
|
||||
glib_dep = dependency('glib-2.0', version: '>= 2.70.0')
|
||||
gnome_desktop_dep = dependency('gnome-desktop-4')
|
||||
gnome_bg_dep = dependency('gnome-bg-4')
|
||||
gnome_rr_dep = dependency('gnome-rr-4')
|
||||
|
||||
@@ -7,3 +7,5 @@ option('tracing', type: 'boolean', value: false, description: 'add extra debuggi
|
||||
option('wayland', type: 'boolean', value: true, description: 'build with Wayland support')
|
||||
option('profile', type: 'combo', choices: ['default','development'], value: 'default')
|
||||
option('malcontent', type: 'boolean', value: false, description: 'build with malcontent support')
|
||||
option('distributor_logo', type: 'string', description: 'absolute path to distributor logo for the About panel')
|
||||
option('dark_mode_distributor_logo', type: 'string', description: 'absolute path to distributor logo dark mode variant')
|
||||
|
||||
@@ -544,7 +544,7 @@ set_shortcuts_allowed (CcApplicationsPanel *self,
|
||||
|
||||
/* "GRANTED" and "DENIED" here match the values set by the "inhibit shortcut
|
||||
* dialog" is GNOME Shell:
|
||||
* https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/master/js/ui/inhibitShortcutsDialog.js
|
||||
* https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/inhibitShortcutsDialog.js
|
||||
*/
|
||||
perms[0] = granted ? "GRANTED" : "DENIED";
|
||||
perms[1] = NULL;
|
||||
|
||||
@@ -11,6 +11,6 @@ NoDisplay=true
|
||||
StartupNotify=true
|
||||
Categories=GNOME;GTK;Settings;DesktopSettings;X-GNOME-Settings-Panel;X-GNOME-AccountSettings;
|
||||
OnlyShowIn=GNOME;Unity;
|
||||
# Translators: Search terms to find the Privacy panel. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
|
||||
# Translators: Search terms to find the Applications panel. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
|
||||
Keywords=application;flatpak;permission;setting;
|
||||
X-GNOME-ControlCenter-HasSidebar=true
|
||||
|
||||
@@ -53,7 +53,7 @@ file_remove_thread_func (GTask *task,
|
||||
GFile *file = source_object;
|
||||
g_autofree gchar *path = g_file_get_path (file);
|
||||
|
||||
nftw (path, ftw_remove_cb, 20, FTW_PHYS | FTW_DEPTH);
|
||||
nftw (path, ftw_remove_cb, 20, FTW_DEPTH);
|
||||
|
||||
if (g_task_set_return_on_cancel (task, FALSE))
|
||||
g_task_return_boolean (task, TRUE);
|
||||
|
||||
@@ -41,6 +41,17 @@ struct _BgRecentSource
|
||||
|
||||
G_DEFINE_TYPE (BgRecentSource, bg_recent_source, BG_TYPE_SOURCE)
|
||||
|
||||
|
||||
static const gchar * const content_types[] = {
|
||||
"image/png",
|
||||
"image/jp2",
|
||||
"image/jpeg",
|
||||
"image/bmp",
|
||||
"image/svg+xml",
|
||||
"image/x-portable-anymap",
|
||||
NULL
|
||||
};
|
||||
|
||||
static int
|
||||
sort_func (gconstpointer a,
|
||||
gconstpointer b,
|
||||
@@ -78,7 +89,7 @@ add_file_from_info (BgRecentSource *self,
|
||||
content_type = g_file_info_get_content_type (info);
|
||||
mtime = g_file_info_get_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_MODIFIED);
|
||||
|
||||
if (!content_type || !g_content_type_is_a (content_type, "image/*"))
|
||||
if (!content_type || !g_strv_contains (content_types, content_type))
|
||||
return;
|
||||
|
||||
uri = g_file_get_uri (file);
|
||||
|
||||
@@ -35,6 +35,27 @@ struct _BgWallpapersSource
|
||||
|
||||
G_DEFINE_TYPE (BgWallpapersSource, bg_wallpapers_source, BG_TYPE_SOURCE)
|
||||
|
||||
static int
|
||||
sort_func (gconstpointer a,
|
||||
gconstpointer b,
|
||||
gpointer user_data)
|
||||
{
|
||||
CcBackgroundItem *item_a;
|
||||
CcBackgroundItem *item_b;
|
||||
|
||||
item_a = (CcBackgroundItem *) a;
|
||||
item_b = (CcBackgroundItem *) b;
|
||||
|
||||
if (strcmp (cc_background_item_get_name (item_a), "Default Background") == 0)
|
||||
return -1;
|
||||
if (strcmp (cc_background_item_get_name (item_b), "Default Background") == 0)
|
||||
return 1;
|
||||
|
||||
|
||||
return strcmp (cc_background_item_get_name (item_a),
|
||||
cc_background_item_get_name (item_b));
|
||||
}
|
||||
|
||||
static void
|
||||
load_wallpapers (gchar *key,
|
||||
CcBackgroundItem *item,
|
||||
@@ -48,7 +69,7 @@ load_wallpapers (gchar *key,
|
||||
if (deleted)
|
||||
return;
|
||||
|
||||
g_list_store_append (store, item);
|
||||
g_list_store_insert_sorted (store, item, sort_func, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
@@ -157,10 +157,10 @@ create_widget_func (gpointer model_item,
|
||||
gtk_overlay_add_overlay (GTK_OVERLAY (overlay), check);
|
||||
if (button)
|
||||
gtk_overlay_add_overlay (GTK_OVERLAY (overlay), button);
|
||||
gtk_accessible_update_property (GTK_ACCESSIBLE (overlay),
|
||||
GTK_ACCESSIBLE_PROPERTY_LABEL,
|
||||
cc_background_item_get_name (item),
|
||||
-1);
|
||||
gtk_accessible_update_property (GTK_ACCESSIBLE (overlay),
|
||||
GTK_ACCESSIBLE_PROPERTY_LABEL,
|
||||
cc_background_item_get_name (item),
|
||||
-1);
|
||||
|
||||
|
||||
child = gtk_flow_box_child_new ();
|
||||
|
||||
@@ -63,9 +63,9 @@ struct _CcBackgroundPanel
|
||||
CcBackgroundItem *current_background;
|
||||
|
||||
CcBackgroundChooser *background_chooser;
|
||||
CcBackgroundPreview *light_preview;
|
||||
CcBackgroundPreview *default_preview;
|
||||
CcBackgroundPreview *dark_preview;
|
||||
GtkToggleButton *light_toggle;
|
||||
GtkToggleButton *default_toggle;
|
||||
GtkToggleButton *dark_toggle;
|
||||
};
|
||||
|
||||
@@ -84,7 +84,7 @@ load_custom_css (CcBackgroundPanel *self)
|
||||
}
|
||||
|
||||
static void
|
||||
reload_light_dark_toggles (CcBackgroundPanel *self)
|
||||
reload_color_scheme_toggles (CcBackgroundPanel *self)
|
||||
{
|
||||
GDesktopColorScheme scheme;
|
||||
|
||||
@@ -92,7 +92,7 @@ reload_light_dark_toggles (CcBackgroundPanel *self)
|
||||
|
||||
if (scheme == G_DESKTOP_COLOR_SCHEME_DEFAULT)
|
||||
{
|
||||
gtk_toggle_button_set_active (self->light_toggle, TRUE);
|
||||
gtk_toggle_button_set_active (self->default_toggle, TRUE);
|
||||
}
|
||||
else if (scheme == G_DESKTOP_COLOR_SCHEME_PREFER_DARK)
|
||||
{
|
||||
@@ -100,7 +100,7 @@ reload_light_dark_toggles (CcBackgroundPanel *self)
|
||||
}
|
||||
else
|
||||
{
|
||||
gtk_toggle_button_set_active (self->light_toggle, FALSE);
|
||||
gtk_toggle_button_set_active (self->default_toggle, FALSE);
|
||||
gtk_toggle_button_set_active (self->dark_toggle, FALSE);
|
||||
}
|
||||
}
|
||||
@@ -149,9 +149,9 @@ set_color_scheme (CcBackgroundPanel *self,
|
||||
/* Color schemes */
|
||||
|
||||
static void
|
||||
on_light_dark_toggle_active_cb (CcBackgroundPanel *self)
|
||||
on_color_scheme_toggle_active_cb (CcBackgroundPanel *self)
|
||||
{
|
||||
if (gtk_toggle_button_get_active (self->light_toggle))
|
||||
if (gtk_toggle_button_get_active (self->default_toggle))
|
||||
set_color_scheme (self, G_DESKTOP_COLOR_SCHEME_DEFAULT);
|
||||
else if (gtk_toggle_button_get_active (self->dark_toggle))
|
||||
set_color_scheme (self, G_DESKTOP_COLOR_SCHEME_PREFER_DARK);
|
||||
@@ -182,7 +182,7 @@ update_preview (CcBackgroundPanel *panel)
|
||||
CcBackgroundItem *current_background;
|
||||
|
||||
current_background = panel->current_background;
|
||||
cc_background_preview_set_item (panel->light_preview, current_background);
|
||||
cc_background_preview_set_item (panel->default_preview, current_background);
|
||||
cc_background_preview_set_item (panel->dark_preview, current_background);
|
||||
}
|
||||
|
||||
@@ -389,12 +389,12 @@ cc_background_panel_class_init (CcBackgroundPanelClass *klass)
|
||||
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/background/cc-background-panel.ui");
|
||||
|
||||
gtk_widget_class_bind_template_child (widget_class, CcBackgroundPanel, background_chooser);
|
||||
gtk_widget_class_bind_template_child (widget_class, CcBackgroundPanel, light_preview);
|
||||
gtk_widget_class_bind_template_child (widget_class, CcBackgroundPanel, default_preview);
|
||||
gtk_widget_class_bind_template_child (widget_class, CcBackgroundPanel, dark_preview);
|
||||
gtk_widget_class_bind_template_child (widget_class, CcBackgroundPanel, light_toggle);
|
||||
gtk_widget_class_bind_template_child (widget_class, CcBackgroundPanel, default_toggle);
|
||||
gtk_widget_class_bind_template_child (widget_class, CcBackgroundPanel, dark_toggle);
|
||||
|
||||
gtk_widget_class_bind_template_callback (widget_class, on_light_dark_toggle_active_cb);
|
||||
gtk_widget_class_bind_template_callback (widget_class, on_color_scheme_toggle_active_cb);
|
||||
gtk_widget_class_bind_template_callback (widget_class, on_chooser_background_chosen_cb);
|
||||
gtk_widget_class_bind_template_callback (widget_class, on_add_picture_button_clicked_cb);
|
||||
}
|
||||
@@ -433,11 +433,11 @@ cc_background_panel_init (CcBackgroundPanel *panel)
|
||||
g_signal_connect_object (panel->settings, "changed", G_CALLBACK (on_settings_changed), panel, G_CONNECT_SWAPPED);
|
||||
|
||||
/* Interface settings */
|
||||
reload_light_dark_toggles (panel);
|
||||
reload_color_scheme_toggles (panel);
|
||||
|
||||
g_signal_connect_object (panel->interface_settings,
|
||||
"changed::" INTERFACE_COLOR_SCHEME_KEY,
|
||||
G_CALLBACK (reload_light_dark_toggles),
|
||||
G_CALLBACK (reload_color_scheme_toggles),
|
||||
panel,
|
||||
G_CONNECT_SWAPPED);
|
||||
|
||||
|
||||
@@ -27,13 +27,13 @@
|
||||
<property name="margin-bottom">12</property>
|
||||
<property name="hexpand">True</property>
|
||||
<child>
|
||||
<object class="GtkToggleButton" id="light_toggle">
|
||||
<object class="GtkToggleButton" id="default_toggle">
|
||||
<accessibility>
|
||||
<relation name="labelled-by">light_label</relation>
|
||||
<relation name="labelled-by">default_label</relation>
|
||||
</accessibility>
|
||||
<signal name="notify::active" handler="on_light_dark_toggle_active_cb" swapped="true"/>
|
||||
<signal name="notify::active" handler="on_color_scheme_toggle_active_cb" swapped="true"/>
|
||||
<child>
|
||||
<object class="CcBackgroundPreview" id="light_preview"/>
|
||||
<object class="CcBackgroundPreview" id="default_preview"/>
|
||||
</child>
|
||||
<style>
|
||||
<class name="background-preview-button"/>
|
||||
@@ -45,8 +45,8 @@
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="light_label">
|
||||
<property name="label" translatable="yes">Light</property>
|
||||
<object class="GtkLabel" id="default_label">
|
||||
<property name="label" translatable="yes">Default</property>
|
||||
<layout>
|
||||
<property name="column">0</property>
|
||||
<property name="row">1</property>
|
||||
@@ -55,11 +55,11 @@
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToggleButton" id="dark_toggle">
|
||||
<property name="group">light_toggle</property>
|
||||
<property name="group">default_toggle</property>
|
||||
<accessibility>
|
||||
<relation name="labelled-by">dark_label</relation>
|
||||
</accessibility>
|
||||
<signal name="notify::active" handler="on_light_dark_toggle_active_cb" swapped="true"/>
|
||||
<signal name="notify::active" handler="on_color_scheme_toggle_active_cb" swapped="true"/>
|
||||
<child>
|
||||
<object class="CcBackgroundPreview" id="dark_preview">
|
||||
<property name="is-dark">True</property>
|
||||
|
||||
@@ -11,4 +11,4 @@ StartupNotify=true
|
||||
Categories=GNOME;GTK;Settings;DesktopSettings;X-GNOME-Settings-Panel;X-GNOME-PersonalizationSettings;
|
||||
OnlyShowIn=GNOME;
|
||||
# Translators: Search terms to find the Appearance panel. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
|
||||
Keywords=Background;Wallpaper;Screen;Desktop;Style;Light;Dark;
|
||||
Keywords=Background;Wallpaper;Screen;Desktop;Style;Light;Dark;Appearance;
|
||||
|
||||
@@ -12,7 +12,6 @@ background-preview .window {
|
||||
|
||||
background-preview .window .header-bar {
|
||||
min-height: 15px;
|
||||
box-shadow: inset 0 -1px @borders;
|
||||
}
|
||||
|
||||
background-preview .window.light {
|
||||
@@ -20,6 +19,10 @@ background-preview .window.light {
|
||||
color: alpha(black, .8);
|
||||
}
|
||||
|
||||
background-preview .window.light .header-bar {
|
||||
box-shadow: inset 0 -1px alpha(black, .07);
|
||||
}
|
||||
|
||||
background-preview .window.front.light .header-bar {
|
||||
background-color: #ebebeb;
|
||||
}
|
||||
@@ -29,6 +32,10 @@ background-preview .window.dark {
|
||||
color: white;
|
||||
}
|
||||
|
||||
background-preview .window.dark .header-bar {
|
||||
box-shadow: inset 0 -1px alpha(black, .36);
|
||||
}
|
||||
|
||||
background-preview .window.front.dark .header-bar {
|
||||
background-color: #303030;
|
||||
}
|
||||
|
||||
@@ -117,8 +117,8 @@ class GccDBusTestCase(DBusTestCase):
|
||||
adapter.UpdateProperties('org.bluez.Adapter1',
|
||||
{'Powered': dbus.Boolean(self.hci0_powered, variant_level=1)})
|
||||
self.devices = []
|
||||
self.add_device('hci0', '22:33:44:55:66:77', "Bastien's mouse", True, 0x580, 'input-mouse')
|
||||
self.add_device('hci0', '22:33:44:55:66:78', 'Bloutouf keyboard', True, 0x540, 'input-keyboard')
|
||||
self.add_device('hci0', '22:33:44:55:66:77', "Bastienʼs mouse", True, 0x580, 'input-mouse')
|
||||
self.add_device('hci0', '22:33:44:55:66:78', 'Bloutouf keyboard & keys', True, 0x540, 'input-keyboard')
|
||||
self.add_device('hci0', '60:8B:0E:55:66:79', 'iPhoone 19S', True, 0x20C, 'phone')
|
||||
# Uncategorised audio device
|
||||
self.add_device('hci0', '22:33:44:55:66:79', 'MEGA Speakers', True, 0x200400, 'audio-card')
|
||||
|
||||
@@ -15,5 +15,5 @@ X-GNOME-Bugzilla-Bugzilla=GNOME
|
||||
X-GNOME-Bugzilla-Product=gnome-control-center
|
||||
X-GNOME-Bugzilla-Component=privacy
|
||||
X-GNOME-Bugzilla-Version=@VERSION@
|
||||
# Translators: Search terms to find the Privacy panel. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
|
||||
Keywords=screen;lock;diagnostics;crash;private;recent;temporary;tmp;index;name;network;identity;
|
||||
# Translators: Search terms to find the Camera panel. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
|
||||
Keywords=camera;photos;video;webcam;lock;private;privacy;
|
||||
|
||||
@@ -603,96 +603,6 @@ cc_color_calibrate_cancel (CcColorCalibrate *calibrate)
|
||||
g_main_loop_quit (calibrate->loop);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
cc_color_calibrate_move_and_resize_window (GtkWindow *window,
|
||||
CdDevice *device,
|
||||
GError **error)
|
||||
{
|
||||
g_autoptr(GListModel) monitors = NULL;
|
||||
g_autoptr(GdkMonitor) monitor = NULL;
|
||||
const gchar *xrandr_name;
|
||||
gboolean ret = TRUE;
|
||||
GdkRectangle rect;
|
||||
GdkDisplay *display;
|
||||
gint i;
|
||||
gint monitor_num = -1;
|
||||
gint num_monitors;
|
||||
|
||||
/* find the monitor num of the device output */
|
||||
display = gdk_display_get_default ();
|
||||
monitors = gdk_display_get_monitors (display);
|
||||
num_monitors = g_list_model_get_n_items (monitors);
|
||||
xrandr_name = cd_device_get_metadata_item (device, CD_DEVICE_METADATA_XRANDR_NAME);
|
||||
for (i = 0; i < num_monitors; i++)
|
||||
{
|
||||
g_autoptr(GdkMonitor) m = NULL;
|
||||
const gchar *plug_name;
|
||||
|
||||
m = g_list_model_get_item (monitors, i);
|
||||
plug_name = gdk_monitor_get_model (m);
|
||||
|
||||
if (g_strcmp0 (plug_name, xrandr_name) == 0)
|
||||
monitor_num = i;
|
||||
}
|
||||
if (monitor_num == -1)
|
||||
{
|
||||
ret = FALSE;
|
||||
g_set_error (error,
|
||||
CD_SESSION_ERROR,
|
||||
CD_SESSION_ERROR_INTERNAL,
|
||||
"failed to find output %s",
|
||||
xrandr_name);
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* move the window, and set it to the right size */
|
||||
monitor = g_list_model_get_item (monitors, monitor_num);
|
||||
gdk_monitor_get_geometry (monitor, &rect);
|
||||
g_debug ("Setting window to %ix%i with size %ix%i",
|
||||
rect.x, rect.y, rect.width, rect.height);
|
||||
out:
|
||||
return ret;
|
||||
}
|
||||
#if 0
|
||||
static void
|
||||
cc_color_calibrate_window_realize_cb (CcColorCalibrate *self)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
|
||||
widget = GTK_WIDGET (gtk_builder_get_object (self->builder,
|
||||
"dialog_calibrate"));
|
||||
gtk_window_fullscreen (GTK_WINDOW (widget));
|
||||
gtk_window_maximize (GTK_WINDOW (widget));
|
||||
}
|
||||
|
||||
static gboolean
|
||||
cc_color_calibrate_window_state_cb (CcColorCalibrate *calibrate,
|
||||
GdkEvent *event)
|
||||
{
|
||||
gboolean ret;
|
||||
g_autoptr(GError) error = NULL;
|
||||
GdkEventWindowState *event_state = (GdkEventWindowState *) event;
|
||||
GtkWindow *window;
|
||||
|
||||
window = GTK_WINDOW (gtk_builder_get_object (calibrate->builder,
|
||||
"dialog_calibrate"));
|
||||
|
||||
/* check event */
|
||||
if (event->type != GDK_WINDOW_STATE)
|
||||
return TRUE;
|
||||
if (event_state->changed_mask != GDK_WINDOW_STATE_FULLSCREEN)
|
||||
return TRUE;
|
||||
|
||||
/* resize to the correct screen */
|
||||
ret = cc_color_calibrate_move_and_resize_window (window,
|
||||
calibrate->device,
|
||||
&error);
|
||||
if (!ret)
|
||||
g_warning ("Failed to resize window: %s", error->message);
|
||||
return TRUE;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
cc_color_calibrate_button_done_cb (CcColorCalibrate *calibrate)
|
||||
{
|
||||
@@ -989,14 +899,6 @@ cc_color_calibrate_start (CcColorCalibrate *calibrate,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
cc_color_calibrate_delete_event_cb (CcColorCalibrate *calibrate)
|
||||
{
|
||||
/* do not destroy the window */
|
||||
cc_color_calibrate_cancel (calibrate);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
cc_color_calibrate_finalize (GObject *object)
|
||||
{
|
||||
@@ -1079,19 +981,6 @@ cc_color_calibrate_init (CcColorCalibrate *calibrate)
|
||||
/* setup the specialist calibration window */
|
||||
window = GTK_WINDOW (gtk_builder_get_object (calibrate->builder,
|
||||
"dialog_calibrate"));
|
||||
/*
|
||||
g_signal_connect_object (window, "draw",
|
||||
G_CALLBACK (cc_color_calibrate_alpha_window_draw), calibrate, G_CONNECT_SWAPPED);
|
||||
g_signal_connect_object (window, "realize",
|
||||
G_CALLBACK (cc_color_calibrate_window_realize_cb), calibrate, G_CONNECT_SWAPPED);
|
||||
g_signal_connect_object (window, "window-state-event",
|
||||
G_CALLBACK (cc_color_calibrate_window_state_cb), calibrate, G_CONNECT_SWAPPED);
|
||||
g_signal_connect_object (window, "delete-event",
|
||||
G_CALLBACK (cc_color_calibrate_delete_event_cb), calibrate, G_CONNECT_SWAPPED);
|
||||
cc_color_calibrate_alpha_screen_changed_cb (calibrate);
|
||||
g_signal_connect_object (window, "screen-changed",
|
||||
G_CALLBACK (cc_color_calibrate_alpha_screen_changed_cb), calibrate, G_CONNECT_SWAPPED);
|
||||
*/
|
||||
calibrate->window = window;
|
||||
}
|
||||
|
||||
|
||||
@@ -1642,8 +1642,7 @@ gcm_prefs_update_device_list_extra_entry (CcColorPanel *prefs)
|
||||
gtk_widget_set_visible (prefs->box_devices, first_row != NULL);
|
||||
|
||||
/* if we have only one device expand it by default */
|
||||
if (first_row != NULL &&
|
||||
gtk_list_box_get_row_at_index (prefs->list_box, 1) == NULL)
|
||||
if (gtk_list_box_get_row_at_index (prefs->list_box, 1) == NULL)
|
||||
cc_color_device_set_expanded (CC_COLOR_DEVICE (first_row), TRUE);
|
||||
}
|
||||
|
||||
|
||||
@@ -61,6 +61,36 @@ enum {
|
||||
|
||||
static GParamSpec *properties[N_PROPS];
|
||||
|
||||
static void
|
||||
cc_list_row_activated_cb (CcListRow *self,
|
||||
GtkListBoxRow *row)
|
||||
{
|
||||
g_assert (CC_IS_LIST_ROW (self));
|
||||
|
||||
if (!self->show_switch || row != GTK_LIST_BOX_ROW (self))
|
||||
return;
|
||||
|
||||
cc_list_row_activate (self);
|
||||
}
|
||||
|
||||
static void
|
||||
cc_list_row_parent_changed_cb (CcListRow *self)
|
||||
{
|
||||
GtkWidget *parent;
|
||||
|
||||
g_assert (CC_IS_LIST_ROW (self));
|
||||
|
||||
parent = gtk_widget_get_parent (GTK_WIDGET (self));
|
||||
|
||||
if (!parent)
|
||||
return;
|
||||
|
||||
g_return_if_fail (GTK_IS_LIST_BOX (parent));
|
||||
g_signal_connect_object (parent, "row-activated",
|
||||
G_CALLBACK (cc_list_row_activated_cb),
|
||||
self, G_CONNECT_SWAPPED);
|
||||
}
|
||||
|
||||
static void
|
||||
cc_list_row_switch_active_cb (CcListRow *self)
|
||||
{
|
||||
@@ -198,6 +228,9 @@ cc_list_row_init (CcListRow *self)
|
||||
g_resources_register (cc_common_get_resource ());
|
||||
|
||||
gtk_widget_init_template (GTK_WIDGET (self));
|
||||
g_signal_connect_object (self, "notify::parent",
|
||||
G_CALLBACK (cc_list_row_parent_changed_cb),
|
||||
self, G_CONNECT_SWAPPED);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -239,6 +272,18 @@ cc_list_row_get_active (CcListRow *self)
|
||||
return self->switch_active;
|
||||
}
|
||||
|
||||
void
|
||||
cc_list_row_activate (CcListRow *self)
|
||||
{
|
||||
g_return_if_fail (CC_IS_LIST_ROW (self));
|
||||
g_return_if_fail (self->show_switch);
|
||||
|
||||
self->switch_active = !self->switch_active;
|
||||
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_ACTIVE]);
|
||||
|
||||
gtk_widget_activate (GTK_WIDGET (self->enable_switch));
|
||||
}
|
||||
|
||||
void
|
||||
cc_list_row_set_secondary_label (CcListRow *self,
|
||||
const gchar *label)
|
||||
|
||||
@@ -37,6 +37,7 @@ void cc_list_row_set_show_arrow (CcListRow *self,
|
||||
void cc_list_row_set_show_switch (CcListRow *self,
|
||||
gboolean show_switch);
|
||||
gboolean cc_list_row_get_active (CcListRow *self);
|
||||
void cc_list_row_activate (CcListRow *self);
|
||||
void cc_list_row_set_secondary_label (CcListRow *self,
|
||||
const gchar *label);
|
||||
void cc_list_row_set_secondary_markup (CcListRow *self,
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
<child>
|
||||
<object class="GtkLabel" id="title">
|
||||
<property name="halign">start</property>
|
||||
<property name="wrap">True</property>
|
||||
<!-- Actual string set in code -->
|
||||
<property name="label"></property>
|
||||
<attributes>
|
||||
@@ -37,6 +38,7 @@
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="halign">start</property>
|
||||
<property name="wrap">True</property>
|
||||
<property name="label" translatable="yes">Some settings must be unlocked before they can be changed.</property>
|
||||
</object>
|
||||
</child>
|
||||
@@ -55,6 +57,7 @@
|
||||
<object class="GtkLockButton" id="lock_button">
|
||||
<property name="receives-default">True</property>
|
||||
<property name="label" translatable="yes">Unlock…</property>
|
||||
<property name="valign">GTK_ALIGN_CENTER</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
||||
@@ -48,11 +48,8 @@ struct _CcTimezoneMap
|
||||
GdkTexture *orig_background_dim;
|
||||
|
||||
GdkTexture *background;
|
||||
GdkTexture *color_map;
|
||||
GdkTexture *pin;
|
||||
|
||||
gdouble selected_offset;
|
||||
|
||||
TzDB *tzdb;
|
||||
TzLocation *location;
|
||||
|
||||
@@ -85,7 +82,6 @@ cc_timezone_map_dispose (GObject *object)
|
||||
{
|
||||
CcTimezoneMap *self = CC_TIMEZONE_MAP (object);
|
||||
|
||||
g_clear_object (&self->color_map);
|
||||
g_clear_object (&self->orig_background);
|
||||
g_clear_object (&self->orig_background_dim);
|
||||
g_clear_object (&self->background);
|
||||
@@ -286,12 +282,8 @@ cc_timezone_map_snapshot (GtkWidget *widget,
|
||||
GtkSnapshot *snapshot)
|
||||
{
|
||||
CcTimezoneMap *map = CC_TIMEZONE_MAP (widget);
|
||||
g_autoptr(GdkTexture) orig_highlight = NULL;
|
||||
g_autofree gchar *file = NULL;
|
||||
g_autoptr(GError) err = NULL;
|
||||
gdouble pointx, pointy;
|
||||
gint width, height;
|
||||
char buf[16];
|
||||
|
||||
width = gtk_widget_get_width (widget);
|
||||
height = gtk_widget_get_height (widget);
|
||||
@@ -301,35 +293,6 @@ cc_timezone_map_snapshot (GtkWidget *widget,
|
||||
map->background,
|
||||
&GRAPHENE_RECT_INIT (0, 0, width, height));
|
||||
|
||||
/* paint highlight */
|
||||
if (gtk_widget_is_sensitive (widget))
|
||||
{
|
||||
file = g_strdup_printf (DATETIME_RESOURCE_PATH "/timezone_%s.png",
|
||||
g_ascii_formatd (buf, sizeof (buf),
|
||||
"%g", map->selected_offset));
|
||||
}
|
||||
else
|
||||
{
|
||||
file = g_strdup_printf (DATETIME_RESOURCE_PATH "/timezone_%s_dim.png",
|
||||
g_ascii_formatd (buf, sizeof (buf),
|
||||
"%g", map->selected_offset));
|
||||
|
||||
}
|
||||
|
||||
orig_highlight = texture_from_resource (file, &err);
|
||||
|
||||
if (!orig_highlight)
|
||||
{
|
||||
g_warning ("Could not load highlight: %s",
|
||||
(err) ? err->message : "Unknown Error");
|
||||
}
|
||||
else
|
||||
{
|
||||
gtk_snapshot_append_texture (snapshot,
|
||||
orig_highlight,
|
||||
&GRAPHENE_RECT_INIT (0, 0, width, height));
|
||||
}
|
||||
|
||||
if (map->location)
|
||||
{
|
||||
pointx = convert_longitude_to_x (map->location->longitude, width);
|
||||
@@ -426,8 +389,6 @@ set_location (CcTimezoneMap *map,
|
||||
|
||||
info = tz_info_from_location (map->location);
|
||||
|
||||
map->selected_offset = tz_location_get_base_utc_offset (map->location)
|
||||
/ (60.0*60.0);
|
||||
gtk_widget_queue_draw (GTK_WIDGET (map));
|
||||
|
||||
g_signal_emit (map, signals[LOCATION_CHANGED], 0, map->location);
|
||||
@@ -499,14 +460,6 @@ cc_timezone_map_init (CcTimezoneMap *map)
|
||||
g_clear_error (&err);
|
||||
}
|
||||
|
||||
map->color_map = texture_from_resource (DATETIME_RESOURCE_PATH "/cc.png", &err);
|
||||
if (!map->color_map)
|
||||
{
|
||||
g_warning ("Could not load background image: %s",
|
||||
(err) ? err->message : "Unknown error");
|
||||
g_clear_error (&err);
|
||||
}
|
||||
|
||||
map->pin = texture_from_resource (DATETIME_RESOURCE_PATH "/pin.png", &err);
|
||||
if (!map->pin)
|
||||
{
|
||||
|
||||
|
Before Width: | Height: | Size: 208 KiB After Width: | Height: | Size: 83 KiB |
|
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 666 B After Width: | Height: | Size: 447 B |
|
Before Width: | Height: | Size: 7.8 KiB |
|
Before Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 740 B |
|
Before Width: | Height: | Size: 995 B |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 9.6 KiB |
|
Before Width: | Height: | Size: 437 B |
|
Before Width: | Height: | Size: 859 B |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 437 B |
|
Before Width: | Height: | Size: 859 B |
|
Before Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 421 B |
|
Before Width: | Height: | Size: 844 B |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 446 B |
|
Before Width: | Height: | Size: 868 B |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 409 B |
|
Before Width: | Height: | Size: 846 B |
|
Before Width: | Height: | Size: 7.0 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 621 B |
|
Before Width: | Height: | Size: 876 B |
|
Before Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 9.9 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 9.6 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 14 KiB |