[nautilus/wip/coreyberla/app-chooser-fixes: 5/8] app-chooser: Make sure to disconnect "application-selected" signal




commit 179109817281ad6d304fb3e4a1717d79e3dc20ec
Author: Corey Berla <corey berla me>
Date:   Sun Aug 7 21:16:29 2022 -0700

    app-chooser: Make sure to disconnect "application-selected" signal

 src/nautilus-app-chooser.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/nautilus-app-chooser.c b/src/nautilus-app-chooser.c
index b0d82507d..1e66596f5 100644
--- a/src/nautilus-app-chooser.c
+++ b/src/nautilus-app-chooser.c
@@ -176,10 +176,8 @@ nautilus_app_chooser_constructed (GObject *object)
                                  info, self);
     }
 
-    g_signal_connect (self->app_chooser_widget,
-                      "application-selected",
-                      G_CALLBACK (on_application_selected),
-                      self);
+    g_signal_connect_object (self->app_chooser_widget, "application-selected",
+                             G_CALLBACK (on_application_selected), self, 0);
 
     if (self->file_name != NULL)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]