Commit graph

7113 commits

Author SHA1 Message Date
Philip Withnall
055bf8feeb privacy: Mention non-sandboxed apps can always use camera/microphone/GPS
These toggles only apply to the portal system, so only restrict access
for sandboxed apps. Non-sandboxed apps (installed into `/usr/bin`) can
always access these resources on typical distributions.

In future, perhaps integration with a MAC (like SELinux) could restrict
access to the camera/microphone/GPS for non-sandboxed applications —
but we invented sandboxing to avoid having to do that, so it seems
unlikely that’s ever going to be implemented. If it is, this wording
can change again.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Fixes: #741
2022-11-22 13:15:01 +00:00
Mohammed Sadiq
6b0cc4399a a11y: Remove no longer used code 2022-11-21 21:49:24 +05:30
Mohammed Sadiq
a25a782496 a11y: Use the new design
Fixes #1084 #1085 #1646 #1701
2022-11-21 21:49:24 +05:30
Mohammed Sadiq
7217bfde6d a11y: Add icon resources 2022-11-21 21:02:06 +05:30
Sam Hewitt
81c1836e80 a11y: Add new panel icons 2022-11-21 20:22:13 +05:30
Mohammed Sadiq
a472f7433a a11y: Add cc-ua-zoom-page
Implement the new design[0] for Zoom panel

[0] https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/a11y/a11y-wires.png
2022-11-21 20:03:32 +05:30
Mohammed Sadiq
eb31393eb4 a11y: Add cc-ua-mouse-page
Implement the new design[0] for Mouse panel

[0] https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/a11y/a11y-wires.png
2022-11-21 19:16:50 +05:30
Mohammed Sadiq
574c1af6c7 a11y: Add cc-ua-typing-page
Implement the new design[0] for Typing panel

[0] https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/a11y/a11y-wires.png
2022-11-21 19:16:50 +05:30
Mohammed Sadiq
ee78ec9ef1 a11y: Add cc-ua-hearing-page
Implement the new design[0] for Hearing panel

[0] https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/a11y/a11y-wires.png
2022-11-21 19:16:50 +05:30
Mohammed Sadiq
dbeb41bdc9 a11y: Add cc-ua-seeing-page
Implement the new design[0] for Seeing panel

[0] https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/a11y/a11y-wires.png
2022-11-21 19:16:50 +05:30
Mohammed Sadiq
ce28d41a9f a11y: Add cc-ua-macros
Add a list of macros for settings and settings keys, so that
we don't have to define them in every class they are used
2022-11-21 17:24:10 +05:30
Mohammed Sadiq
c917fa73c3 common: Don't Handle list-row switch state manually
This was a hack added for libhandy-0, which is no longer required.
Also, this hack results in the switch not working when gtk animations
are turned off.
2022-11-18 04:08:22 +00:00
Nitin Joshi
57405b83d2 info-overview: Add "Firmware Version" row
Users often need information like Firmware version, serial number. Hence, it's
better to provide it by default in GNOME.
This changes is to display Firmware version only in "About" menu.

Reference: #1543
2022-11-16 09:34:56 +00:00
Mohammed Sadiq
824891338d network: Remove old network proxy code 2022-11-15 12:33:51 +00:00
Mohammed Sadiq
500af8e63a network: Use the new proxy widget 2022-11-15 12:33:51 +00:00
Mohammed Sadiq
82bf61580e network: Implement new proxy settings design
This commit adds a proxy page as per the design
https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/network/network-wires.png
2022-11-15 12:33:51 +00:00
Mohammed Sadiq
2893f8e3f9 color: Select first device row only if non-NULL
Otherwise we might read some invalid memory resulting in a crash
2022-11-15 16:45:00 +05:30
Pablo Correa Gómez
5d10656689 wwan: wait for apn_list to exist to add SIM providers
This avoids the situation where a duplicate entry is created if
Settings is started with the wwan panel disabled, a previous connection
exists, and the panel is later enabled.

Fixes #1468
2022-11-08 16:12:22 +00:00
Mohammed Sadiq
d45bda09d2 wwan: Update operator code when 3gpp operator code changes
And update APN list if they are not populated yet

Fixes #1468
2022-11-08 16:12:22 +00:00
Mohammed Sadiq
3cdc27dcc7 wwan: Set apn access method before adding to list
So that accessing APN details returns the right values when
they are inquired immediately after they are added to the list.
2022-11-08 16:12:22 +00:00
Mohammed Sadiq
55fda5b569 wwan: Update apn list only if device is available
Otherwise APN list from mobile-provider-info may not be
properly loaded
2022-11-08 16:12:22 +00:00
Mohammed Sadiq
05371feaf3 wwan: Track apn list updates 2022-11-08 16:12:22 +00:00
Kate Hsuan
fbafcc77a0 firmware-security: improve datetime format parsing
Showing the datetime string using cc_util_get_smart_date_time().
2022-10-25 23:49:16 +00:00
Kate Hsuan
df2bd37837 panels: cc-util: a smart date time
Convert the DateTime to string with time.
The format will be:
smart_date, \%X
2022-10-25 23:49:16 +00:00
Michael Catanzaro
bc01d726f5 info-overview: never upscale the system logo
If we scale up, the logo will become blurry. We should only ever be
willing to scale down, not scale up.

