[gnote] Replace deprecated get_vbox with get_content_area



commit 5a3ce545f346811f8542a070b615defc50f130fd
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun May 9 21:22:07 2021 +0300

    Replace deprecated get_vbox with get_content_area

 src/utils.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/utils.cpp b/src/utils.cpp
index ae4b7d8b..6129e2e8 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -286,8 +286,7 @@ namespace gnote {
       set_resizable(false);
       set_title("");
 
-      get_vbox()->set_spacing(12);
-      get_action_area()->set_layout(Gtk::BUTTONBOX_END);
+      get_content_area()->set_spacing(12);
 
       m_accel_group = Glib::RefPtr<Gtk::AccelGroup>(Gtk::AccelGroup::create());
       add_accel_group(m_accel_group);
@@ -297,7 +296,7 @@ namespace gnote {
       hbox->set_border_width(5);
       hbox->show();
       int hbox_col = 0;
-      get_vbox()->pack_start(*hbox, false, false, 0);
+      get_content_area()->pack_start(*hbox, false, false, 0);
 
       switch (msg_type) {
       case Gtk::MESSAGE_ERROR:


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