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 699298 - Add Wacom to Tweak Tool
Add Wacom to Tweak Tool
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: wacom
unspecified
Other All
: Normal normal
: ---
Assigned To: Joaquim Rocha
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2013-04-30 10:58 UTC by Joaquim Rocha
Modified: 2013-10-18 07:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Support using schema paths in GSettings (1.75 KB, patch)
2013-04-30 10:58 UTC, Joaquim Rocha
committed Details | Review
Add Wacom group and tweak for turning on/off tablet PC mode (5.24 KB, patch)
2013-04-30 11:00 UTC, Joaquim Rocha
reviewed Details | Review
Add Wacom group and tweak for turning on/off tablet PC mode (4.84 KB, patch)
2013-04-30 13:13 UTC, Joaquim Rocha
none Details | Review
Add Wacom group and tweak for turning on/off tablet PC mode (5.13 KB, patch)
2013-05-03 09:52 UTC, Joaquim Rocha
committed Details | Review
wacom: Remove tablet-pc-button config option (3.53 KB, patch)
2013-08-23 14:46 UTC, Bastien Nocera
accepted-commit_after_freeze Details | Review

Description Joaquim Rocha 2013-04-30 10:58:49 UTC
Add a Wacom group to Tweak Tool and support for turning on/off the tablet PC mode.
Comment 1 Joaquim Rocha 2013-04-30 10:58:51 UTC
Created attachment 242898 [details] [review]
Support using schema paths in GSettings
Comment 2 Joaquim Rocha 2013-04-30 11:00:03 UTC
Created attachment 242899 [details] [review]
Add Wacom group and tweak for turning on/off tablet PC mode
Comment 3 Joaquim Rocha 2013-04-30 11:00:45 UTC
See https://bugzilla.gnome.org/show_bug.cgi?id=683568
Comment 4 Joaquim Rocha 2013-04-30 11:03:44 UTC
It depends on a certain patch in libwacom, discussion going on here:
https://sourceforge.net/mailarchive/forum.php?thread_name=20130430063302.GA28749%40yabbi.redhat.com&forum_name=linuxwacom-devel
Comment 5 John Stowers 2013-04-30 11:33:15 UTC
Review of attachment 242899 [details] [review]:

Patch looks good, I would only change one thing

::: gtweak/tweaks/tweak_wacom.py
@@ +47,3 @@
+                   )
+    return tweaks
+

I would do this as a TweakGroup, see the following for an example

https://git.gnome.org/browse/gnome-tweak-tool/tree/gtweak/tweaks/tweak_shell_extensions.py#n216
https://git.gnome.org/browse/gnome-tweak-tool/tree/gtweak/tweaks/tweak_shell_extensions.py#n249
https://git.gnome.org/browse/gnome-tweak-tool/tree/gtweak/tweaks/tweak_shell_extensions.py#n264

everything else is fine
Comment 6 Joaquim Rocha 2013-04-30 13:13:30 UTC
Created attachment 242910 [details] [review]
Add Wacom group and tweak for turning on/off tablet PC mode

There you go ;)
Comment 7 John Stowers 2013-05-01 13:56:51 UTC
Should these tweaks be hidden if

libwacom-list-local-devices is not installed
if /etc/machine-id is not present (i.e. ubuntu?)
Comment 8 Joaquim Rocha 2013-05-02 15:20:47 UTC
Yeah, I will update the patch to do that.
Also, it requires the patch that I mentioned to be applied on that tool, this is going to be tricky to check though.
Comment 9 Joaquim Rocha 2013-05-03 09:52:31 UTC
Created attachment 243160 [details] [review]
Add Wacom group and tweak for turning on/off tablet PC mode

Hi John,

Here is the updated patch. I couldn't figure if you already have a way of telling a group it shouldn't be displayed so I did that ugly hack when adding the Wacom group.

If you have a more elegant way to do it, please let me know.
Comment 10 John Stowers 2013-05-03 10:08:55 UTC
(In reply to comment #9)
> Created an attachment (id=243160) [details] [review]
> Add Wacom group and tweak for turning on/off tablet PC mode
> 
> Hi John,
> 
> Here is the updated patch. I couldn't figure if you already have a way of
> telling a group it shouldn't be displayed so I did that ugly hack when adding
> the Wacom group.
> 
> If you have a more elegant way to do it, please let me know.

Thanks, this looks great.

I need to fix the "hide groups if they contain no tweaks" in g-t-t core. I haven't got around to it yet.
Comment 11 Joaquim Rocha 2013-05-03 11:40:49 UTC
There you go:

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

May be simplistic but does what's needed.
We should think about adding also a var to override this in the TweakGroup because in the future empty groups could maybe want to show a message like "No foo-bar detected, please enable foo-bar by doing bar-foo.".
Comment 12 Joaquim Rocha 2013-05-27 14:37:26 UTC
(In reply to comment #7)
> Should these tweaks be hidden if
> 
> libwacom-list-local-devices is not installed
> if /etc/machine-id is not present (i.e. ubuntu?)

Hi John,

About this comment, if any of these fail, the group will have no tweaks and will not be shown so I guess we should consider whether it's a good idea to push this or not.

I'd appreciate Ping and Bastien's comments too.
Comment 13 Ping Cheng 2013-06-05 21:23:02 UTC
(In reply to comment #12)
> 
> I'd appreciate Ping and Bastien's comments too.

I don't know g-t-t enough to make meaningful comments.

Just in the sense of consistency, I think we should hide tweaks if anything related to the tweaks is not installed.
Comment 14 John Stowers 2013-06-07 09:00:12 UTC
Review of attachment 243160 [details] [review]:

Looks good then
Comment 15 John Stowers 2013-06-07 09:01:03 UTC
Review of attachment 242898 [details] [review]:

Testing this reveals that it breaks missing schemas/gsettings keys. G-t-t used to ignore these.
Comment 16 John Stowers 2013-06-07 09:04:54 UTC
Added Alex (GSOC Student) to CC, The feature looks good but I think it breaks missing key/schema support in g-t-t (whereby I used to not crash on missing schemas).

Alex, can you track this down?
Comment 17 John Stowers 2013-06-10 07:10:05 UTC
Attachment 242898 [details] pushed as b04ca60 - Support using schema paths in GSettings
Attachment 243160 [details] pushed as 5c58e68 - Add Wacom group and tweak for turning on/off tablet PC mode
Comment 18 John Stowers 2013-08-22 06:41:53 UTC
I'm reopening this because I had to disable the wacom support for 3.9.90 because I could not test it. The panel needs to be redesigned for the new UI.

I will do this, but I need some advice on testing (I don't have a wacom decvice)
Comment 19 Matthias Clasen 2013-08-23 13:55:56 UTC
Jakub, could you help John with testing?
Comment 20 Bastien Nocera 2013-08-23 14:41:31 UTC
I think it's actually easier to drop the key from the GSettings in gnome-settings-daemon, and let users that want the support override it with xsetwacom.
Comment 21 Bastien Nocera 2013-08-23 14:46:27 UTC
Created attachment 252877 [details] [review]
wacom: Remove tablet-pc-button config option

As it isn't advertised in the main settings, and can
be overridden through xsetwacom.
Comment 22 Bastien Nocera 2013-09-30 06:11:52 UTC
Review of attachment 252877 [details] [review]:

Will commit after branching
Comment 23 Bastien Nocera 2013-10-18 07:54:14 UTC
Was committed along with other wacom fixes for gnome-3-10 and master.