[gtksourceviewmm] tests: Avoid deprecated Gtk::HBox and Gtk::VBox.



commit 248b93d3571f62d347680dcbddecc7cfc5867cac
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Nov 14 12:15:50 2016 +0100

    tests: Avoid deprecated Gtk::HBox and Gtk::VBox.

 tests/completion/main.cc |    4 ++--
 tests/search/main.cc     |    8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/tests/completion/main.cc b/tests/completion/main.cc
index cbb4ce2..c705279 100644
--- a/tests/completion/main.cc
+++ b/tests/completion/main.cc
@@ -143,8 +143,8 @@ TestWindow::TestWindow()
   m_show_icons(0)
 {
 // layout
-  Gtk::HBox* hbox (Gtk::manage(new Gtk::HBox(false, 1)));
-  Gtk::VBox* vbox (Gtk::manage(new Gtk::VBox(false, 1)));
+  Gtk::Box* hbox (Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL, 1)));
+  Gtk::Box* vbox (Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL, 1)));
   m_remember = Gtk::manage(new Gtk::CheckButton("Remember info visibility"));
   m_select_on_show = Gtk::manage(new Gtk::CheckButton("Select first on show"));
   m_show_headers = Gtk::manage(new Gtk::CheckButton("Show headers"));
diff --git a/tests/search/main.cc b/tests/search/main.cc
index 0de4ce4..4bab065 100644
--- a/tests/search/main.cc
+++ b/tests/search/main.cc
@@ -30,7 +30,7 @@ class SearchDialog : public Dialog {
     SearchDialog (const SearchDialog&) ;
     SearchDialog& operator= (const SearchDialog&) ;
 
-    Gtk::HBox *m_hbox ;
+    Gtk::Box *m_hbox ;
     Gtk::Entry *m_entry ;
     Gtk::Button *m_search_forward_button ;
     Gtk::Button *m_search_backward_button ;
@@ -49,7 +49,7 @@ class SearchDialog : public Dialog {
     {
         add_button ("Close", RESPONSE_ACCEPT) ;
 
-        m_hbox = manage (new HBox) ;
+        m_hbox = manage (new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL)) ;
         get_content_area ()->pack_start (*m_hbox) ;
 
         Label *label = manage (new Label ("Search: ")) ;
@@ -125,7 +125,7 @@ class App {
     Menu *m_edit_menu;
     MenuItem *m_edit_menu_item ;
     MenuItem *m_search_menu_item ;
-    VBox *m_main_vbox ;
+    Box *m_main_vbox ;
     View *m_source_view;
 
 public:
@@ -317,7 +317,7 @@ public:
     {
         if (m_main_vbox) {return;}
 
-        m_main_vbox = manage (new VBox) ;
+        m_main_vbox = manage (new Gtk::Box(Gtk::ORIENTATION_VERTICAL)) ;
         g_return_if_fail (m_menu_bar) ;
         m_main_vbox->pack_start (*m_menu_bar, PACK_SHRINK) ;
         m_source_view = manage (new View) ;


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