From a442f3e3983b5bd3c86bac1d6746904c444b593c Mon Sep 17 00:00:00 2001 From: Nicolai Syvertsen Date: Wed, 20 Dec 2023 22:21:46 +0100 Subject: [PATCH] Style --- src/output_dropdown.rs | 4 ++-- src/pwnodeobject.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/output_dropdown.rs b/src/output_dropdown.rs index ca2625a..b703e5c 100644 --- a/src/output_dropdown.rs +++ b/src/output_dropdown.rs @@ -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: >k::DropDown, _values: &glib::Value| { + let selected_handler = closure_local!( + @watch widget => move |dropdown: >k::DropDown, _pspec: &glib::ParamSpec| { wp::info!("selected-item"); let nodeobj = widget.imp().nodeobj.borrow(); if nodeobj.is_none() { @@ -143,7 +144,6 @@ mod imp { } }); - self.outputdevice_dropdown.connect_closure("notify::selected-item", true, selected_handler); } } diff --git a/src/pwnodeobject.rs b/src/pwnodeobject.rs index c260e46..6731607 100644 --- a/src/pwnodeobject.rs +++ b/src/pwnodeobject.rs @@ -30,7 +30,7 @@ pub mod imp { ParamSpec, Properties, Value, - subclass::Signal + subclass::Signal, }; use once_cell::sync::{Lazy, OnceCell};