Commit graph

16509 commits

Author SHA1 Message Date
Carlos Garnacho
8122e43b31 wacom: Add cc_wacom_tool_get_num_buttons()
Uses libwacom underneath.
2016-11-04 23:26:41 +01:00
Carlos Garnacho
d118070a73 wacom: Clean up CcWacomButtonRow
We now only care of pad buttons, so this code can be quite simplified.
2016-11-04 23:26:41 +01:00
Carlos Garnacho
f06203a5b2 wacom: Update .ui files to look more like the mockups 2016-11-04 23:26:41 +01:00
Carlos Garnacho
2f4f3f994c wacom: Update .ui file to reflect GDesktopStylusButtonAction
The set of actions that can be mapped to an stylus button have been
reduced, due to inconsistent semantics in wayland.
2016-11-04 23:26:41 +01:00
Carlos Garnacho
4743770832 wacom: Update to the new data model
There's much going on under the hood here:
- Styli and tablets are now in split views, as per the mockups.
- CcWacomDevice and CcWacomTool are now in use, with the subsequent
  API use changes. Moreover, using these objects means using the
  newer schemas in gsettings-desktop-schemas, so there had to be
  changes in the settings we store too.
- We now use CcTabletToolMap, plus listen to tool proximity events,
  populating the "Stylus" sub-pane with those.
2016-11-04 23:26:41 +01:00
Carlos Garnacho
26ce8c4b2e wacom: Add display mapping API to CcWacomDevice
This can only be used for tablets that are not display nor system
integrated (eg. intuos models). The mapping of tablets with a builtin
display remain in g-s-d/GsdDeviceMapper.
2016-11-04 23:26:41 +01:00
Carlos Garnacho
fe5c5f97c8 wacom: Add CcTabletToolMap
In the wayland tablet input model, compositor and clients may
recognize the different physical styli in use, even if those are
used across compatible tablets.

This object is intended to be used as a persistent memory of
which stylus was used with which tablet. So you 1) can associate
tools and devices when such combination happens, and 2) query the
styli that were previously used with a tablet when it is detected/
plugged.

These associations are stored in two keyfiles in
~/.cache/gnome-control-center/wacom/, one for tablets and other
for styli.
2016-11-04 23:26:41 +01:00
Carlos Garnacho
0dca4e7fe9 common: Handle pad devices in GsdDeviceManagerX11
We cater for the old(=Wacom) and new(=libinput) type/name schemes,
so we don't require a too recent gtk+ just for this.
2016-11-04 23:26:41 +01:00
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
Carlos Garnacho
7933507213 shell/alt: Make CcWindow use custom title widget (if any)
If the current panel requests setting a custom widget, honor that
and place those in the headerbar.
2016-11-04 23:26:41 +01:00
Carlos Garnacho
3fa5526d91 shell: Make CcWindow use custom title widget (if any)
If the current panel requests setting a custom widget, honor that
and place those in the headerbar.
2016-11-04 23:26:41 +01:00
Carlos Garnacho
b24ccb9415 shell: Add cc_panel_get_title_widget() vmethod
So the panel implementations will be able to set a custom widget
in the shell headerbar. It defaults to NULL, so by default panels
set the plain label with the panel title.
2016-11-04 23:26:23 +01:00
Fabio Tomat
03e6ab39a8 Update Friulian translation 2016-11-04 15:48:48 +00:00
Baurzhan Muftakhidinov
829da2ee60 Update Kazakh translation 2016-11-04 04:40:02 +00:00
Baurzhan Muftakhidinov
a9509909be Update Kazakh translation
(cherry picked from commit 7e2481145a)
2016-11-04 04:32:12 +00:00
Muhammet Kara
e7fc25affd Update Turkish translation 2016-11-04 02:10:12 +00:00
Mario Blättermann
4c6d6e1154 Update German translation 2016-11-03 21:43:06 +00:00
Lapo Calamandrei
41df6f7997 search: Drop superfluous border from the "Search Location" dialog 2016-11-03 15:00:54 +01:00
Jiri Grönroos
d336692615 Update Finnish translation
(cherry picked from commit 761223d3cc)
2016-11-01 18:44:30 +00:00
Daniel Mustieles
a0c6f10dce Update Spanish translation 2016-10-31 11:15:35 +00:00
Jordi Mas
126d34ec3d Fix to Catalan translation 2016-10-31 08:50:44 +01:00
Dz Chen
a16045eab8 Update zh_CN translation 2016-10-30 20:47:11 +08:00
Aurimas Černius
764719015f Updated Lithuanian translaton 2016-10-30 13:49:45 +02:00
Dušan Kazik
77a30a1071 Update Slovak translation
(cherry picked from commit dea9070918)
2016-10-30 07:45:55 +00:00
Balázs Meskó
ae2d7dcbb9 Update Hungarian translation 2016-10-29 14:31:53 +00:00
Charles Monzat
6783052290 Update French translation
(cherry picked from commit 99d952e68e)
2016-10-29 08:05:26 +00:00
Mario Blättermann
d93c48f0d3 Update German translation
(cherry picked from commit ce9c93f3c1)
2016-10-28 20:16:14 +00:00
Rafael Fontenelle
e17a5b8484 Update Brazilian Portuguese translation
(cherry picked from commit ab89ddddbb)
2016-10-28 14:31:56 +00:00
Marek Černocký
8a4a403bab Updated Czech translation 2016-10-28 09:21:00 +02:00
Trần Ngọc Quân
c0c0502656 Updated Vietnamese translation
Signed-off-by: Trần Ngọc Quân <vnwildman@gmail.com>
2016-10-28 07:47:45 +07:00
Anders Jonsson
ca6283aa5c Update Swedish translation
(cherry picked from commit 7478d861f6)
2016-10-27 20:48:30 +00:00
Piotr Drąg
03e832c6a9 Update Polish translation 2016-10-27 18:38:44 +02:00
Piotr Drąg
a12c73a37c Update POTFILES.in 2016-10-27 18:35:09 +02:00
gogo
7d5522c1f0 Update Croatian translation 2016-10-26 19:22:10 +00:00
Fabio Tomat
5e56f5bac4 Update Friulian translation 2016-10-25 19:52:27 +00: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
Muhammet Kara
8916a8a603 Update Turkish translation 2016-10-23 19:52:05 +00:00
Gábor Kelemen
a5c6ec2734 Update Hungarian translation 2016-10-23 17:55:32 +00: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
Fabio Tomat
1ea7c182eb Update Friulian translation
(cherry picked from commit 25c118b785)
2016-10-17 14:33:52 +00:00