File dconf-editor-fix-localized-strings-problem.patch of Package dconf-editor

From b58f37b56a732bc33f774b60bd351100aebf9a46 Mon Sep 17 00:00:00 2001
From: Arnaud Bonatti <arnaud.bonatti@gmail.com>
Date: Sun, 5 Nov 2017 07:16:59 +0100
Subject: Fix problem on localized strings.

---
 editor/dconf-editor.vala     | 2 +-
 editor/dconf-window.vala     | 2 +-
 editor/key-list-box-row.vala | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/editor/dconf-editor.vala b/editor/dconf-editor.vala
index aa2f598..2e4ca4c 100644
--- a/editor/dconf-editor.vala
+++ b/editor/dconf-editor.vala
@@ -100,7 +100,7 @@ class ConfigurationEditor : Gtk.Application
     {
         if (gvariant == null)
             return;
-        copy (((!) gvariant).get_string ());
+        copy (((!) gvariant).get_string ().compress ());
     }
 
     public void copy (string text)
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index cfd6af5..b558db3 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -245,7 +245,7 @@ class DConfWindow : ApplicationWindow
         GLib.Menu section;
 
         GLib.Menu menu = new GLib.Menu ();
-        menu.append (_("Copy current path"), "app.copy(\"" + current_path.escape ("") + "\")");
+        menu.append (_("Copy current path"), "app.copy(\"" + current_path.escape (null).escape (null) + "\")");
 
         if (current_path.has_suffix ("/"))
         {
diff --git a/editor/key-list-box-row.vala b/editor/key-list-box-row.vala
index 6031185..a92e2f8 100644
--- a/editor/key-list-box-row.vala
+++ b/editor/key-list-box-row.vala
@@ -491,7 +491,7 @@ private class ContextPopover : Popover
     public void new_copy_action (string text)
     {
         /* Translators: "copy to clipboard" action in the right-click menu on the list of keys */
-        current_section.append (_("Copy"), "app.copy(\"" + text.escape ("") + "\")");
+        current_section.append (_("Copy"), "app.copy(\"" + text.escape (null).escape (null) + "\")");
     }
 
     public void set_group (string group_name)
-- 
cgit v0.12

openSUSE Build Service is sponsored by