[fractal/fractal-next] AuthDialog: Remove workaround for action signals
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/fractal-next] AuthDialog: Remove workaround for action signals
- Date: Mon, 11 Oct 2021 11:37:01 +0000 (UTC)
commit 213b33cc97677cf285b10a5f0310d8deb2b7abcb
Author: Julian Sparber <julian sparber net>
Date: Mon Oct 11 13:28:21 2021 +0200
AuthDialog: Remove workaround for action signals
src/components/auth_dialog.rs | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/components/auth_dialog.rs b/src/components/auth_dialog.rs
index 3928857d..c2a06209 100644
--- a/src/components/auth_dialog.rs
+++ b/src/components/auth_dialog.rs
@@ -354,8 +354,7 @@ impl AuthDialog {
pub fn connect_response<F: Fn(&Self, bool) + 'static>(&self, f: F) -> glib::SignalHandlerId {
self.connect_local("response", true, move |values| {
- //FIXME The manuel cast is needed because of https://github.com/gtk-rs/gtk4-rs/issues/591
- let obj: Self = values[0].get::<glib::Object>().unwrap().downcast().unwrap();
+ let obj: Self = values[0].get().unwrap();
let response = values[1].get::<bool>().unwrap();
f(&obj, response);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]