aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-10-06 12:07:05 -0500
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 14:37:39 +0200
commitfd6d89d244509981c6b57d5fe87c84078204bde0 (patch)
treede52babc06068193147fbd618f026baa78efa2ce /include
parent231168012760d2161318bc31498e72ada7a82716 (diff)
downloadayatana-indicator-datetime-fd6d89d244509981c6b57d5fe87c84078204bde0.tar.gz
ayatana-indicator-datetime-fd6d89d244509981c6b57d5fe87c84078204bde0.tar.bz2
ayatana-indicator-datetime-fd6d89d244509981c6b57d5fe87c84078204bde0.zip
in Awake, remove an unnecessary async call by passing the system bus into the constructor instead of fetching it asynchronously
Diffstat (limited to 'include')
-rw-r--r--include/notifications/awake.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/notifications/awake.h b/include/notifications/awake.h
index b441692..d0b46eb 100644
--- a/include/notifications/awake.h
+++ b/include/notifications/awake.h
@@ -22,6 +22,8 @@
#include <memory>
+#include <gio/gio.h>
+
namespace ayatana {
namespace indicator {
namespace notifications {
@@ -36,7 +38,7 @@ namespace notifications {
class Awake
{
public:
- explicit Awake(const std::string& app_name);
+ explicit Awake(GDBusConnection* system_bus, const std::string& app_name);
~Awake();
private: