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




commit 3b5ddc967c6a4e8f5aff3e60f75b50d47ced9868
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 35c27a192..3e6744f03 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]