Commit graph

19643 commits

Author SHA1 Message Date
Umang Jain
dbf1b0dafb applications: Integrate with malcontent's restrictions
malcontent[1] is  parental(or admin) controlled interface which
can restrict a application's visibility and interactivity for a
standard user. Hence, if the current uid has any restrictions
on its installed applications, filter them out from the applications
panel.

Make the malcontent support enable or disable by setting it up as
a build-time meson option.

[1]: https://gitlab.freedesktop.org/pwithnall/malcontent/
2020-06-17 12:56:43 +01:00
Daniel Mustieles
d86cc0d7a4 Updated Spanish translation 2020-06-17 13:53:00 +02:00
Yuri Chornoivan
b2b257deb0 Update Ukrainian translation 2020-06-16 14:38:56 +00:00
Piotr Drąg
d3300cd690 Update POTFILES.in 2020-06-16 16:25:46 +02:00
Mohammed Sadiq
7683a09ff7 datetime: Use the new time editor 2020-06-15 04:55:39 +00:00
Mohammed Sadiq
32b4348460 test: Add tests for time editor widget 2020-06-15 04:55:39 +00:00
Mohammed Sadiq
63243d886a Add time editor widget 2020-06-15 04:55:39 +00:00
lenke182
5c5b46ddd2 Revert "applications: snap-row: Shorten permission text to prevent button overflow (2)"
This reverts commit a4f42995c75c3d0a35aa7a0dfbc7d0d6bc3090ab
2020-06-15 04:48:16 +00:00
Emin Tufan Çetin
1546ec7d94 Update Turkish translation 2020-06-14 06:47:27 +00:00
Baurzhan Muftakhidinov
3c1c7ade6c Update Kazakh translation 2020-06-12 12:38:26 +00:00
Kukuh Syafaat
03ab270747 Update Indonesian translation 2020-06-12 08:19:51 +00:00
Marek Kasik
fb3e693ddf printers: Clear GSource id when printer removal finishes
Remove GSource used for real deletion of a printer when
the "Undo" notification was dismissed.
Also set the timout id of the notitification to 0 when triggered.
Replace cancel_notification_timeout() with one line.

The issue fixed here could be reproduced this way:
1) Open Printers panel
2) Remove a printer
3) Press back button to go to overview
4) Wait 10 seconds
5) Return to the printers panel
6) Close gnome-control-center

Result:
Critical warning on removal of non-existing GSource
2020-06-08 09:34:27 +00:00
Matej Urbančič
d559afbdcc Updated Slovenian translation 2020-06-05 09:15:11 +02:00
Daniel Mustieles
48a4789a5e Updated Spanish translation 2020-06-04 09:14:32 +02:00
Marek Kasik
cdb4727690 printers: Do not crash due to wrong argument
Callback for handling of "notification-dismiss-button" got its
parameters swapped. This resulted in crash when user closed
notification about deleted printer.
This commit converts the on_notification_dismissed() function
to accept swapped arguments as was probably intended.
2020-06-03 18:02:50 +02:00
Jakub Steiner
c6cc59b973 icon: minor update to the app icon
- more teeth, more adidas
2020-06-02 14:54:36 +02:00
Jordi Mas
e3c9a014a5 Update Catalan translation 2020-05-31 21:27:13 +02:00
Jordi Mas
0ffa3598a5 Update Catalan translation 2020-05-30 22:40:39 +02:00
Yuri Chornoivan
37998dfc71 Update Ukrainian translation 2020-05-28 15:22:09 +00:00
Ludovico de Nittis
520ca91fe8 lock: Add USB protection entry
In the screen lock tab we add a "Forbid new USB devices" entry with a
switch to enable or disable said protection.

The actual USB protection is handled by gnome-settings-daemon and
USBGuard.

We use the "Available" property of gnome-settings-daemon to check
if we are able to offer the USB protection (i.e. USBGuard is
installed with the minimum required version ecc..).
If the host doesn't met the requirements we hide the USB
protetion row entirely.

Given the fact that the always on protection benefits are very slim we
decided to give just an on/off switch that by default controls the
"with lock screen" protection level.
2020-05-28 10:01:24 +02:00
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