Commit graph

19773 commits

Author SHA1 Message Date
Marco Trevisan (Treviño)
3c158afa5e fingerprint-dialog: Disconnect signals and reset stages on enroll-restart
This happens if going to the previous page when enrolling a finger
2020-05-27 10:20:48 +00:00
Marco Trevisan (Treviño)
6bbbd8d04e fingerprint-dialog: Don't limit the number of maximum enroll stages
There are devices with more than 10 enroll stages we should handle, so
instead of hardcoding a grid of images, let's just build this dynamically
using a flowbox
2020-05-27 10:20:48 +00:00
Marco Trevisan (Treviño)
97965e1619 fingerprint-dialog: Don't use sync calls for deleting fingerprints
Don't make the UI to block while deleting the saved prints (that might take
some time, especially for devices with internal storage) but just use a task
with a thread that:
 - Mark the fingerprint row as unsenstive
 - Calls the method to delete prints
 - In the same thread, calls the method to fetch the updated informations
 - Returns in set_fingerprint_row_cb where we update the UI again

Again this would be nicer to be done just using async calls but this is
something to do in some bigger refactor.
2020-05-27 10:20:48 +00:00
Marco Trevisan (Treviño)
014c7d77cc user-panel: Only load the fingerprint state once
Don't load the fingerprint information all the times we update the view, but
load it during initialization only.

The fingerprint state in fact can only change because we requested it
through the dialog that we control already and that would update the
relevant widgets state anyways.

Also, given that the fingerprint settings are visible for the current user
anyway, we can track this only with a simple boolean, instead of using a set
of UIDs.
2020-05-27 10:20:48 +00:00
Marco Trevisan (Treviño)
3107279759 user-panel: Pass a cancellable to the fingerprint operations
And cancel it when changing user and on disposition
2020-05-27 10:20:48 +00:00
Marco Trevisan (Treviño)
8ace2050f7 fingerprint-dialog: Make the operations cancellable 2020-05-27 10:20:48 +00:00
Marco Trevisan (Treviño)
e12bfed744 user-panel: Don't wait for fprintd on initialization
When opening the user panel we g-c-c performs lots of sync operations that
may cause a noticeable slowdown, especially when a fingerprint device is
available, in fact set_fingerprint_label() call leads to:
  - DBus sync request of the system bus
  - fprintd dbus-activation
    + This leads to sync opening of all the devices, that might also cause
      a slowdown, depending on the devices drivers
  - Dbus sync calls to the device to get the list of enrolled fingerprints

Only after we've a reply, we update the g-c-c UI and continue the execution.

The fingerprint dialog code would need some global refactor, but to fix this
without big changes, let's just use GTask that runs a thread in wich we do
all the sync operations, and once done we finally update the widget state.
2020-05-27 10:20:48 +00:00
Marco Trevisan (Treviño)
826f83c48a user-panel: Add reference to selected user and clear on dispose
The object was wrongly unreffed (as ActUserManager has the ownership) on
user switch, so add a reference instead when assigning it to our private
ref and unref it on dispose.
2020-05-27 10:20:48 +00:00
Florentina Mușat
244b6af44b Update Romanian translation 2020-05-24 10:45:08 +00:00
sicklylife
78f636c8a8 Update Japanese translation 2020-05-21 14:00:28 +00:00
sicklylife
f2e3c0a979 Update Japanese translation 2020-05-21 13:54:46 +00:00
Yi-Jyun Pan
45452c044c Update Chinese (Taiwan) translation 2020-05-18 13:56:38 +00:00
Cheng-Chia Tseng
80f6fd41eb Update Chinese (Taiwan) translation 2020-05-16 16:02:33 +00:00
Cheng-Chia Tseng
a045170743 Update Chinese (Taiwan) translation 2020-05-16 15:55:10 +00:00
Cheng-Chia Tseng
badecac810 Update Chinese (Taiwan) translation 2020-05-16 03:43:17 +00:00
Daniel Mustieles
28e5cc321f Updated Spanish translation 2020-05-14 12:03:22 +02:00
Yuri Chornoivan
d68386ed04 Update Ukrainian translation 2020-05-13 07:43:25 +00:00
prshnt19
b513417f7f lock: Fix typo 2020-05-13 05:04:50 +00:00
Mohammed Sadiq
a623a3a2e3 sharing: Use the new list row patterns 2020-05-12 22:33:15 +00:00
Mohammed Sadiq
70ded401b0 notifications: Use CcListRow for list box rows
This will reduce the amount of code used and let the user change
the item value clicking on the row.
2020-05-12 22:24:00 +00:00
Elia Geretto
1bf5d4f55f printers: Do not authenticate SMB servers when search field is edited
When the search field in the "Add Printer" dialog is edited, no
authentication with a remote SMB server should be attempted. The server
should just be added to the list and marked with "Server requires
authentication". The user can then authenticate the server by clicking
on it.

The behavior described above is probably the intended one when the code
was written, since there is no closure registered for the
"authentication-required" signal in the function this commit modifies.
This commit should simply restore the intended behavior.

