aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-10-06 12:07:05 -0500
committerRobert Tari <robert@tari.in>2021-07-08 03:32:28 +0200
commit14870108857877b8015bd0f12e2daae4085fa39f (patch)
treeca594db629cb535567f49c32fc1e5b74f4c3e417 /include
parent7244cca7fbb45f9b67e53da46731e29b0c7bb620 (diff)
downloadayatana-indicator-datetime-14870108857877b8015bd0f12e2daae4085fa39f.tar.gz
ayatana-indicator-datetime-14870108857877b8015bd0f12e2daae4085fa39f.tar.bz2
ayatana-indicator-datetime-14870108857877b8015bd0f12e2daae4085fa39f.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: