Commit graph

69 commits

Author SHA1 Message Date
Marco Melorio
b2eaa54d7d privacy: Add screen lock page
The UI file is not formatted on purpose to facilitate the review. It
will be reformatted in a later commit.
2023-08-03 08:42:10 +00:00
Marco Melorio
81dd3de928 panels: Add empty Privacy panel with navigation
It will be filled in later commits.
2023-08-03 08:42:10 +00:00
Matthias Clasen
a4bdc37760 Remove the privacy panel
It has been turned into a herd of panels.
2019-11-07 14:40:07 +13:00
Robert Ancell
1752cf3bb5 Make /etc/os-release support common
The existing code is used in multiple places with slightly different
implementations.
2019-09-09 21:42:10 +00:00
Iain Lane
39e31e912f
privacy: Remove {get,set}_on_off_label2
There's only one instance of this pattern - make the function specific
to that case rather than generic.

The current code is leaking the Label2Data struct and the GSettings
signal connection. The leak of the signal connection was causing a crash
in case the callback was called after the label was destroyed. Instead
of just directly fixing these problems, let's eliminate the intermediate
struct and just support the specific case we're interested in directly.
2019-02-19 11:04:07 +00:00
Matthias Clasen
c41071f997
privacy: Use the location portal permissions
The location support in flatpak is changing with the
next releases of geoclue and xdg-desktop-portal, and
the permission table is changing as well. Adapt to these
changes.

This may need some version check, or migration.
2019-01-07 10:59:30 -02:00
Matthias Clasen
2950debe18
privacy: handle microphone and camera
This is just adding switches for these new settings
to the panel, no changes to the design.
2019-01-07 10:59:30 -02:00
Adrien Plazas
063656de0d privacy: Ellipsize the labels
This will help the window to fit narrow screens.
2018-11-29 00:48:16 +00:00
Adrien Plazas
e9a5f87080 privacy: Simplify the rows' margins and spacing
Simplify the margins of the rows' items and diminish the spacing between
the elements of a row. This will help the window to fit narrow screens.
2018-11-29 00:48:16 +00:00
Robert Ancell
33c91ce738 privacy: Use GtkTemplate
Switch from GtkBuilder to using GtkTemplate.
Rename widget IDs to be more readable.
Drop widget IDs that are not used.
Move code into the .ui file that can be.
2018-10-18 01:01:07 +00:00
Robert Ancell
bb7e0e71e1 privacy: Don't use gtk_widget_show_all
It is removed in GTK+ 4
2018-10-11 22:21:34 +00:00
Georges Basile Stavracas Neto
a44d395804 Revert "privacy: Cache D-Bus proxies"
This reverts commit 754434fa0d.
2018-08-27 12:56:20 +00:00
Robert Ancell
b81b93193a privacy: Replace GObject boilerplace with G_DECLARE_TYPE 2018-05-29 10:47:48 +12:00
Benjamin Berg
c2f601a9d4 Move common panel code from shell/ to panel/common
This creates a new static library called libwidget which the shell links
against.
2018-04-17 15:26:59 +02:00
Georges Basile Stavracas Neto
754434fa0d privacy: Cache D-Bus proxies 2018-04-06 22:23:39 -03:00
Georges Basile Stavracas Neto
f52d038283 Revert "panels/privacy: add network connectivity checking toggle"
This reverts commit dbbea7ddcb.
2018-01-26 16:24:15 -02:00
Georges Basile Stavracas Neto
d3097ee60e Revert "privacy: Don't define structs defined in unavailable libraries"
This reverts commit 484b83f821.
2018-01-26 16:24:03 -02:00
Bastien Nocera
484b83f821 privacy: Don't define structs defined in unavailable libraries
Doing:
typedef struct _NMClient NMClient;
when there's no NMClient available barely makes the code more readable,
and doesn't clear show when it would be used.

https://bugzilla.gnome.org/show_bug.cgi?id=737362
2018-01-26 15:14:14 +01:00
James Henstridge
dbbea7ddcb panels/privacy: add network connectivity checking toggle
NetworkManager supports toggling the periodic network check,
a check that by itself can be a security threat since it leaks
information about the host.

This patch adds a periodic network check toggle to the Privacy
panel. This is only enabled when a recent enough NetworkManager
is supported.

