diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-10-10 12:21:49 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-10-10 12:21:49 +0200 |
commit | a6635f03b72a81151f55c2fb9f6dbb0c8bb806aa (patch) | |
tree | 9216706d6b4233e0f72414aaaefd85c8b9da4bba /src/indicator.h | |
parent | 0713c69189ead3be8b1946a004fcd99275834c47 (diff) | |
parent | 15d318fe93fb8419b1f03052f62c8feceb45356b (diff) | |
download | ayatana-indicator-display-a6635f03b72a81151f55c2fb9f6dbb0c8bb806aa.tar.gz ayatana-indicator-display-a6635f03b72a81151f55c2fb9f6dbb0c8bb806aa.tar.bz2 ayatana-indicator-display-a6635f03b72a81151f55c2fb9f6dbb0c8bb806aa.zip |
Merge branch 'tari01-pr/rename-to-display'
Attributes GH PR #78: https://github.com/AyatanaIndicators/ayatana-indicator-display/pull/78
Diffstat (limited to 'src/indicator.h')
-rw-r--r-- | src/indicator.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/indicator.h b/src/indicator.h index 7379b32..c9ccb1e 100644 --- a/src/indicator.h +++ b/src/indicator.h @@ -1,5 +1,6 @@ /* * Copyright 2014-2016 Canonical Ltd. + * Copyright 2023 Robert Tari * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published @@ -15,6 +16,7 @@ * * Authors: * Charles Kerr <charles.kerr@canonical.com> + * Robert Tari <robert@tari.in> */ #pragma once @@ -50,7 +52,7 @@ class Profile { public: virtual std::string name() const =0; - virtual const core::Property<Header>& header() const =0; + virtual core::Property<Header>& header() =0; virtual std::shared_ptr<GMenuModel> menu_model() const =0; virtual ~Profile(); @@ -66,8 +68,7 @@ public: virtual ~SimpleProfile(); std::string name() const override {return m_name;} - core::Property<Header>& header() {return m_header;} - const core::Property<Header>& header() const override {return m_header;} + core::Property<Header>& header() override {return m_header;} std::shared_ptr<GMenuModel> menu_model() const override {return m_menu;} protected: @@ -86,4 +87,3 @@ public: virtual GSimpleActionGroup* action_group() const =0; virtual std::vector<std::shared_ptr<Profile>> profiles() const =0; }; - |