mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +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
|
||||
///
|
||||
/// 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
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue