Commit graph

18247 commits

Author SHA1 Message Date
Georges Basile Stavracas Neto
87b13dd209
meson: Bump minimum meson version 2019-01-09 01:48:21 -02:00
Christian Kellner
06894e020a thunderbolt: fix double free in bolt client
In the async version of the client creation, i.e. when a new client
is created via bolt_client_new_async and an error happens it will be
passed to g_task_return_error which takes ownership of it but the very
same error will also be free'd via g_autoptr; remove the latter.

This is a port of bolt commit e96f8bd47587b167ae46c8ac9347003f69f931dd
2019-01-08 17:29:05 +01:00
Daniel Mustieles
4496680e86 Updated Spanish translation 2019-01-08 15:54:14 +01:00
Jeremy Bicha
dfcc2ba83d Revert "applications: Remove markup from a translatable string"
This reverts commit d2c759fcae.

The commit caused the Applications panel to crash with
Unhandled tag: <attributes>

Apparently CInfoRow doesn't know how to handle attributes.
2019-01-07 21:34:33 -05:00
Carlos Garnacho
67c8ef42d7 wacom: Align buttons/links to the left side
Looks more natural this way. All buttons and links have been moved
into the main grid so this is possible. The links additionally had
to be removed all the padding so they actually align visually.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/issues/238
2019-01-07 21:24:15 +00:00
Piotr Drąg
d2c759fcae applications: Remove markup from a translatable string 2019-01-07 20:06:03 +01:00
Piotr Drąg
7d7591dc5f Update POTFILES.in 2019-01-07 20:02:38 +01:00
Jeremy Bicha
d9e07460ae night-light: Add a frame around Schedule section for accessibility
This way the Schedule label is correctly read as a header
for the section by screen readers
2019-01-07 10:57:17 -05:00
Jeremy Bicha
7f6d19441f night-light: Add mnemonic_widget and ATK descriptions for a11y 2019-01-07 10:41:32 -05:00
Benjamin Berg
0209694978 wifi: Show WEP with a broken security icon
WEP is rather insecure, and using it is a bad idea in general. So show
it as insecure rather than falsely advertising it as being secure.
2019-01-07 15:30:06 +01:00
Benjamin Berg
d126b3db5e wifi: Hook up new connection list widget 2019-01-07 15:29:23 +01:00
Benjamin Berg
fb7e09eb46 wifi: Add new connection list widget
This widget keep track of connections and APs and automatically
creates/refreshes the corresponding list entries.
2019-01-07 15:29:23 +01:00
Benjamin Berg
eec7841027 wifi: Add set_checked function to connection row 2019-01-07 15:29:23 +01:00
Benjamin Berg
5c81b12647 wifi: Handle multiple APs in a connection row
Note that this also changes the way to detect that the connection is
currently active. This change is not required but but does simplify the
code a little bit.
2019-01-07 15:29:23 +01:00
Benjamin Berg
3962aa3028 wifi: Show the connection name when it is different to SSID
In almost all cases, the SSID will be identical with the connection name
(in fact, we do not even allow modifying the connection name). However,
as it is now, we can end up with multiple connections with the same name
in the list.

Change the list to indicate the SSID separately in a way that will not
result in any changes in the usual case.
2019-01-07 15:29:23 +01:00
Benjamin Berg
8f706f45bd wifi: Remove unused code in wireless_try_to_connect
The code tries to establish a connect by using an existing connection.
However, if that is possible the function will not even be called.

Remove the code in question.
2019-01-07 15:29:23 +01:00
Benjamin Berg
fb089b7c55 wifi: Use new CcWifiConnectionRow widget
This is in preparation to optimise the AP list updating.
2019-01-07 15:29:23 +01:00
Benjamin Berg
0fb86c82d2 wifi: Add new CcWifiConnectionRow widget for the AP list
This is in preparation to optimize list to not be rebuild completely for
every change.
2019-01-07 15:29:20 +01:00
Benjamin Berg
417624cdab wifi: Fix invalid variant unref in connection editor
If the WiFi secret is not set, then a NULL variant is passed back. We
should not free this variant. Fix this by using g_autoptr instead.
2019-01-07 15:28:38 +01:00
Benjamin Berg
6fc89e8e8d shell: Fix warning by marking initialize_dependencies static 2019-01-07 15:28:38 +01:00
Benjamin Berg
88183c0e9f wifi: Remove old and unused column definitions 2019-01-07 15:28:38 +01:00
Benjamin Berg
0922f1095a wifi: Avoid one level of indentation
Convert an if into an early return rather than nesting the entire logic.
2019-01-07 15:28:38 +01:00
Jeremy Bicha
0858fd5d36 night-light: Turn on Night Light for 5 seconds when adjusting Color Temp
Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/issues/147
2019-01-07 14:13:38 +00:00
Jeremy Bicha
bc68377e77 night-light: minor adjustments to dialog layout
- Move Schedule label to its own row
- Center align "From" and "To" labels

