Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
saivert committed Dec 20, 2023
1 parent a1c2b05 commit a442f3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/output_dropdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ mod imp {
self.outputdevice_dropdown.set_model(Some(&*self.dropdown_model.borrow()));

let widget = self.obj();
let selected_handler = closure_local!(@watch widget => move |dropdown: &gtk::DropDown, _values: &glib::Value| {
let selected_handler = closure_local!(
@watch widget => move |dropdown: &gtk::DropDown, _pspec: &glib::ParamSpec| {
wp::info!("selected-item");
let nodeobj = widget.imp().nodeobj.borrow();
if nodeobj.is_none() {
Expand All @@ -143,7 +144,6 @@ mod imp {
}
});


self.outputdevice_dropdown.connect_closure("notify::selected-item", true, selected_handler);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/pwnodeobject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub mod imp {
ParamSpec,
Properties,
Value,
subclass::Signal
subclass::Signal,
};
use once_cell::sync::{Lazy, OnceCell};

Expand Down

0 comments on commit a442f3e

Please sign in to comment.