[gtk/wip/corey/file-clipboard] gdkcontentserializer: Use newlines for file separators
- From: Corey Berla <coreyberla src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/corey/file-clipboard] gdkcontentserializer: Use newlines for file separators
- Date: Mon, 10 Oct 2022 20:27:18 +0000 (UTC)
commit 3168a3e08612c27843e641879dde7bcfb053d5b5
Author: Corey Berla <corey berla me>
Date: Mon Oct 10 09:35:00 2022 -0700
gdkcontentserializer: Use newlines for file separators
Use newlines rather than spaces to separate file paths (or uri's)
when serializing text/plain files. There isn't a matching
deserializer, so we can do this in isolation. Newlines
seem to make more sense when pasting into a text editor etc.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5240
gdk/gdkcontentserializer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/gdkcontentserializer.c b/gdk/gdkcontentserializer.c
index 0e24b222e6..2ffbbf5ae5 100644
--- a/gdk/gdkcontentserializer.c
+++ b/gdk/gdkcontentserializer.c
@@ -879,7 +879,7 @@ file_text_serializer (GdkContentSerializer *serializer)
g_string_append (str, path);
g_free (path);
if (l->next)
- g_string_append (str, " ");
+ g_string_append (str, "\n");
}
path = g_string_free (str, FALSE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]