https://gitlab.gnome.org/Teams/Design/settings-mockups/blob/master/displays/night-light.png
2019-01-07 14:13:38 +00:00
Jeremy Bicha
d1fc7e64b3 night-light: Add Color Temperature slider
This adds a scale to change the color temperature from 3000K to
6000K. A mark is added to the default value and a second one for
aesthetics.

Initial implementation by Benjamin Berg
Color choices by Daniel Foré and elementary OS

Closes #147
2019-01-07 14:13:37 +00:00
Jeremy Bicha
a5f902c124 night-light: Update UI when gsettings schemas are nonwritable
Presumably, they are nonwritable because a system administrator has locked
these settings down.

https://help.gnome.org/admin/system-admin-guide/stable/dconf-lockdown.html

If Night Light is locked on, don't show the Off button.

If Night Light is locked off, don't show the Manual or "Sunset to Sunrise" buttons.

If Manual is force-enabled, don't show "Sunset to Sunrise" or the other way around.
2019-01-07 14:13:37 +00:00
Jeremy Bicha
07c1de1893 night-light: Move Off to the schedule switcher row
As recommended by the mockup:
https://gitlab.gnome.org/Teams/Design/settings-mockups/blob/master/displays/night-light.png
2019-01-07 14:13:37 +00:00
Jeremy Bicha
e5d8b6275a night-light: Drop the sunrise/sunset indicator
It's not in the latest design mockup:

https://gitlab.gnome.org/Teams/Design/settings-mockups/raw/master/displays/night-light.png
2019-01-07 14:13:37 +00:00
Ryuta Fujii
e326723474 Update Japanese translation 2019-01-07 13:59:33 +00:00
Ryuta Fujii
f24dec738f Update Japanese translation 2019-01-07 13:37:23 +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
Georges Basile Stavracas Neto
1245fd787b
Introduce Applications panel
This is an initial implementation of most of the
intended functionality for this panel. Flatpak
integration itself is implemented by spawning
"flatpak info -m $appid", which gives us the
metadata in key file format, and allows flatpak
to be a runtime dependency.

Even after removing the .desktop suffix, there can
still be a difference between the app ID generated
in this way and the flatpak ID, since flatpaks are
allowed to export files whose prefix is the flatpak
ID. Fix this by pulling the X-Flatpak key out of
the desktop file. This would cause trouble for
org.libreoffice.LibreOffice-math.
2019-01-07 10:59:30 -02:00
Ondrej Holy
a800e97510 user-account: Use the same Categories as other panels
gnome-user-accounts-panel.desktop has some differences in "Categories" in
comparison to other desktop files provided by gnome-control-center for no
obvious reason.

Add "GNOME" and "GTK" categories, which are used in all other desktop files.

Remove "System" and use just "Settings" main category. This among others
prevents the following output from desktop-file-validate:

/usr/share/applications/gnome-user-accounts-panel.desktop: hint: value
"System;Settings;X-GNOME-Settings-Panel;X-GNOME-DetailsSettings;" for key
"Categories" in group "Desktop Entry" contains more than one main
category; application might appear more than once in the application menu

All other desktop files uses just the "Settings" main category.

But maybe this is totally useless patch, because it seems that GNOME Shell
do not care about the most of categories and GNOME Classic do not show those
desktop files in menus at all.
2019-01-05 14:40:35 +00:00
Jeremy Bicha
021140d859 datetime: Use accessible-description instead of -name for Hour & Minute
In my testing, default orca didn't seem to read the "Hour" or "Minute"
words when we used accessible-name but it does work with
accessible-description.

