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




commit 6ea222b8113d4e5fe928e9ab7c48397527b9737f
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 25864c95e..a1523d74c 100644
--- a/src/nautilus-app-chooser.c
+++ b/src/nautilus-app-chooser.c
@@ -193,12 +193,10 @@ 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->set_as_default_switch, "state-set",
                              G_CALLBACK (on_switch_state_set), self, 0);
+    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]