feat(tray): implement tooltips (text only) for tray items

This commit is contained in:
Aleksei Bavshin
2021-06-23 23:47:35 -07:00
parent 4b6253e810
commit 84a8f79bbe
2 changed files with 26 additions and 4 deletions

View File

@ -16,6 +16,11 @@
namespace waybar::modules::SNI {
struct ToolTip {
Glib::ustring icon_name;
Glib::ustring text;
};
class Item : public sigc::trackable {
public:
Item(const std::string&, const std::string&, const Json::Value&);
@ -41,6 +46,7 @@ class Item : public sigc::trackable {
std::string attention_movie_name;
std::string icon_theme_path;
std::string menu;
ToolTip tooltip;
DbusmenuGtkMenu* dbus_menu = nullptr;
Gtk::Menu* gtk_menu = nullptr;
/**