Compare commits

..

212 Commits

Author SHA1 Message Date
Georges Basile Stavracas Neto
66a2d561a3 43.alpha 2022-07-09 15:13:14 -03:00
Carlos Garnacho
4eb075e5a5 display: Set a smaller width to display arrangement widget
This default size happens to expand the panel content horizontally,
this is seen as small jumps changing between joined and cloned views.
With this slightly smaller size, no further size jumps happen.
2022-07-08 13:41:30 -03:00
Carlos Garnacho
e8fcfc05a6 display: Make "Mirror" option show a single configuration for all displays
Since all displays are constrained to the same options, promote one so it's
shown in the main panel, the rest does work itself out.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1849
2022-07-08 13:41:30 -03:00
Carlos Garnacho
dc8eb2c22c display: Set "Multiple Displays" option on top
And make the display arrangements widget a row of the displays
preferences group, as per the latest mockups.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1851
2022-07-08 13:41:30 -03:00
Carlos Garnacho
e7e80efcbc display: Change appearance and size of monitor labels
Make these rounded everywhere, and have a lighter background and be
centered as per the latest mockups.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1850
2022-07-08 13:28:44 -03:00
Carlos Garnacho
2f9ec8b0a8 display: Set CSS class on the display arrangement widget
Instead of doing it via push/pop on the style context at draw time.
This way we will be able to specify and propagate some font style
to the monitor label, since style fonts are per-widget.
2022-07-08 13:28:44 -03:00
Pauli Virtanen
7e08d6874f subprojects: revert accidental libgvc downgrade
Re-do the libgvc version upgrade from 8c84b9f0d3 ("subprojects: Update
libgvc"), which was accidentally reverted in 95de2049c7 ("shell:
Initialise locale early") without comment.
2022-07-07 14:18:17 +00:00
Jakub Steiner
064c6a807d timezone: Use blank map 2022-07-07 11:37:39 +00:00
Carlos Garnacho
f923c3ca01 datetime: Drop timezone highlighting
In most situations it is sufficient with the hint bubble being
displayed, or city name search, rely on these.
2022-07-07 11:37:39 +00:00
Carlos Garnacho
65d83189e9 datetime: Drop colormap
This image file is nowadays unused, except for loading/destroying it.
We can simply drop this.
2022-07-07 11:37:39 +00:00
Hugo Carvalho
05de8cb2ee Update Portuguese translation 2022-07-07 10:51:19 +00:00
Hendrik Müller
f0890ca1b6 wifi: Allow accessing settings of known wifi networks
Currently it is only possible to access the settings for the currently
connected wifi network.
Being able to configure a wifi network, even though it is not connected,
would be useful for example to share the password for a network that is
not in range.

To achieve this, a new property was added to CcWifiConnectionRow.
The new property "known_connection" signals whether this connection is
known and thus whether the options button for configuring it should be
displayed.

The property "known_connections" will be set to TRUE in two cases:
- when the list of connections is shown in the "Known Networks" dialog
- when the connection is known, but not the active connection

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1906
2022-07-06 19:34:56 +00:00
Sabri Ünal
7e6022a048 Update Turkish translation 2022-07-06 16:10:34 +00:00
Nathan Follens
bb89fc1d0e Update Dutch translation
(cherry picked from commit ed5693624b)
2022-07-04 08:40:15 +00:00
Мирослав Николић
368ed784eb Update Serbian translation
(cherry picked from commit cbcb717f68)
2022-07-03 02:02:55 +00:00
Aurimas Černius
5c025fcff9 Updated Lithuanian translation 2022-07-02 22:58:07 +03:00
Aleksandr Melman
46d4338335 Update Russian translation 2022-07-02 18:45:47 +00:00
Quentin PAGÈS
4723b8c1eb Update Occitan translation 2022-07-02 18:26:06 +00:00
Quentin PAGÈS
ccbf4d26fe Update Occitan translation 2022-07-02 17:48:23 +00:00
Andy Holmes
3d5be3b1fd notifications: fix potential null dereference in app_info_get_id()
Although apparently unlikely, `strlen()` is called on the return value
of `desktop_id` instead of `ret`, which may result in a null
dereference.
2022-06-30 11:11:06 -07:00
Zurab Kargareteli
8baa16d891 Update Georgian translation 2022-06-30 12:54:33 +00:00
Daniel Mustieles
150e92aa69 Updated Spanish translation 2022-06-30 13:33:03 +02:00
Asier Sarasua Garmendia
0671705610 Update Basque translation 2022-06-29 18:45:24 +00:00
Alexander Mikhaylenko
38442303e0 background: Adjust preview header bar style
There has been a slight change, sync to it.
2022-06-28 22:36:36 +04:00
Gianvito Cavasoli
478b472a9c Update Italian translation
(cherry picked from commit 0151a0ac25)
2022-06-28 11:14:51 +00:00
Danial Behzadi
c4ff476f2b Update Persian translation 2022-06-28 11:10:02 +00:00
Yuri Chornoivan
850684d62e Update Ukrainian translation 2022-06-27 20:04:17 +00:00
Kate Hsuan
69598b9e08 Add Firmware Security panel
The Firmware Security panel exposes the host security levels
and details. The information is generated by fwupd. The panel
also exposes hardware configuration changes to pinpoint the
configuration changing time.

Currently this panel shows:

 - HSI and secure boot status
 - Details of HSI and secure boot
 - Configuration changelog
 - Digested security level
 - Extended protection
2022-06-27 13:53:30 -03:00
Jonas Ådahl
9e4f15353c display: Use virtual clone modes when mirroring
These are not real modes, but just as place holders when generating
'mirror' configurations. The clone modes will be just to match the
flag/dimension, while the actual mode applied will be individual for
each monitor.

This allows monitors to have their own refresh rates, which is possible
since a few mutter versions back. This also matches how mutter itself
generates mirror modes when doing so via the key binding.
2022-06-27 14:06:16 +00:00
Jonas Ådahl
6087c0397b display: Add 'is_preferred()' mode getter 2022-06-27 14:06:16 +00:00
Luming Zh
588e721472 Update Chinese (China) translation 2022-06-26 23:34:06 +00:00
Aleksandr Melman
fcf9a970df Update Russian translation 2022-06-25 18:24:49 +00:00
Piotr Drąg
5d89ef3723 Update POTFILES.in 2022-06-25 12:46:57 +02:00
Quentin PAGÈS
0c35f298ee Update Occitan translation 2022-06-24 20:23:51 +00:00
Rūdolfs Mazurs
733478920d Update Latvian translation 2022-06-24 19:15:03 +00:00
Asier Sarasua Garmendia
dce8c31f05 Update Basque translation 2022-06-22 19:17:16 +00:00
Hugo Carvalho
1e372ae0af Update Portuguese translation 2022-06-22 13:32:47 +00:00
Daniel Mustieles
914657e405 Updated Spanish translation 2022-06-22 11:51:41 +02:00
Yuri Chornoivan
599bb9fe4a Update Ukrainian translation 2022-06-21 06:39:45 +00:00
Lubomir Rintel
dad011062b wwan: do not insist SIM ID being present
It is perfectly possible for mm_sim_dup_identifier() to return NULL if
the SIM ID wasn't provided by the modem for any reason, leading to an
assertion failure:

  (gnome-control-center:910641): cc-wwan-data-CRITICAL **: 12:43:51.573:
    cc_wwan_data_set_default_apn: assertion 'self->sim_id != NULL' failed

Handle the NULL SIM ID gracefully.
2022-06-20 23:48:31 +00:00
Christian Glombek
0fbe2ada5a network/ce: Provide error tooltip in connection editor
Pass through localized libnm error messages as tooltips
to the apply button. That way, users can easily identify
configuration errors.
2022-06-20 23:37:44 +00:00
grumpey
3ca850b257 Add support for multiple file selection
fix formatting
2022-06-20 23:25:44 +00:00
Maximiliano Sandoval R
96e0db8ba0 wifi-panel: Have all widgets with the same margins
As it was, the two listboxes had different sizes. Unfortunately, the different
panels have different sizes now.
2022-06-20 23:16:19 +00:00
Lukáš Tyrychtr
e39de651a2 Fix formatting 2022-06-20 23:04:56 +00:00
Lukáš Tyrychtr
bd74296222 We don't need the declaration after all 2022-06-20 23:04:56 +00:00
Lukáš Tyrychtr
e68e93dc64 Fix submodule 2022-06-20 23:04:56 +00:00
Lukáš Tyrychtr
2148e23d97 Printer panel a11y fixes 2022-06-20 23:04:56 +00:00
Aurimas Černius
6c34dc5089 Updated Lithuanian translation 2022-06-20 22:29:01 +03:00
Hugo Carvalho
2690daf819 Update Portuguese translation 2022-06-20 15:56:18 +00:00
Yuri Chornoivan
07f850b65a Update Ukrainian translation 2022-06-20 15:21:07 +00:00
Benjamin Berg
cfc5fdb7c6 shell: Deactivate old panel before creating new one
We need to cancel internal operations before starting to create a new
panel, otherwise panels might be creating the same object for the cache
in parallel and this is not supported by the object cache.

The alternative to this would be to handle this inside the object
store to allow parallel creation of the same key.

Fixes: #1685
2022-06-20 03:18:30 +00:00
Robert Ancell
4159a5ca68 network: Replace deprecated nm_client_wireless_set_enabled 2022-06-20 02:29:39 +00:00
Robert Ancell
6911110111 network: Replace deprecated nm_client_deactivate_connection 2022-06-20 02:29:39 +00:00
Robert Ancell
a793e49acd wwan: Replace deprecated nm_device_disconnect 2022-06-20 02:29:39 +00:00
Robert Ancell
c23c56a0a1 network: Replace deprecated nm_device_disconnect 2022-06-20 02:29:39 +00:00
Pablo Correa Gómez
bb4acf75ef user-accounts: run-passwd: Redirect stderr to stdout in the child
The previous code was prone to race conditions if the child already
started writing to stdout before the dup2 call happened. This has
been detected in postmarketOS[1] and I also reproduced it in Alpine
Linux. Since passwd writes to stderr and linux-pam to stdout, the
redirection was needed. However, linux-pam was failing with
"Conversation error" since an fprintf(stdout, ...) call wasn't
able to write to an already-closed stdout.

This problem is fixed by setting the redirection in the child setup
function and ignoring the stderr pipe. It also fixes a leak, where
the stderr fd was simply ignored and never closed.

[1] https://gitlab.com/postmarketOS/pmaports/-/issues/1449
2022-06-20 01:33:36 +00:00
Amy
0f60cad6bd network: fix line break issues
Commit 5e0fc5c1 ("network: prevent crash by disconnecting device")
introduced two new line breaks after the final call of
remove_wifi_device. Those line breaks are unnecessary, as pointed out by
Robert (@robert.ancell). They should be removed for the MR to be merged.

This patch removes those line breaks, which should allow for !1359 to be
properly merged.
2022-06-20 01:24:25 +00:00
Amy
fd76bfb71e network: prevent crash by disconnecting device
When a device is registered with add_wifi_device, a corresponding signal
is registered for events. The associated remove_wifi_device clears the
associated pages, but does not disconnect the signal. This causes the
assertion NET_IS_DEVICE_WIFI to fail.

This patch corrects this error, resolving #1889 as per the suggested fix
from Benjamin (@bberg).
2022-06-20 01:24:25 +00:00
Maximiliano Sandoval R
2252ee27b4 connection-editor: Set default height to 600
If the dialog cannot be resized might as well be big enough to not
require scrolling on a big enough screen.
2022-06-20 00:30:58 +00:00
David Bauer
533b698f60 network: implement handling for OWE TM
Implement handling for OWE-TM networks.

 * Correctly display encryption type when connected to a OWE-TM network
   with an open profile (Previously showed as WPA2
 * Mask out hidden transition SSID when connected to the OWE-TM network
 * Don't display OWE-TM network with lock icon

Signed-off-by: David Bauer <mail@david-bauer.net>
2022-06-19 23:53:24 +00:00
Lukáš Tyrychtr
8cd39513be Fix a typo 2022-06-19 23:25:30 +00:00
Lukáš Tyrychtr
ca04a2b550 Add a few missing labels in the wacom settings 2022-06-19 23:25:30 +00:00
Lukáš Tyrychtr
fa10fcfe5e Add a11y labels for close notification buttons in the thunderbolt panel 2022-06-19 23:13:51 +00:00
Lukáš Tyrychtr
ab852ca63c Make the presentation of the main panel list a little bit nicer by adding an a11y label 2022-06-19 23:02:54 +00:00
Maximiliano Sandoval R
3a96f428ca ce-page-details: Do not set children for CheckBtn
This widget does not support adding arbitrary children, a warning was
issued when it was disposed for still having children.
2022-06-19 22:17:18 +00:00
Lukáš Tyrychtr
c6fe35a310 Fix a missing a11y tag 2022-06-19 22:01:45 +00:00
Lukáš Tyrychtr
840024b685 Make the universal panel more accessible by adding some a11y described by relations and a few labels 2022-06-19 22:01:45 +00:00
Christian Glombek
1e06a0e0dd network/ce: Fix address label ids on ip4-page
In 861d762ce5,
the address labels on the IPv4 page were renamed, however the corresponding
change was not made in the respective .ui file, which results in a crash upon
construction of the page. This change fixes that.
2022-06-19 21:50:23 +00:00
Lukáš Tyrychtr
87ef7e25f6 Add a few missing a11y labels to the users panel 2022-06-19 21:41:09 +00:00
Lukáš Tyrychtr
06b6614e9b Improve accessibility of the wwan settings panel 2022-06-19 21:04:48 +00:00
Quentin PAGÈS
01eb0e9ae1 Update Occitan translation 2022-06-19 18:03:35 +00:00
Aleksandr Melman
cbf345069c Update Russian translation 2022-06-18 21:24:02 +00:00
Jordi Mas
35ac91e00f Update Catalan translation 2022-06-17 15:55:40 +02:00
Yuri Chornoivan
9ca6a7ab2c Update Ukrainian translation 2022-06-17 13:17:22 +00:00
Hugo Carvalho
f0b9dae503 Update Portuguese translation 2022-06-17 11:05:34 +00:00
Piotr Drąg
1e6e77e07d Update POTFILES.in 2022-06-17 12:54:54 +02:00
Yuri Chornoivan
3375e87448 Update Ukrainian translation 2022-06-17 05:25:14 +00:00
Lukáš Tyrychtr
98fcce2202 Add missing a11y labels 2022-06-17 02:01:33 +00:00
Robert Ancell
2536f946eb color: Remove dead code
This code was disabled as part of the GTK4 port (d00cc39)
2022-06-17 01:42:12 +00:00
Amy
7f4a7c125f background: fix parameter indentation
Commit d2474bf0 ("background: revert false indentation") fixed a warning
which sprung from improper indentation of a function call. To comply 
with project style, the parameter list's indentation must also be
adjusted. This issue was pointed out by Georges (@fearanon). 

This patch changes the indentation of the parameters in compliance.
2022-06-15 19:26:24 +00:00
Amy
dbfc44b1f4 background: revert false indentation
Commit 46673670 ("Fix indentation") indented lines 160-163 of
cc-background-chooser.c to make them seem as if they were part of the
associated if statement. However, they are not, which causes confusion
as to the intention of the code. It appears as if the
gtk_accessible_update_property call is executed upon button being non-
null, but it is always executed due to the lack of an if block. For
clarity, and to resolve a compiler warning, this patch should be
reverted.

This patch reverts 46673670, changing the indentation back correctly. 
This was mentioned in #1902 and received no objections, including
approval from Lukas.
2022-06-15 19:26:24 +00:00
Cassidy James Blaede
91f3a7ec4f background: change "Light" to "Default" 2022-06-15 19:12:10 +00:00
Luming Zh
787e96de9b Update Chinese (China) translation 2022-06-15 18:29:17 +00:00
Milo Casagrande
c42f3c3a2a Update Italian translation
(cherry picked from commit b593dc4e64)
2022-06-14 15:29:34 +00:00
A S Alam
44601644b3 Update Punjabi translation 2022-06-12 15:50:52 +00:00
Amy
fbad193899 Update GLib dependency to 2.70
To support commit 9de5b003, the minimum GLib dependency level must be
updated to 2.70 as that release introduced g_pattern_spec_match_string.

This patch updates the GLib minimum required level in accordance.
2022-06-10 18:08:41 +00:00
Amy
ea635be532 default-apps: switch away from deprecated function
cc-default-apps-panel.c:101 uses g_pattern_match_string, which is now
considered deprecated in Glib. It is better to use the 2.70+
g_pattern_spec_match_string, which works as a drop-in replacement. This
helps with function organization, as the original was created as a
general Glib function while g_pattern_spec_match_string works under the
PatternSpec module.

This patch swaps the usage to the newer function, creating no functional
difference and resolving a deprecated functions warning.
2022-06-10 18:08:41 +00:00
Amy
8949aeb338 info-overview: remove extra whitespace
Commit 61908b02 ("
info-overview: change fetch order for consistency") introduces
undesired whitespace. While remaking the commit is not necessary, as it
will not affect bisecting, the whitespace should be eliminated.

This patch removes the whitespace, leaving only one preceding and
proceeding line for the get_hardware_model call.
2022-06-10 17:40:34 +00:00
Amy
f2f2807e84 info-overview: change fetch order for consistency
Currently, the order in which info_overview_panel_setup_overview fetches
data is essentially random. For ease of maintainability and
understanding, the fetches should be ordered by their appearance as rows
in the panel.

This patch changes the order so that it corresponds with the panel's UI
order.
2022-06-10 17:40:34 +00:00
Bastien Nocera
47c586a82e network: Fix Wi-Fi network with "&" in name not appearing
My neighbours' Wi-Fi makes the Wi-Fi panel throw an error:
(gnome-control-center:346639): Gtk-WARNING **: 15:16:21.993: Failed to set text 'Bbox Hugo & Laura' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as &amp;

Escape the SSID before using it to set the label.
2022-06-09 20:54:57 +00:00
Quentin PAGÈS
43419403b1 Update Occitan translation 2022-06-09 20:02:53 +00:00
Aleksandr Melman
6b93b355bd Update Russian translation 2022-06-05 12:27:13 +00:00
Fabio Tomat
6cdec6e3a4 Update Friulian translation 2022-06-03 08:20:11 +00:00
Fabio Tomat
e8b24c3d41 Update Friulian translation 2022-06-03 08:18:05 +00:00
Yosef Or Boczko
b76e109857 Update Hebrew translation 2022-06-01 15:30:17 +00:00
Yuri Chornoivan
95d4e664b5 Update Ukrainian translation 2022-06-01 13:12:09 +00:00
Hugo Carvalho
97cec8d167 Update Portuguese translation 2022-06-01 11:07:11 +00:00
Danial Behzadi
e58a80d804 Update Persian translation 2022-06-01 10:03:53 +00:00
Maximiliano Sandoval R
9327bbe759 wifi-connection-list: Add margins and align 2022-06-01 02:17:13 +00:00
Maximiliano Sandoval R
7cb4dc4ff0 network-wifi: Use ListBox in popover
This gives us the correct style on the popover.
2022-06-01 02:17:13 +00:00
Maximiliano Sandoval R
42f64f197f Make buttons in actions rows and header flat 2022-06-01 02:17:13 +00:00
Lukáš Tyrychtr
af197cb813 Add missing a11y labels 2022-05-31 21:08:44 +00:00
Robert Ancell
4f3eb61395 info-overview: Replace deprecated g_spawn_check_exit_status 2022-05-31 15:21:48 +12:00
Robert Ancell
23d70d6952 user-accounts: Replace deprecated g_spawn_check_exit_status 2022-05-31 15:21:37 +12:00
Lukáš Tyrychtr
46932dcffe Fix indent 2022-05-30 22:24:47 +00:00
Lukáš Tyrychtr
fd7691c0b9 Add a missing label to the automatic timezone switch 2022-05-30 22:24:47 +00:00
Yosef Or Boczko
83d27d1081 Update Hebrew translation 2022-05-30 18:22:14 +00:00
Quentin PAGÈS
93e7458569 Update Occitan translation 2022-05-30 16:49:05 +00:00
Aleksandr Melman
e559ecb1b1 Update Russian translation 2022-05-30 16:27:24 +00:00
Jürgen Benvenuti
be6d2e38dd Update German translation 2022-05-30 15:10:26 +00:00
Georges Basile Stavracas Neto
0e8835d18c online-accounts: Print all GLib messages to stderr
Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1864
2022-05-29 23:24:46 +00:00
Lukáš Tyrychtr
6f887237fd Add a label to the master mic switch 2022-05-29 23:12:04 +00:00
Lukáš Tyrychtr
666af4ddea Add a missing label 2022-05-29 23:06:33 +00:00
Lukáš Tyrychtr
6388d3715a Add an a11y label to the switch 2022-05-29 23:02:42 +00:00
Danial Behzadi
7eda06f9ee Update Persian translation 2022-05-29 07:54:39 +00:00
Luming Zh
5711ee0ce1 Update Chinese (China) translation 2022-05-28 02:36:23 +00:00
Hugo Carvalho
03f08faf81 Update Portuguese translation 2022-05-27 22:47:43 +00:00
Jan Tojnar
c9448f76c2 region: Fix critical when changing language
Changing user’s language resets the formats (region) by passing `NULL` to `update_region`.
However, updating the region calls `maybe_notify`, whose callback `maybe_notify_finish`
tries to parse the `mnd->target_locale` (the `NULL`), producing a critical:

    GLib-CRITICAL **: g_regex_match_full: assertion 'string != NULL' failed

Since updating the language itself already triggers the notification check,
let’s just skip calling `maybe_notify` here in that case.
2022-05-26 19:05:16 +00:00
Jan Tojnar
7c4428eb59 region: Fix creating rows for locales without country
When creating a language row for Esperanto (eo.UTF-8), gnome-desktop throws a critical:

    gnome_get_country_from_code: assertion 'code != NULL' failed
2022-05-26 19:05:16 +00:00
Lukáš Tyrychtr
eece14f1cd Add a missing a11y label to the search box in the country selection dialog 2022-05-25 23:43:28 +00:00
Robert Ancell
99f27e802f applications: Update snap permissions code to recent changes
Fixes #1845
2022-05-25 23:02:46 +00:00
Yuri Chornoivan
edbc075eb0 Update Ukrainian translation 2022-05-25 18:27:29 +00:00
Georges Basile Stavracas Neto
261545b6cb keyboard: Set mnemonics to header buttons
Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1863
2022-05-25 16:41:28 +00:00
Boyuan Yang
b2a3da4927 Update Chinese (China) translation 2022-05-25 16:36:17 +00:00
Felipe Borges
e5dbc0dcc1 appearance: Add "Appearance" keyword to desktop file
With the panel getting renamed from "Background" to "Appearance", users
like myself will start getting accustomed to search for the new term
instead.
2022-05-25 10:09:06 +00:00
Christian Kirbach
aef272e3fa Update German translation
(cherry picked from commit 3b9e94a03f)
2022-05-24 08:40:23 +00:00
Quentin PAGÈS
3088c5f673 Update Occitan translation 2022-05-23 16:56:40 +00:00
Aleksandr Melman
a7287ebecb Update Russian translation 2022-05-23 12:24:26 +00:00
Pawan Chitrakar
de40b25790 Update Nepali translation
(cherry picked from commit 79c2c4578b)
2022-05-22 08:07:34 +00:00
Asier Sarasua Garmendia
2641f68fcc Update Basque translation 2022-05-19 19:57:02 +00:00
Lukáš Tyrychtr
9c54390320 Add missing a11y labels and fix accessibility related markup in UI files in the search panel 2022-05-19 12:05:01 +00:00
Daniel Mustieles
05dc74f120 Updated Spanish translation 2022-05-19 10:35:23 +02:00
Hugo Carvalho
2dd2d2acab Update Portuguese translation 2022-05-18 14:32:21 +00:00
Danial Behzadi
4d8bdd5d52 Update Persian translation 2022-05-18 09:40:58 +00:00
Yuri Chornoivan
f6e6ff30a3 Update Ukrainian translation 2022-05-18 06:24:43 +00:00
Jonas Ådahl
fc984e90a1 display: Show infobar if night light isn't supported
This may be the case on e.g. fully remote / headless sessions, or as of
now, when using the NVIDIA driver to run a Wayland session.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1659
2022-05-17 12:32:48 +02:00
Jonas Ådahl
44293e9db2 display: Add 'NightLightSupported' property support 2022-05-17 12:31:07 +02:00
Robert Ancell
fc1b750f19 applications: Fix CcInfoRow having the wrong parent.
Introduced in 9e38b89752
2022-05-17 12:14:56 +12:00
Changwoo Ryu
afb59388c9 Update Korean translation
(cherry picked from commit a23cd79762)
2022-05-16 12:08:27 +00:00
Fran Dieguez
5137225383 Update Galician translation 2022-05-16 07:59:04 +00:00
Danial Behzadi
bfa06d0978 Update Persian translation 2022-05-16 07:46:03 +00:00
Yuri Chornoivan
a8db661166 Update Ukrainian translation 2022-05-16 07:23:42 +00:00
Robert Ancell
64768de705 keyboard: Fix typo in a11y label 2022-05-16 10:05:29 +12:00
Piotr Drąg
c09c25805b Update POTFILES.in 2022-05-15 13:36:12 +02:00
Felipe Borges
44fdf9a492 sharing: Let GtkWindowControls add its own buttons
On the Verify Encryption dialog we were adding a GtkWindowControls
widget with a button child. This is a misunderstanding of the behavior
of GtkWindowControls, which adds its own buttons to the window.

Let's remove our custom close-button and its callback, since the
previous commit disabled this codepath for hiding the dialog.
2022-05-13 13:18:01 +02:00
Felipe Borges
a701ab0b8b sharing: Set Verify Encryption dialog to "hide-on-close"
This way GtkWindow handles the hiding of the dialog instead of the
callback of the close-button.

Fixes #1832
2022-05-13 13:18:01 +02:00
Ritik Bhandari
46e8eafa92 user-accounts: Fixed typo from "organisation" to "organization" 2022-05-12 23:11:00 +00:00
Ritik Bhandari
8320d17825 region: Fixed typo from "formats is.." to "formats are" 2022-05-12 23:11:00 +00:00
Adrien Plazas
d548309f34 info-overview-panel: Use the external link icon for the updates link
This makes it explicit it opens another application to perform the
action.
2022-05-12 23:04:51 +00:00
Cheng-Chia Tseng
f2402869bb Update Chinese (Taiwan) translation
(cherry picked from commit 4ed667e4e5)
2022-05-12 07:10:40 +00:00
lsnow
1523ab6c6b applications: crash when switching between two apps
The GIcon returned by g_app_info_get_icon() does
not need to be freed.

See: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1817
2022-05-11 12:39:39 +08:00
Robert Ancell
b7302348cf online-accounts: Add CcOnlineAccountRow 2022-05-11 14:51:53 +12:00
Robert Ancell
32a807b964 online-accounts: Add CcOnlineAccountProviderRow 2022-05-11 14:49:12 +12:00
Robert Ancell
7bf240ca3f online-accounts: Use g_autoptr 2022-05-11 14:04:22 +12:00
Robert Ancell
7d4c8346ca online-accounts: Rename panel class to match filename 2022-05-11 14:04:18 +12:00
Jeremy Bicha
f94c96577b sharing: Turn off RDP gsettings key when turning off RDP
Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1825
2022-05-11 00:28:25 +00:00
Robert Ancell
f9fd2587ca printers: Fix missing const on string parameter 2022-05-11 12:16:25 +12:00
Robert Ancell
0118598763 display: Fix typo in a11y attribute 2022-05-11 12:07:31 +12:00
Michael Catanzaro
69f51bdab0 info-overview: add build option to control distributor logo
Currently, we display a 256x256 version of the OS icon from
/etc/os-release. This is too big for my taste, and it's also not
sufficient for distros that want to display a logo that is not an icon.
For instance, because we no longer display the operating system name
immediately beneath the logo, it may be desirable to use a logo variant
that includes text. This patch adds a meson build option that
distributions can use to override the logo, and a second build option to
specify a different logo for use in dark mode.
2022-05-10 23:16:40 +00:00
Bastien Nocera
88f87de748 info-overview: Remove old version.xml loading code 2022-05-10 23:00:59 +00:00
Bastien Nocera
bfc567955f info-overview: Load GNOME version from gnome-shell
See https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5406
2022-05-10 23:00:59 +00:00
Bastien Nocera
d253fe188c info-overview: Add a placeholder while the GNOME version loads 2022-05-10 23:00:59 +00:00
Bastien Nocera
8914fae8da info-overview: Don't load version.xml info we don't use
We don't use the distributor or date info from gnome-desktop's version.xml
so no need to parse it.
2022-05-10 23:00:59 +00:00
Bastien Nocera
95de2049c7 shell: Initialise locale early
Otherwise glib will make internal calls before setlocale is called:
** (process:1124144): WARNING **: 10:16:58.983: dcgettext("(null)", "", 5) called before setlocale()

 #0  0x00007ffff7c80f77 in g_logv () at /lib64/libglib-2.0.so.0
 #1  0x00007ffff7c81233 in g_log () at /lib64/libglib-2.0.so.0
 #2  0x00007ffff7fbb6c6 in dcgettext (__domainname=<optimized out>, __msgid=0x7ffff7ce6c5a "", __category=<optimized out>) at ../../../../Projects/jhbuild/gettext-pseudolocale/gettext-pseudolocale.c:194
 #3  0x00007ffff7c6478e in _g_dgettext_should_translate () at /lib64/libglib-2.0.so.0
 #4  0x00007ffff7c6484b in g_dgettext () at /lib64/libglib-2.0.so.0
 #5  0x00007ffff7e98974 in g_application_class_intern_init () at /lib64/libgio-2.0.so.0
 #6  0x00007ffff7d9cfb8 in g_type_class_ref () at /lib64/libgobject-2.0.so.0
 #7  0x00007ffff7d9cc95 in g_type_class_ref () at /lib64/libgobject-2.0.so.0
 #8  0x00007ffff7d9cc95 in g_type_class_ref () at /lib64/libgobject-2.0.so.0
 #9  0x00007ffff7d9cc95 in g_type_class_ref () at /lib64/libgobject-2.0.so.0
 #10 0x00007ffff7d8671a in g_object_new_valist () at /lib64/libgobject-2.0.so.0
 #11 0x00007ffff7d867fd in g_object_new () at /lib64/libgobject-2.0.so.0
 #12 0x0000000000449bcc in cc_application_new () at ../../../../Projects/jhbuild/gnome-control-center/shell/cc-application.c:294
 #13 0x0000000000448fa6 in main (argc=1, argv=0x7fffffffd138) at ../../../../Projects/jhbuild/gnome-control-center/shell/main.c:55
2022-05-11 00:36:27 +02:00
Lukáš Tyrychtr
4a421d0abc Ensure that the activatable widgets of the multitasking rows have the proper labels 2022-05-10 22:29:10 +00:00
Lukáš Tyrychtr
e26f28d1fd Add a label to the close notification button in online account settings 2022-05-10 22:19:52 +00:00
Lukáš Tyrychtr
de8d28c3eb Improve accessibility of the power panel 2022-05-10 22:14:35 +00:00
Lukáš Tyrychtr
df30f44709 Fix indent 2022-05-10 21:35:50 +00:00
Lukáš Tyrychtr
450c05471b Label the device name textbox for a11y 2022-05-10 21:35:50 +00:00
Lukáš Tyrychtr
861d762ce5 Address review feedback 2022-05-10 21:26:05 +00:00
Lukáš Tyrychtr
3151598aef Make the network settings panel more screen reader friendly 2022-05-10 21:26:05 +00:00
Lukáš Tyrychtr
46673670d9 Fix indentation 2022-05-10 21:11:57 +00:00
Lukáš Tyrychtr
a477684f20 Improve accessibility of the background panel 2022-05-10 21:11:57 +00:00
Jonas Ådahl
48354fde43 sharing/remote-desktop/fingerprint: Add missing period to string 2022-05-10 20:58:40 +00:00
Jonas Ådahl
6affceebee sharing/remote-desktop: Show toasts when copying 2022-05-10 20:58:40 +00:00
Bastien Nocera
aa7ebe5d7c bluetooth: Add a few edge cases in Bluetooth tester
Use a non-ASCII filename as well as an ampersand, both things that could
cause problems.
2022-05-10 11:03:50 +02:00
Corey Berla
df51bed16c printers: Check for invalid characters in printer names
Currently when you rename a printer through the print details page
there is no indication of errors produced by CUPS, most notable
about any invalid characters used. Adds a function to check
for invalid characters and shows a warning to users.  No
attempt will be made to rename the printer if it contains an
invalid character.  Users are currently shown an elevation prompt
before this fix
https://www.cups.org/doc/man-lpstat.html

Partially addresses #1008
2022-05-10 05:11:51 +00:00
Corey Berla
54341cae07 printers: Add label for invalid characters in printer name
Add a label immediately below the printer name entry in printer
details that warns the user if the printer name contains
invalid characters (or other errors) per the CUPS spec.
2022-05-10 05:11:51 +00:00
Pablo Correa Gómez
b7c545a1e7 printers: Wrap job dialog GtkInfoBar label to fit in narrower screens 2022-05-10 04:37:42 +00:00
Pablo Correa Gómez
92ee00e39b display: Wrap Night Light GtkInfoBar label to fit in narrower screens 2022-05-10 04:37:42 +00:00
Pablo Correa Gómez
42cb548115 common: Wrap CcPermissionInfobar labels to fit in narrower screens 2022-05-10 04:37:42 +00:00
Pablo Correa Gómez
ddfacc6b81 power: Only update ALS state if it has changed
Ambient light sensors can be quite sensitive and the LightLevel
property might be changing very often. That has two undesired
consequences:
* The `als_enabled_state_changed` callback gets constantly called
  due to a change in a property which it does not care about, as
  only `HasAmbientLight` is relevant. Therefore, limit the code
  execution to when something needs to be changed.
* During debugging, the terminal gets spammed with "ALS enabled: on/off"
  messages.
2022-05-10 04:32:12 +00:00
Mohammed Sadiq
1204b91f52 wwan: Use AdwToasts for notifications
AdwToasts replaces the GtkLabel inside revealer for notifications
and this simplifies handling the notifications and the toast-overlay
handles the complexities of when to show/withdraw them, the order
they are displayed, etc.
2022-05-10 04:24:49 +00:00
Mohammed Sadiq
9aff773564 wwan: Strip remote dbus error before it's presented
That's more useful for the users
2022-05-10 04:24:49 +00:00
Mohammed Sadiq
1dccede9a7 wwan: Return "No Error" if error is NULL 2022-05-10 04:24:49 +00:00
Marco Trevisan (Treviño)
adffd7a2df Panels: Update Privacy panels keywords to match specific contents
Ensure we use more specialized keywords for privacy panels, without
repeating the unneeded ones.
2022-05-10 04:18:20 +00:00
Ian Douglas Scott
fbadba1a18 keyboard: Avoid segfault due to no "data" for custom_shortcut_add_row
Ultimately it would be good to get rid of the use of
`g_object_set_data`/`g_object_get_data` here, but this works for now.

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1373.
2022-05-10 04:11:57 +00:00
Sebastian Keller
7b1af9c8ba sound: Update theme directory modification time after bell sound changes
The sound plugin of gnome-settings-daemon which flushes the pulseaudio
sample cache does non-recursive monitoring of the sounds directory. If
the custom theme directory used for switching between bell sounds
already exists due to previous bell sound changes, subsequent changes
within that directory will not be noticed. The old bell sample will thus
remain in the cache until the next session restart. Avoid this problem
by manually updating the modification time of the directory.

The alternative solution of adding recursive monitoring to the sound
plugin would require significantly more complicated code as there is no
support for this in glib itself. Given that sound themes never really
caught on and there is an ongoing discussion of removing support for
them entirely, going with this simple solution seems like the better
choice.

Fixes: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/issues/681
2022-05-10 04:05:44 +00:00
Lukáš Tyrychtr
31d6c7704c Add some missing a11y labels in the keyboard panel 2022-05-10 04:00:40 +00:00
Lukáš Tyrychtr
30b6d51c5a Add labels to the toggles in the lock settings 2022-05-10 03:52:51 +00:00
Felipe Borges
0be875c0b0 background: Order background items alphabetically
Except for the "Default Background" which skips the line and gets
shown first.

Fixes #1716
2022-05-10 03:46:33 +00:00
Lukáš Tyrychtr
f7d0aa7a12 Add missing labels 2022-05-10 03:40:47 +00:00
Lukáš Tyrychtr
f1d5215cdd Add an a11y label to the enable switch 2022-05-10 03:31:04 +00:00
Lukáš Tyrychtr
5329a8f942 Fix indent 2022-05-10 03:25:12 +00:00
Lukáš Tyrychtr
e2c8b7d3a4 A missing label in the camera panel 2022-05-10 03:25:12 +00:00
Lukáš Tyrychtr
91b13f4283 Add a few a11y labels to the switches 2022-05-09 13:33:57 +02:00
Aurimas Černius
faa9a7ace4 Updated Lithuanian translation 2022-05-08 22:03:47 +03:00
Emin Tufan Çetin
6129c1ce00 Update Turkish translation 2022-05-07 06:06:20 +00:00
Quentin PAGÈS
1b1b0fc5de Update Occitan translation
(cherry picked from commit 3481206fa9)
2022-05-05 18:04:08 +00:00
Sebastian Keller
5df1519d7d background: Make sure the size of the light/dark previews is the same
Without homogeneous columns the difference in the size of the light/dark
labels could cause one preview to be larger.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1810
2022-05-05 10:13:34 +02:00
Felipe Borges
340ee1dc4a connection-editor: Unparent child widget on dispose
WirelessSecurityWPAEAP is a GtkWidget owned by the CEPage8021xSecurity
widget, which is supposed to "unparent" it on "dispose" (since parents
hold a reference to child widgets). Instead we were calling
g_clear_object on it.

Fixes #1671
2022-05-03 17:45:14 +02:00
Zurab Kargareteli
1abe3c3553 Update Georgian translation 2022-04-28 16:16:06 +00:00
Alexander Shopov
b807f242e6 Update Bulgarian translation
(cherry picked from commit 946919c850)
2022-04-28 12:20:06 +00:00
Danial Behzadi
cea7c82789 Update Persian translation 2022-04-27 09:28:48 +00:00
Danial Behzadi
a556616081 Update Persian translation
(cherry picked from commit 2d263f5ea9)
2022-04-27 09:19:16 +00:00
Robert Ancell
7f77d087f4 sharing: Fix misleading widget name 2022-04-26 21:31:27 +00:00
Anders Jonsson
a89f64dde7 Update Swedish translation 2022-04-26 15:33:18 -03:00
Yuri Chornoivan
b51513e4fa Update Ukrainian translation 2022-04-26 15:23:15 -03:00
Felipe Borges
d8bad3eda1 multitasking: Add some new keywords to desktop file
While searching in the Shell, users might input the keywords "Hot
Corner" and "Workspaces".

Fixes #1784
2022-04-26 15:23:07 -03:00
Michael Catanzaro
62bde81c54 sound: remove dog bark sound theme
You're welcome, internet.
2022-04-26 15:22:05 -03:00
Georges Basile Stavracas Neto
bbe3ae4a91 Switch to 'main' everywhere 2022-04-26 14:43:01 -03:00
Georges Basile Stavracas Neto
0bfb1e8906 Post-branching version bump
Mainline is open for business again
2022-04-26 14:16:07 -03:00
269 changed files with 28478 additions and 26068 deletions

View File

@@ -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].

View File

@@ -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
-->

View File

@@ -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
View File

@@ -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

View File

@@ -1,6 +1,6 @@
[![Build Status](https://gitlab.gnome.org/GNOME/gnome-control-center/badges/master/pipeline.svg)](https://gitlab.gnome.org/GNOME/gnome-control-center/pipelines)
[![Coverage report](https://gitlab.gnome.org/GNOME/gnome-control-center/badges/master/coverage.svg)](https://gnome.pages.gitlab.gnome.org/gnome-control-center/)
[![License](https://img.shields.io/badge/License-GPL%20v2-blue.svg)](https://gitlab.gnome.org/GNOME/gnome-control-center/blob/master/COPYING)
[![Build Status](https://gitlab.gnome.org/GNOME/gnome-control-center/badges/main/pipeline.svg)](https://gitlab.gnome.org/GNOME/gnome-control-center/pipelines)
[![Coverage report](https://gitlab.gnome.org/GNOME/gnome-control-center/badges/main/coverage.svg)](https://gnome.pages.gitlab.gnome.org/gnome-control-center/)
[![License](https://img.shields.io/badge/License-GPL%20v2-blue.svg)](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

View File

@@ -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

View File

@@ -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

View File

@@ -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')

View File

@@ -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')

View File

@@ -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;

View File

@@ -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

View File

@@ -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);

View File

@@ -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);

View 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

View File

@@ -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 ();

View File

@@ -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);

View File

@@ -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>

View File

@@ -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;

View File

@@ -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;
}

View File

@@ -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')

View File

@@ -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;

View File

@@ -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;
}

View File

@@ -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);
}

View File

@@ -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)

View File

@@ -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,

View File

@@ -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>

View File

@@ -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)
{

Binary file not shown.

Before

Width:  |  Height:  |  Size: 208 KiB

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 666 B

After

Width:  |  Height:  |  Size: 447 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 740 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 995 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 437 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 859 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 437 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 859 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 421 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 844 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 446 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 868 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 409 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 846 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 621 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 876 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Some files were not shown because too many files have changed in this diff Show More