Commit graph

20266 commits

Author SHA1 Message Date
Hugo Carvalho
f79b6e02bf Update Portuguese translation 2021-07-22 10:28:21 +00:00
Bastien Nocera
738c15be66 power: Fix D-Bus proxy leak 2021-07-21 13:53:59 +00:00
Bastien Nocera
f644b37887 ci: Fix gnome-40 CI
Commit f85750274c removed grilo-devel from
the dependency list, but the images generated by the CI on the
development branch are also the ones used for older branches.

This can be seen by all the CI jobs on the gnome-40 branch:
https://gitlab.gnome.org/GNOME/gnome-control-center/-/commits/gnome-40
failing the day after the grilo dep was removed:
https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/981
2021-07-21 12:48:40 +02:00
Alexey Rubtsov
b74d9456c1 Update Russian translation 2021-07-21 10:21:47 +00:00
Kukuh Syafaat
5b2a622a0d Update Indonesian translation 2021-07-20 13:33:45 +00:00
Yuri Chornoivan
b054bf9194 Update Ukrainian translation 2021-07-20 12:05:48 +00:00
Bastien Nocera
98b921b46f power: Reword lap mode info message
Reword the lap mode info message slightly as the performance mode might
not have been what the user requested, but the warning should stay until
cleared nonetheless.
2021-07-20 00:51:48 +02:00
Bastien Nocera
06d110a3d0 power: Tweak power profile info boxes horizontal spacing
A bit too much whitespace around the info icon.
2021-07-20 00:51:48 +02:00
Bastien Nocera
c0ce1e53ab power: Show power profile info boxes for profile holds
Applications can request that power-profiles-daemon "hold" a particular
power profile for the duration of a task or event, such as launching a
taxing application, or saving power because of low battery.

Show those holds in the same type of info boxes we already use to show
"degraded" performance.

See https://gitlab.freedesktop.org/hadess/power-profiles-daemon/-/merge_requests/46
2021-07-20 00:51:48 +02:00
Bastien Nocera
05997b424c power: Move variant_lookup_string() helper function 2021-07-20 00:51:48 +02:00
Bastien Nocera
eda473f0d6 power: Prepare for adding more power profile info boxes
Rename and re-indent the code that adds the power profile info boxes to
prepare for adding more info boxes when needed.
2021-07-20 00:51:48 +02:00
Kukuh Syafaat
0552098a5c Update Indonesian translation 2021-07-17 14:54:53 +00:00
Bastien Nocera
9724d3ef59 power: Handle new power-profiles-daemon API
Handle the new PerformanceDegraded property to replace
PerformanceInhibited.
2021-07-15 22:14:06 +02:00
Bastien Nocera
e5bbe4d7c6 power: Add new power profile info row widget 2021-07-15 22:14:06 +02:00
Bastien Nocera
0f86d4d754 power: Simplify emptying listbox
We do that in a few places.
2021-07-15 14:57:49 +02:00
Bastien Nocera
d35c816508 power: Fix keynav not working
gnome-control-center/panels/power/cc-power-panel.c: In function ‘keynav_failed_cb’:
gnome-control-center/panels/power/cc-power-panel.c:892:50: warning: statement with no effect [-Wunused-value]
  892 |   direction == GTK_DIR_UP ? GTK_DIR_TAB_BACKWARD : GTK_DIR_TAB_FORWARD;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
2021-07-15 13:12:36 +02:00
Philipp Kiemle
e113e51003 Update German translation 2021-07-13 20:57:22 +00:00
Alexander Shopov
fa85528833 Update Bulgarian translation 2021-07-10 15:48:31 +00:00
Alexey Rubtsov
cb26d22afa Update Russian translation 2021-07-05 07:19:23 +00:00
Rafael Fontenelle
6e9e2726f0 Update Brazilian Portuguese translation 2021-07-03 16:10:59 +00:00
Ian Douglas Scott
996e46c620 location: Fix permission store table/id
Updates to match
https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/master/js/ui/status/location.js

Should fix
https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/885.
2021-07-02 19:18:21 +00:00
Florentina Mușat
5edbf17b4d Update Romanian translation 2021-07-02 16:10:33 +00:00
Matej Urbančič
4fafecf738 Update Slovenian translation 2021-07-02 12:51:17 +00:00
Matej Urbančič
4f49002163 Update Slovenian translation 2021-07-02 12:50:01 +00:00
Hugo Carvalho
ab8e8e01dc Update Portuguese translation 2021-06-25 18:22:12 +00:00
Quentin PAGÈS
3140459a26 Update Occitan translation 2021-06-24 20:12:20 +00:00
Felipe Borges
1b6c8ca55d mouse: Overlay mouse test button on top of the artwork 2021-06-24 16:16:14 +02:00
Jakub Steiner
3a0fb47373 mouse: test panel graphic
- update graphic to follow illustration style -- https://gitlab.gnome.org/Teams/Design/app-illustrations