https://bugzilla.gnome.org/show_bug.cgi?id=737362
2018-01-26 11:26:31 -02:00
Julian Sparber
b0833430c6 privacy: update location state in panel when it changes
Add a signal handler for changes of the location setting to update
(on/off/In use) lable.

https://bugzilla.gnome.org/show_bug.cgi?id=785891
2017-11-23 15:43:33 +01:00
Sebastien Bacher
be90d59991 privacy: use the correct gsd housekeeping bus name
https://bugzilla.gnome.org/show_bug.cgi?id=737624
2017-11-01 17:05:45 +01:00
Allan Day
87568e9250 Harmonize list box row layouts
While it isn't possible, or even advisable, to make all the list
box rows the same height, using a number of standard heights will
make the control center feel more harmoneous.

Adust the height of the list box rows in Color, Date & Time,
Mouse & Touchpad, Network, Privacy, Region & Language, Sharing
and Universal Access. Makes standard rows that contain labels
and/or controls 58px tall. Some other rows, such as those which
contain two lines of text, are allowed to be taller.

https://bugzilla.gnome.org/show_bug.cgi?id=786384
2017-08-20 18:38:48 +02:00
Bastien Nocera
7758b4258c privacy: Change references from xdg-app to flatpak 2017-03-18 03:36:42 +01:00
Jeremy Bicha
22daedad49 privacy: Set destructive-action for confirmation buttons only
https://bugzilla.gnome.org/show_bug.cgi?id=778567
2017-02-15 11:48:26 +01:00
Bastien Nocera
346f3609b7 privacy: Rename retval in get_privacy_policy_url()
It's a URL, not a name.
2016-08-29 13:57:10 +02:00
Bastien Nocera
398641370d privacy: Fix quoting of distro name and privacy URL
Unquote the distribution name and the privacy policy url in
the Problem Reporting dialogue, as those can be shell-quoted (the format
used by /etc/os-release is "shell-compatible").

https://bugzilla.gnome.org/show_bug.cgi?id=770260
2016-08-29 11:46:53 +02:00
Zeeshan Ali (Khattak)
790b2c3198 privacy: Update for PermissionStore DBus API changes
As xdg-app has been renamed to Flatpak, the permission store's bus name
and interface name have been changes as well.

https://bugzilla.gnome.org/show_bug.cgi?id=766603
2016-07-25 12:28:37 +01:00
Zeeshan Ali (Khattak)
336851f997 privacy: React to changes in permissions store
Currently if control-center is already running with privacy panel in
foreground and user authorizes a new application to gain access to
location information from gnome-shell dialog, this change doesn't get
reflected in the privacy panel to user until they exit privacy panel.

This change fixes this by reacting to changes to permissions store.

https://bugzilla.gnome.org/show_bug.cgi?id=765006
2016-07-25 12:28:37 +01:00
Zeeshan Ali (Khattak)
48c66a5dad privacy: Only disable apps switches
Let's not disable the whole Applications section when "Location Services"
are disabled but rather only the individual app permission switches.

https://bugzilla.gnome.org/show_bug.cgi?id=763259
2016-03-11 13:42:13 +00:00
Zeeshan Ali (Khattak)
76e3a53b2d privacy: Fix margins around location dialog widgets
https://bugzilla.gnome.org/show_bug.cgi?id=763259
2016-03-11 13:42:13 +00:00
Zeeshan Ali (Khattak)
e7509321a5 privacy: Per-app location access control
Latest gnome-shell (3.19.91) now asks user if they'd want to allow the
application to gain access to their location information when an
application tries to access this information. The user's choice is saved
in xdg-app's permission store and user can no longer can change their
mind about this later on. Hence the need to provide these per-application
controls in control-center.

https://bugzilla.gnome.org/show_bug.cgi?id=761245
2016-03-03 16:07:58 +00:00
Zeeshan Ali (Khattak)
d77ec8e821 privacy: Indicate location service being used
As per the new mockup, we should indicate when location service is in
use:

https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/system-settings/privacy/privacy-3.20.png

https://bugzilla.gnome.org/show_bug.cgi?id=761245
2016-03-03 16:07:58 +00:00
Zeeshan Ali (Khattak)
3ca5b11d7a privacy: Move "Location Services" into a dialog
We are about to add per-application settings for geolocation access and
they won't really fit well in the main view. This is as per design
mockup:

