aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-03-23 12:16:06 -0500
committerCharles Kerr <charles.kerr@canonical.com>2016-03-23 12:16:06 -0500
commit82588108a40fb50b2bbd3c7b89b990f76f488edc (patch)
tree925461061bed122ba63d46f5da7449d89b098f93
parent4f8a17f23a0bba7da7654c147ca377e271abe0db (diff)
downloadayatana-indicator-display-82588108a40fb50b2bbd3c7b89b990f76f488edc.tar.gz
ayatana-indicator-display-82588108a40fb50b2bbd3c7b89b990f76f488edc.tar.bz2
ayatana-indicator-display-82588108a40fb50b2bbd3c7b89b990f76f488edc.zip
replace text 'Deny' with 'Don't Allow' for consistency with other permission prompts
-rw-r--r--src/usb-snap.cpp2
-rw-r--r--tests/integration/usb-manager-test.cpp2
-rw-r--r--tests/unit/usb-snap-test.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/usb-snap.cpp b/src/usb-snap.cpp
index 41c78c6..ba964fb 100644
--- a/src/usb-snap.cpp
+++ b/src/usb-snap.cpp
@@ -111,7 +111,7 @@ private:
g_variant_builder_add(&actions_builder, "s", ACTION_ALLOW);
g_variant_builder_add(&actions_builder, "s", _("Allow"));
g_variant_builder_add(&actions_builder, "s", ACTION_DENY);
- g_variant_builder_add(&actions_builder, "s", _("Deny"));
+ g_variant_builder_add(&actions_builder, "s", _("Don't Allow"));
GVariantBuilder hints_builder;
g_variant_builder_init(&hints_builder, G_VARIANT_TYPE_VARDICT);
diff --git a/tests/integration/usb-manager-test.cpp b/tests/integration/usb-manager-test.cpp
index 03c80c7..d62756f 100644
--- a/tests/integration/usb-manager-test.cpp
+++ b/tests/integration/usb-manager-test.cpp
@@ -122,7 +122,7 @@ TEST_F(UsbManagerFixture, Allow)
EXPECT_EQ("computer-symbolic", args.at(2)); // icon name
EXPECT_EQ("Allow USB Debugging?", args.at(3)); // summary
EXPECT_EQ(QString::fromUtf8("The computer's RSA key fingerprint is: ") + QString::fromUtf8(fingerprint.c_str()), args.at(4)); // body
- EXPECT_EQ(QStringList({"allow", "Allow", "deny", "Deny"}), args.at(5)); // actions
+ EXPECT_EQ(QStringList({"allow", "Allow", "deny", "Don't Allow"}), args.at(5)); // actions
EXPECT_EQ(-1, args.at(7));
QVariantMap hints;
diff --git a/tests/unit/usb-snap-test.cpp b/tests/unit/usb-snap-test.cpp
index 40de94a..3b778dd 100644
--- a/tests/unit/usb-snap-test.cpp
+++ b/tests/unit/usb-snap-test.cpp
@@ -106,7 +106,7 @@ TEST_F(UsbSnapFixture, TestRoundTrip)
EXPECT_EQ("computer-symbolic", args.at(2)); // icon name
EXPECT_EQ("Allow USB Debugging?", args.at(3)); // summary
EXPECT_EQ(QString::fromUtf8("The computer's RSA key fingerprint is: ") + test.fingerprint, args.at(4)); // body
- EXPECT_EQ(QStringList({"allow", "Allow", "deny", "Deny"}), args.at(5)); // actions
+ EXPECT_EQ(QStringList({"allow", "Allow", "deny", "Don't Allow"}), args.at(5)); // actions
EXPECT_EQ(-1, args.at(7));
QVariantMap hints;