diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-09-27 00:36:11 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-09-27 00:36:11 -0400 |
commit | 0571a05497ff628ceba8c7752dc3dd4104b1e0ea (patch) | |
tree | 0f145ca323b88dc6300a6a2077312d57beef4697 /src/abaddon.hpp | |
parent | 90437de2c031f6cf0b58603d9cb5582064176374 (diff) | |
parent | 3027e00905b19282a4f501a26f7a4f71bc6940ea (diff) | |
download | abaddon-portaudio-0571a05497ff628ceba8c7752dc3dd4104b1e0ea.tar.gz abaddon-portaudio-0571a05497ff628ceba8c7752dc3dd4104b1e0ea.zip |
Merge branch 'master' into voice
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 9b3199a..ca92370 100644 --- a/src/abaddon.hpp +++ b/src/abaddon.hpp @@ -128,6 +128,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(); @@ -135,6 +137,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; @@ -157,5 +163,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 }; |