add tooltips for page label

This commit is contained in:
yggverse 2024-09-27 18:56:49 +03:00
parent 9e5ec86222
commit 464fc1ab63

View File

@ -31,6 +31,7 @@ impl Label {
.orientation(Orientation::Horizontal)
.halign(Align::Center)
.name(name)
.tooltip_text(title.widget().text())
.build();
widget.append(pin.widget());
@ -42,6 +43,7 @@ impl Label {
// Actions
pub fn update(&self, title: &GString) {
self.widget.set_tooltip_text(Some(title));
self.title.update(title);
}