[dconf-editor] Fix problem on localized strings.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Fix problem on localized strings.
- Date: Sun, 5 Nov 2017 06:17:30 +0000 (UTC)
commit 8cb6c2a73fdc514fad249486f0092a1397b1486d
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sun Nov 5 07:16:59 2017 +0100
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 b6c3752..6e045aa 100644
--- a/editor/dconf-editor.vala
+++ b/editor/dconf-editor.vala
@@ -160,7 +160,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 958bd6a..368ab2a 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -257,7 +257,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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]