summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/inkscape/files/inkscape-0.47-escapeDevName.patch')
-rw-r--r--media-gfx/inkscape/files/inkscape-0.47-escapeDevName.patch26
1 files changed, 0 insertions, 26 deletions
diff --git a/media-gfx/inkscape/files/inkscape-0.47-escapeDevName.patch b/media-gfx/inkscape/files/inkscape-0.47-escapeDevName.patch
deleted file mode 100644
index 54088e2..0000000
--- a/media-gfx/inkscape/files/inkscape-0.47-escapeDevName.patch
+++ /dev/null
@@ -1,26 +0,0 @@
---- inkscape/src/dialogs/input.cpp (revision 20335)
-+++ inkscape/src/dialogs/input.cpp (working copy)
-@@ -67,6 +67,14 @@
- "ignore", "x", "y", "pressure", "xtilt", "ytilt", "wheel"
- };
-
-+Glib::ustring stripPeriod(const Glib::ustring &input) {
-+ Glib::ustring result = input;
-+ for(Glib::ustring::size_type pos=result.find('.'); pos!=Glib::ustring::npos; pos=result.find('.',pos)){
-+ result.erase(pos,1);
-+ }
-+ return result;
-+}
-+
- void
- sp_input_load_from_preferences (void)
- {
-@@ -75,7 +83,7 @@
- for (GList *list_ptr = gdk_devices_list(); list_ptr != NULL; list_ptr = list_ptr->next) {
- GdkDevice *device = static_cast<GdkDevice *>(list_ptr->data);
- //repr = sp_repr_lookup_child(devices, "id", device->name);
-- Glib::ustring device_path = Glib::ustring("/devices/") + device->name;
-+ Glib::ustring device_path = Glib::ustring("/devices/") + stripPeriod(device->name);
- if (/*repr != NULL*/ 1) {
- GdkInputMode mode;
- Glib::ustring device_mode = prefs->getString(device_path + "/mode");