[gnote] Remove content box member



commit 6048411f54b867a01be526bb5b3a84cb8cc8333c
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sat Jan 2 12:00:15 2021 +0200

    Remove content box member

 src/recentchanges.cpp | 15 ++++++++-------
 src/recentchanges.hpp |  3 +--
 2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index cd741548..eaccc820 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2010-2020 Aurimas Cernius
+ * Copyright (C) 2010-2021 Aurimas Cernius
  * Copyright (C) 2010 Debarshi Ray
  * Copyright (C) 2009 Hubert Figuiere
  *
@@ -79,22 +79,23 @@ namespace gnote {
 
     make_header_bar();
     make_search_box();
-    m_content_vbox.set_orientation(Gtk::ORIENTATION_VERTICAL);
+    auto content = manage(new Gtk::Grid);
+    content->set_orientation(Gtk::ORIENTATION_VERTICAL);
     int content_y_attach = 0;
     if(use_client_side_decorations(m_preferences)) {
       set_titlebar(*static_cast<Gtk::HeaderBar*>(m_header_bar));
     }
     else {
-      m_content_vbox.attach(*m_header_bar, 0, content_y_attach++, 1, 1);
+      content->attach(*m_header_bar, 0, content_y_attach++, 1, 1);
     }
-    m_content_vbox.attach(m_search_box, 0, content_y_attach++, 1, 1);
-    m_content_vbox.attach(m_embed_box, 0, content_y_attach++, 1, 1);
+    content->attach(m_search_box, 0, content_y_attach++, 1, 1);
+    content->attach(m_embed_box, 0, content_y_attach++, 1, 1);
     m_embed_box.set_hexpand(true);
     m_embed_box.set_vexpand(true);
     m_embed_box.show();
-    m_content_vbox.show ();
+    content->show();
 
-    add (m_content_vbox);
+    add(*content);
     signal_delete_event().connect(sigc::mem_fun(*this, &NoteRecentChanges::on_delete));
     signal_key_press_event()
       .connect(sigc::mem_fun(*this, &NoteRecentChanges::on_key_pressed));
diff --git a/src/recentchanges.hpp b/src/recentchanges.hpp
index cb96f451..4a102799 100644
--- a/src/recentchanges.hpp
+++ b/src/recentchanges.hpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2010-2017,2019-2020 Aurimas Cernius
+ * Copyright (C) 2010-2017,2019-2021 Aurimas Cernius
  * Copyright (C) 2010 Debarshi Ray
  * Copyright (C) 2009 Hubert Figuiere
  *
@@ -99,7 +99,6 @@ private:
   Preferences        &m_preferences;
   Gtk::Widget        *m_header_bar;
   SearchNotesWidget   m_search_notes_widget;
-  Gtk::Grid           m_content_vbox;
   Gtk::Alignment      m_search_box;
   Gtk::Grid           m_find_next_prev_box;
   Gtk::ToggleButton   m_search_button;


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