Commit graph

28 commits

Author SHA1 Message Date
Pablo Correa Gómez
7f7b65545c all: meson: do not specify resources from gresource files as dependencies
Meson extracts them by itself and add them as dependencies for the target.
It means one less location to keep track of files, and a lot less boilerplate
around the meson files
2023-05-24 08:34:14 +00:00
Alessandro Bono
908cb548bf microphone: Make the switches toggleable when disabled
Allow to toggle the applications switches when the main permission
is disabled.
2023-02-14 18:15:33 +00:00
Alessandro Bono
c892b69b40 microphone: Move switch from the header bar to the panel
Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2198
2023-02-07 10:14:40 +00:00
Alessandro Bono
3c60eb9e76 microphone: Remove empty status page
We are going to move the main switch from the header bar to the panel.
There is no more need for an empty page.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2191
2023-02-07 10:14:40 +00:00
Alessandro Bono
96a4ab5787 microphone: Update comment
Helps: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2196
2023-02-03 14:56:39 +00:00
Alessandro Bono
fe7c8221ad microphone: Update name
Helps: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2196
2023-02-03 14:56:39 +00:00
Jake Dane
37a579b6b0 Replace "application" with "app"
This is part of an initiative to use "app" instead of "applications",
see: https://gitlab.gnome.org/Teams/Design/initiatives/-/issues/123

Redo of !1539 that was closed by a ghosting user.

Replaces "application" with "app" in user facing strings in these
panels:

- applications
- camera, location, microphone
- default-apps
- multitasking
- notifications
- removable-media
- search
- usage
- user-accounts

Fixes: #2208.
2023-01-23 11:10:28 +00:00
Felipe Borges
9285b0deb5 privacy: Update empty-state pages for more accurate permissions
To indicate that the permissions only apply to sandboxed applications.

See #741 (comment 1457422)
2022-12-01 09:59:21 +00:00
Felipe Borges
dc6633636e microphone: Fix typo where "cameras" was used instead of "microphones"
See https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1500#note_1600160
2022-11-22 18:19:50 +01:00
Allan Day
6aeda05ada privacy: Correct awkward description text
Improve phrasing, remove redundent text, and tidy up the structure.

Fixes #2155
2022-11-22 14:41:50 +00:00
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
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
Lukáš Tyrychtr
6f887237fd Add a label to the master mic switch 2022-05-29 23:12:04 +00:00
Marco Trevisan (Treviño)
adffd7a2df Panels: Update Privacy panels keywords to match specific contents
Ensure we use more specialized keywords for privacy panels, without
repeating the unneeded ones.
2022-05-10 04:18:20 +00:00
Rafael Fontenelle
ba3410f380 microphone: remove extra newline and spaces
The extra line was causing newline chars and whitespaces to be added
to translation strings
2022-02-12 22:37:31 +00:00
Christopher Davis
3f851bd793 microphone: Use AdwActionRow 2022-02-12 11:51:21 +00:00
Christopher Davis
ab950bbfb5 microphone: Use AdwPreferences{Page,Group} 2022-02-12 11:51:21 +00:00
Christopher Davis
c2c9334a59 microphone: Use AdwStatusPage 2022-02-12 11:51:21 +00:00
Jakub Steiner
13376ecb8b Add individual app icons 2022-01-31 14:08:22 +00:00
Georges Basile Stavracas Neto
4300a4a290 panels: Use new CcPanel helpers for title widgets
This should significantly simplify these panels, by not forcing
them to override GObject.constructed all the time. Most panels
were quite straightfoward.
2022-01-20 02:23:42 +00:00
Georges Basile Stavracas Neto
0ab20af9ba panels: Switch to CcPanel content
Start porting panels to the new panel format. This commit
temporarily makes panels have two titlebar, which will be
fixed soon.
2022-01-20 02:23:42 +00:00
Jan Beich
37b29c32cb meson: drop unused argument for i18n.merge_file()
Ignored in Meson < 0.60.0, deprecated since 0.60.1 and fatal since 0.61.0.

panels/applications/meson.build:10:5: ERROR: Function does not take positional arguments.
panels/background/meson.build:10:5: ERROR: Function does not take positional arguments.
panels/camera/meson.build:10:5: ERROR: Function does not take positional arguments.
[...]
2022-01-07 17:22:43 +00:00
Christopher Davis
981a8cea7b panels: Use .boxed-list instead of .content
The `.content` style class is deprecated in favor
of the `.boxed-list` style class, which is named
after the design pattern it's used for.
2021-12-16 12:52:44 -08:00
Georges Basile Stavracas Neto
800cab08bf microphone: Port to GTK4 2021-12-14 22:34:21 -03:00
Adrien Plazas
f06379e30c Replace HdyColumn by HdyClamp
In libhandy 1, HdyClamp replaces HdyColumn. This stops setting values
when they match HdyClamp's defaults.
2020-07-20 08:04:28 +02:00
Robert Ancell
93b14a4339 panel: Move shared GCancellable code into panel class
Make the panel class provide a cancellable that will be cancelled when the panel
is destroyed. Panel implementations can use this and not have to mangage the
cancellable themselves. Consolidate cases where panels had multiple cancellables
that were all being used for this behaviour.
2020-02-03 09:36:24 +13:00
Robert Ancell
f1e0666eca Simplify usage of g_variant_iter_loop
Access strings via pointers, which reduces copying and the chances of leaks.
Simplify cases where string arrays were modified - no need to replace the value as it's no longer allocated.
Always complete the loop so references are freed.
2019-11-27 21:25:34 +00:00
Matthias Clasen
38f5446302 Add a microphone panel
This is a broken out version of the privacy panel dialog.
2019-11-07 14:40:07 +13:00