Fixes Teams/Design/initiatives#82
2021-06-24 16:11:48 +02:00
Muhammet Kara
860d953e99 Update Turkish translation 2021-06-20 05:33:01 +00:00
Pawan Chitrakar
920bcbdcd6 Update Nepali translation 2021-06-16 13:42:49 +00:00
Eric
4383f020e7 Switch to g_get_os_info to read os_release
As described in #1346, GLib 2.64 includes a g_get_os_info() function,
providing access to keys from /etc/os-release. This commit replaces calls to
gnome-control-center's custom parser (in panels/common/cc-os-release.c)
with calls to this new function, and deletes the custom parser code.

Closes #1346
2021-06-15 21:54:35 +00:00
Marco Trevisan (Treviño)
632cb3c907 display-settings: Show scaling values using a combo-box when more than buttons limit
In case fractional scaling is enabled, depending on the resolution,
mutter may advertise many fractional scaling values which are way more
than MAX_SCALE_BUTTONS, making impossible to use higher fractional
scaling values in high dpi setups.

So, in case scaling is possible, show them as buttons if they fit the
buttons limit, otherwise fallback to a combo box that is consistent with
the rest of the UI and will allow to use any valid scaling value.
2021-06-15 17:30:36 +00:00
Marco Trevisan (Treviño)
266622e99e display-config: Filter invalid modes and scales when setting minimum size
In the front-end we define a minimum size and then we check every time
we iterate through resolutions or scales if such mode is valid.

Since the configuration won't change, we can just filter the invalid
values once when the minimum allowed size is set, so that we can be sure
that the returned scales list is always matching the ones appliable for
the current mode.

The only edge case is when using a cloned configuration, as in this case
the values need to be applied to all the monitors.
However, since we already return a reffed GArray we can just create a
temporary one in this case where unappliable scales are skipped.

As per this we can just use around the scales array length as the number
of visible buttons.
2021-06-15 17:30:36 +00:00
Marco Trevisan (Treviño)
a3392176a9 display-config: Expose the supported scales as a reffed GArray
It's just a nicer api and allows us to avoid having to count all the
elements around or to expose the size via an out value.

Given this is a private API anyway there's no risk for modifying the
array, so it's something safe to use anyways.
2021-06-15 17:30:36 +00:00
Marco Trevisan (Treviño)
89cb1d99cb display-config: Use G_APPROX_VALUE to compare scale doubles
It's not safe to compare double values directly, use G_APPROX_VALUE with
DBL_EPSILON instead.
2021-06-15 17:30:36 +00:00
Marco Trevisan (Treviño)
ca884dc666 display-panel: Clear the variant builder if not showing an OSD
When we've only one monitor active we are not showing the OSD but we're
leaking the variant used to request the shell to show the OSDs.
2021-06-15 17:30:36 +00:00
Felipe Borges
bdc0368bd0 flatpak: Bundle clutter (and friends) for cheese dependency
Cheese depends on clutter, which has been recently removed from our
Flatpak runtime. See https://gitlab.gnome.org/GNOME/gnome-build-meta/-/merge_requests/1092

Fixes #1380
2021-06-15 12:46:09 +00:00
Daniel Mustieles
ff8839682d Updated Spanish translation 2021-06-15 13:05:35 +02:00
Danial Behzadi
4923a48547 Update Persian translation 2021-06-15 00:54:22 +00:00
Dušan Kazik
66c455d120 Update Slovak translation 2021-06-11 06:37:51 +00:00
Dušan Kazik
4bb44051c9 Update Slovak translation
(cherry picked from commit d8caedd80e)
2021-06-11 06:28:58 +00:00
Yuri Chornoivan
609babfeb9 Update Ukrainian translation 2021-06-09 16:12:03 +00:00
Eric
1fc8b772a4 printers: Make "Add…" button consistent with user accounts panel
The "Add..." toolbar button on the printers panel is currently hidden until the panel is unlocked.
This commit makes the button visible but insensitive when the panel is locked (becoming sensitive when unlocked),
as suggested in #1213. It also changes the text from "Add..." to "Add Printer..."
and updates the subtitle in the infobar to "Unlock to Add Printers and Change Settings."
These changes make the button's UI consistent with the Accounts panel's "Add User..." toolbar button.

Closes #1213
2021-06-09 13:34:01 +00:00
Hugo Carvalho
b61522b612 Update Portuguese translation 2021-06-08 20:51:45 +00:00
Emin Tufan Çetin
b3e14cf5c5 Update Turkish translation 2021-06-08 13:22:09 +00:00
Danial Behzadi
cb3f93c294 Update Persian translation 2021-06-07 22:59:15 +00:00
Marco Trevisan (Treviño)
ed46af7f24 build: Depend on gsettings-desktop-schemas 40
g-c-c requires now org.gnome.desktop.peripherals schemas that have been
added on schemas 40.alpha, so let's depend on that.
2021-06-07 22:40:20 +02:00
Jordi Mas
d9e892ce4b Update Catalan translation 2021-06-03 21:23:55 +02:00
Cheng-Chia Tseng
9e00fe8cb6 Update Chinese (Taiwan) translation
(cherry picked from commit c30358bea1)
2021-06-03 01:51:25 +00:00
Petr Kovář
2caeccc523 Update Czech translation 2021-05-30 10:45:38 +00:00