Resolves: https://gitlab.gnome.org/GNOME/gnome-control-center/issues/755
2020-05-12 22:16:32 +00:00
Benjamin Berg
57685f0343 tests: Show why tests are not split
The GTest python class tries to split tests into separte runs. However,
that can fail, show why.
2020-05-11 19:43:38 +00:00
Benjamin Berg
8658123f8b ci: Run ASAN on privileged runner
It needs to be able to attach to processes.
2020-05-11 19:43:38 +00:00
Florentina Mușat
96586bb928 Update Romanian translation 2020-05-09 16:39:39 +00:00
Florentina Mușat
a92e5eec23 Update Romanian translation
(cherry picked from commit 39abcd5ce9)
2020-05-09 13:53:03 +00:00
Daniel García Moreno
3bcea691b8 user-accounts: Use custom setting to override faces
This patch provides an easy way to override default faces using
org.gnome.desktop.interface.avatar-directories settings configuration
that can be used in gnome-initial-setup too so downstream can override
default avatar faces without the need of a patch.

Fix https://gitlab.gnome.org/GNOME/gnome-control-center/issues/678
2020-05-07 15:06:02 +00:00
Georges Basile Stavracas Neto
c0e0ffa267 build: Depend on gsettings-desktop-schemas 3.37.1
The 'avatar-directories' key is a 3.37.1 addition.
2020-05-07 15:06:02 +00:00
Benjamin Berg
0052889e11 ci: Specify full registry path for forks
Otherwise forks will try to find the image in their own registry which
cannot work.
2020-05-07 16:04:58 +02:00
Benjamin Berg
01f3aa00d8 ci: Switch to use the FDO CI templates
This effectively means we do not build on non-x86_64. But the template
gives us a well maintained base.

Also added into the image is gsettings-desktop-schemas from git, so that
the scheduled job only needs to be manually run when an update is
needed.
2020-05-07 15:27:55 +02:00
Yuri Chornoivan
de83737b14 Update Ukrainian translation 2020-05-06 09:42:33 +00:00
Dušan Kazik
28458c60a9 Update Slovak translation
(cherry picked from commit 739d4e4c6f)
2020-05-05 17:42:11 +00:00
Ondrej Holy
502583fcc5 user-accounts: Move add user button tooltip in UI file
The add user button is shown only if the panel is unlocked, but
tooltips are also set for the case when the panel is not unlocked.
Let's move the tooltip text in the UI file directly and remove
the obsolete codes.
2020-05-05 09:25:41 +00:00
Ondrej Holy
1a38a971ec user-accounts: Show add user button also if no users found
The add user button is not shown currently if no users are found
even if the panel is unlocked. Let's show the button to allow
user creation in this case.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/988
2020-05-05 09:25:41 +00:00
Ondrej Holy
ac46922b65 user-accounts: Show permissions toolbar also if no users found
The permissions toolbar is not shown currently if no users are found
which prevents creation of new user accounts. Let's show the toolbar
also in this case.

https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/988
2020-05-05 09:25:41 +00:00
Dušan Kazik
62bc79353d Update Slovak translation
(cherry picked from commit d8d7a527fc)
2020-05-05 09:21:10 +00:00
Piotr Drąg
6d4554a49a Update Polish translation
Fixes https://gitlab.gnome.org/Teams/Translation/pl/-/issues/7
2020-05-02 21:50:22 +02:00
Cheng-Chia Tseng
4c5a7f9497 Update Chinese (Taiwan) translation 2020-05-02 08:01:45 +00:00
Dušan Kazik
81e7f89b5f Update Slovak translation
(cherry picked from commit 7e88c6defa)
2020-05-02 06:14:26 +00:00
Cheng-Chia Tseng
c217b7bb0c Update Chinese (Taiwan) translation
(cherry picked from commit e678355ccb)
2020-04-30 17:36:51 +00:00
Cheng-Chia Tseng
180e162acc Update Chinese (Taiwan) translation
(cherry picked from commit cc6f8ed148)
2020-04-30 17:31:54 +00:00
Cheng-Chia Tseng
940580dd5d Update Chinese (Taiwan) translation
(cherry picked from commit 77900b7d25)
2020-04-30 17:10:35 +00:00
Cheng-Chia Tseng
272637ebba Update Chinese (Taiwan) translation
(cherry picked from commit db7c371aea)
2020-04-30 17:03:02 +00:00
Daniel Mustieles
f6777a25b0 Updated Spanish translation 2020-04-28 17:44:36 +02:00
Emin Tufan Çetin
f25653f357 Update Turkish translation 2020-04-28 13:38:22 +00:00
Yuri Chornoivan
8dd00dc7d6 Update Ukrainian translation 2020-04-25 07:56:51 +00:00
Danial Behzadi
64307eb586 Update Persian translation 2020-04-24 20:11:42 +00:00
Daniel Rusek
b365d01272 Update Czech translation 2020-04-22 12:37:36 +00:00
Robert Ancell
e74a41794c info-overview: Remove unnecessary initialization of string.
Was introduced in 4d5f81e, but doesn't make sense or do anything.
2020-04-21 10:02:17 +12:00
Robert Ancell
e32702ee87 online-accounts: Use g_autoptr for GError usage
Fixes a GError leak.
2020-04-17 14:57:40 +12:00
Jiri Grönroos
ec0442d655 Update Finnish translation
(cherry picked from commit b24817a6fb)
2020-04-16 17:22:49 +00:00