https://dl.dropboxusercontent.com/u/5031519/privacy/privacy-3.20.png

https://bugzilla.gnome.org/show_bug.cgi?id=761245
2016-03-03 16:07:58 +00:00
Bastien Nocera
72e25ad405 privacy: Mark new string for translation
https://bugzilla.gnome.org/show_bug.cgi?id=742375
2015-01-21 19:24:54 +01:00
Bastien Nocera
7977521336 privacy: Add automatic problem reporting setting
This functionality requires:
- a system service owning the org.freedesktop.problems.daemon [1]
- a session service listening to the "report-technical-problems"
  GSetting and acting upon it [2]
- /etc/os-release linking to a PRIVACY_POLICY_URL [3]

[1] Added in ABRT in this commit:
73a98e3aaf
[2] Added to abrt-applet, see:
https://github.com/abrt/gnome-abrt/issues/107
[3] Defined in systemd in:
http://cgit.freedesktop.org/systemd/systemd/commit/?id=ed9e8bf66d1b3a00aa7fb6d57ec89dd8a3b8d7dc
Note that Fedora does not currently define this URL.
See https://bugzilla.redhat.com/show_bug.cgi?id=1182635

https://bugzilla.gnome.org/show_bug.cgi?id=742375
2015-01-21 18:09:31 +01:00
Rui Matos
2a1455ff7f privacy: Drop deprecated API usage
https://bugzilla.gnome.org/show_bug.cgi?id=740986
2014-12-05 16:13:29 +01:00
Zeeshan Ali (Khattak)
7bcf4c189f privacy: Add location setting
For now its just a switch to enable/disable geolocation through
gnome-shell's setting. In future we'll hopefully at least have
controls to enable/disable geolocation for applications from here.

https://bugzilla.gnome.org/show_bug.cgi?id=731119
2014-08-19 19:03:52 +02:00
Bastien Nocera
f7f5914e89 privacy: Use new listbox helpers
https://bugzilla.gnome.org/show_bug.cgi?id=732106
2014-06-24 11:35:31 +02:00
Yosef Or Boczko
4a1f62e6dd privacy: Use header bar in all the dialogs
https://bugzilla.gnome.org/show_bug.cgi?id=724299
2014-04-28 17:29:18 +03:00
Richard Hughes
e2c0fd8f8a privacy: Disable the software usage reporting due to various bugs
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=726234
2014-03-13 14:26:47 +00:00
Richard Hughes
dcb22fc333 privacy: Add option to control GNOME Software usage stats
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=723619
2014-02-04 18:56:32 +00:00
Daniel Mustieles
2c5951819d Updated FSF's address 2014-01-29 11:27:38 +01:00
Yosef Or Boczko
65c8497406 privacy: Use margin-start/end instead of margin-left/right
https://bugzilla.gnome.org/show_bug.cgi?id=712661
2013-11-19 22:28:45 +02:00
Rui Matos
d9196b80d1 privacy: Remove unused toplevel window from .ui file
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:03 +02:00
Rui Matos
33202b9c79 privacy: Don't leak the dialogs
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:03 +02:00
Srinivasa Ragavan
e9a6e679fc privacy: confirm before emptying trash or purging temporary files.
Fixes bug #703163
2013-08-20 19:11:33 +05:30
Kalev Lember
ef1f9e3398 privacy: Remove Name & Visibility section
We no longer show the user's name in the GNOME Shell top bar or in the
lock screen and this dialog no longer has any purpose.

https://bugzilla.gnome.org/show_bug.cgi?id=706301
2013-08-19 19:51:49 +02:00
Alexander Larsson
eac949bd91 privacy: Convert to GtkListBox
https://bugzilla.gnome.org/show_bug.cgi?id=702164
2013-07-02 16:19:09 +01:00
Bastien Nocera
1fd7812154 privacy: Fix default "Retain history" value
Our loop to set the combo box to the current value of
recent-files-max-age didn't work properly for the negative (and default)
-1 value that means "Forever". This fixes the default display value.

https://bugzilla.gnome.org/show_bug.cgi?id=703359
2013-07-01 09:04:54 +02:00
Bastien Nocera
fb08f0b729 privacy: Link to new help page
https://bugzilla.gnome.org/show_bug.cgi?id=701091
2013-05-28 12:17:42 +02:00