Commit graph

113 commits

Author SHA1 Message Date
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
Adrien Plazas
7437ac1fd1 privacy: Use a HdyColumn
This better adapts the panel's size to the window's size, allowing it to
look good on both large and narrow windows.
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
Marek Cernocky
0a2b55d2f2 Added translation context for "1 hour" in Screen Lock dialog 2018-10-11 12:08:17 +02:00
Robert Ancell
442a7b62bb Remove invalid tag in GtkBuilder file
This was introduced in commit fa08a3b
2018-10-11 16:09:14 +13:00
Marek Cernocky
fa08a3bfe6 Added a translation context for the time options in Power and Privacy panels 2018-10-10 20:56:14 +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
389bb1b87c privacy: Replace ifdefs with #pragma once 2018-05-29 10:47:48 +12: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
Piotr Drąg
7265bd53a0 Add translator comments to .desktop files
Icons are confusing translators, and gettext
is unlikely to get fixed any time soon.
2018-02-23 18:49:35 +01:00
Felipe Borges
d14e1b830a privacy: Add link to Location Services privacy policy
Just as available in gnome-initial-setup. Points to
https://location.services.mozilla.com/privacy

https://bugzilla.gnome.org/show_bug.cgi?id=793032
2018-02-01 15:02:56 +01: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
Iñigo Martínez
0dd386f405 build: Migrate from Intltool to Gettext
Recent versions of Gettext are able to translate several formats
that are used in GNOME applications. This patch migrates from
Intltool to Gettext by using meson's i18n features.

https://bugzilla.gnome.org/show_bug.cgi?id=787588
2018-01-23 10:49:31 +01:00
Iñigo Martínez
dc0988d47c build: Remove autotools
To avoid the burden of maintaining multiple build systems, this
patch removes autotools support.

https://bugzilla.gnome.org/show_bug.cgi?id=785414
2018-01-18 12:20:08 +01:00
Piotr Drąg
b65e31323a panels: Remove soft hyphens from .desktop files
With the old shell gone, there is no need to work around cut off panel
names (bug #647087). As it stands now, it only confuses translators
(invisible characters are hard to, well, see).

https://bugzilla.gnome.org/show_bug.cgi?id=792629
2018-01-18 00:12:04 -02:00
Iñigo Martínez
32edd6789e build: Port to meson build system
Meson is a build system focused on speed an ease of use, which
helps speeding up the software development. This patch adds meson
support along autotools.

https://bugzilla.gnome.org/show_bug.cgi?id=785414
2018-01-17 20:09:35 -02:00
Georges Basile Stavracas Neto
b23ef59926 shell-model: Remove old categories
Since we don't maintain two different shells anymore, there
is no need to maintain the two different sets of categories
in the desktop files.

This commit also drops the "#ifdef CC_ENABLE_ALT_CATEGORIES"
blocks, since the previous commit removed that define.

https://bugzilla.gnome.org/show_bug.cgi?id=790923
2017-11-28 17:03:51 -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
Allan Day
8a8e53ab8a Standardize vertical spacing of panels
Ensure that the vertical spacing inside each panel is similar.
This makes the transition between each panel smoother and makes
the control center feel more cohesive.

Settings panels are given 32px above and below their content
and 32px vertical space between major sections. 12px space is
placed below headings.

Bluetooth, displays and printers are not addressed.

https://bugzilla.gnome.org/show_bug.cgi?id=786384
2017-08-20 18:38:42 +02:00
Georges Basile Stavracas Neto
f7bdd3c969 panels: Minor adjustments for the new shell 2017-08-09 19:31:41 +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
Jeremy Bicha
5bbb097035 privacy: Use "destructive-action" style for delete buttons
https://bugzilla.gnome.org/show_bug.cgi?id=778567
2017-02-14 19:11:34 +01:00
Jeremy Bicha
02e556cfb3 privacy: Use ellipses for btns that require confirmation
https://bugzilla.gnome.org/show_bug.cgi?id=778568
2017-02-14 19:09:33 +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
Rui Matos
563155b63f privacy: Align location services label with switch
The GtkSwitch was using 2 grid rows for no reason which made the label
not align with it vertically.

https://bugzilla.gnome.org/show_bug.cgi?id=769426
2016-08-23 18:17:04 +02:00
Allan Day
bebaf47da1 privacy: various layout and cosmetic issues
The dialogs suffered from insufficient spacing, making them feel
cramped. There was also inconsistent use of the dim label style.

https://bugzilla.gnome.org/show_bug.cgi?id=769426
2016-08-23 16:05:36 +01:00
Allan Day
4877b7a609 privacy: location services layout issues
There was way too much space above the description and the
padding around the switch wasn't even.

https://bugzilla.gnome.org/show_bug.cgi?id=769426
2016-08-23 16:05:36 +01: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
Georges Basile Stavracas Neto
2777fd583d panels: use the new categories
Following the previous patch, this patch adds the new alternative
categories to the panels' Desktop files. These alternative categories
are only relevant for the alternative Shell, and do not break the
current Shell in any way.

https://bugzilla.gnome.org/show_bug.cgi?id=767301
2016-06-14 12:16:43 -03:00
Bastien Nocera
5c10ce45b8 panels: Fix translators comments being truncated
Commit b3be076 added soft hyphens along with a comment for translators
to use those soft hyphens. Except that gettext would only grab the one
line out of the four we wrote for translators to read. Put them all on
the same line so that gettext actually extracts those.

https://bugzilla.gnome.org/show_bug.cgi?id=765778
2016-04-28 23:38:00 +02:00
Bastien Nocera
b3be07609a panels: Fix truncated panel names for larger fonts
Note that this fix will not automatically fix translations, which will
need to add soft-hyphens (U+00AD) to their translations themselves, and
will not fix larger fonts for which the split up syllables end up
being bigger than the maximum text width.

It's the best we can do without redesigning the Settings shell, which is
already something planned.

https://bugzilla.gnome.org/show_bug.cgi?id=647087#c13
2016-04-07 16:06:35 +02: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)
d0c1ed6486 privacy: Vertically center "Location Services" label
https://bugzilla.gnome.org/show_bug.cgi?id=763259
2016-03-11 13:42:13 +00:00
Zeeshan Ali (Khattak)
a2ab6d47cd privacy: Better description for 'Location Services'
New string from Allan Day.

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