diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-09-09 02:52:17 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-09-09 02:52:17 -0400 |
commit | 2ecbacc9243080c89c415a68b65eef34a1054a53 (patch) | |
tree | 303bf41e15f8f273501eeeaac22dc38a0ff4d136 /src/abaddon.hpp | |
parent | 84eb56d6b1f6d0fee4b909e3a96c66b6ad1311f7 (diff) | |
parent | a78fdd386f93db366d7327aa736624ad8bc1aa6f (diff) | |
download | abaddon-portaudio-2ecbacc9243080c89c415a68b65eef34a1054a53.tar.gz abaddon-portaudio-2ecbacc9243080c89c415a68b65eef34a1054a53.zip |
Merge branch 'master' of https://github.com/uowuo/abaddon
Diffstat (limited to 'src/abaddon.hpp')
-rw-r--r-- | src/abaddon.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/abaddon.hpp b/src/abaddon.hpp index ab80c46..b067324 100644 --- a/src/abaddon.hpp +++ b/src/abaddon.hpp @@ -117,6 +117,8 @@ protected: Gtk::MenuItem *m_user_menu_roles; Gtk::MenuItem *m_user_menu_remove_recipient; Gtk::Menu *m_user_menu_roles_submenu; + Gtk::Menu *m_tray_menu; + Gtk::MenuItem *m_tray_exit; void on_user_menu_insert_mention(); void on_user_menu_ban(); @@ -124,6 +126,10 @@ protected: void on_user_menu_copy_id(); void on_user_menu_open_dm(); void on_user_menu_remove_recipient(); + void on_tray_click(); + void on_tray_popup_menu(int button, int activate_time); + void on_tray_menu_click(); + void on_window_hide(); private: SettingsManager m_settings; @@ -142,5 +148,6 @@ private: Glib::RefPtr<Gtk::Application> m_gtk_app; Glib::RefPtr<Gtk::CssProvider> m_css_provider; Glib::RefPtr<Gtk::CssProvider> m_css_low_provider; // registered with a lower priority to allow better customization - std::unique_ptr<MainWindow> m_main_window; // wah wah cant create a gtkstylecontext fuck you + Glib::RefPtr<Gtk::StatusIcon> m_tray; + std::unique_ptr<MainWindow> m_main_window; // wah wah cant create a gtkstylecontext fuck you }; |