gpointing-device-settings r171 - trunk/modules/gnome-settings-daemon-plugins
- From: hiikezoe svn gnome org
- To: svn-commits-list gnome org
- Subject: gpointing-device-settings r171 - trunk/modules/gnome-settings-daemon-plugins
- Date: Sun, 8 Mar 2009 01:04:18 +0000 (UTC)
Author: hiikezoe
Date: Sun Mar 8 01:04:18 2009
New Revision: 171
URL: http://svn.gnome.org/viewvc/gpointing-device-settings?rev=171&view=rev
Log:
Use unescaped gconf key value for device name.
Modified:
trunk/modules/gnome-settings-daemon-plugins/gsd-pointing-device-plugin.c
Modified: trunk/modules/gnome-settings-daemon-plugins/gsd-pointing-device-plugin.c
==============================================================================
--- trunk/modules/gnome-settings-daemon-plugins/gsd-pointing-device-plugin.c (original)
+++ trunk/modules/gnome-settings-daemon-plugins/gsd-pointing-device-plugin.c Sun Mar 8 01:04:18 2009
@@ -81,11 +81,13 @@
device_type = gconf_client_get_string(gconf, device_type_key, NULL);
if (device_type) {
GpdsXInputPointerInfo *info;
- gchar *device_name;
+ gchar *device_name, *unescaped_device_name;
device_name = g_path_get_basename(dir);
- info = gpds_xinput_pointer_info_new(device_name, device_type);
+ unescaped_device_name = gconf_unescape_key(device_name, -1);
+ info = gpds_xinput_pointer_info_new(unescaped_device_name, device_type);
infos = g_list_prepend(infos, info);
+ g_free(unescaped_device_name);
g_free(device_name);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]