Commit graph

4334 commits

Author SHA1 Message Date
Carlos Garnacho
15d3e0e2b5 common: Detect pad devices in GsdDeviceManagerUdev 2016-11-04 23:26:41 +01:00
Carlos Garnacho
176dfca170 common: Add "pad" GsdDeviceType to GsdDeviceManager
So we can recognize pad devices.
2016-11-04 23:26:41 +01:00
Carlos Garnacho
8f9259ac06 common: Implement lookup vfunc in GsdDeviceManagerUdev 2016-11-04 23:26:41 +01:00
Carlos Garnacho
cfec960c56 common: Implement lookup vfunc in GsdDeviceManagerX11
And remove the get_gdk_devices() call, since it's unused and unneeded.
2016-11-04 23:26:41 +01:00
Carlos Garnacho
3db9203dd2 common: Add generic API to map GdkDevices to GsdDevices
Now that we have tablet support in wayland, we can kind of honor
that in the places we're interested. The inverse (looking up the
GdkDevices that a single GsdDevice represents) is unneeded.
2016-11-04 23:26:41 +01:00
Carlos Garnacho
0a6219886b wacom: Add CcWacomTool
Similar to CcWacomDevice vs GsdWacomDevice, CcWacomTool is meant to
replace the GsdWacomStylus object. There is a substantial difference
between these two objects, CcWacomTool offers constructor methods,
it expects the caller to maintain lifetime otherwise. while
GsdWacomStylus objects creation was rather fixed (GsdWacomDevice
created all possible styli on initialization). This latter model
doesn't help us use all the possibilities wrt wayland configurability.
2016-11-04 23:26:41 +01:00
Carlos Garnacho
2b75f5dfcc wacom: Add CcWacomDevice
This is a vast oversimplification of GsdWacomDevice. This one
has code that is largely unnecessary here (mostly devised for g-s-d),
plus it will be even eventually removed from g-s-d (the functionality
is moving into compositor domain), so the code sharing argument
remains pretty weak.

So, CcWacomDevice is thought to take over, just offering the basic
API we after all need in the gnome-control-center side.
2016-11-04 23:26:41 +01:00
Carlos Garnacho
b69cbe4e24 wacom: Add "Test your settings" button to wacom panel
A popover with a CcDrawingArea appears in that case.
2016-11-04 23:26:41 +01:00
Carlos Garnacho
472d87844e wacom: Add CcDrawingArea
This is a testing drawing widget that can be used to the a feeling
of changes to stylus settings.
2016-11-04 23:26:41 +01:00
Lapo Calamandrei
41df6f7997 search: Drop superfluous border from the "Search Location" dialog 2016-11-03 15:00:54 +01:00
Felipe Borges
6b3233359c mouse: Set min-content-height on the scrolled window
Set a minimum content height of 490px for the panel when the
allocated height is smaller than 490px.

490 is an estimated value for the panels to properly fit on netbook
screens. See https://wiki.gnome.org/Design/SystemSettings#Notes

This also drops the max-content-height limit for the scrolled window,
as it is no longer necessary.

https://bugzilla.gnome.org/show_bug.cgi?id=771743
2016-10-24 13:30:10 +02:00
Bastien Nocera
887148033b info: Remove trailing spaces in renderer strings
https://bugzilla.gnome.org/show_bug.cgi?id=773213#c4
2016-10-21 19:40:06 +02:00
Bastien Nocera
3312e42863 info: Show both GPUs on dual-GPU machines
Use "DRI_PRIME=1" trick to launch gnome-session's accelerated checks.

https://bugzilla.gnome.org/show_bug.cgi?id=773213
2016-10-19 12:43:40 +02:00
Bastien Nocera
83c8c57761 info: Get renderer from gnome-session under Wayland
Now that gnome-session's acceleration helper can print the renderer
under Wayland, launch it locally. We need to launch it locally as
Wayland is not available at the time gnome-session would launch the
helper, as there's no Wayland compositor yet.

Note that this code expects the gnome-session helper scripts to live
in $libexecdir, but distributions can use
--with-gnome-session-libexecdir=DIR to pass another one.

https://bugzilla.gnome.org/show_bug.cgi?id=756914
2016-10-18 16:11:30 +02:00
Bastien Nocera
aa8995657f universal-access: Add keywords for Double-click delay
https://mail.gnome.org/archives/gnomecc-list/2016-October/msg00000.html
2016-10-17 11:45:03 +02:00
Bastien Nocera
a396e0578a user-accounts: Simplify the fingerprint manager fetching
Code styling fix.
2016-10-17 11:45:03 +02:00
Felipe Borges
696a3cc497 keyboard: Activate search-as-you-type in the scope of the panel
https://bugzilla.gnome.org/show_bug.cgi?id=772564
2016-10-12 07:29:10 +02:00
Felipe Borges
116f763831 printers: Redesign loading page in the "Add Printer" dialog
This is a redesign based on the newest mockups available at
https://wiki.gnome.org/Design/SystemSettings/Printers#Guidelines

