After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 668546 - Wacom control panel needs ability to map tablets to specific outputs
Wacom control panel needs ability to map tablets to specific outputs
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Wacom
unspecified
Other All
: Normal normal
: ---
Assigned To: Peter Hutterer
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-01-24 00:21 UTC by Jason Gerecke
Modified: 2012-02-16 18:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
wacom: Bring over updates from gnome-settings-daemon (1.73 KB, patch)
2012-01-24 00:21 UTC, Jason Gerecke
none Details | Review
wacom: Make 'set_display_by_output' public and rename (2.36 KB, patch)
2012-01-24 00:21 UTC, Jason Gerecke
none Details | Review
wacom: Barebones mapping panel implementation (12.56 KB, patch)
2012-01-24 00:21 UTC, Jason Gerecke
none Details | Review
wacom: Add a gsd-wacom-mapping-panel to each tablet page (2.14 KB, patch)
2012-01-24 00:21 UTC, Jason Gerecke
needs-work Details | Review
Update attached patches based on review (1.73 KB, patch)
2012-01-24 20:50 UTC, Jason Gerecke
none Details | Review
wacom: Bring over updates from gnome-settings-daemon (1.73 KB, patch)
2012-01-24 20:51 UTC, Jason Gerecke
none Details | Review
wacom: Add public 'gsd_wacom_device_set_display' function (2.95 KB, patch)
2012-01-24 20:52 UTC, Jason Gerecke
committed Details | Review
wacom: Barebones mapping panel implementation (13.02 KB, patch)
2012-01-24 20:52 UTC, Jason Gerecke
committed Details | Review
wacom: Add a gsd-wacom-mapping-panel to each tablet page (2.14 KB, patch)
2012-01-24 20:52 UTC, Jason Gerecke
none Details | Review
bug fixes (4.65 KB, patch)
2012-02-14 10:47 UTC, Bastien Nocera
none Details | Review

Description Jason Gerecke 2012-01-24 00:21:38 UTC
Display tablets such as the Cintiq provide automatic mapping to an output
but no method is provided for mapping non-display tablets such as the
Intuos4. This functionality is exposed through xsetwacom and would be
useful to have a GUI for.
Comment 1 Jason Gerecke 2012-01-24 00:21:40 UTC
Created attachment 205931 [details] [review]
wacom: Bring over updates from gnome-settings-daemon

Brings in NULL pointer fixes from gnome-settings-daemon (bug 668545).
Comment 2 Jason Gerecke 2012-01-24 00:21:42 UTC
Created attachment 205932 [details] [review]
wacom: Make 'set_display_by_output' public and rename

Makes the 'set_display_by_output' function public so that callers
who know exactly which output they want to map the output to can
easily do so. Function is renamed to 'gsd_wacom_device_set_display'
to match the public naming scheme.
Comment 3 Jason Gerecke 2012-01-24 00:21:44 UTC
Created attachment 205933 [details] [review]
wacom: Barebones mapping panel implementation

Provides a barebones implementation of a panel for selecting the
display to map a tablet to. This implementation uses a combo box
instead of the Display-panel-like UI specified by the mockup since
my Cairo and GTK-fu are weak.
Comment 4 Jason Gerecke 2012-01-24 00:21:46 UTC
Created attachment 205934 [details] [review]
wacom: Add a gsd-wacom-mapping-panel to each tablet page

Allows users to set the output mapping for tablets connected
to their system. As with the prior patch, this is not the
final UI. This exposes the functionality for testing while
the interface specified by the mockup is built.
Comment 5 Bastien Nocera 2012-01-24 12:41:26 UTC
I still don't like the idea of using the GnomeRR API for anything but what's really required, and I certainly don't like seeing it in the GsdWacomDevice API.

Could we use monitor indexes instead? This will also make drawing the desktop much easier.
Comment 6 Jason Gerecke 2012-01-24 20:50:45 UTC
Created attachment 206020 [details] [review]
Update attached patches based on review
Comment 7 Jason Gerecke 2012-01-24 20:51:14 UTC
Created attachment 206021 [details] [review]
wacom: Bring over updates from gnome-settings-daemon

