Commit graph

20099 commits

Author SHA1 Message Date
Marco Trevisan (Treviño)
01fdfaccf8 fingerprint-dialog: Use more user friendly errors when showing them to user
Translate dbus errors into something that can be translated to user,
while leave to warnings all the details to help debugging.

Fixes: #1200
2020-12-11 17:46:38 +00:00
Marco Trevisan (Treviño)
d4745fdac1 fingerprint-dialog: Handle the 'enroll-disconnected' error properly
In case the device got disconnected while enrolling we should not try
to stop or unclaim it, but indeed show an error related to the device
not being available.

To get this we only have to remove the enrolling and claimed states now
2020-12-11 17:46:38 +00:00
Marco Trevisan (Treviño)
a0f028671c fingerprint-dialog: Add generic dialog actions state tracking
Use flags to track the dialog actions state so that we can:
 1. Remove multiple flags to track specific states
 2. Prevent starting again an action we're still waiting for completion
 3. Handle global visual elements (such as the busy spinner) correctly

Specifically point 3. allows to ensure that when doing concurrent
actions such as prints listing and device claiming, we will stop the
spinner only once all the operations are over.
2020-12-11 17:46:38 +00:00
Marco Trevisan (Treviño)
ae23cea4d1 fingerprint-dialog: Properly handle claiming errors if we're already claiming
We were a bit too permissive in handling the AlreadyInUse error during
claim, as we assumed it was always us causing it instead of properly
handing the case a device was already claimed by another caller.

So to ensure this is the case we need to avoid multiple calls to claim
until we've finished one.

Unfortunately we can't rely on a cancellable here as we may end up
cancelling the request that succeeded and we'll only get an
AlreadyClaimed error without know if it was us succeeding.

