diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-07-31 09:59:11 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-07-31 09:59:11 -0500 |
commit | 42034051b8a2856823fc6c2f5f80bea4cb3ea4fc (patch) | |
tree | c1f9213ae4e479da688521b036d805d051be6e7f /include/notifications | |
parent | cbb4e95519f5127b152483b00731c260dc1a7670 (diff) | |
parent | 97e7d1b81965388d66ae6aca0b1c19dc87d241e7 (diff) | |
download | ayatana-indicator-datetime-42034051b8a2856823fc6c2f5f80bea4cb3ea4fc.tar.gz ayatana-indicator-datetime-42034051b8a2856823fc6c2f5f80bea4cb3ea4fc.tar.bz2 ayatana-indicator-datetime-42034051b8a2856823fc6c2f5f80bea4cb3ea4fc.zip |
sync with lp:~charlesk/indicator-datetime/notification-refactor
Diffstat (limited to 'include/notifications')
-rw-r--r-- | include/notifications/notifications.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/notifications/notifications.h b/include/notifications/notifications.h index c2e2d85..260b466 100644 --- a/include/notifications/notifications.h +++ b/include/notifications/notifications.h @@ -60,6 +60,7 @@ public: void add_hint (const std::string& name); static constexpr char const * HINT_SNAP {"x-canonical-snap-decisions"}; static constexpr char const * HINT_TINT {"x-canonical-private-button-tint"}; + static constexpr char const * HINT_NONSHAPEDICON {"x-canonical-non-shaped-icon"}; /* Add an action button. This may fail if the Engine doesn't support actions. @@ -91,16 +92,14 @@ public: bool supports_actions() const; /** Show a notification. - @return nonzero on success, zero on failure. */ + @return zero on failure, or a key that can be passed to close() */ int show(const Builder& builder); /** Close a notification. - @param key the int returned by show() - @return true if the notification was closed. */ + @param key the int returned by show() */ void close(int key); - /** Close all remaining notifications. - *@return true if all closed successfully. */ + /** Close all remaining notifications. */ void close_all(); const std::string& app_name() const; |