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 743196 - Use gsettings-desktop-schemas settings
Use gsettings-desktop-schemas settings
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: wacom
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Carlos Garnacho
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2015-01-19 18:31 UTC by Carlos Garnacho
Modified: 2015-01-20 19:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
wacom: Use the "display" setting from org.gnome.desktop.peripherals.tablet (3.00 KB, patch)
2015-01-19 18:31 UTC, Carlos Garnacho
needs-work Details | Review
wacom: Remove GsdWacomDevice dependency on GsdDeviceMapper (1.90 KB, patch)
2015-01-20 17:52 UTC, Carlos Garnacho
committed Details | Review
wacom: Ensure the "display" setting is set on the right schema (1.93 KB, patch)
2015-01-20 17:52 UTC, Carlos Garnacho
committed Details | Review
Update device configuration from gnome-settings-daemon (74.81 KB, patch)
2015-01-20 17:56 UTC, Carlos Garnacho
committed Details | Review

Description Carlos Garnacho 2015-01-19 18:31:03 UTC
I'm attaching a patch for the wacom tablet to update the display mapping on the device's org.gnome.desktop.peripherals.tablet schema
Comment 1 Carlos Garnacho 2015-01-19 18:31:31 UTC
Created attachment 294909 [details] [review]
wacom: Use the "display" setting from org.gnome.desktop.peripherals.tablet
Comment 2 Rui Matos 2015-01-19 19:27:55 UTC
Review of attachment 294909 [details] [review]:

This looks good but I can't test
Comment 3 Bastien Nocera 2015-01-20 12:43:43 UTC
Review of attachment 294909 [details] [review]:

Note that this patch is in the wrong place.

1) Do the patch against gnome-settings-daemon
2) Update it in gnome-control-center through "make update-from-gsd"

::: panels/wacom/gsd-wacom-device.c
@@ +1660,3 @@
 
+        if (p->settings != NULL) {
+                g_object_unref (p->settings);

g_clear_object();
Comment 4 Carlos Garnacho 2015-01-20 17:52:20 UTC
Created attachment 295030 [details] [review]
wacom: Remove GsdWacomDevice dependency on GsdDeviceMapper

Just lookup the display from settings using internal functions, instead
of looking it up from the GsdDeviceMapper
Comment 5 Carlos Garnacho 2015-01-20 17:52:25 UTC
Created attachment 295031 [details] [review]
wacom: Ensure the "display" setting is set on the right schema

This code was brought back after reverting f4b8633745c, make sure
it uses the right GSettings.
Comment 6 Carlos Garnacho 2015-01-20 17:53:47 UTC
These two patches are for g-s-d, in order to make the necessary API available
Comment 7 Carlos Garnacho 2015-01-20 17:56:10 UTC
Created attachment 295032 [details] [review]
Update device configuration from gnome-settings-daemon

GsdWacomDevice has been updated, dragging GsdDeviceManager as a dependency
from g-s-d, which has been added to panels/common, and compiled as a
separate static libary, which is used by the wacom and mouse modules.

gsd-input-helper.[ch] is now in such library and has been removed from
the panel directories.
Comment 8 Carlos Garnacho 2015-01-20 17:58:42 UTC
This last patch is for g-c-c, a somewhat big update, as GsdDeviceManager is added. The first g-s-d patches are necessary so we don't drag the GsdDeviceMapper dependency as well, which is sort of meaningless to g-c-c
Comment 9 Rui Matos 2015-01-20 18:28:32 UTC
Review of attachment 295030 [details] [review]:

looks good

::: plugins/wacom/gsd-wacom-device.c
@@ +841,1 @@
+	if (rr_screen == NULL) {

style nit, no braces needed
Comment 10 Rui Matos 2015-01-20 18:33:38 UTC
Review of attachment 295031 [details] [review]:

right
Comment 11 Rui Matos 2015-01-20 18:42:23 UTC
Review of attachment 295031 [details] [review]:

actually, no, you need to unref the gsettings instance in those table variables
Comment 12 Rui Matos 2015-01-20 19:21:12 UTC
Review of attachment 295032 [details] [review]:

looks mostly fine, but I'll let Bastien take a look too :-)

::: panels/mouse/Makefile.am
@@ -21,3 @@
 	gnome-mouse-properties.h	\
-	gsd-input-helper.c		\
-	gsd-input-helper.h		\

Need to add -I$(top_srcdir)/panels/common to AM_CPPFLAGS and libdevice.la should be added to LIBADD here and in shell/Makefile.am:gnome_control_center_LDADD
Comment 13 Carlos Garnacho 2015-01-20 19:44:04 UTC
Attachment 295030 [details] pushed as 96ff40d - wacom: Remove GsdWacomDevice dependency on GsdDeviceMapper
Attachment 295031 [details] pushed as 0002e5d - wacom: Ensure the "display" setting is set on the right schema
Comment 14 Carlos Garnacho 2015-01-20 19:47:11 UTC
Attachment 295032 [details] pushed as be8d68c - Update device configuration from gnome-settings-daemon