This is the only place we used accessible-name in gnome-control-center
but we use accessible-description in a few other places.
2019-01-05 12:48:31 +00:00
Jeremy Bicha
7cac185494 universal-access: add search keywords
Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/issues/1
2019-01-05 12:43:14 +00:00
Carlos Garnacho
a4cc9d35b9 wacom: Always try to add the stylus page UI on proximity
This used to be done only if the stylus was "brand new", because pages for
previously known styli are added when the tablet is detected/plugged. There
are however situations where this may break: eg. the stylus was previously
known through a tablet that is not plugged ATM. The tool is however "not
new" so no UI is added for it.

We should try to add the stylus invariably on proximity, add_stylus_page()
ensures there is only one page per tool anyway.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/issues/315
2019-01-05 12:36:59 +00:00
Jeremy Bicha
2e250f9dc8 printers: allow driver name to be selected from details dialog
The field can be copy-and-pasted elsewhere
and this allows screen readers to read this field.
2019-01-03 16:23:03 -05:00
Jeremy Bicha
61470a2a01 printers: Set mnemonic widget for labels
This allows screen readers to read the label for each widget.
2019-01-03 16:21:10 -05:00
Ryuta Fujii
9f24a731a6 Update Japanese translation 2019-01-02 17:34:05 +00:00
Emin Tufan Çetin
ec41e4312a Update Turkish translation 2018-12-29 11:21:29 +00:00
Anders Jonsson
3d23ff9ce0 Update Swedish translation 2018-12-28 21:17:34 +00:00
Fabio Tomat
879e3730ae Update Friulian translation 2018-12-25 16:39:49 +00:00
Peter Hutterer
def41bc0fe wacom: ignore the wacom driver's touch tool type
When the wacom driver handles the touch device, we get a tool id of 0x3. Let's
ignore that because we don't need a tool for the touch node.

Ideally we should be able to rely on the GDK tool type but that one is always
GDK_DEVICE_TOOL_TYPE_UNKNOWN see
https://gitlab.gnome.org/GNOME/gtk/merge_requests/453

A GTK bug (also fixed in that MR) prevents the tool id from updating.
Until that GTK bug is fixed the pen will only be detected if it is the first
event from this physical device. If the touch node sends an event before the
pen, the pen won't be detected.
2018-12-18 20:46:02 +00:00
Peter Hutterer
a82b975367 wacom: Only write a generic pen to the keyfile when it's previously unseen
When we bring a generic pen (serial 0) into proximity, the tool is initialized
as "generic" and mapped to the current tablet. This is then written out into
the keyfile, so we end up with something like:

[056a:00d1]
Styli=generic;

On the next g-c-c start the generic pen is pre-loaded from the keyfile but not
yet associated with the tablet. When the pen gets into proximity the
association was handled like a completely new pen, thus triggering a key file
entry again. Eventually, our styli list looked like this:

[056a:00d1]
Styli=generic;generic;generic;generic;generic;generic;

Fix this by remembering whether we freshly initialized the tool or whether it
was already known. Since we can only have one generic tool per tablet (because
we wouldn't notice the difference between two physical tools) we just skip the
write of the keyfile.

Fixes #313
2018-12-18 20:46:02 +00:00
Peter Hutterer
d925ea3c6c wacom: Map wacom-driver-specific generic IDs to 0
The xf86-input-wacom driver doesn't use 0 for tools that do not have an id or
serials. Serials default to 1, and the tool id is either 0x2 for stylus or 0xa
for eraser, see xf86WacomDefs.h, the defines for STYLUS_DEVICE_ID and
ERASER_DEVICE_ID.

libwacom uses 0xfffff and 0xffffe for the generic pens and all the lookup code
we have in the panel is designed for a serial/tool id of 0. So let's just map
the wacom driver IDs to 0 at the only transition point between Gdk and our
panel.

No devices with serials 0 or hw ids 2/10 exist, so this shouldn't have side
effects. This only affects X + xf86-input-wacom.
2018-12-18 20:46:02 +00:00
Georges Basile Stavracas Neto
63603b75df ci: Add flatpak-devel to CI images
[skip-ci]
2018-12-11 12:06:27 -02:00
Georges Basile Stavracas Neto
5eef2f4cff ci: Prevent stop_review from running on image builds
[skip ci]
2018-12-11 11:21:21 -02:00
Georges Basile Stavracas Neto
5791b9a213 ci: Document review stage
[skip-ci]
2018-12-11 11:21:04 -02:00
Carlos Garnacho
b7f80316aa ci: Use copr rpm for recent gsettings-desktop-schemas
[skip-ci]
2018-12-11 14:00:29 +01:00