mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
return reference to self
This commit is contained in:
parent
8e2e430bc6
commit
41875de347
1 changed files with 4 additions and 1 deletions
|
|
@ -43,8 +43,11 @@ impl Status {
|
||||||
/// Set new description for status component
|
/// Set new description for status component
|
||||||
///
|
///
|
||||||
/// Useful for loading widgets to update byte totals and other dynamically changed information
|
/// Useful for loading widgets to update byte totals and other dynamically changed information
|
||||||
pub fn set_description(&self, description: Option<&str>) {
|
///
|
||||||
|
/// Return `Self` reference to apply another functions in chain
|
||||||
|
pub fn set_description(&self, description: Option<&str>) -> &Self {
|
||||||
self.gobject.set_description(description);
|
self.gobject.set_description(description);
|
||||||
|
&self
|
||||||
}
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue