aboutsummaryrefslogtreecommitdiff
path: root/src/rotation-lock.cpp
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-08-11 20:25:25 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-08-11 20:25:25 +0200
commit13687b8948a51cbc9e5bf877276ecaad42cef347 (patch)
treef6899b6954ae51b594c0af96d19805afb09818c0 /src/rotation-lock.cpp
parentc7aba6f8d5abbd59527439732474745ab9b07bda (diff)
parent7685f18fd2c2c517e27a5535c9db54545e9e3723 (diff)
downloadayatana-indicator-display-13687b8948a51cbc9e5bf877276ecaad42cef347.tar.gz
ayatana-indicator-display-13687b8948a51cbc9e5bf877276ecaad42cef347.tar.bz2
ayatana-indicator-display-13687b8948a51cbc9e5bf877276ecaad42cef347.zip
Merge branch 'tari01-pr/replace-x-canonical-attributes'
Attributes GH PR #5: https://github.com/AyatanaIndicators/ayatana-indicator-display/pull/5
Diffstat (limited to 'src/rotation-lock.cpp')
-rw-r--r--src/rotation-lock.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rotation-lock.cpp b/src/rotation-lock.cpp
index 9af5f8e..5cbbc60 100644
--- a/src/rotation-lock.cpp
+++ b/src/rotation-lock.cpp
@@ -80,7 +80,7 @@ private:
{
return g_value_dup_variant(value);
}
-
+
GSimpleActionGroup* create_action_group()
{
GSimpleActionGroup* group;
@@ -97,7 +97,7 @@ private:
action_state_to_settings,
nullptr,
nullptr);
-
+
g_action_map_add_action(G_ACTION_MAP(group), G_ACTION(action));
g_object_unref(G_OBJECT(action));
g_signal_connect_swapped(m_settings, "changed::rotation-lock",
@@ -123,7 +123,7 @@ private:
menu = g_menu_new();
menu_item = g_menu_item_new(_("Rotation Lock"), "indicator.rotation-lock");
- g_menu_item_set_attribute(menu_item, "x-canonical-type", "s", "org.ayatana.indicator.switch");
+ g_menu_item_set_attribute(menu_item, "x-ayatana-type", "s", "org.ayatana.indicator.switch");
g_menu_append_item(menu, menu_item);
g_object_unref(menu_item);