fix spotify tray icon

This commit is contained in:
2025-12-10 01:41:34 +01:00
parent 70a271fb8b
commit 5341faeed2
4 changed files with 15 additions and 8 deletions

View File

@@ -31,6 +31,7 @@ class TrayIconWidget : public Gtk::Button
Gtk::Box m_container;
Gtk::Picture m_picture;
Gtk::Image m_image;
Glib::RefPtr<Gtk::GestureClick> m_primaryGesture;
Glib::RefPtr<Gtk::GestureClick> m_secondaryGesture;
Glib::RefPtr<Gtk::PopoverMenu> m_menuPopover;
Glib::RefPtr<Gio::SimpleActionGroup> m_menuActions;
@@ -40,7 +41,7 @@ class TrayIconWidget : public Gtk::Button
double m_pendingX = 0.0;
double m_pendingY = 0.0;
void on_primary_clicked();
void on_primary_released(int n_press, double x, double y);
void on_secondary_released(int n_press, double x, double y);
bool ensure_menu();
void on_menu_items_changed(guint position, guint removed, guint added);