[dconf-editor] Protection against flags' quotation marks.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Protection against flags' quotation marks.
- Date: Thu, 3 Dec 2015 15:31:11 +0000 (UTC)
commit 2ddf5a78368146d1021fc3c1c6a11990935205dd
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Thu Dec 3 16:30:38 2015 +0100
Protection against flags' quotation marks.
editor/dconf-window.vala | 2 +-
editor/key-list-box-row.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index 836ded6..d55b3b8 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -139,7 +139,7 @@ class DConfWindow : ApplicationWindow
bookmarks_button.current_path = current_path;
GLib.Menu menu = new GLib.Menu ();
- menu.append (_("Copy current path"), "app.copy('" + current_path + "')"); // TODO protection
against some chars in text? 1/2
+ menu.append (_("Copy current path"), "app.copy(\"" + current_path + "\")"); // TODO protection
against some chars in text? 1/2
info_button.set_menu_model ((MenuModel) menu);
}
diff --git a/editor/key-list-box-row.vala b/editor/key-list-box-row.vala
index db85efe..3971379 100644
--- a/editor/key-list-box-row.vala
+++ b/editor/key-list-box-row.vala
@@ -215,7 +215,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 + "')"); // TODO protection against some
chars in text? 2/2
+ current_section.append (_("Copy"), "app.copy(\"" + text + "\")"); // TODO protection against some
chars in text? 2/2
}
public void new_section (bool draw_line = true)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]