Fixes: #1201
2020-12-11 17:46:38 +00:00
Marco Trevisan (Treviño)
269feb1940 fingerprint-dialog: Always call EnrollStop on enrollment completed
Even if we got an error we need to always call EnrollStop so don't unset
enrolling_finger status until we're really done with it.
2020-12-11 17:46:38 +00:00
Marco Trevisan (Treviño)
5a7b9e09bf fingerprint-dialog: Don't crash when showing an error during release
We unset the local device early when releasing it, so use the one we
get the callback instead of relying in the private instance that has
been already cleared.
2020-12-11 17:46:38 +00:00
vanadiae
d3e6a1d73d mouse-test: Remove useless unreachable closing markup in GEGL message
This markup isn't needed since it's already added later in the function.
Also, it was ignored because of some dark magic with the comma operator
(which shouldn't have been there to begin with). That's why it wasn't
discovered earlier.
See https://en.cppreference.com/w/c/language/operator_other#Comma_operator
for some explanation on how the comma operator works.
2020-12-11 17:27:05 +00:00
Bastien Nocera
d0ecd000ff info-overview: Don't overlink print-renderer helper
Causes build errors linking against the builtin libhandy:
ninja: error: '/home/hadess/Projects/gnome-install/lib/libhandy-1.so', needed by 'panels/info-overview/gnome-control-center-print-renderer', missing and no known rule to make it
2020-12-11 17:24:09 +00:00
Philip Withnall
2809316fd1 user-accounts: Show ‘Add User’ button when panel is locked
Rather than hiding the ‘Add User’ button when the panel is locked, show
it in an insensitive state. This gives the user a hint that in order to
add a new user, they will need to unlock the panel.

See: https://gitlab.freedesktop.org/pwithnall/malcontent/-/issues/26#note_705945

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2020-12-11 17:19:11 +00:00
Philip Withnall
a9bb55c3c4 user-accounts: Make infobar label more relevant
Highlight that the panel needs to be unlocked in order to add new users.
Currently, while the panel is locked, it’s not at all obvious how to add
new users.

In particular, this helps improve the flow from the parental controls
application, which opens g-c-c to allow new users to be added.

See: https://gitlab.freedesktop.org/pwithnall/malcontent/-/issues/26#note_705945

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2020-12-11 17:19:11 +00:00
Philip Withnall
cef9a23e6a cc-permission-infobar: Support customisable titles
Some panels may want to provide more specific context than ‘Change
Settings’.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2020-12-11 17:19:11 +00:00
Bastien Nocera
1619d30780 power: Fix battery gauge colours
Calling gtk_css_provider_load_from_resource() twice will remove any
already loaded resource instead of adding the new CSS with the old. Load
each CSS individually instead.

Fixes: f1bcaf1fbc
2020-12-11 17:16:55 +00:00
Benjamin Berg
04e31ac321 subprojects: Update libhandy
This pulls in a fix for a warning, required for the CI to work on Fedora
rawhide images with a new GCC.
2020-12-11 15:07:58 +01:00
Benjamin Berg
056a684c29 ci: Update to new FDO template 2020-12-11 10:27:47 +01:00
Florentina Mușat
00502e6492 Update Romanian translation 2020-12-10 16:30:25 +00:00
Daniel Mustieles
0575d5e448 Updated Spanish translation 2020-12-02 14:17:04 +01:00
Kjartan Maraas
e60ac96099 Update Norwegian Bokmål translation
(cherry picked from commit 6a62df1603)
2020-11-30 13:49:02 +00:00
Robert Ancell
ae1a37b009 printers: Remove use of gtk_widget_show_all
It is removed in GTK 4.
2020-11-26 16:02:57 +00:00
Robert Ancell
25963ccf8c network: Fix small memory leak 2020-11-24 20:59:58 +00:00
Robert Ancell
e58a504174 network: Remove unused function prototypes 2020-11-24 20:59:58 +00:00
Robert Ancell
ce23d7e0b1 printers: Ensure objects are destroyed when dialog destroyed 2020-11-24 12:31:21 +13:00
Robert Ancell
2c46436636 printers: Remove redundant variable set to NULL 2020-11-24 12:24:38 +13:00
Robert Ancell
5e2e4a55af printers: Cancel adding printer if PPD dialog is cancelled 2020-11-24 12:23:42 +13:00
Robert Ancell
388e59e66a printers: Fix string leaks in new printer dialog 2020-11-24 12:23:42 +13:00
vanadiae
2133739177 flatpak: Update to new gudev's buildsystem
The buildsystem was changed recently from autotools to meson, so it
no longer builds since the default buildsystem is autotools (when no
buildsystem is specified).

Hence, this commit switches to the meson buildsystem for gudev.
2020-11-22 20:06:02 +00:00
Fabio Tomat
597d9ed44e Update Friulian translation 2020-11-20 21:43:55 +00:00
Jordi Mas
82802d1f43 Update Catalan translation 2020-11-20 14:39:18 +01:00
Robert Ancell
15717be456 network: Correctly detect when ethernet devices are hotplugged.
Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/995
2020-11-19 23:32:16 +00:00
Robert Ancell
7fb336e17b printers: Make printers panel have a smaller minimum width.
Allow the ink-level to overlap with the buttons.
2020-11-19 23:24:31 +00:00
Fabio Tomat
345399d589 Update Friulian translation 2020-11-19 03:41:13 +00:00
Tim Sabsch
a060caac88 Update German translation
(cherry picked from commit 3e37033fb6)
2020-11-17 16:12:36 +00:00
Robert Ancell
64a2e54ec6 network: Update design of the WiFi list.
https://gitlab.gnome.org/Teams/Design/settings-mockups/raw/master/wifi/wifi-list.png

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1185
2020-11-16 17:01:16 +13:00
Robert Ancell
3beaa9d158 network: Move signals handlers into .ui files 2020-11-11 20:13:46 +00:00
Robert Ancell
012e9cae25 universal-access: Use modern packing tags in CcZoomOptionsDialog 2020-11-11 20:01:55 +00:00
Robert Ancell
c13a276abd universal-access: Remove unused tags in CcZoomOptionsDialog .ui file 2020-11-11 20:01:55 +00:00
Robert Ancell
99d7097548 universal-access: Rename widgets to standard names and use standard types 2020-11-11 20:01:55 +00:00
Robert Ancell
4ac698eabd universal-access: Split pointing dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
0bd133489d universal-access: Split typing dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
2f4058d7e9 universal-access: Split cursor blinking dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
31102bd256 universal-access: Split repeat keys dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
9aaee503c9 universal-access: Split visual alerts dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
828a2bee45 universal-access: Split sound keys dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
9a6631a31d universal-access: Split screen reader dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
12a19878a6 universal-access: Split cursor size dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
accf1b82a0 universal-access: Launch zoom options dialog modally 2020-11-11 20:01:55 +00:00
Robert Ancell
a27be44a1d universal-access: Set dialog parent externally 2020-11-11 20:01:55 +00:00
Robert Ancell
88b9b2a149 universal-access: Rename ZoomOptions to standard CcZoomOptionsDialog 2020-11-11 20:01:54 +00:00
Robert Ancell
3e489cc650 universal-access: Simplify row activation code.
The existing code used three methods for working out how each row worked.
2020-11-11 20:01:54 +00:00
Adrien Plazas
9ef266eda5 data: List compatible form-factors
This will allow the app to be available in Phosh and PureOS Store.
2020-11-11 19:57:58 +00:00
Robert Ancell
b259d5207b applications: Fix NULL hash table being unreffed.
When clicking away from the applications panel you can see:
(gnome-control-center:95304): GLib-CRITICAL **: 09:12:52.941: g_hash_table_unref: assertion 'hash_table != NULL' failed
2020-11-10 02:08:35 +00:00