[gtksourceview/wip/chergert/gsv-gtk4: 185/259] styleschemechooserbutton: fix lifecycle tracking for signals




commit 03f4bdb75fab51678251e1fe920f632ab73a157c
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jul 1 15:55:23 2020 -0700

    styleschemechooserbutton: fix lifecycle tracking for signals

 gtksourceview/gtksourcestyleschemechooserbutton.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtksourceview/gtksourcestyleschemechooserbutton.c 
b/gtksourceview/gtksourcestyleschemechooserbutton.c
index 35c27a19..3e6744f0 100644
--- a/gtksourceview/gtksourcestyleschemechooserbutton.c
+++ b/gtksourceview/gtksourcestyleschemechooserbutton.c
@@ -213,10 +213,10 @@ ensure_dialog (GtkSourceStyleSchemeChooserButton *button)
                                      gtk_window_get_modal (GTK_WINDOW (parent)));
        }
 
-       g_signal_connect (dialog, "response",
-                         G_CALLBACK (dialog_response), button);
-       g_signal_connect (dialog, "destroy",
-                         G_CALLBACK (dialog_destroy), button);
+       g_signal_connect_object (dialog, "response",
+                                G_CALLBACK (dialog_response), button, 0);
+       g_signal_connect_object (dialog, "destroy",
+                                G_CALLBACK (dialog_destroy), button, 0);
 }
 
 static void


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