[gnome-bluetooth] pairing-dialog: Adapt to GtkHeaderBar API changes



commit 37ccfce8a80d66eb33c1e18844d78e0e33925c9e
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Oct 27 14:05:08 2021 -0300

    pairing-dialog: Adapt to GtkHeaderBar API changes
    
    Some properties were renamed, fortunately that's just about it.

 lib/bluetooth-pairing-dialog.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/bluetooth-pairing-dialog.c b/lib/bluetooth-pairing-dialog.c
index c72356d7..11d7e884 100644
--- a/lib/bluetooth-pairing-dialog.c
+++ b/lib/bluetooth-pairing-dialog.c
@@ -279,9 +279,9 @@ bluetooth_pairing_dialog_constructed (GObject *object)
        /* Header */
        header = gtk_dialog_get_header_bar (GTK_DIALOG (self));
        priv->title = gtk_label_new ("");
-       gtk_header_bar_set_custom_title (GTK_HEADER_BAR (header), priv->title);
+       gtk_header_bar_set_title_widget (GTK_HEADER_BAR (header), priv->title);
        gtk_widget_show (priv->title);
-       gtk_header_bar_set_show_close_button (GTK_HEADER_BAR (header), FALSE);
+       gtk_header_bar_set_show_title_buttons (GTK_HEADER_BAR (header), FALSE);
 
        /* OK button */
        priv->done = gtk_button_new_with_label (_("Accept"));


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