summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-02-21 11:09:16 +0100
committerBastien Nocera <hadess@hadess.net>2022-02-21 11:09:16 +0100
commit1123a3d41c3dd5b1b0a9abe731178d8202cf3fc4 (patch)
tree08f79ab2c7771ed9fb06fd69cfa8cad20ce6b08b
parentd392a20dc5717d51eb6bfa223bcffa7d464d0e46 (diff)
downloadgnome-bluetooth-1123a3d41c3dd5b1b0a9abe731178d8202cf3fc4.tar.gz
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().
-rw-r--r--lib/bluetooth-pairing-dialog.c2
1 files changed, 2 insertions, 0 deletions
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 ("");