aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2015-02-28 18:13:47 -0600
committerCharles Kerr <charles.kerr@canonical.com>2015-02-28 18:13:47 -0600
commitbe6ac2b9ef5dd31b5646036c867ec5e67cbec07c (patch)
treeffb67de37a8dd1533b9def5d7b1c43db750adbc8
parentbfda30ab466e43495c79375007e00ed37ebb7967 (diff)
downloadayatana-indicator-display-be6ac2b9ef5dd31b5646036c867ec5e67cbec07c.tar.gz
ayatana-indicator-display-be6ac2b9ef5dd31b5646036c867ec5e67cbec07c.tar.bz2
ayatana-indicator-display-be6ac2b9ef5dd31b5646036c867ec5e67cbec07c.zip
use the same action-state-to-variant mapping as in the rtm-14.09 branch
-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()