The spinner is displayed while search is taking place AND nothing
has been found. Ongoing search is indicated by the sub-heading.

https://bugzilla.gnome.org/show_bug.cgi?id=760783
2016-10-11 16:55:11 +02:00
Felipe Borges
9eedd9fce8 printers: Update "No Printers Found" page in "Add Printers" dialog
This is a redesign based on the newest mockups available at
https://wiki.gnome.org/Design/SystemSettings/Printers#Guidelines

https://bugzilla.gnome.org/show_bug.cgi?id=760783
2016-10-11 16:54:45 +02:00
Rui Matos
ae113c1522 display: Ensure the preselected resolution matches the current mode
We need to check the interlaced flag too when preselecting the current
resolution in the combo box since we now have separate entries for
interlaced and regular resolutions of the same size.

https://bugzilla.gnome.org/show_bug.cgi?id=772708
2016-10-10 18:16:22 +02:00
Bastien Nocera
6c598fa9d1 keyboard: Fix capture of Alt+PrintScreen shortcuts
Alt+PrintScreen gives you Alt+SysRq. Repair the key value to match user
expectations instead.

https://bugzilla.gnome.org/show_bug.cgi?id=772050
2016-10-10 18:10:57 +02:00
Piotr Drąg
bd0d048944 wacom: use Unicode in translatable strings
See https://developer.gnome.org/hig/stable/typography.html

https://bugzilla.gnome.org/show_bug.cgi?id=772199
2016-10-03 15:21:28 +02:00
Piotr Drąg
1e1509240e user-accounts: use Unicode in translatable strings
See https://developer.gnome.org/hig/stable/typography.html

https://bugzilla.gnome.org/show_bug.cgi?id=772199
2016-10-03 15:21:21 +02:00
Piotr Drąg
6fc7734a66 region: use Unicode in translatable strings
See https://developer.gnome.org/hig/stable/typography.html

https://bugzilla.gnome.org/show_bug.cgi?id=772199
2016-10-03 15:21:16 +02:00
Piotr Drąg
1a38c240d1 printers: use Unicode in translatable strings
See https://developer.gnome.org/hig/stable/typography.html

https://bugzilla.gnome.org/show_bug.cgi?id=772199
2016-10-03 15:21:07 +02:00
Piotr Drąg
eabc878192 network: use Unicode in translatable strings
See https://developer.gnome.org/hig/stable/typography.html

https://bugzilla.gnome.org/show_bug.cgi?id=772199
2016-10-03 15:20:47 +02:00
Piotr Drąg
a3ec58345e display: use Unicode in translatable strings
See https://developer.gnome.org/hig/stable/typography.html

https://bugzilla.gnome.org/show_bug.cgi?id=772199
2016-10-03 15:20:42 +02:00
Piotr Drąg
ce23ff67be color: use Unicode in translatable strings
See https://developer.gnome.org/hig/stable/typography.html

https://bugzilla.gnome.org/show_bug.cgi?id=772199
2016-10-03 15:20:36 +02:00
Bastien Nocera
c7a5451474 color: Use title caps for "Add profile" dialogue title
https://bugzilla.gnome.org/show_bug.cgi?id=763467
2016-10-03 14:53:48 +02:00
Piotr Drąg
d791e5b334 Disambiguate "Reset" string with context 2016-09-27 17:36:19 +02:00
Piotr Drąg
9daa1633e9 Disambiguate "Set Shortcut" string with context 2016-09-25 01:59:45 +02:00
Bastien Nocera
8da6fa28e1 display: Fix possible crash on startup
If no items are added to the GVariantBuilder, g_variant_builder_close()
would throw a critical, g_variant_builder_end() would throw a
segmentation fault.

As this can only happen when there are no items added to the output_ids
hashtable, this should only happen if there are no displays known to
libgnome-desktop (and therefore mutter).

See https://bugzilla.redhat.com/show_bug.cgi?id=1280075

https://bugzilla.gnome.org/show_bug.cgi?id=771875
2016-09-24 02:46:38 +02:00
Felipe Borges
debb21d254 printers: Add grid lines between items in "Add Printer" dialog
This is a redesign based on the newest mockups available at
https://wiki.gnome.org/Design/SystemSettings/Printers#Guidelines

https://bugzilla.gnome.org/show_bug.cgi?id=760783
2016-09-22 11:36:10 +02:00
Felipe Borges
a0e75d5d52 printers: Drop "Add Printer" dialog internal borders
This is a redesign based on the newest mockups available at
https://wiki.gnome.org/Design/SystemSettings/Printers#Guidelines

https://bugzilla.gnome.org/show_bug.cgi?id=760783
2016-09-22 11:35:42 +02:00
Felipe Borges
bd25c8d1e4 printers: Rename "Add a New Printer" dialog title to "Add Printer"
This is a redesign based on the newest mockups available at
https://wiki.gnome.org/Design/SystemSettings/Printers#Guidelines

