[gnome-control-center] wacom: Add trailing slash to schema path
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] wacom: Add trailing slash to schema path
- Date: Tue, 10 Jan 2012 10:00:49 +0000 (UTC)
commit fbe03baa43aa354e9a3eba69dbc91bfe617da862
Author: Jason Gerecke <killertofu gmail com>
Date: Mon Jan 9 14:09:08 2012 -0800
wacom: Add trailing slash to schema path
Path names must end in a trailing slash. Without it, the varous
g_settings_* functions get confused about where to seperate the
key and value.
https://bugzilla.gnome.org/show_bug.cgi?id=667609
panels/wacom/gsd-wacom-device.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/wacom/gsd-wacom-device.c b/panels/wacom/gsd-wacom-device.c
index bddc462..59bf170 100644
--- a/panels/wacom/gsd-wacom-device.c
+++ b/panels/wacom/gsd-wacom-device.c
@@ -40,7 +40,7 @@
#define GSD_WACOM_STYLUS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GSD_TYPE_WACOM_STYLUS, GsdWacomStylusPrivate))
#define WACOM_TABLET_SCHEMA "org.gnome.settings-daemon.peripherals.wacom"
-#define WACOM_DEVICE_CONFIG_BASE "/org/gnome/settings-daemon/peripherals/wacom/%s"
+#define WACOM_DEVICE_CONFIG_BASE "/org/gnome/settings-daemon/peripherals/wacom/%s/"
#define WACOM_STYLUS_SCHEMA "org.gnome.settings-daemon.peripherals.wacom.stylus"
#define WACOM_ERASER_SCHEMA "org.gnome.settings-daemon.peripherals.wacom.eraser"
@@ -374,7 +374,7 @@ add_stylus_to_device (GsdWacomDevice *device,
libwacom_stylus_is_eraser (wstylus) == FALSE)
return;
- stylus_settings_path = g_strdup_printf ("%s/0x%x", settings_path, id);
+ stylus_settings_path = g_strdup_printf ("%s0x%x/", settings_path, id);
if (device->priv->type == WACOM_TYPE_STYLUS) {
settings = g_settings_new_with_path (WACOM_STYLUS_SCHEMA, stylus_settings_path);
stylus = gsd_wacom_stylus_new (device, wstylus, settings);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]