Commit graph

18273 commits

Author SHA1 Message Date
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
Carlos Garnacho
b7f601344b build: Depend on gsettings-desktop-schemas >= 3.31.0
This is necessary for the wacom output setting changes.
2018-12-11 13:25:50 +01:00
Peter Hutterer
008b1f68c8 common: fix udev-based device removal
libgudev allocs a new GUdevDevice object for each event, so the pointer value
for the 'add' udev event differs from the one for the 'remove' event. If we
use the pointer value as hash table key, we'll never remove the device.
Switch to use the syspath of the device instead, that one is unique per
device.

Fixes #309
2018-12-11 10:56:28 +10:00
Robert Ancell
fb09d9c090 printers: Use g_error_matches where appropriate 2018-12-10 10:13:28 +13:00
Matej Urbančič
fc58110dee Updated Slovenian translation 2018-12-08 22:00:05 +01:00
Jeremy Bicha
35679c6877 mouse: Remove deprecated gdk_error_trap_push|pop calls
Replace with gdk_x11_display_error_trap_push|pop

https://gitlab.gnome.org/GNOME/gnome-control-center/issues/20
2018-12-07 15:43:38 +00:00
Jeremy Bicha
3d686de41c power: stop using deprecated up_client_get_devices
and bump required upower version to 0.99.8 which
introduced up_client_get_devices2

This is a follow-up from
https://gitlab.gnome.org/GNOME/gnome-control-center/merge_requests/82
2018-12-07 14:55:43 +00:00
Benjamin Berg
3cbe926f46 tests: Disable ATK as it is currently creating issues 2018-12-07 15:49:13 +01:00
Benjamin Berg
69c1f2242f ci: Empty commit to rebuild fedora images
[skip ci]
2018-12-07 15:05:32 +01:00
Carlos Garnacho
07410fb2f8 wacom: Update to newer "output" setting
The semantics are pretty much the same for opaque tablets, not
much else to do here.
2018-12-06 14:45:40 +00:00
Daniel Mustieles
0540c7c42e Updated Spanish translation 2018-12-04 16:34:16 +01: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
Adrien Plazas
e76fca5e6e online-accounts: Ellipsize the labels
This will help the window to fit narrow screens even with long
application names.
2018-11-29 00:48:16 +00:00
Adrien Plazas
851cdc8eb3 online-accounts: Wrap the header label
This will help the window to fit narrow screens.
2018-11-29 00:48:16 +00:00
Adrien Plazas
0d901e086d online-accounts: Remove a hardcoded minimum width
This will help the window to fit narrow screens.
2018-11-29 00:48:16 +00:00
Adrien Plazas
8c92368e7c online-accounts: 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
Adrien Plazas
60973f3a82 search: Ellipsize the labels
This will help the window to fit narrow screens even with long
application names.
2018-11-29 00:48:16 +00:00
Adrien Plazas
7679f29a7a search: 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
Adrien Plazas
587ca5ce98 notifications: Ellipsize the labels
This will help the window to fit narrow screens even with long
application names.
2018-11-29 00:48:16 +00:00
Adrien Plazas
42d64e3baf notifications: 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
983857e827 printers: Use g_clear_object with cancellable
Safer than g_object_unref.
Also remove explicit initialization to NULL - all values start as NULL.
2018-11-28 11:48:49 +00:00
Robert Ancell
dd9ddf4c9c printers: Remove goto
Not necessary since the use of g_autoptr
2018-11-28 11:48:49 +00:00
Robert Ancell
241121fa20 printers: Use g_autoptr 2018-11-28 11:48:49 +00:00