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




commit a6ab412db88c8a57d28aaa3e880fc6c13dc8ffac
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 14550c5c3..ec740c6f7 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]