diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-01-30 12:45:50 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-01-30 12:45:50 -0600 |
commit | d2caa37e18191c31d866dd3042b676c135bae50d (patch) | |
tree | 603cdc81a45c1d6e5250e72954f3876b56ca24e1 /src/menu.cpp | |
parent | 9752ca1cd3e75e1245ebb8dcb4719503e332a352 (diff) | |
download | ayatana-indicator-datetime-d2caa37e18191c31d866dd3042b676c135bae50d.tar.gz ayatana-indicator-datetime-d2caa37e18191c31d866dd3042b676c135bae50d.tar.bz2 ayatana-indicator-datetime-d2caa37e18191c31d866dd3042b676c135bae50d.zip |
as per review, don't inline getters
Diffstat (limited to 'src/menu.cpp')
-rw-r--r-- | src/menu.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/menu.cpp b/src/menu.cpp index d0756cc..4bb4fb6 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -35,6 +35,27 @@ namespace datetime { ***** ****/ +const std::string& Menu::name() const +{ + return m_name; +} + +Menu::Profile Menu::profile() const +{ + return m_profile; +} + +GMenuModel* Menu::menu_model() +{ + return G_MENU_MODEL(m_menu); +} + + +/**** +***** +****/ + + #define FALLBACK_ALARM_CLOCK_ICON_NAME "clock" #define CALENDAR_ICON_NAME "calendar" @@ -531,6 +552,11 @@ MenuFactory::MenuFactory(std::shared_ptr<Actions>& actions_, { } +std::shared_ptr<State> MenuFactory::state() +{ + return m_state; +} + std::shared_ptr<Menu> MenuFactory::buildMenu(Menu::Profile profile) { |