Hopefully fixes #1709
2022-10-25 15:08:53 -05:00
Michael Catanzaro
db3be4c498 network: fix crashes in eap-method-simple
When the stored password is missing, we will crash passing NULL to a
non-nullable GTK API function.

Fixes #1905
2022-10-24 10:50:31 +00:00
Pablo Correa Gómez
ab7d752de9 default-apps: Show SMS and Calls conditional to modem being present
This avoids coggling the UI for those devices for which a modem
is not present, as x-scheme-handler/tel and x-scheme-hanlder/sms
are of no use in such cases
2022-10-21 14:35:40 +02:00
Pablo Correa Gómez
f1e46f0983 default-apps: Add default app to handle x-scheme-handler/sms 2022-10-21 11:48:41 +02:00
Newbyte
ea534c48d8 default-apps: Add default app to handle x-scheme-handler/tel 2022-10-21 11:48:41 +02:00
Pablo Correa Gómez
843c12c2e2 default-apps: Increase readability by using default GtkGrid naming 2022-10-21 11:48:41 +02:00
Pablo Correa Gómez
bbdb641b3d default-apps: Remove unnecessary blank labels
These labels were introduced in an ancient time (pre 2011) when
the panel still consisted in a table. They are unnecessary
and have no UI impact at this point
2022-10-21 11:48:41 +02:00
Jake Dane
89443fe550 desktop: Remove obsolete Bugzilla entries
The `X-GNOME-Bugzilla-*` entries were for use by bug-buddy, a GNOME 2
technology that's been gone for over a decade. These entries are
obsolete and can be removed from all desktop files.

The `X-GNOME-Settings-Panel` entry is also obsolete as far as I can
tell and only these panels had it in their desktop file: notifications,
sharing, sound and user-accounts. These entries can also be removed.

After removing the `X-GNOME-Bugzilla-*` entries, the desktop files have
no more variables in them. The meson `configure_file` step is therefor
pointless—there are no variables to configure. As such the
`*.desktop.in.in` files are renamed to `*.desktop.in` to reflect this
and `meson.build` files are modified to remove `configure_file` step.
2022-10-20 13:20:09 +00:00
Andy Chi
e0f22a04bb user-account: Return duplicate notification when the finger is exist 2022-10-20 10:09:04 +00:00
Felipe Borges
b5a62e9c6e info-overview: Add "Kernel Version" row
Fixes #1112
2022-10-20 10:07:51 +00:00
Felipe Borges
afd173c799 info: Make get_hardware_model use a hostnamed property getter
This way we have a convenient way to obtain systemd-hostnamed
properties.
2022-10-20 10:07:51 +00:00
Felipe Borges
a9312cdea3 background: Check for bg name before sorting wallpapers
Otherwise a missing <name> tag in an wallpaper XML can couse
Settings to crash.

Fixes #2087
2022-10-17 15:13:34 +00:00
Kaustubh Desale
2538075fd5 Fixes uneven padding in Formats search bar. 2022-10-15 18:32:56 +00:00
Alessandro Bono
3182b7019f net-device-ethernet: Don't check device iface name
If the interface name is wrong we shouldn't add the device in the first
place. The device comes from NM. If the interface name is wrong is a bug
at NM level.
2022-10-12 13:56:19 +02:00
Alessandro Bono
f6fa2fafec net-device-ethernet: Prevent double free
Fixes: ee53bfd8b6
2022-10-12 13:56:19 +02:00
Luciano da Silva Ribas
ee53bfd8b6 network: Fixed Network profiles shown on wrong device
Added missing interface name during network profile creation.

Fixes #353

Fixed issues from code review
2022-10-12 08:43:22 +00:00
Alexander Mikhaylenko
53fd0d69e2 firmware-security: Don't use .view on rows
I'm not sure what the intention was here, but it didn't work. It made rows
white in light variant (same as other rows), but even darker than they were
before in dark.
2022-09-22 15:34:56 +00:00
Felipe Borges
6b076a7765 user-accounts: Disconnect fingerprint reading devices when closing dialog
Otherwise when users close and reopen the window they will face a
“Failed to claim fingerprint device Synoptics Sensors: the device is
already claimed by another process” error message.

