aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2015-03-02 16:56:26 +0000
committerCI Train Bot <ci-train-bot@canonical.com>2015-03-02 16:56:26 +0000
commit0d5b74072a874ecb08f5cbc471de5ccdd6525cfc (patch)
treeffb67de37a8dd1533b9def5d7b1c43db750adbc8
parentbfda30ab466e43495c79375007e00ed37ebb7967 (diff)
parentbe6ac2b9ef5dd31b5646036c867ec5e67cbec07c (diff)
downloadayatana-indicator-display-0d5b74072a874ecb08f5cbc471de5ccdd6525cfc.tar.gz
ayatana-indicator-display-0d5b74072a874ecb08f5cbc471de5ccdd6525cfc.tar.bz2
ayatana-indicator-display-0d5b74072a874ecb08f5cbc471de5ccdd6525cfc.zip
Fix action-state-to-variant mapping Fixes: #1410915
Approved by: Ted Gould, PS Jenkins bot
-rw-r--r--src/rotation-lock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rotation-lock.cpp b/src/rotation-lock.cpp
index 31e9d12..f19ac9f 100644
--- a/src/rotation-lock.cpp
+++ b/src/rotation-lock.cpp
@@ -77,7 +77,7 @@ private:
const GVariantType * /*expected_type*/,
gpointer /*unused*/)
{
- return g_variant_new_boolean(g_value_get_boolean(value));
+ return g_value_dup_variant(value);
}
GSimpleActionGroup* create_action_group()