diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-11-28 08:47:03 +0000 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-11-28 08:51:08 +0000 |
commit | de76813c8421fd900e0d57038d28e8be693e33be (patch) | |
tree | d99b90ed99e1c42f0bd7ad4bef35770bce521720 /src/rotation-lock.cpp | |
parent | 22d45854cb2c7a6374d6dfc631d684d01fcc9063 (diff) | |
download | ayatana-indicator-display-de76813c8421fd900e0d57038d28e8be693e33be.tar.gz ayatana-indicator-display-de76813c8421fd900e0d57038d28e8be693e33be.tar.bz2 ayatana-indicator-display-de76813c8421fd900e0d57038d28e8be693e33be.zip |
Fork from Ubuntus' indicator-display project.
Diffstat (limited to 'src/rotation-lock.cpp')
-rw-r--r-- | src/rotation-lock.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rotation-lock.cpp b/src/rotation-lock.cpp index 88c7e1b..9af5f8e 100644 --- a/src/rotation-lock.cpp +++ b/src/rotation-lock.cpp @@ -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", "com.canonical.indicator.switch"); + g_menu_item_set_attribute(menu_item, "x-canonical-type", "s", "org.ayatana.indicator.switch"); g_menu_append_item(menu, menu_item); g_object_unref(menu_item); @@ -144,7 +144,11 @@ private: **** ***/ +#ifdef HAS_UBUNTU_TOUCH_SCHEMA static constexpr char const * m_schema_name {"com.ubuntu.touch.system"}; +#else + static constexpr char const * m_schema_name {"org.ayatana.display"}; +#endif static constexpr char const * m_rotation_lock_icon_name {"orientation-lock"}; GSettings* m_settings = nullptr; GSimpleActionGroup* m_action_group = nullptr; |