https://bugzilla.gnome.org/show_bug.cgi?id=760783
2016-09-22 11:32:53 +02:00
Felipe Borges
8f57e4dfc7 printers: Move "Add Printer" dialog buttons to header bar
It also renames the "Authenticate" button to "Unlock".
This is a redesign based on the newest mockups available at
https://wiki.gnome.org/Design/SystemSettings/Printers#Guidelines

https://bugzilla.gnome.org/show_bug.cgi?id=760783
2016-09-22 11:32:53 +02:00
Felipe Borges
cf99cebfb9 printers: Move "Add Printer" button to header bar
This patch introduces a change to the Lock/Unlock logic. From now
on, unlocking the panel causes the "Lock" button to turn into the
"Add Printer" button.

https://bugzilla.gnome.org/show_bug.cgi?id=767600
2016-09-20 15:23:20 +02:00
Marek Kasik
77750c5076 printers: Fix compilation warning
We need to include cups/ppd.h explicitly due to some modification
of structure of CUPS headers
2016-09-20 12:35:42 +02:00
Michael Catanzaro
f4232a2e68 power: Fix wifi device state when opening power panel
This toggle is always set to off when the panel is opened. We should
check whether it's on or not when opening the panel. Currently we are
only subscribed to changes, so we don't check the wifi state until it's
toggled on or off after the panel has been opened the first time.

https://bugzilla.gnome.org/show_bug.cgi?id=771564
2016-09-20 10:49:25 +02:00
Bastien Nocera
4033a3dbca power: Fix "automatic suspend" label not taking batteries into account
Whether or not we have batteries was computed after we updated the
label.

https://bugzilla.gnome.org/show_bug.cgi?id=771532
2016-09-20 10:30:27 +02:00
Bastien Nocera
1abacd2970 power: Warn if automatic suspend timeouts are negative
They should probably have been unsigned integers, but they're not, so
warn if they are. The rest of the code handles negative values as if
they were 0.

https://bugzilla.gnome.org/show_bug.cgi?id=771542
2016-09-20 10:30:27 +02:00
Bastien Nocera
cc4e1349e9 power: Simplify update_automatic_suspend_label()
By replacing the magic 0 by its meaning ("never") as explained in the
gnome-settings-daemon GSettings schemas.

https://bugzilla.gnome.org/show_bug.cgi?id=771542
2016-09-20 10:30:27 +02:00
Bastien Nocera
7dfc6a6c23 network: Fix application of the default gateway
Now that we ensured that only the first address has a gateway entry,
read it and apply it.

See https://bugzilla.gnome.org/show_bug.cgi?id=765969

https://bugzilla.gnome.org/show_bug.cgi?id=771515
2016-09-20 10:30:27 +02:00
Bastien Nocera
d28ffc9902 network: Fix gateway entry visibility
From https://bugzilla.gnome.org/show_bug.cgi?id=765969 as explained by
Dan Winship:
"
libnm-util/libnm-glib had a buggy data model, which nm-connection-editor
(and then gnome-control-center) copied, in which each manually-configured
IP address has an associated gateway address. In reality, NM always just
took the first non-empty gateway value from the address array, and
completely ignored any other gateway values.
libnm represents this more accurately, by having a single gateway
value which is separate from the address array. Ideally, the editors should
show it this way as well (eg, like nmtui does). Failing that, it would
be nice to at least make it so that only the first row in the address
table can have a non-empty gateway value.
"

We went for the second option, only showing a gateway entry for the
first address in the list.

This isn't related to route-specific gateway addresses.

https://bugzilla.gnome.org/show_bug.cgi?id=765969
2016-09-20 10:30:27 +02:00
Bastien Nocera
ab2b13cacd network: Fix compilation warnings
Those come from the fixes made in commits 981c354 and 7f601cf.

https://bugzilla.gnome.org/show_bug.cgi?id=771538
2016-09-20 10:30:27 +02:00
Bastien Nocera
da7be92093 network: Fix warning when opening IPv4 connection editor
https://bugzilla.gnome.org/show_bug.cgi?id=771515
2016-09-20 10:30:27 +02:00
Bastien Nocera
981c354ebb network: Fix crash entering IPv4 routes
The wrong destructor was used for a GPtrArray of NMIPRoute.

See https://bugzilla.gnome.org/show_bug.cgi?id=771251
See https://bugzilla.gnome.org/show_bug.cgi?id=771432
2016-09-14 17:18:32 +02:00
Bastien Nocera
7f601cfed4 network: Fix crash entering IPv4 Gateway
The wrong destructor was used for a GPtrArray of NMIPAddress.

https://bugzilla.gnome.org/show_bug.cgi?id=771432
2016-09-14 17:18:32 +02:00
Bastien Nocera
1ff213fd18 datetime: Fix timezone-gfx test with builddir != srcdir 2016-09-13 12:34:35 +02:00
Bastien Nocera
ca47ff295a network: Fix crash when changing IPv4 DNS
The dns_servers GStrv was not NULL-terminated because we forgot to
append a NULL item to the GPtrArray that we used to construct it.

https://bugzilla.gnome.org/show_bug.cgi?id=771251
2016-09-13 11:45:20 +02:00