code: clone macro: Use convenience attributes instead of upgrade_or_else
Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/412>
This commit is contained in:
parent
6385658169
commit
5956aa6460
6 changed files with 13 additions and 16 deletions
|
|
@ -129,8 +129,7 @@ mod imp {
|
|||
glib::clone!(
|
||||
#[weak]
|
||||
obj,
|
||||
#[upgrade_or_else]
|
||||
|| None,
|
||||
#[upgrade_or_default]
|
||||
move |_| {
|
||||
obj.imp().update();
|
||||
None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue