mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
add tooltips for page label
This commit is contained in:
parent
9e5ec86222
commit
464fc1ab63
1 changed files with 2 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ impl Label {
|
||||||
.orientation(Orientation::Horizontal)
|
.orientation(Orientation::Horizontal)
|
||||||
.halign(Align::Center)
|
.halign(Align::Center)
|
||||||
.name(name)
|
.name(name)
|
||||||
|
.tooltip_text(title.widget().text())
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
widget.append(pin.widget());
|
widget.append(pin.widget());
|
||||||
|
|
@ -42,6 +43,7 @@ impl Label {
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
pub fn update(&self, title: &GString) {
|
pub fn update(&self, title: &GString) {
|
||||||
|
self.widget.set_tooltip_text(Some(title));
|
||||||
self.title.update(title);
|
self.title.update(title);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue