[dconf-editor/gnome-3-26] Fix problem on localized strings.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor/gnome-3-26] Fix problem on localized strings.
- Date: Sun, 5 Nov 2017 06:18:14 +0000 (UTC)
commit b58f37b56a732bc33f774b60bd351100aebf9a46
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 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]