[file-roller/wip/gtk4: 9/54] gtk4: removed use of gtk_info_bar_get_content_area




commit 0d9367bb67c22a1d2cac2ad26093b9ee52f02dc7
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Sep 26 23:17:17 2022 +0200

    gtk4: removed use of gtk_info_bar_get_content_area

 src/dlg-ask-password.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/dlg-ask-password.c b/src/dlg-ask-password.c
index a4906e0a..9c3e9c23 100644
--- a/src/dlg-ask-password.c
+++ b/src/dlg-ask-password.c
@@ -151,7 +151,7 @@ dlg_ask_password__common (FrWindow       *window,
 
                info_bar = gtk_info_bar_new ();
                label = gtk_label_new (_("Wrong password."));
-               gtk_box_append (GTK_BOX (gtk_info_bar_get_content_area (GTK_INFO_BAR (info_bar))), label);
+               gtk_info_bar_add_child (GTK_INFO_BAR (info_bar), label);
                gtk_info_bar_set_message_type (GTK_INFO_BAR (info_bar), GTK_MESSAGE_ERROR);
                _gtk_box_append_expanded (GTK_BOX (GET_WIDGET ("error_box")), info_bar);
                gtk_widget_show (GET_WIDGET ("error_box"));


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