Fixes #1983
2022-09-22 14:32:33 +02:00
Lubomir Rintel
ad0db360e2 network: Fix an assertion failure
Entering the Wi-Fi page without connected to a network trips an
assertion failure:

  (gnome-control-center:14943): nm-CRITICAL **: 16:36:16.732: nm_access_point_get_frequency: assertion 'NM_IS_ACCESS_POINT(ap)' failed

  Thread 1 "gnome-control-c" received signal SIGTRAP, Trace/breakpoint trap.
  0x00007ffff7c8ee51 in g_logv () from /lib64/libglib-2.0.so.0
  (gdb) bt
  #0  0x00007ffff7c8ee51 in g_logv () at /lib64/libglib-2.0.so.0
  #1  0x00007ffff7c8f0d3 in g_log () at /lib64/libglib-2.0.so.0
  #2  0x00007ffff63b7b8a in nm_access_point_get_frequency () at /lib64/libnm.so.0
  #3  0x00000000005965b1 in connect_details_page (self=0x4658210) at ../panels/network/connection-editor/ce-page-details.c:264
  #4  0x0000000000597f9e in ce_page_details_new (connection=0xfbde70, device=0xd52360, ap=0x0, editor=0x50a4350) at ../panels/network/connection-editor/ce-page-details.c:570
  #5  0x0000000000593273 in net_connection_editor_set_connection (self=0x50a4350, connection=0x7fffcc096770) at ../panels/network/connection-editor/net-connection-editor.c:522
  #6  0x0000000000593f7d in net_connection_editor_new (connection=0x7fffcc096770, device=0xd52360, ap=0x0, client=0xd3a0c0) at ../panels/network/connection-editor/net-connection-editor.c:790
  #7  0x0000000000582b16 in show_details_for_row (self=0xcc3040, row=0x46587b0, list=0x4273b40) at ../panels/network/net-device-wifi.c:987
  #8  0x00007ffff7d83845 in g_cclosure_marshal_VOID__OBJECTv () at /lib64/libgobject-2.0.so.0
  #9  0x00007ffff7da1b79 in g_signal_emit_valist () at /lib64/libgobject-2.0.so.0
  #10 0x00007ffff7da1eb8 in g_signal_emit_by_name () at /lib64/libgobject-2.0.so.0
  #11 0x000000000058d41f in on_row_configured_cb (self=0x4273b40, row=0x46587b0) at ../panels/network/cc-wifi-connection-list.c:251
  #12 0x00007ffff7da1b79 in g_signal_emit_valist () at /lib64/libgobject-2.0.so.0
  #13 0x00007ffff7da1eb8 in g_signal_emit_by_name () at /lib64/libgobject-2.0.so.0
  #14 0x000000000058c4c4 in configure_clicked_cb (self=0x46587b0) at ../panels/network/cc-wifi-connection-row.c:513
  #15 0x00007ffff7da1b79 in g_signal_emit_valist () at /lib64/libgobject-2.0.so.0
  #16 0x00007ffff7da1cb3 in g_signal_emit () at /lib64/libgobject-2.0.so.0
  ...
2022-09-22 09:22:12 +00:00
Felipe Borges
12bbd3ea0c printers: Set "use-underline" for Authenticate button in Jobs dialog
The label of the button indicates a mnemonic (_Authenticate).

Fixes #2062
2022-09-19 15:01:05 +02:00
Bastien Nocera
da7b4db162 power: Don't assert if we can't find the widget for a profile
In some cases, it was possible for a profile to be set (directly, or
through a hold) even though it wasn't supported. Don't assert in those
cases.

Closes: #1504
2022-09-16 11:07:09 +00:00
Carlos Garnacho
92b784f561 wacom: Use Mutter's input mapping interface to show calibration UI
When the "Automatic" mapping is chosen for a display-attached tablet device,
Mutter is in charge of applying the heuristics to map the tablet device to
its most likely attached display.

When that happens, the Wacom panel does not know better (or anything)
to show the calibration UI than picking a GdkMonitor and hoping for the
best.

To improve this situation, Mutter has been added a D-Bus interface so it
is possible to query it for the output that a tablet device is mapped to.
This commit adds the support for this interface, so that the Wacom panel
does know to pick the right GdkMonitor to fullscreen the calibration UI on.
2022-09-01 23:14:07 +02:00
Kate Hsuan
ac74cf695c firmware-security: hide expander arrow when event description is unavailable
Showing an arrow for an empty expander row for the event confuses the user.
The user may misunderstand there is the information behind the arrow and then
the user will click it but will not get any response from the panel.
Therefore, to prevent confusing the user, the expander will be hidden for a
event with an empty description.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2031

Signed-off-by: Kate Hsuan <hpa@redhat.com>
2022-08-29 16:11:14 +00:00
Matthias Clasen
920302bb52 background: Allow all images
The code was filtering with a small list of known
image mimetypes, needlessly. Just allow any
image/* mimetypes.

Fixes: #2036
2022-08-25 17:06:12 +00:00
Richard Hughes
12352f8c1a firmware-security: Move the workaround for UEFI Secure Boot lower
This fixes the toplevel security level to correctly show failed.
2022-08-25 14:37:14 +00:00
Felipe Borges
ff904208cb sound: Fix sound alert selection
The mapping between sounds and the UI elements was wrong.

Fixes #2026
2022-08-25 16:08:24 +02:00