Brings in NULL pointer fixes from gnome-settings-daemon (bug 668545).
Comment 8 Jason Gerecke 2012-01-24 20:52:48 UTC
Created attachment 206022 [details] [review]
wacom: Add public 'gsd_wacom_device_set_display' function

Provides a way for callers to set the 'display' key, without
requring them to know details of the how its stored. All that
is required is the monitor number.
Comment 9 Jason Gerecke 2012-01-24 20:52:53 UTC
Created attachment 206023 [details] [review]
wacom: Barebones mapping panel implementation

Provides a barebones implementation of a panel for selecting the
display to map a tablet to. This implementation uses a combo box
instead of the Display-panel-like UI specified by the mockup since
my Cairo and GTK-fu are weak.
Comment 10 Jason Gerecke 2012-01-24 20:52:57 UTC
Created attachment 206024 [details] [review]
wacom: Add a gsd-wacom-mapping-panel to each tablet page

Allows users to set the output mapping for tablets connected
to their system. As with the prior patch, this is not the
final UI. This exposes the functionality for testing while
the interface specified by the mockup is built.
Comment 11 Bastien Nocera 2012-02-08 19:30:07 UTC
Comment on attachment 206021 [details] [review]
wacom: Bring over updates from gnome-settings-daemon

No need to add those as separate patches, it's now a single make call.
Comment 12 Bastien Nocera 2012-02-08 19:30:55 UTC
Comment on attachment 206022 [details] [review]
wacom: Add public 'gsd_wacom_device_set_display' function

Did commit something like that in g-s-d, as mentioned on github. See:
http://git.gnome.org/browse/gnome-settings-daemon/commit/?id=3e94c6e03316aa1c92f2a1ef4e8fada7d3f27a73
Comment 13 Bastien Nocera 2012-02-08 19:45:49 UTC
For the 2 other patches, given the work that you've tried to achieve wrt reusing parts of display panel, I think we're better taking another tack on solving the problem.

Similarly to your cc-wacom-mapping-panel.[ch] code, create a button widget to replace the tablet image on the left. When clicked, have it pop up a dialog with 2 main options:

----------------------------------
| (*) Map to entire desktop      |
|                                |
| ( ) Map to specific monitors   |
|    [ ] Monitor #1              |
|    [ ] Monitor #2              |
|    [ ] Monitor #3              |
|                                |
|                  [Cancel] [OK] |
----------------------------------

This is the same functionality as presented in the mockup, but with a design that's implementable straight away. Then we can work on reusing parts of the display panel, probably moving those bits to gnome-desktop where the rest of the XRandR stuff happens.

Only caveat with the above is making sure that only contiguous monitors can be selected. Will you have time to work on that?
Comment 14 Bastien Nocera 2012-02-14 10:47:18 UTC
Created attachment 207517 [details] [review]
bug fixes

Bug fixes and a test app for the stand-alone dialogue.
Comment 15 Bastien Nocera 2012-02-16 18:36:46 UTC
Comment on attachment 206023 [details] [review]
wacom: Barebones mapping panel implementation

Committed! Thanks for the patch!
Comment 16 Bastien Nocera 2012-02-16 18:39:07 UTC
Comment on attachment 206024 [details] [review]
wacom: Add a gsd-wacom-mapping-panel to each tablet page

I added those to a separate dialogue instead.
Comment 17 Bastien Nocera 2012-02-16 18:40:49 UTC
Comment on attachment 207517 [details] [review]
bug fixes

We went a different way here.
Comment 18 Bastien Nocera 2012-02-16 18:42:12 UTC
We have a simple display mapping dialogue now.

It allows mapping a tablet to the whole desktop, or to one particular screen, using a combobox. In the future, we'll want to change the UI to match the mockups.