[gnome-bluetooth] pairing-dialog: Fix dialog not closing



commit 1123a3d41c3dd5b1b0a9abe731178d8202cf3fc4
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Feb 21 11:09:16 2022 +0100

    pairing-dialog: Fix dialog not closing
    
    The pairing-dialog was not added to GtkWindowClass' global list of
    windows as we didn't call up to gtk_window_constructed(), so couldn't be
    closed by gtk_window_destroy().

 lib/bluetooth-pairing-dialog.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/lib/bluetooth-pairing-dialog.c b/lib/bluetooth-pairing-dialog.c
index e5501f9d..ffc05b6d 100644
--- a/lib/bluetooth-pairing-dialog.c
+++ b/lib/bluetooth-pairing-dialog.c
@@ -274,6 +274,8 @@ bluetooth_pairing_dialog_constructed (GObject *object)
        GtkWidget *header;
        GtkStyleContext *context;
 
+       G_OBJECT_CLASS(bluetooth_pairing_dialog_parent_class)->constructed (object);
+
        /* Header */
        header = gtk_dialog_get_header_bar (GTK_DIALOG (self));
        priv->title = gtk_label_new ("");


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