[gtkmm-documentation] Examples: Remove calls to show_all() and show_all_children()



commit cbd9657ff516bd96556da63a606e978c63a63579
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Tue Jan 24 09:29:46 2017 +0100

    Examples: Remove calls to show_all() and show_all_children()
    
    Replace many calls to property_margin() with calls to set_margin().
    Remove the width and height parameters in some calls to Gtk::Grid::attach()
    where the default values can be used.

 examples/book/actionbar/examplewindow.cc           |    2 --
 examples/book/alignment/examplewindow.cc           |    4 +---
 .../command_line_handling/examplewindow.cc         |    2 +-
 examples/book/application/simple/examplewindow.cc  |    2 +-
 examples/book/aspectframe/examplewindow.cc         |    4 +---
 examples/book/assistant/exampleassistant.cc        |    2 --
 examples/book/assistant/examplewindow.cc           |    4 +---
 examples/book/box/examplewindow.cc                 |    4 ----
 examples/book/builder/derived/deriveddialog.cc     |    1 -
 examples/book/buttonbox/examplewindow.cc           |    8 +++-----
 examples/book/buttons/button/buttons.cc            |    4 +---
 examples/book/buttons/checkbutton/examplewindow.cc |    4 +---
 .../buttons/filechooserbutton/examplewindow.cc     |    4 +---
 examples/book/buttons/radiobutton/radiobuttons.cc  |    7 ++-----
 examples/book/buttons/scalebutton/examplewindow.cc |    4 +---
 .../book/buttons/togglebutton/examplewindow.cc     |    4 +---
 .../book/buttons/volumebutton/examplewindow.cc     |    4 +---
 examples/book/clipboard/ideal/examplewindow.cc     |    4 +---
 examples/book/clipboard/simple/examplewindow.cc    |    4 +---
 examples/book/combobox/complex/examplewindow.cc    |    4 ----
 .../book/combobox/entry_complex/examplewindow.cc   |    4 ----
 examples/book/combobox/entry_text/examplewindow.cc |    3 ---
 examples/book/combobox/text/examplewindow.cc       |    4 ----
 .../book/custom/custom_container/examplewindow.cc  |    6 ++----
 .../book/custom/custom_widget/examplewindow.cc     |    7 ++-----
 examples/book/dialogs/aboutdialog/examplewindow.cc |    4 ----
 .../dialogs/colorchooserdialog/examplewindow.cc    |    2 --
 .../dialogs/filechooserdialog/examplewindow.cc     |    4 ----
 .../dialogs/fontchooserdialog/examplewindow.cc     |    3 ---
 .../book/dialogs/messagedialog/examplewindow.cc    |    4 ----
 examples/book/dialogs/simple/examplewindow.cc      |    4 ----
 examples/book/drag_and_drop/dndwindow.cc           |    4 ----
 .../book/drawingarea/thin_lines/examplewindow.cc   |    2 --
 examples/book/entry/completion/examplewindow.cc    |    4 ----
 examples/book/entry/icon/examplewindow.cc          |    4 ----
 examples/book/entry/progress/examplewindow.cc      |    4 ----
 examples/book/entry/simple/examplewindow.cc        |    4 ----
 examples/book/eventbox/examplewindow.cc            |    4 +---
 examples/book/expander/examplewindow.cc            |    4 +---
 examples/book/flowbox/examplewindow.cc             |    4 +---
 examples/book/frame/examplewindow.cc               |    4 +---
 examples/book/grid/examplewindow.cc                |    4 +---
 examples/book/headerbar/examplewindow.cc           |   16 +++++++---------
 examples/book/iconview/examplewindow.cc            |    6 ++----
 examples/book/idle/idleexample.cc                  |    4 +---
 examples/book/infobar/examplewindow.cc             |    4 +---
 .../keyboard_events/propagation/examplewindow.cc   |    4 +---
 .../book/keyboard_events/simple/examplewindow.cc   |    4 +---
 examples/book/label/examplewindow.cc               |    4 +---
 examples/book/listbox/examplewindow.cc             |    6 +-----
 examples/book/listmodel/examplewindow.cc           |    4 +---
 .../book/menus/main_menu/exampleapplication.cc     |    2 --
 examples/book/menus/popup/examplewindow.cc         |    2 --
 examples/book/menus_and_toolbars/examplewindow.cc  |    2 --
 examples/book/multithread/examplewindow.cc         |    6 ++----
 examples/book/notebook/examplewindow.cc            |    6 ++----
 examples/book/paned/examplewindow.cc               |    4 +---
 examples/book/paned/messageslist.cc                |    4 ----
 examples/book/paned/messagetext.cc                 |    4 ----
 examples/book/placessidebar/examplewindow.cc       |    5 +----
 examples/book/popover/examplewindow.cc             |   10 +++-------
 examples/book/printing/advanced/examplewindow.cc   |   14 ++++++--------
 examples/book/printing/advanced/previewdialog.cc   |    4 +---
 examples/book/printing/simple/examplewindow.cc     |   14 ++++++--------
 examples/book/progressbar/examplewindow.cc         |   16 +++++++---------
 examples/book/range_widgets/examplewindow.cc       |    6 ++----
 examples/book/recent_files/examplewindow.cc        |    2 --
 examples/book/revealer/examplewindow.cc            |   16 +++++++---------
 examples/book/scrolledwindow/examplewindow.cc      |    4 +---
 examples/book/searchbar/examplewindow.cc           |   12 +++++-------
 examples/book/spinbutton/examplewindow.cc          |    8 +++-----
 examples/book/textview/examplewindow.cc            |    6 ++----
 examples/book/timeout/timerexample.cc              |    4 +---
 examples/book/toolbar/examplewindow.cc             |    4 +---
 examples/book/toolpalette/examplewindow.cc         |   10 ++++------
 examples/book/tooltips/examplewindow.cc            |    4 +---
 .../book/treeview/combo_renderer/examplewindow.cc  |    6 ++----
 .../book/treeview/drag_and_drop/examplewindow.cc   |    6 ++----
 .../book/treeview/editable_cells/examplewindow.cc  |    6 ++----
 examples/book/treeview/filter/examplewindow.cc     |    6 ++----
 .../book/treeview/filter_modify/examplewindow.cc   |    6 ++----
 examples/book/treeview/list/examplewindow.cc       |    6 ++----
 .../book/treeview/listviewtext/examplewindow.cc    |    6 ++----
 examples/book/treeview/modelsort/examplewindow.cc  |    6 ++----
 examples/book/treeview/popup/examplewindow.cc      |    6 ++----
 examples/book/treeview/popup/treeview_withpopup.cc |    1 -
 examples/book/treeview/tree/examplewindow.cc       |    6 ++----
 examples/book/update_ui/examplewindow.cc           |    6 ++----
 examples/others/arrow/arrow.cc                     |   11 +++++------
 examples/others/calendar/calendar.cc               |    4 +---
 .../others/cellrenderercustom/cellrendererlist.cc  |    3 ---
 .../cellrenderercustom/cellrenderertoggle.cc       |    2 --
 examples/others/cellrenderercustom/popupentry.cc   |    3 ---
 examples/others/cellrenderercustom/testpopup.cc    |    4 ----
 examples/others/dnd/dndwindow.cc                   |   13 ++++---------
 examples/others/exception/exceptiontest.cc         |    4 +---
 examples/others/idle/idle.cc                       |    3 +--
 examples/others/statusbar/statusbar.cc             |    2 --
 examples/others/tictactoe/tictactoe.cc             |    6 +-----
 examples/others/tictactoe/ttt_test.cc              |    3 +--
 examples/others/treemodelcustom/examplewindow.cc   |    6 ++----
 101 files changed, 137 insertions(+), 378 deletions(-)
---
diff --git a/examples/book/actionbar/examplewindow.cc b/examples/book/actionbar/examplewindow.cc
index 6027f36..1206edb 100644
--- a/examples/book/actionbar/examplewindow.cc
+++ b/examples/book/actionbar/examplewindow.cc
@@ -54,8 +54,6 @@ ExampleWindow::ExampleWindow()
   m_box.pack_start(m_face_image, Gtk::PACK_EXPAND_WIDGET);
   m_box.pack_end(m_action_bar, Gtk::PACK_SHRINK);
   add(m_box);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/alignment/examplewindow.cc b/examples/book/alignment/examplewindow.cc
index a545fa9..4a5cd38 100644
--- a/examples/book/alignment/examplewindow.cc
+++ b/examples/book/alignment/examplewindow.cc
@@ -22,15 +22,13 @@ ExampleWindow::ExampleWindow()
   set_title("Alignment");
   set_default_size(200, 50);
 
-  m_Button.property_margin() = 10;
+  m_Button.set_margin(10);
   m_Button.set_halign(Gtk::ALIGN_END);
   m_Button.set_valign(Gtk::ALIGN_CENTER);
   add(m_Button);
 
   m_Button.signal_clicked().connect( sigc::mem_fun(*this,
               &ExampleWindow::on_button_clicked) );
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/application/command_line_handling/examplewindow.cc 
b/examples/book/application/command_line_handling/examplewindow.cc
index 05810b3..ac0af4b 100644
--- a/examples/book/application/command_line_handling/examplewindow.cc
+++ b/examples/book/application/command_line_handling/examplewindow.cc
@@ -61,6 +61,6 @@ bool ExampleWindow::load_file(const Glib::RefPtr<Gio::File>& file)
     return false;
   }
 
-  show_all_children();
+  show();
   return true;
 }
diff --git a/examples/book/application/simple/examplewindow.cc 
b/examples/book/application/simple/examplewindow.cc
index 05810b3..ac0af4b 100644
--- a/examples/book/application/simple/examplewindow.cc
+++ b/examples/book/application/simple/examplewindow.cc
@@ -61,6 +61,6 @@ bool ExampleWindow::load_file(const Glib::RefPtr<Gio::File>& file)
     return false;
   }
 
-  show_all_children();
+  show();
   return true;
 }
diff --git a/examples/book/aspectframe/examplewindow.cc b/examples/book/aspectframe/examplewindow.cc
index 5e72772..1ccc16a 100644
--- a/examples/book/aspectframe/examplewindow.cc
+++ b/examples/book/aspectframe/examplewindow.cc
@@ -31,12 +31,10 @@ ExampleWindow::ExampleWindow()
   m_DrawingArea.set_content_width(200);
   m_DrawingArea.set_content_height(200);
   m_AspectFrame.add(m_DrawingArea);
-  m_AspectFrame.property_margin() = 10;
+  m_AspectFrame.set_margin(10);
 
   // Add the aspect frame to our toplevel window:
   add(m_AspectFrame);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/assistant/exampleassistant.cc b/examples/book/assistant/exampleassistant.cc
index 54836a1..610878b 100644
--- a/examples/book/assistant/exampleassistant.cc
+++ b/examples/book/assistant/exampleassistant.cc
@@ -54,8 +54,6 @@ ExampleAssistant::ExampleAssistant()
 
   m_entry.signal_changed().connect(sigc::mem_fun(*this,
     &ExampleAssistant::on_entry_changed));
-
-  show_all_children();
 }
 
 ExampleAssistant::~ExampleAssistant()
diff --git a/examples/book/assistant/examplewindow.cc b/examples/book/assistant/examplewindow.cc
index 9ceb01e..28d6009 100644
--- a/examples/book/assistant/examplewindow.cc
+++ b/examples/book/assistant/examplewindow.cc
@@ -26,7 +26,7 @@ ExampleWindow::ExampleWindow()
 
   m_grid.set_row_homogeneous(true);
   m_grid.set_column_spacing(5);
-  m_grid.property_margin() = 12;
+  m_grid.set_margin(12);
 
   m_grid.attach(m_button, 0, 0, 2, 1);
   m_button.set_hexpand(true);
@@ -51,8 +51,6 @@ ExampleWindow::ExampleWindow()
 
   m_check.set_sensitive(false);
   m_entry.set_sensitive(false);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/box/examplewindow.cc b/examples/book/box/examplewindow.cc
index ff655d1..5b4caa5 100644
--- a/examples/book/box/examplewindow.cc
+++ b/examples/book/box/examplewindow.cc
@@ -1,5 +1,3 @@
-//$Id: examplewindow.cc 836 2007-05-09 03:02:38Z jjongsma $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -161,8 +159,6 @@ ExampleWindow::ExampleWindow(int which)
   // pack the vbox (box1) which now contains all our widgets, into the
   // main window.
   add(m_box1);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/builder/derived/deriveddialog.cc b/examples/book/builder/derived/deriveddialog.cc
index bf73a81..3a1d565 100644
--- a/examples/book/builder/derived/deriveddialog.cc
+++ b/examples/book/builder/derived/deriveddialog.cc
@@ -40,7 +40,6 @@ DerivedDialog::DerivedDialog(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Bu
   // Show an icon.
   auto pImage = Gtk::manage(new Gtk::Image());
   pImage->set_from_icon_name(is_glad ? "face-smile" : "face-sad", Gtk::ICON_SIZE_DIALOG);
-  pImage->show_all();
   get_content_area()->pack_start(*pImage);
 }
 
diff --git a/examples/book/buttonbox/examplewindow.cc b/examples/book/buttonbox/examplewindow.cc
index 81a4404..5ae608f 100644
--- a/examples/book/buttonbox/examplewindow.cc
+++ b/examples/book/buttonbox/examplewindow.cc
@@ -24,13 +24,13 @@ ExampleWindow::ExampleWindow()
   m_Frame_Vertical("Vertical Button Boxes")
 {
   set_title("Gtk::ButtonBox");
-  m_VBox_Main.property_margin() = 10;
+  m_VBox_Main.set_margin(10);
   add(m_VBox_Main);
 
   m_VBox_Main.pack_start(m_Frame_Horizontal, Gtk::PACK_EXPAND_WIDGET, 10);
 
   //The horizontal ButtonBoxes:
-  m_VBox.property_margin() = 10;
+  m_VBox.set_margin(10);
   m_Frame_Horizontal.add(m_VBox);
 
   m_VBox.pack_start(*Gtk::manage(
@@ -57,7 +57,7 @@ ExampleWindow::ExampleWindow()
   //The vertical ButtonBoxes:
   m_VBox_Main.pack_start(m_Frame_Vertical, Gtk::PACK_EXPAND_WIDGET, 10);
 
-  m_HBox.property_margin() = 10;
+  m_HBox.set_margin(10);
   m_Frame_Vertical.add(m_HBox);
 
   m_HBox.pack_start(*Gtk::manage(
@@ -78,8 +78,6 @@ ExampleWindow::ExampleWindow()
   m_HBox.pack_start(*Gtk::manage(new ExampleButtonBox(false, "End (spacing 10)",
                   10, Gtk::BUTTONBOX_END)),
           Gtk::PACK_EXPAND_WIDGET, 5);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/buttons/button/buttons.cc b/examples/book/buttons/button/buttons.cc
index e2b5106..8ce3514 100644
--- a/examples/book/buttons/button/buttons.cc
+++ b/examples/book/buttons/button/buttons.cc
@@ -26,10 +26,8 @@ Buttons::Buttons()
   m_button.signal_clicked().connect( sigc::mem_fun(*this,
               &Buttons::on_button_clicked) );
 
-  m_button.property_margin() = 10;
+  m_button.set_margin(10);
   add(m_button);
-
-  show_all_children();
 }
 
 Buttons::~Buttons()
diff --git a/examples/book/buttons/checkbutton/examplewindow.cc 
b/examples/book/buttons/checkbutton/examplewindow.cc
index c940cc6..6ac600d 100644
--- a/examples/book/buttons/checkbutton/examplewindow.cc
+++ b/examples/book/buttons/checkbutton/examplewindow.cc
@@ -25,10 +25,8 @@ ExampleWindow::ExampleWindow()
   m_button.signal_clicked().connect(sigc::mem_fun(*this,
               &ExampleWindow::on_button_clicked) );
 
-  m_button.property_margin() = 10;
+  m_button.set_margin(10);
   add(m_button);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/buttons/filechooserbutton/examplewindow.cc 
b/examples/book/buttons/filechooserbutton/examplewindow.cc
index 53c06f3..047f677 100644
--- a/examples/book/buttons/filechooserbutton/examplewindow.cc
+++ b/examples/book/buttons/filechooserbutton/examplewindow.cc
@@ -24,14 +24,12 @@ ExampleWindow::ExampleWindow()
 
   set_title("FileChooserButton example");
 
-  m_button.property_margin() = 10;
+  m_button.set_margin(10);
   add(m_button);
 
   //Allow our file chooser to select remote URIs,
   //for instance via bookmarked servers:
   m_button.set_local_only(false);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/buttons/radiobutton/radiobuttons.cc 
b/examples/book/buttons/radiobutton/radiobuttons.cc
index 5976890..9ec620d 100644
--- a/examples/book/buttons/radiobutton/radiobuttons.cc
+++ b/examples/book/buttons/radiobutton/radiobuttons.cc
@@ -43,8 +43,8 @@ RadioButtons::RadioButtons() :
   m_Box_Top.pack_start(m_Box2);
 
   // Set the inner boxes' margins
-  m_Box1.property_margin() = 10;
-  m_Box2.property_margin() = 10;
+  m_Box1.set_margin(10);
+  m_Box2.set_margin(10);
 
   // Put the radio buttons in Box1:
   m_Box1.pack_start(m_RadioButton1);
@@ -65,9 +65,6 @@ RadioButtons::RadioButtons() :
   // RadioButtons::on_button_clicked()
   m_Button_Close.signal_clicked().connect(sigc::mem_fun(*this,
               &RadioButtons::on_button_clicked) );
-
-  // Show all children of the window
-  show_all_children();
 }
 
 RadioButtons::~RadioButtons()
diff --git a/examples/book/buttons/scalebutton/examplewindow.cc 
b/examples/book/buttons/scalebutton/examplewindow.cc
index 1754e62..6c5e8e3 100644
--- a/examples/book/buttons/scalebutton/examplewindow.cc
+++ b/examples/book/buttons/scalebutton/examplewindow.cc
@@ -32,7 +32,7 @@ ExampleWindow::ExampleWindow()
   icons.push_back("audio-volume-medium");
   m_button.set_icons(icons);
 
-  m_grid.property_margin() = 12;
+  m_grid.set_margin(12);
   add(m_grid);
   m_grid.set_vexpand(true);
   m_grid.set_hexpand(true);
@@ -44,8 +44,6 @@ ExampleWindow::ExampleWindow()
   m_button.set_value(30.0);
   m_button.signal_value_changed().connect(
     sigc::mem_fun(*this, &ExampleWindow::on_value_changed));
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/buttons/togglebutton/examplewindow.cc 
b/examples/book/buttons/togglebutton/examplewindow.cc
index 7ffbf94..b8bfc65 100644
--- a/examples/book/buttons/togglebutton/examplewindow.cc
+++ b/examples/book/buttons/togglebutton/examplewindow.cc
@@ -25,10 +25,8 @@ ExampleWindow::ExampleWindow()
   m_button.signal_clicked().connect( sigc::mem_fun(*this,
               &ExampleWindow::on_button_clicked) );
 
-  m_button.property_margin() = 10;
+  m_button.set_margin(10);
   add(m_button);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/buttons/volumebutton/examplewindow.cc 
b/examples/book/buttons/volumebutton/examplewindow.cc
index 0107eae..5987b79 100644
--- a/examples/book/buttons/volumebutton/examplewindow.cc
+++ b/examples/book/buttons/volumebutton/examplewindow.cc
@@ -25,7 +25,7 @@ ExampleWindow::ExampleWindow()
 
   set_title("VolumeButton Example");
 
-  m_grid.property_margin() = 12;
+  m_grid.set_margin(12);
   add(m_grid);
   m_button.set_vexpand(true);
   m_button.set_hexpand(true);
@@ -37,8 +37,6 @@ ExampleWindow::ExampleWindow()
   m_button.set_value(0.4);
   m_button.signal_value_changed().connect(
     sigc::mem_fun(*this, &ExampleWindow::on_value_changed));
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/clipboard/ideal/examplewindow.cc b/examples/book/clipboard/ideal/examplewindow.cc
index dab5f39..8c78377 100644
--- a/examples/book/clipboard/ideal/examplewindow.cc
+++ b/examples/book/clipboard/ideal/examplewindow.cc
@@ -37,7 +37,7 @@ ExampleWindow::ExampleWindow()
 {
   set_title("Gtk::Clipboard example");
 
-  m_VBox.property_margin() = 12;
+  m_VBox.set_margin(12);
   add(m_VBox);
 
   m_VBox.pack_start(m_Label, Gtk::PACK_SHRINK);
@@ -69,8 +69,6 @@ ExampleWindow::ExampleWindow()
   Gtk::Clipboard::get()->signal_owner_change().connect(sigc::mem_fun(*this,
               &ExampleWindow::on_clipboard_owner_change) );
 
-  show_all_children();
-
   update_paste_status();
 }
 
diff --git a/examples/book/clipboard/simple/examplewindow.cc b/examples/book/clipboard/simple/examplewindow.cc
index f72f24f..254de96 100644
--- a/examples/book/clipboard/simple/examplewindow.cc
+++ b/examples/book/clipboard/simple/examplewindow.cc
@@ -25,7 +25,7 @@ ExampleWindow::ExampleWindow()
 {
   set_title("Gtk::Clipboard example");
 
-  m_VBox.property_margin() = 12;
+  m_VBox.set_margin(12);
   add(m_VBox);
 
   m_VBox.pack_start(m_Label, Gtk::PACK_SHRINK);
@@ -51,8 +51,6 @@ ExampleWindow::ExampleWindow()
   m_ButtonBox.pack_start(m_Button_Paste, Gtk::PACK_SHRINK);
   m_Button_Paste.signal_clicked().connect(sigc::mem_fun(*this,
               &ExampleWindow::on_button_paste) );
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/combobox/complex/examplewindow.cc b/examples/book/combobox/complex/examplewindow.cc
index 9f27f78..9d4fd7d 100644
--- a/examples/book/combobox/complex/examplewindow.cc
+++ b/examples/book/combobox/complex/examplewindow.cc
@@ -1,5 +1,3 @@
-//$Id: examplewindow.cc 836 2007-05-09 03:02:38Z jjongsma $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -79,8 +77,6 @@ ExampleWindow::ExampleWindow()
 
   //Connect signal handler:
   m_Combo.signal_changed().connect( sigc::mem_fun(*this, &ExampleWindow::on_combo_changed) );
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/combobox/entry_complex/examplewindow.cc 
b/examples/book/combobox/entry_complex/examplewindow.cc
index a51954f..cc298ed 100644
--- a/examples/book/combobox/entry_complex/examplewindow.cc
+++ b/examples/book/combobox/entry_complex/examplewindow.cc
@@ -1,5 +1,3 @@
-//$Id: examplewindow.cc 838 2007-05-10 01:35:59Z jjongsma $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -85,8 +83,6 @@ ExampleWindow::ExampleWindow()
   }
   else
     std::cout << "No Entry ???" << std::endl;
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/combobox/entry_text/examplewindow.cc 
b/examples/book/combobox/entry_text/examplewindow.cc
index a5b36e7..66cbaac 100644
--- a/examples/book/combobox/entry_text/examplewindow.cc
+++ b/examples/book/combobox/entry_text/examplewindow.cc
@@ -1,5 +1,3 @@
-//$Id: examplewindow.cc 836 2007-05-09 03:02:38Z jjongsma $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -50,7 +48,6 @@ ExampleWindow::ExampleWindow()
     std::cout << "No Entry ???" << std::endl;
 
   m_Combo.property_has_frame() = false;
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/combobox/text/examplewindow.cc b/examples/book/combobox/text/examplewindow.cc
index 72a3751..85dfc10 100644
--- a/examples/book/combobox/text/examplewindow.cc
+++ b/examples/book/combobox/text/examplewindow.cc
@@ -1,5 +1,3 @@
-//$Id: examplewindow.cc 836 2007-05-09 03:02:38Z jjongsma $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -34,8 +32,6 @@ ExampleWindow::ExampleWindow()
   //Connect signal handler:
   m_Combo.signal_changed().connect(sigc::mem_fun(*this,
               &ExampleWindow::on_combo_changed) );
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/custom/custom_container/examplewindow.cc 
b/examples/book/custom/custom_container/examplewindow.cc
index 4e5c428..fa2f16c 100644
--- a/examples/book/custom/custom_container/examplewindow.cc
+++ b/examples/book/custom/custom_container/examplewindow.cc
@@ -26,7 +26,7 @@ ExampleWindow::ExampleWindow()
   set_title("Custom Container example");
   set_default_size(400, 200);
 
-  m_VBox.property_margin() = 6;
+  m_VBox.set_margin(6);
   add(m_VBox);
 
   //Add the child widgets to the custom container:
@@ -36,12 +36,10 @@ ExampleWindow::ExampleWindow()
   m_VBox.pack_start(m_ButtonBox, Gtk::PACK_SHRINK);
 
   m_ButtonBox.pack_start(m_Button_Quit, Gtk::PACK_SHRINK);
-  m_ButtonBox.property_margin() = 6;
+  m_ButtonBox.set_margin(6);
   m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
   m_Button_Quit.signal_clicked().connect( sigc::mem_fun(*this,
               &ExampleWindow::on_button_quit) );
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/custom/custom_widget/examplewindow.cc 
b/examples/book/custom/custom_widget/examplewindow.cc
index 4795490..a632740 100644
--- a/examples/book/custom/custom_widget/examplewindow.cc
+++ b/examples/book/custom/custom_widget/examplewindow.cc
@@ -23,19 +23,16 @@ ExampleWindow::ExampleWindow()
   set_title("Custom Widget example");
   set_default_size(400, 200);
 
-  m_VBox.property_margin() = 6;
+  m_VBox.set_margin(6);
   add(m_VBox);
   m_VBox.pack_start(m_MyWidget, Gtk::PACK_EXPAND_WIDGET);
-  m_MyWidget.show();
 
   m_VBox.pack_start(m_ButtonBox, Gtk::PACK_SHRINK);
 
   m_ButtonBox.pack_start(m_Button_Quit, Gtk::PACK_SHRINK);
-  m_ButtonBox.property_margin() = 6;
+  m_ButtonBox.set_margin(6);
   m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
   m_Button_Quit.signal_clicked().connect( sigc::mem_fun(*this, &ExampleWindow::on_button_quit) );
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/dialogs/aboutdialog/examplewindow.cc 
b/examples/book/dialogs/aboutdialog/examplewindow.cc
index 715bb04..55e383a 100644
--- a/examples/book/dialogs/aboutdialog/examplewindow.cc
+++ b/examples/book/dialogs/aboutdialog/examplewindow.cc
@@ -58,10 +58,6 @@ ExampleWindow::ExampleWindow()
   m_Dialog.signal_response().connect(
     sigc::mem_fun(*this, &ExampleWindow::on_about_dialog_response) );
 
-  show_all_children();
-
-  // The widget must be realized and mapped before grab_focus() is called.
-  // That's why it's called after show_all_children().
   m_Button.grab_focus();
 }
 
diff --git a/examples/book/dialogs/colorchooserdialog/examplewindow.cc 
b/examples/book/dialogs/colorchooserdialog/examplewindow.cc
index 49248b0..3db49d2 100644
--- a/examples/book/dialogs/colorchooserdialog/examplewindow.cc
+++ b/examples/book/dialogs/colorchooserdialog/examplewindow.cc
@@ -43,8 +43,6 @@ ExampleWindow::ExampleWindow()
 
   m_VBox.pack_start(m_DrawingArea);
   m_DrawingArea.set_draw_func(sigc::mem_fun(*this, &ExampleWindow::on_drawing_area_draw));
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/dialogs/filechooserdialog/examplewindow.cc 
b/examples/book/dialogs/filechooserdialog/examplewindow.cc
index b534563..bb7cb4f 100644
--- a/examples/book/dialogs/filechooserdialog/examplewindow.cc
+++ b/examples/book/dialogs/filechooserdialog/examplewindow.cc
@@ -1,5 +1,3 @@
-//$Id: examplewindow.cc 836 2007-05-09 03:02:38Z jjongsma $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -36,8 +34,6 @@ ExampleWindow::ExampleWindow()
   m_ButtonBox.pack_start(m_Button_Folder);
   m_Button_Folder.signal_clicked().connect(sigc::mem_fun(*this,
               &ExampleWindow::on_button_folder_clicked) );
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/dialogs/fontchooserdialog/examplewindow.cc 
b/examples/book/dialogs/fontchooserdialog/examplewindow.cc
index 3acd136..2bd644c 100644
--- a/examples/book/dialogs/fontchooserdialog/examplewindow.cc
+++ b/examples/book/dialogs/fontchooserdialog/examplewindow.cc
@@ -1,5 +1,3 @@
-//$Id: examplewindow.cc 836 2007-05-09 03:02:38Z jjongsma $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -37,7 +35,6 @@ ExampleWindow::ExampleWindow()
   m_ButtonBox.pack_start(m_Button_Dialog);
   m_Button_Dialog.signal_clicked().connect(sigc::mem_fun(*this,
     &ExampleWindow::on_button_dialog_clicked) );
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/dialogs/messagedialog/examplewindow.cc 
b/examples/book/dialogs/messagedialog/examplewindow.cc
index 758174d..0a3f296 100644
--- a/examples/book/dialogs/messagedialog/examplewindow.cc
+++ b/examples/book/dialogs/messagedialog/examplewindow.cc
@@ -1,5 +1,3 @@
-//$Id: examplewindow.cc 836 2007-05-09 03:02:38Z jjongsma $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -37,8 +35,6 @@ ExampleWindow::ExampleWindow()
   m_ButtonBox.pack_start(m_Button_Question);
   m_Button_Question.signal_clicked().connect(sigc::mem_fun(*this,
               &ExampleWindow::on_button_question_clicked) );
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/dialogs/simple/examplewindow.cc b/examples/book/dialogs/simple/examplewindow.cc
index 32997d2..6ab59bb 100644
--- a/examples/book/dialogs/simple/examplewindow.cc
+++ b/examples/book/dialogs/simple/examplewindow.cc
@@ -1,5 +1,3 @@
-//$Id: examplewindow.cc 836 2007-05-09 03:02:38Z jjongsma $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -28,8 +26,6 @@ ExampleWindow::ExampleWindow()
   add(m_Button);
   m_Button.signal_clicked().connect(sigc::mem_fun(*this,
               &ExampleWindow::on_button_clicked) );
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/drag_and_drop/dndwindow.cc b/examples/book/drag_and_drop/dndwindow.cc
index 8983af3..c7ba45a 100644
--- a/examples/book/drag_and_drop/dndwindow.cc
+++ b/examples/book/drag_and_drop/dndwindow.cc
@@ -1,5 +1,3 @@
-//$Id: dndwindow.cc 836 2007-05-09 03:02:38Z jjongsma $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -53,8 +51,6 @@ DnDWindow::DnDWindow()
               &DnDWindow::on_label_drop_drag_data_received) );
 
   m_HBox.pack_start(m_Label_Drop);
-
-  show_all();
 }
 
 DnDWindow::~DnDWindow()
diff --git a/examples/book/drawingarea/thin_lines/examplewindow.cc 
b/examples/book/drawingarea/thin_lines/examplewindow.cc
index 6827aea..5d234ae 100644
--- a/examples/book/drawingarea/thin_lines/examplewindow.cc
+++ b/examples/book/drawingarea/thin_lines/examplewindow.cc
@@ -33,8 +33,6 @@ ExampleWindow::ExampleWindow()
 
   // Synchonize the drawing in m_Area_Lines with the state of the toggle button.
   on_button_toggled();
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/entry/completion/examplewindow.cc b/examples/book/entry/completion/examplewindow.cc
index 2cacf06..d528ab6 100644
--- a/examples/book/entry/completion/examplewindow.cc
+++ b/examples/book/entry/completion/examplewindow.cc
@@ -1,5 +1,3 @@
-//$Id: examplewindow.cc 836 2007-05-09 03:02:38Z jjongsma $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -93,8 +91,6 @@ ExampleWindow::ExampleWindow()
 
   completion->signal_action_activated().connect( sigc::mem_fun(*this,
               &ExampleWindow::on_completion_action_activated) );
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/entry/icon/examplewindow.cc b/examples/book/entry/icon/examplewindow.cc
index 0252e96..20cf8f1 100644
--- a/examples/book/entry/icon/examplewindow.cc
+++ b/examples/book/entry/icon/examplewindow.cc
@@ -1,5 +1,3 @@
-//$Id: examplewindow.cc 836 2007-05-09 03:02:38Z jjongsma $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -40,8 +38,6 @@ ExampleWindow::ExampleWindow()
   m_VBox.pack_start(m_Button_Close, Gtk::PACK_SHRINK);
   m_Button_Close.set_can_default();
   m_Button_Close.grab_default();
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/entry/progress/examplewindow.cc b/examples/book/entry/progress/examplewindow.cc
index aceb9c3..6e2978e 100644
--- a/examples/book/entry/progress/examplewindow.cc
+++ b/examples/book/entry/progress/examplewindow.cc
@@ -1,5 +1,3 @@
-//$Id: examplewindow.cc 836 2007-05-09 03:02:38Z jjongsma $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -42,8 +40,6 @@ ExampleWindow::ExampleWindow()
   m_VBox.pack_start(m_Button_Close, Gtk::PACK_SHRINK);
   m_Button_Close.set_can_default();
   m_Button_Close.grab_default();
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/entry/simple/examplewindow.cc b/examples/book/entry/simple/examplewindow.cc
index 280828f..a12bb50 100644
--- a/examples/book/entry/simple/examplewindow.cc
+++ b/examples/book/entry/simple/examplewindow.cc
@@ -1,5 +1,3 @@
-//$Id: examplewindow.cc 836 2007-05-09 03:02:38Z jjongsma $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -54,8 +52,6 @@ ExampleWindow::ExampleWindow()
   m_VBox.pack_start(m_Button_Close);
   m_Button_Close.set_can_default();
   m_Button_Close.grab_default();
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/eventbox/examplewindow.cc b/examples/book/eventbox/examplewindow.cc
index 38b9c47..773f249 100644
--- a/examples/book/eventbox/examplewindow.cc
+++ b/examples/book/eventbox/examplewindow.cc
@@ -21,7 +21,7 @@ ExampleWindow::ExampleWindow()
 {
   set_title ("EventBox");
 
-  m_EventBox.property_margin() = 10;
+  m_EventBox.set_margin(10);
   add(m_EventBox);
 
   m_EventBox.add(m_Label);
@@ -37,8 +37,6 @@ ExampleWindow::ExampleWindow()
     sigc::mem_fun(*this, &ExampleWindow::on_eventbox_button_press) );
 
   m_EventBox.set_tooltip_text("Click me!");
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/expander/examplewindow.cc b/examples/book/expander/examplewindow.cc
index d8d4136..3e83643 100644
--- a/examples/book/expander/examplewindow.cc
+++ b/examples/book/expander/examplewindow.cc
@@ -23,15 +23,13 @@ ExampleWindow::ExampleWindow()
   set_title("Expander Example");
 
   /* Sets the margin around the expander. */
-  m_Expander.property_margin() = 6;
+  m_Expander.set_margin(6);
 
   add(m_Expander);
   m_Expander.add(m_Label);
 
   /* Set the label */
   m_Expander.set_label("Gtk::Expander Widget");
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/flowbox/examplewindow.cc b/examples/book/flowbox/examplewindow.cc
index 00a2136..15236ae 100644
--- a/examples/book/flowbox/examplewindow.cc
+++ b/examples/book/flowbox/examplewindow.cc
@@ -40,10 +40,8 @@ ExampleWindow::ExampleWindow()
 
   // Layout
   m_scrolled_window.add(m_flow_box);
-  m_scrolled_window.property_margin() = 6;
+  m_scrolled_window.set_margin(6);
   add(m_scrolled_window);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/frame/examplewindow.cc b/examples/book/frame/examplewindow.cc
index 9b39f6e..55946ad 100644
--- a/examples/book/frame/examplewindow.cc
+++ b/examples/book/frame/examplewindow.cc
@@ -23,7 +23,7 @@ ExampleWindow::ExampleWindow()
   set_size_request(300, 300);
 
   /* Sets the margin around the frame. */
-  m_Frame.property_margin() = 10;
+  m_Frame.set_margin(10);
 
   add(m_Frame);
 
@@ -35,8 +35,6 @@ ExampleWindow::ExampleWindow()
 
   /* Set the style of the frame */
   m_Frame.set_shadow_type(Gtk::SHADOW_ETCHED_OUT);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/grid/examplewindow.cc b/examples/book/grid/examplewindow.cc
index aaf60f5..6c6890c 100644
--- a/examples/book/grid/examplewindow.cc
+++ b/examples/book/grid/examplewindow.cc
@@ -25,7 +25,7 @@ ExampleWindow::ExampleWindow()
 {
   set_title("Gtk::Grid");
 
-  m_grid.property_margin() = 12;
+  m_grid.set_margin(12);
   add(m_grid);
 
   m_grid.add(m_button_1);
@@ -39,8 +39,6 @@ ExampleWindow::ExampleWindow()
 
   m_button_quit.signal_clicked().connect(sigc::mem_fun(*this,
     &ExampleWindow::on_button_quit) );
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/headerbar/examplewindow.cc b/examples/book/headerbar/examplewindow.cc
index 1551feb..02df517 100644
--- a/examples/book/headerbar/examplewindow.cc
+++ b/examples/book/headerbar/examplewindow.cc
@@ -50,16 +50,14 @@ ExampleWindow::ExampleWindow()
   // Layout
   m_grid.set_column_spacing(6);
   m_grid.set_row_spacing(6);
-  m_grid.attach(m_close_button_label, 0, 0, 1, 1);
-  m_grid.attach(m_switch, 1, 0, 1, 1);
-  m_grid.attach(m_title_label, 0, 1, 1, 1);
-  m_grid.attach(m_title_entry, 1, 1, 1, 1);
-  m_grid.attach(m_subtitle_label, 0, 2, 1, 1);
-  m_grid.attach(m_subtitle_entry, 1, 2, 1, 1);
-  m_grid.property_margin() = 12;
+  m_grid.attach(m_close_button_label, 0, 0);
+  m_grid.attach(m_switch, 1, 0);
+  m_grid.attach(m_title_label, 0, 1);
+  m_grid.attach(m_title_entry, 1, 1);
+  m_grid.attach(m_subtitle_label, 0, 2);
+  m_grid.attach(m_subtitle_entry, 1, 2);
+  m_grid.set_margin(12);
   add(m_grid);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/iconview/examplewindow.cc b/examples/book/iconview/examplewindow.cc
index 7c3070c..12baa30 100644
--- a/examples/book/iconview/examplewindow.cc
+++ b/examples/book/iconview/examplewindow.cc
@@ -43,7 +43,7 @@ ExampleWindow::ExampleWindow()
   set_title("Gtk::IconView (ListStore + TreeModelSort) example");
   set_default_size(400, 400);
 
-  m_VBox.property_margin() = 5;
+  m_VBox.set_margin(5);
   add(m_VBox);
 
   // Add the TreeView inside a ScrolledWindow, with the button underneath:
@@ -56,7 +56,7 @@ ExampleWindow::ExampleWindow()
   m_VBox.pack_start(m_ButtonBox, Gtk::PACK_SHRINK);
 
   m_ButtonBox.pack_start(m_Button_Quit, Gtk::PACK_SHRINK);
-  m_ButtonBox.property_margin() = 6;
+  m_ButtonBox.set_margin(6);
   m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
   m_Button_Quit.signal_clicked().connect(sigc::mem_fun(*this,
               &ExampleWindow::on_button_quit) );
@@ -92,8 +92,6 @@ ExampleWindow::ExampleWindow()
   {
     add_entry( entries[idx].m_filename, entries[idx].m_description );
   }
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/idle/idleexample.cc b/examples/book/idle/idleexample.cc
index 930ae16..a47352b 100644
--- a/examples/book/idle/idleexample.cc
+++ b/examples/book/idle/idleexample.cc
@@ -20,7 +20,7 @@ IdleExample::IdleExample() :
   m_Box(Gtk::ORIENTATION_VERTICAL, 5),
   m_ButtonQuit("_Quit", true)
 {
-  m_Box.property_margin() = 5;
+  m_Box.set_margin(5);
 
   // Put buttons into container
 
@@ -50,8 +50,6 @@ IdleExample::IdleExample() :
 
   // formatting drive d in idle signal handler - called as quickly as possible
   Glib::signal_idle().connect( sigc::mem_fun(*this, &IdleExample::on_idle) );
-
-  show_all_children();
 }
 
 
diff --git a/examples/book/infobar/examplewindow.cc b/examples/book/infobar/examplewindow.cc
index 1988220..6d8f9b4 100644
--- a/examples/book/infobar/examplewindow.cc
+++ b/examples/book/infobar/examplewindow.cc
@@ -24,7 +24,7 @@ ExampleWindow::ExampleWindow()
   set_title("Gtk::InfoBar example");
   set_default_size(400, 200);
 
-  m_VBox.property_margin() = 6;
+  m_VBox.set_margin(6);
   add(m_VBox);
 
   // Add the message label to the InfoBar:
@@ -69,8 +69,6 @@ ExampleWindow::ExampleWindow()
   m_refTextBuffer->signal_changed().connect(sigc::mem_fun(*this,
               &ExampleWindow::on_textbuffer_changed) );
 
-  show_all();
-
   // Keep the InfoBar hidden until a message needs to be shown:
   m_InfoBar.hide();
 
diff --git a/examples/book/keyboard_events/propagation/examplewindow.cc 
b/examples/book/keyboard_events/propagation/examplewindow.cc
index f8864db..aacd09d 100644
--- a/examples/book/keyboard_events/propagation/examplewindow.cc
+++ b/examples/book/keyboard_events/propagation/examplewindow.cc
@@ -20,7 +20,7 @@
 ExampleWindow::ExampleWindow()
 {
   set_title("Event Propagation");
-  m_container.property_margin() = 10;
+  m_container.set_margin(10);
   add(m_container);
 
   m_label.set_label("A label");
@@ -49,8 +49,6 @@ ExampleWindow::ExampleWindow()
   // Called after the default event signal handler.
   signal_key_release_event().connect(
     sigc::mem_fun(*this, &ExampleWindow::windowKeyRelease));
-
-  show_all_children();
 }
 
 //By changing the return value we allow, or don't allow, the event to propagate to other elements.
diff --git a/examples/book/keyboard_events/simple/examplewindow.cc 
b/examples/book/keyboard_events/simple/examplewindow.cc
index 11f6a98..82fce9a 100644
--- a/examples/book/keyboard_events/simple/examplewindow.cc
+++ b/examples/book/keyboard_events/simple/examplewindow.cc
@@ -19,7 +19,7 @@
 ExampleWindow::ExampleWindow()
 {
   set_title("Keyboard Events");
-  m_container.property_margin() = 10;
+  m_container.set_margin(10);
   add(m_container);
 
   // Radio buttons:
@@ -36,8 +36,6 @@ ExampleWindow::ExampleWindow()
   // Events.
   // We override the default event signal handler.
   add_events(Gdk::KEY_PRESS_MASK);
-
-  show_all_children();
 }
 
 bool ExampleWindow::on_key_press_event(GdkEventKey* key_event)
diff --git a/examples/book/label/examplewindow.cc b/examples/book/label/examplewindow.cc
index c09ed68..c12c6b9 100644
--- a/examples/book/label/examplewindow.cc
+++ b/examples/book/label/examplewindow.cc
@@ -38,7 +38,7 @@ ExampleWindow::ExampleWindow()
 {
   set_title("Label");
 
-  m_HBox.property_margin() = 5;
+  m_HBox.set_margin(5);
   add(m_HBox);
 
   m_HBox.pack_start(m_VBox, Gtk::PACK_SHRINK);
@@ -97,8 +97,6 @@ ExampleWindow::ExampleWindow()
           "     __ _______ ___");
   m_Frame_Underlined.add(m_Label_Underlined);
   m_VBox2.pack_start(m_Frame_Underlined, Gtk::PACK_SHRINK);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/listbox/examplewindow.cc b/examples/book/listbox/examplewindow.cc
index 5c3af29..4e9c32a 100644
--- a/examples/book/listbox/examplewindow.cc
+++ b/examples/book/listbox/examplewindow.cc
@@ -62,7 +62,7 @@ ExampleWindow::ExampleWindow() :
   set_title("ListBox example");
   set_default_size(300, 300);
 
-  m_HBox.property_margin() = 5;
+  m_HBox.set_margin(5);
   add(m_HBox);
   m_HBox.pack_start(m_VBox1, Gtk::PACK_SHRINK);
 
@@ -142,8 +142,6 @@ ExampleWindow::ExampleWindow() :
   m_Button_Unseparate.signal_clicked().connect(sigc::mem_fun(*this, &ExampleWindow::on_unseparate_clicked));
   m_VBox2.pack_start(m_Button_Visibility, Gtk::PACK_SHRINK);
   m_Button_Visibility.signal_clicked().connect(sigc::mem_fun(*this, &ExampleWindow::on_visibility_clicked));
-
-  show_all_children();
 }
 
 void ExampleWindow::on_selection_mode_changed()
@@ -228,7 +226,6 @@ void ExampleWindow::on_add_clicked()
   static int new_button_nr = 1;
   const Glib::ustring text = "blah2 new " + Glib::ustring::format(new_button_nr);
   auto new_row = Gtk::manage(new ExampleRow(text, new_button_nr));
-  new_row->show_all();
   m_ListBox.append(*new_row);
   ++new_button_nr;
 }
@@ -256,7 +253,6 @@ void ExampleWindow::update_header_func(Gtk::ListBoxRow* row, Gtk::ListBoxRow* be
       hbox->pack_start(*label, Gtk::PACK_SHRINK);
       auto button = Gtk::manage(new Gtk::Button("button"));
       hbox->pack_start(*button, Gtk::PACK_SHRINK);
-      hbox->show_all();
       row->set_header(*hbox);
     }
 
diff --git a/examples/book/listmodel/examplewindow.cc b/examples/book/listmodel/examplewindow.cc
index 095485d..952342e 100644
--- a/examples/book/listmodel/examplewindow.cc
+++ b/examples/book/listmodel/examplewindow.cc
@@ -38,7 +38,7 @@ m_button_quit("_Quit", true)
   // Use current time as seed for random number generator.
   std::srand(std::time(nullptr));
 
-  m_grid.property_margin() = 5;
+  m_grid.set_margin(5);
   add(m_grid);
 
   // Select bind_model() or bind_list_store() randomly.
@@ -74,8 +74,6 @@ m_button_quit("_Quit", true)
   m_grid.attach(m_button_remove_some, 0, 2, 2, 1);
   m_button_quit.signal_clicked().connect(sigc::mem_fun(*this, &ExampleWindow::on_quit));
   m_grid.attach(m_button_quit, 0, 3, 2, 1);
-
-  show_all_children();
 }
 
 // static
diff --git a/examples/book/menus/main_menu/exampleapplication.cc 
b/examples/book/menus/main_menu/exampleapplication.cc
index f4054a2..9ea7c1d 100644
--- a/examples/book/menus/main_menu/exampleapplication.cc
+++ b/examples/book/menus/main_menu/exampleapplication.cc
@@ -233,8 +233,6 @@ void ExampleApplication::create_window()
   //That's enough for this simple example.
   win->signal_hide().connect(sigc::bind(
     sigc::mem_fun(*this, &ExampleApplication::on_window_hide), win));
-
-  win->show_all();
 }
 
 void ExampleApplication::on_window_hide(Gtk::Window* window)
diff --git a/examples/book/menus/popup/examplewindow.cc b/examples/book/menus/popup/examplewindow.cc
index 6c9e052..82d33f5 100644
--- a/examples/book/menus/popup/examplewindow.cc
+++ b/examples/book/menus/popup/examplewindow.cc
@@ -99,8 +99,6 @@ ExampleWindow::ExampleWindow()
     g_warning("GMenu not found");
 
   m_pMenuPopup = new Gtk::Menu(gmenu);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/menus_and_toolbars/examplewindow.cc 
b/examples/book/menus_and_toolbars/examplewindow.cc
index 57ebaa5..c21b6e3 100644
--- a/examples/book/menus_and_toolbars/examplewindow.cc
+++ b/examples/book/menus_and_toolbars/examplewindow.cc
@@ -149,8 +149,6 @@ ExampleWindow::ExampleWindow(const Glib::RefPtr<Gtk::Application>& app)
     g_warning("GtkToolbar not found");
   else
     m_Box.pack_start(*toolbar, Gtk::PACK_SHRINK);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/multithread/examplewindow.cc b/examples/book/multithread/examplewindow.cc
index c37387e..9e39734 100644
--- a/examples/book/multithread/examplewindow.cc
+++ b/examples/book/multithread/examplewindow.cc
@@ -32,7 +32,7 @@ ExampleWindow::ExampleWindow() :
   set_title("Multi-threaded example");
   set_default_size(300, 300);
 
-  m_VBox.property_margin() = 5;
+  m_VBox.set_margin(5);
   add(m_VBox);
 
   // Add the ProgressBar.
@@ -57,7 +57,7 @@ ExampleWindow::ExampleWindow() :
   m_ButtonBox.pack_start(m_ButtonStart, Gtk::PACK_SHRINK);
   m_ButtonBox.pack_start(m_ButtonStop, Gtk::PACK_SHRINK);
   m_ButtonBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK);
-  m_ButtonBox.property_margin() = 5;
+  m_ButtonBox.set_margin(5);
   m_ButtonBox.set_spacing(5);
   m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
 
@@ -74,8 +74,6 @@ ExampleWindow::ExampleWindow() :
   buffer->create_mark("last_line", buffer->end(), /* left_gravity= */ true);
 
   update_start_stop_buttons();
-
-  show_all_children();
 }
 
 void ExampleWindow::on_start_button_clicked()
diff --git a/examples/book/notebook/examplewindow.cc b/examples/book/notebook/examplewindow.cc
index 38b37aa..bcb4432 100644
--- a/examples/book/notebook/examplewindow.cc
+++ b/examples/book/notebook/examplewindow.cc
@@ -26,11 +26,11 @@ ExampleWindow::ExampleWindow()
   set_title("Gtk::Notebook example");
   set_default_size(400, 200);
 
-  m_VBox.property_margin() = 10;
+  m_VBox.set_margin(10);
   add(m_VBox);
 
   //Add the Notebook, with the button underneath:
-  m_Notebook.property_margin() = 10;
+  m_Notebook.set_margin(10);
   m_VBox.pack_start(m_Notebook);
   m_VBox.pack_start(m_ButtonBox, Gtk::PACK_SHRINK);
 
@@ -44,8 +44,6 @@ ExampleWindow::ExampleWindow()
 
   m_Notebook.signal_switch_page().connect(sigc::mem_fun(*this,
               &ExampleWindow::on_notebook_switch_page) );
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/paned/examplewindow.cc b/examples/book/paned/examplewindow.cc
index 06fa545..ecc2c30 100644
--- a/examples/book/paned/examplewindow.cc
+++ b/examples/book/paned/examplewindow.cc
@@ -21,7 +21,7 @@ ExampleWindow::ExampleWindow()
 {
   set_title ("Paned Windows");
   set_default_size(450, 400);
-  m_VPaned.property_margin() = 10;
+  m_VPaned.set_margin(10);
 
   /* Add a vpaned widget to our toplevel window */
   add(m_VPaned);
@@ -29,8 +29,6 @@ ExampleWindow::ExampleWindow()
   /* Now add the contents of the two halves of the window */
   m_VPaned.add1(m_MessagesList);
   m_VPaned.add2(m_MessageText);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/paned/messageslist.cc b/examples/book/paned/messageslist.cc
index a5266a8..e07ff16 100644
--- a/examples/book/paned/messageslist.cc
+++ b/examples/book/paned/messageslist.cc
@@ -1,5 +1,3 @@
-//$Id: messageslist.cc 2 2003-01-21 13:41:59Z murrayc $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -43,8 +41,6 @@ MessagesList::MessagesList()
 
   //Add the Model's column to the View's columns:
   m_TreeView.append_column("Messages", m_Columns.m_col_text);
-
-  show_all_children();
 }
 
 MessagesList::~MessagesList()
diff --git a/examples/book/paned/messagetext.cc b/examples/book/paned/messagetext.cc
index 8ce087a..dd8b15d 100644
--- a/examples/book/paned/messagetext.cc
+++ b/examples/book/paned/messagetext.cc
@@ -1,5 +1,3 @@
-//$Id: messagetext.cc 2 2003-01-21 13:41:59Z murrayc $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -24,8 +22,6 @@ MessageText::MessageText()
 
   add(m_TextView);
   insert_text();
-
-  show_all_children();
 }
 
 MessageText::~MessageText()
diff --git a/examples/book/placessidebar/examplewindow.cc b/examples/book/placessidebar/examplewindow.cc
index a8d77c6..74dde0c 100644
--- a/examples/book/placessidebar/examplewindow.cc
+++ b/examples/book/placessidebar/examplewindow.cc
@@ -58,10 +58,8 @@ ExampleWindow::ExampleWindow()
   m_controls_frame.add(m_controls);
   m_hbox.pack_start(m_places_sidebar, Gtk::PACK_EXPAND_WIDGET);
   m_hbox.pack_start(m_controls_frame, Gtk::PACK_SHRINK);
-  m_hbox.property_margin() = 12;
+  m_hbox.set_margin(12);
   add(m_hbox);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
@@ -113,7 +111,6 @@ void ExampleWindow::on_placessidebar_open_location(const Glib::RefPtr<Gio::File>
   location_information_grid.set_margin_end(6);
 
   dialog.get_content_area()->pack_end(location_information_grid, true, true);
-  dialog.show_all();
   dialog.run();
 }
 
diff --git a/examples/book/popover/examplewindow.cc b/examples/book/popover/examplewindow.cc
index 2792c90..ac33317 100644
--- a/examples/book/popover/examplewindow.cc
+++ b/examples/book/popover/examplewindow.cc
@@ -46,10 +46,8 @@ ExampleWindow::ExampleWindow()
   m_grid.set_row_spacing(6);
   m_grid.attach(m_toggle_button, 0, 0, 1, 1);
   m_grid.attach(m_calendar, 0, 1, 6, 1);
-  m_grid.property_margin() = 12;
+  m_grid.set_margin(12);
   add(m_grid);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
@@ -73,11 +71,10 @@ void ExampleWindow::configure_form_popover()
   m_toggle_form_grid.attach(m_format_buttons_box, 0, 1, 2, 1);
   m_toggle_form_grid.attach(m_toggle_form_combo_label, 0, 2, 1, 1);
   m_toggle_form_grid.attach(m_toggle_form_combo, 1, 2, 1, 1);
-  m_toggle_form_grid.show_all();
 
   m_toggle_form_popover.add(m_toggle_form_grid);
   m_toggle_form_popover.set_position(Gtk::POS_BOTTOM);
-  m_toggle_form_popover.property_margin() = 6;
+  m_toggle_form_popover.set_margin(6);
   m_toggle_form_popover.set_modal(false);
 }
 
@@ -137,10 +134,9 @@ void ExampleWindow::configure_cal_popover()
   m_calendar_form_grid.set_column_spacing(6);
   m_calendar_form_grid.attach(m_calendar_popover_label, 0, 0, 1, 1);
   m_calendar_form_grid.attach(m_calendar_popover_entry, 1, 0, 1, 1);
-  m_calendar_form_grid.show_all();
 
   m_calendar_popover.add(m_calendar_form_grid);
-  m_calendar_popover.property_margin() = 6;
+  m_calendar_popover.set_margin(6);
 }
 
 void ExampleWindow::on_day_selected()
diff --git a/examples/book/printing/advanced/examplewindow.cc 
b/examples/book/printing/advanced/examplewindow.cc
index 32e36ad..ef2c0e4 100644
--- a/examples/book/printing/advanced/examplewindow.cc
+++ b/examples/book/printing/advanced/examplewindow.cc
@@ -45,11 +45,11 @@ ExampleWindow::ExampleWindow(const Glib::RefPtr<Gtk::Application>& app)
   //Arrange the widgets inside the grid:
   m_Grid.set_row_spacing(5);
   m_Grid.set_column_spacing(5);
-  m_Grid.attach(m_NameLabel, 0, 0, 1, 1);
-  m_Grid.attach(m_NameEntry, 1, 0, 1, 1);
+  m_Grid.attach(m_NameLabel, 0, 0);
+  m_Grid.attach(m_NameEntry, 1, 0);
 
-  m_Grid.attach(m_SurnameLabel, 0, 1, 1, 1);
-  m_Grid.attach(m_SurnameEntry, 1, 1, 1, 1);
+  m_Grid.attach(m_SurnameLabel, 0, 1);
+  m_Grid.attach(m_SurnameEntry, 1, 1);
 
   //Add the TextView, inside a ScrolledWindow:
   m_ScrolledWindow.add(m_TextView);
@@ -57,8 +57,8 @@ ExampleWindow::ExampleWindow(const Glib::RefPtr<Gtk::Application>& app)
   //Only show the scrollbars when they are necessary:
   m_ScrolledWindow.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
 
-  m_Grid.attach(m_CommentsLabel, 0, 2, 1, 1);
-  m_Grid.attach(m_ScrolledWindow, 1, 2, 1, 1);
+  m_Grid.attach(m_CommentsLabel, 0, 2);
+  m_Grid.attach(m_ScrolledWindow, 1, 2);
   m_ScrolledWindow.set_hexpand(true);
   m_ScrolledWindow.set_vexpand(true);
 
@@ -66,8 +66,6 @@ ExampleWindow::ExampleWindow(const Glib::RefPtr<Gtk::Application>& app)
   m_TextView.set_buffer(m_refTextBuffer);
 
   m_VBox.pack_start(m_Statusbar);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/printing/advanced/previewdialog.cc 
b/examples/book/printing/advanced/previewdialog.cc
index 4fb32c4..f95ebf9 100644
--- a/examples/book/printing/advanced/previewdialog.cc
+++ b/examples/book/printing/advanced/previewdialog.cc
@@ -38,7 +38,7 @@ PreviewDialog::PreviewDialog(
   set_transient_for(parent);
   set_title("Preview");
 
-  m_VBox.property_margin() = 2;
+  m_VBox.set_margin(2);
   add(m_VBox);
 
   m_HBox.pack_start(m_PageSpin);
@@ -66,8 +66,6 @@ PreviewDialog::PreviewDialog(
 
   m_PageSpin.signal_value_changed().connect(
     sigc::mem_fun(*this, &PreviewDialog::on_page_number_changed));
-
-  show_all_children();
 }
 
 PreviewDialog::~PreviewDialog()
diff --git a/examples/book/printing/simple/examplewindow.cc b/examples/book/printing/simple/examplewindow.cc
index 32e36ad..ef2c0e4 100644
--- a/examples/book/printing/simple/examplewindow.cc
+++ b/examples/book/printing/simple/examplewindow.cc
@@ -45,11 +45,11 @@ ExampleWindow::ExampleWindow(const Glib::RefPtr<Gtk::Application>& app)
   //Arrange the widgets inside the grid:
   m_Grid.set_row_spacing(5);
   m_Grid.set_column_spacing(5);
-  m_Grid.attach(m_NameLabel, 0, 0, 1, 1);
-  m_Grid.attach(m_NameEntry, 1, 0, 1, 1);
+  m_Grid.attach(m_NameLabel, 0, 0);
+  m_Grid.attach(m_NameEntry, 1, 0);
 
-  m_Grid.attach(m_SurnameLabel, 0, 1, 1, 1);
-  m_Grid.attach(m_SurnameEntry, 1, 1, 1, 1);
+  m_Grid.attach(m_SurnameLabel, 0, 1);
+  m_Grid.attach(m_SurnameEntry, 1, 1);
 
   //Add the TextView, inside a ScrolledWindow:
   m_ScrolledWindow.add(m_TextView);
@@ -57,8 +57,8 @@ ExampleWindow::ExampleWindow(const Glib::RefPtr<Gtk::Application>& app)
   //Only show the scrollbars when they are necessary:
   m_ScrolledWindow.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
 
-  m_Grid.attach(m_CommentsLabel, 0, 2, 1, 1);
-  m_Grid.attach(m_ScrolledWindow, 1, 2, 1, 1);
+  m_Grid.attach(m_CommentsLabel, 0, 2);
+  m_Grid.attach(m_ScrolledWindow, 1, 2);
   m_ScrolledWindow.set_hexpand(true);
   m_ScrolledWindow.set_vexpand(true);
 
@@ -66,8 +66,6 @@ ExampleWindow::ExampleWindow(const Glib::RefPtr<Gtk::Application>& app)
   m_TextView.set_buffer(m_refTextBuffer);
 
   m_VBox.pack_start(m_Statusbar);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/progressbar/examplewindow.cc b/examples/book/progressbar/examplewindow.cc
index 94cc25d..f6742ba 100644
--- a/examples/book/progressbar/examplewindow.cc
+++ b/examples/book/progressbar/examplewindow.cc
@@ -28,7 +28,7 @@ ExampleWindow::ExampleWindow()
   set_resizable();
   set_title("Gtk::ProgressBar");
 
-  m_VBox.property_margin() = 10;
+  m_VBox.set_margin(10);
   add(m_VBox);
 
   m_VBox.pack_start(m_ProgressBar, Gtk::PACK_SHRINK, 5);
@@ -46,20 +46,20 @@ ExampleWindow::ExampleWindow()
   m_Grid.set_row_homogeneous(true);
 
   //Add a check button to select displaying of the trough text:
-  m_Grid.attach(m_CheckButton_Text, 0, 0, 1, 1);
-  m_CheckButton_Text.property_margin() = 5;
+  m_Grid.attach(m_CheckButton_Text, 0, 0);
+  m_CheckButton_Text.set_margin(5);
   m_CheckButton_Text.signal_clicked().connect(sigc::mem_fun(*this,
               &ExampleWindow::on_checkbutton_text) );
 
   //Add a check button to toggle activity mode:
-  m_Grid.attach(m_CheckButton_Activity, 0, 1, 1, 1);
-  m_CheckButton_Activity.property_margin() = 5;
+  m_Grid.attach(m_CheckButton_Activity, 0, 1);
+  m_CheckButton_Activity.set_margin(5);
   m_CheckButton_Activity.signal_clicked().connect(sigc::mem_fun(*this,
               &ExampleWindow::on_checkbutton_activity) );
 
   //Add a check button to select growth from left to right or from right to left:
-  m_Grid.attach(m_CheckButton_Inverted, 0, 2, 1, 1);
-  m_CheckButton_Inverted.property_margin() = 5;
+  m_Grid.attach(m_CheckButton_Inverted, 0, 2);
+  m_CheckButton_Inverted.set_margin(5);
   m_CheckButton_Inverted.signal_clicked().connect(sigc::mem_fun(*this,
               &ExampleWindow::on_checkbutton_inverted) );
 
@@ -69,8 +69,6 @@ ExampleWindow::ExampleWindow()
               &ExampleWindow::on_button_close) );
   m_Button_Close.set_can_default();
   m_Button_Close.grab_default();
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/range_widgets/examplewindow.cc b/examples/book/range_widgets/examplewindow.cc
index 167db2c..4a946ed 100644
--- a/examples/book/range_widgets/examplewindow.cc
+++ b/examples/book/range_widgets/examplewindow.cc
@@ -66,7 +66,7 @@ ExampleWindow::ExampleWindow()
 
   add(m_VBox_Top);
   m_VBox_Top.pack_start(m_VBox2);
-  m_VBox2.property_margin() = 10;
+  m_VBox2.set_margin(10);
   m_VBox2.pack_start(m_HBox_Scales);
 
   //Put VScale and HScale (above scrollbar) side-by-side.
@@ -137,9 +137,7 @@ ExampleWindow::ExampleWindow()
   m_Button_Quit.grab_default();
   m_Button_Quit.signal_clicked().connect(sigc::mem_fun(*this,
     &ExampleWindow::on_button_quit));
-  m_Button_Quit.property_margin() = 10;
-
-  show_all_children();
+  m_Button_Quit.set_margin(10);
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/recent_files/examplewindow.cc b/examples/book/recent_files/examplewindow.cc
index 4feeb1f..05ff909 100644
--- a/examples/book/recent_files/examplewindow.cc
+++ b/examples/book/recent_files/examplewindow.cc
@@ -137,8 +137,6 @@ ExampleWindow::ExampleWindow(const Glib::RefPtr<Gtk::Application>& app)
     m_Box.pack_start(*pToolbar, Gtk::PACK_SHRINK);
   else
     g_warning("GtkToolbar not found");
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/revealer/examplewindow.cc b/examples/book/revealer/examplewindow.cc
index c0078f1..b6a79e0 100644
--- a/examples/book/revealer/examplewindow.cc
+++ b/examples/book/revealer/examplewindow.cc
@@ -30,20 +30,20 @@ ExampleWindow::ExampleWindow()
 
   // Transition type selector
   compose_transition_selector();
-  m_controls.attach(m_transition_type_label, 0, 0, 1, 1);
-  m_controls.attach(m_transition_type, 1, 0, 1, 1);
+  m_controls.attach(m_transition_type_label, 0, 0);
+  m_controls.attach(m_transition_type, 1, 0);
 
   // Transition duration selector
   m_transition_duration.set_range(10.0, 10000.0); // Up to 10 secs
   m_transition_duration.set_value(1000.0);
-  m_controls.attach(m_transition_duration_label, 0, 1, 1, 1);
-  m_controls.attach(m_transition_duration, 1, 1, 1, 1);
+  m_controls.attach(m_transition_duration_label, 0, 1);
+  m_controls.attach(m_transition_duration, 1, 1);
 
   // Switch
   m_switch.set_active(true);
   m_switch.property_active().signal_changed().connect(sigc::mem_fun(*this, 
&ExampleWindow::on_switch_active_changed));
-  m_controls.attach(m_switch_label, 0, 2, 1, 1);
-  m_controls.attach(m_switch, 1, 2, 1, 1);
+  m_controls.attach(m_switch_label, 0, 2);
+  m_controls.attach(m_switch, 1, 2);
 
   // Revealer
   m_revealer.add(m_label);
@@ -55,10 +55,8 @@ ExampleWindow::ExampleWindow()
   m_vbox.pack_start(m_controls, Gtk::PACK_SHRINK, 0);
   m_vbox.pack_start(m_separator, Gtk::PACK_SHRINK, 12);
   m_vbox.pack_start(m_revealer, Gtk::PACK_EXPAND_WIDGET, 6);
-  m_vbox.property_margin() = 12;
+  m_vbox.set_margin(12);
   add(m_vbox);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/scrolledwindow/examplewindow.cc b/examples/book/scrolledwindow/examplewindow.cc
index 9f8bfb5..9629c56 100644
--- a/examples/book/scrolledwindow/examplewindow.cc
+++ b/examples/book/scrolledwindow/examplewindow.cc
@@ -22,7 +22,7 @@ ExampleWindow::ExampleWindow()
   set_title("Gtk::ScrolledWindow example");
   set_size_request(300, 300);
 
-  m_ScrolledWindow.property_margin() = 10;
+  m_ScrolledWindow.set_margin(10);
 
   /* the policy is one of Gtk::POLICY AUTOMATIC, or Gtk::POLICY_ALWAYS.
    * Gtk::POLICY_AUTOMATIC will automatically decide whether you need
@@ -60,8 +60,6 @@ ExampleWindow::ExampleWindow()
   /* This makes it so the button is the default.
    * Simply hitting the "Enter" key will cause this button to activate. */
   set_default_response(Gtk::RESPONSE_CLOSE);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/searchbar/examplewindow.cc b/examples/book/searchbar/examplewindow.cc
index d0de634..0548451 100644
--- a/examples/book/searchbar/examplewindow.cc
+++ b/examples/book/searchbar/examplewindow.cc
@@ -50,10 +50,10 @@ ExampleWindow::ExampleWindow()
   // Options panel layout:
   m_options_grid.set_halign(Gtk::ALIGN_START);
   m_options_grid.set_column_spacing(6);
-  m_options_grid.attach(m_search_mode_label, 0, 0, 1, 1);
-  m_options_grid.attach(m_search_mode_switch, 1, 0, 1, 1);
-  m_options_grid.attach(m_close_button_label, 0, 1, 1, 1);
-  m_options_grid.attach(m_close_button_switch, 1, 1, 1, 1);
+  m_options_grid.attach(m_search_mode_label, 0, 0);
+  m_options_grid.attach(m_search_mode_switch, 1, 0);
+  m_options_grid.attach(m_close_button_label, 0, 1);
+  m_options_grid.attach(m_close_button_switch, 1, 1);
 
   // Searchbar Layout
   m_up_down_box.pack_start(m_go_down_button, Gtk::PACK_SHRINK);
@@ -74,10 +74,8 @@ ExampleWindow::ExampleWindow()
   m_vbox.pack_start(m_label, Gtk::PACK_SHRINK, 6);
   m_vbox.pack_start(m_separator, Gtk::PACK_SHRINK, 12);
   m_vbox.pack_start(m_options_grid, Gtk::PACK_SHRINK, 12);
-  m_vbox.property_margin() = 12;
+  m_vbox.set_margin(12);
   add(m_vbox);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/spinbutton/examplewindow.cc b/examples/book/spinbutton/examplewindow.cc
index 5f49533..0167fac 100644
--- a/examples/book/spinbutton/examplewindow.cc
+++ b/examples/book/spinbutton/examplewindow.cc
@@ -53,12 +53,12 @@ ExampleWindow::ExampleWindow()
 {
   set_title("SpinButton");
 
-  m_VBox_Main.property_margin() = 10;
+  m_VBox_Main.set_margin(10);
   add(m_VBox_Main);
 
   m_VBox_Main.pack_start(m_Frame_NotAccelerated);
 
-  m_VBox.property_margin() = 5;
+  m_VBox.set_margin(5);
   m_Frame_NotAccelerated.add(m_VBox);
 
   /* Day, month, year spinners */
@@ -91,7 +91,7 @@ ExampleWindow::ExampleWindow()
   //Accelerated:
   m_VBox_Main.pack_start(m_Frame_Accelerated);
 
-  m_VBox_Accelerated.property_margin() = 5;
+  m_VBox_Accelerated.set_margin(5);
   m_Frame_Accelerated.add(m_VBox_Accelerated);
 
   m_VBox_Accelerated.pack_start(m_HBox_Accelerated, Gtk::PACK_EXPAND_WIDGET, 5);
@@ -145,8 +145,6 @@ ExampleWindow::ExampleWindow()
   m_Button_Close.signal_clicked().connect( sigc::mem_fun(*this,
               &ExampleWindow::on_button_close) );
   m_VBox_Main.pack_start(m_Button_Close, Gtk::PACK_SHRINK);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/textview/examplewindow.cc b/examples/book/textview/examplewindow.cc
index 895db2f..75a896d 100644
--- a/examples/book/textview/examplewindow.cc
+++ b/examples/book/textview/examplewindow.cc
@@ -25,7 +25,7 @@ ExampleWindow::ExampleWindow()
   set_title("Gtk::TextView example");
   set_default_size(400, 200);
 
-  m_VBox.property_margin() = 5;
+  m_VBox.set_margin(5);
   add(m_VBox);
 
   //Add the TreeView, inside a ScrolledWindow, with the button underneath:
@@ -42,7 +42,7 @@ ExampleWindow::ExampleWindow()
   m_ButtonBox.pack_start(m_Button_Buffer1, Gtk::PACK_SHRINK);
   m_ButtonBox.pack_start(m_Button_Buffer2, Gtk::PACK_SHRINK);
   m_ButtonBox.pack_start(m_Button_Quit, Gtk::PACK_SHRINK);
-  m_ButtonBox.property_margin() = 5;
+  m_ButtonBox.set_margin(5);
   m_ButtonBox.set_spacing(5);
   m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
 
@@ -56,8 +56,6 @@ ExampleWindow::ExampleWindow()
 
   fill_buffers();
   on_button_buffer1();
-
-  show_all_children();
 }
 
 void ExampleWindow::fill_buffers()
diff --git a/examples/book/timeout/timerexample.cc b/examples/book/timeout/timerexample.cc
index 6eca382..57de201 100644
--- a/examples/book/timeout/timerexample.cc
+++ b/examples/book/timeout/timerexample.cc
@@ -25,7 +25,7 @@ TimerExample::TimerExample() :
   count_value(5), // each timer will count down 5 times before disconnecting
   timeout_value(1500) // 1500 ms = 1.5 seconds
 {
-  m_Box.property_margin() = 10;
+  m_Box.set_margin(10);
   add(m_Box);
   m_Box.pack_start(m_ButtonAddTimer);
   m_Box.pack_start(m_ButtonDeleteTimer);
@@ -38,8 +38,6 @@ TimerExample::TimerExample() :
               &TimerExample::on_button_add_timer));
   m_ButtonDeleteTimer.signal_clicked().connect(sigc::mem_fun(*this,
               &TimerExample::on_button_delete_timer));
-
-  show_all_children();
 }
 
 void TimerExample::on_button_quit()
diff --git a/examples/book/toolbar/examplewindow.cc b/examples/book/toolbar/examplewindow.cc
index 925b8de..359af0e 100644
--- a/examples/book/toolbar/examplewindow.cc
+++ b/examples/book/toolbar/examplewindow.cc
@@ -29,7 +29,7 @@ ExampleWindow::ExampleWindow()
 
   //Put a toolbar at the top, and a button underneath:
   m_VBox.pack_start(m_Toolbar, Gtk::PACK_SHRINK);
-  m_ButtonBox.property_margin() = 5;
+  m_ButtonBox.set_margin(5);
   m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
   m_VBox.pack_end(m_ButtonBox, Gtk::PACK_SHRINK);
 
@@ -76,8 +76,6 @@ ExampleWindow::ExampleWindow()
     m_Toolbar.append( *Gtk::manage(
                 new Gtk::RadioToolButton(group, "Radio 3")) );
   }
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/toolpalette/examplewindow.cc b/examples/book/toolpalette/examplewindow.cc
index 29f94ba..4b5d865 100644
--- a/examples/book/toolpalette/examplewindow.cc
+++ b/examples/book/toolpalette/examplewindow.cc
@@ -159,7 +159,7 @@ void ExampleWindow::load_special_items()
   button = Gtk::manage(new Gtk::ToolButton());
   button->set_icon_name("edit-delete");
   button->set_tooltip_text("Do not show at all");
-  button->set_no_show_all();
+  button->hide();
   group->insert(*button);
   button->set_visible_vertical(false);
 
@@ -185,7 +185,7 @@ ExampleWindow::ExampleWindow()
   set_title("Gtk::ToolPalette example");
   set_size_request(600, 600);
 
-  m_VBox.property_margin() = 6;
+  m_VBox.set_margin(6);
   add(m_VBox);
 
   //The Orientation ComboBox:
@@ -237,22 +237,20 @@ ExampleWindow::ExampleWindow()
   m_VBox.pack_start(m_HBox, Gtk::PACK_EXPAND_WIDGET);
 
   m_ScrolledWindowPalette.set_policy(Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC);
-  m_ScrolledWindowPalette.property_margin() = 6;
+  m_ScrolledWindowPalette.set_margin(6);
   m_ScrolledWindowPalette.add(m_ToolPalette);
   m_HBox.pack_start(m_ScrolledWindowPalette);
 
   on_combo_orientation_changed();
 
   m_ScrolledWindowCanvas.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_ALWAYS);
-  m_ScrolledWindowCanvas.property_margin() = 6;
+  m_ScrolledWindowCanvas.set_margin(6);
   m_ScrolledWindowCanvas.add(m_Canvas);
   m_ScrolledWindowCanvas.set_size_request(200, -1);
   m_HBox.pack_start(m_ScrolledWindowCanvas);
 
   m_ToolPalette.add_drag_dest(m_Canvas,
     Gtk::DEST_DEFAULT_HIGHLIGHT, Gtk::TOOL_PALETTE_DRAG_ITEMS, Gdk::ACTION_COPY);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/tooltips/examplewindow.cc b/examples/book/tooltips/examplewindow.cc
index ba29909..9270726 100644
--- a/examples/book/tooltips/examplewindow.cc
+++ b/examples/book/tooltips/examplewindow.cc
@@ -33,7 +33,7 @@ ExampleWindow::ExampleWindow()
   //Set up window and the top-level container:
   set_title(app_title);
 
-  m_vbox.property_margin() = 10;
+  m_vbox.set_margin(10);
   add(m_vbox);
 
   //Check button with markup in tooltip:
@@ -61,8 +61,6 @@ ExampleWindow::ExampleWindow()
   m_button_tooltip_window.add(*label);
 
   connect_signals();
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/treeview/combo_renderer/examplewindow.cc 
b/examples/book/treeview/combo_renderer/examplewindow.cc
index 026de25..d574c60 100644
--- a/examples/book/treeview/combo_renderer/examplewindow.cc
+++ b/examples/book/treeview/combo_renderer/examplewindow.cc
@@ -24,7 +24,7 @@ ExampleWindow::ExampleWindow()
   set_title("Gtk::TreeView (ListStore) example");
   set_default_size(400, 200);
 
-  m_VBox.property_margin() = 5;
+  m_VBox.set_margin(5);
   add(m_VBox);
 
   //Add the TreeView, inside a ScrolledWindow, with the button underneath:
@@ -37,7 +37,7 @@ ExampleWindow::ExampleWindow()
   m_VBox.pack_start(m_ButtonBox, Gtk::PACK_SHRINK);
 
   m_ButtonBox.pack_start(m_Button_Quit, Gtk::PACK_SHRINK);
-  m_ButtonBox.property_margin() = 5;
+  m_ButtonBox.set_margin(5);
   m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
   m_Button_Quit.signal_clicked().connect( sigc::mem_fun(*this,
               &ExampleWindow::on_button_quit) );
@@ -122,8 +122,6 @@ ExampleWindow::ExampleWindow()
 
   pRenderer->signal_edited().connect( sigc::mem_fun(*this,
               &ExampleWindow::on_cellrenderer_choice_edited) );
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/treeview/drag_and_drop/examplewindow.cc 
b/examples/book/treeview/drag_and_drop/examplewindow.cc
index d462301..1f0e5fc 100644
--- a/examples/book/treeview/drag_and_drop/examplewindow.cc
+++ b/examples/book/treeview/drag_and_drop/examplewindow.cc
@@ -24,7 +24,7 @@ ExampleWindow::ExampleWindow()
   set_title("Gtk::TreeView (Drag and Drop) example");
   set_default_size(400, 200);
 
-  m_VBox.property_margin() = 5;
+  m_VBox.set_margin(5);
   add(m_VBox);
 
   //Add the TreeView, inside a ScrolledWindow, with the button underneath:
@@ -37,7 +37,7 @@ ExampleWindow::ExampleWindow()
   m_VBox.pack_start(m_ButtonBox, Gtk::PACK_SHRINK);
 
   m_ButtonBox.pack_start(m_Button_Quit, Gtk::PACK_SHRINK);
-  m_ButtonBox.property_margin() = 5;
+  m_ButtonBox.set_margin(5);
   m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
   m_Button_Quit.signal_clicked().connect(sigc::mem_fun(*this,
               &ExampleWindow::on_button_quit) );
@@ -98,8 +98,6 @@ ExampleWindow::ExampleWindow()
           m_refTreeModel->m_Columns.m_col_draggable);
   m_TreeView.append_column_editable("Receives Drags",
           m_refTreeModel->m_Columns.m_col_receivesdrags);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/treeview/editable_cells/examplewindow.cc 
b/examples/book/treeview/editable_cells/examplewindow.cc
index 2d8973d..82b7a92 100644
--- a/examples/book/treeview/editable_cells/examplewindow.cc
+++ b/examples/book/treeview/editable_cells/examplewindow.cc
@@ -30,7 +30,7 @@ ExampleWindow::ExampleWindow()
   set_title("Gtk::TreeView Editable Cells example");
   set_default_size(400, 200);
 
-  m_VBox.property_margin() = 5;
+  m_VBox.set_margin(5);
   add(m_VBox);
 
   //Add the TreeView, inside a ScrolledWindow, with the button underneath:
@@ -43,7 +43,7 @@ ExampleWindow::ExampleWindow()
   m_VBox.pack_start(m_ButtonBox, Gtk::PACK_SHRINK);
 
   m_ButtonBox.pack_start(m_Button_Quit, Gtk::PACK_SHRINK);
-  m_ButtonBox.property_margin() = 5;
+  m_ButtonBox.set_margin(5);
   m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
   m_Button_Quit.signal_clicked().connect( sigc::mem_fun(*this,
               &ExampleWindow::on_button_quit) );
@@ -106,8 +106,6 @@ ExampleWindow::ExampleWindow()
 
   //If this was a CellRendererSpin then you would have to set the adjustment:
   //m_cellrenderer_validated.property_adjustment() = m_spin_adjustment;
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/treeview/filter/examplewindow.cc b/examples/book/treeview/filter/examplewindow.cc
index f5734ae..e3b1c53 100644
--- a/examples/book/treeview/filter/examplewindow.cc
+++ b/examples/book/treeview/filter/examplewindow.cc
@@ -24,7 +24,7 @@ ExampleWindow::ExampleWindow()
   set_title("Gtk::TreeView (TreeModelFilter) example");
   set_default_size(400, 200);
 
-  m_VBox.property_margin() = 5;
+  m_VBox.set_margin(5);
   add(m_VBox);
 
   //Add the TreeView, inside a ScrolledWindow, with the button underneath:
@@ -37,7 +37,7 @@ ExampleWindow::ExampleWindow()
   m_VBox.pack_start(m_ButtonBox, Gtk::PACK_SHRINK);
 
   m_ButtonBox.pack_start(m_Button_Quit, Gtk::PACK_SHRINK);
-  m_ButtonBox.property_margin() = 5;
+  m_ButtonBox.set_margin(5);
   m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
   m_Button_Quit.signal_clicked().connect( sigc::mem_fun(*this,
               &ExampleWindow::on_button_quit) );
@@ -90,8 +90,6 @@ ExampleWindow::ExampleWindow()
     auto pColumn = m_TreeView.get_column(i);
     pColumn->set_reorderable();
   }
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/treeview/filter_modify/examplewindow.cc 
b/examples/book/treeview/filter_modify/examplewindow.cc
index dbb64c1..8cd4596 100644
--- a/examples/book/treeview/filter_modify/examplewindow.cc
+++ b/examples/book/treeview/filter_modify/examplewindow.cc
@@ -24,7 +24,7 @@ ExampleWindow::ExampleWindow()
   set_title("Gtk::TreeView (TreeModelFilter) example");
   set_default_size(400, 200);
 
-  m_VBox.property_margin() = 5;
+  m_VBox.set_margin(5);
   add(m_VBox);
 
   //Add the TreeView, inside a ScrolledWindow, with the button underneath:
@@ -37,7 +37,7 @@ ExampleWindow::ExampleWindow()
   m_VBox.pack_start(m_ButtonBox, Gtk::PACK_SHRINK);
 
   m_ButtonBox.pack_start(m_Button_Quit, Gtk::PACK_SHRINK);
-  m_ButtonBox.property_margin() = 5;
+  m_ButtonBox.set_margin(5);
   m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
   m_Button_Quit.signal_clicked().connect( sigc::mem_fun(*this,
               &ExampleWindow::on_button_quit) );
@@ -85,8 +85,6 @@ ExampleWindow::ExampleWindow()
     auto pColumn = m_TreeView.get_column(i);
     pColumn->set_reorderable();
   }
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/treeview/list/examplewindow.cc b/examples/book/treeview/list/examplewindow.cc
index e143251..d1b909b 100644
--- a/examples/book/treeview/list/examplewindow.cc
+++ b/examples/book/treeview/list/examplewindow.cc
@@ -24,7 +24,7 @@ ExampleWindow::ExampleWindow()
   set_title("Gtk::TreeView (ListStore) example");
   set_default_size(400, 200);
 
-  m_VBox.property_margin() = 5;
+  m_VBox.set_margin(5);
   add(m_VBox);
 
   //Add the TreeView, inside a ScrolledWindow, with the button underneath:
@@ -37,7 +37,7 @@ ExampleWindow::ExampleWindow()
   m_VBox.pack_start(m_ButtonBox, Gtk::PACK_SHRINK);
 
   m_ButtonBox.pack_start(m_Button_Quit, Gtk::PACK_SHRINK);
-  m_ButtonBox.property_margin() = 5;
+  m_ButtonBox.set_margin(5);
   m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
   m_Button_Quit.signal_clicked().connect( sigc::mem_fun(*this,
               &ExampleWindow::on_button_quit) );
@@ -91,8 +91,6 @@ ExampleWindow::ExampleWindow()
     auto column = m_TreeView.get_column(i);
     column->set_reorderable();
   }
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/treeview/listviewtext/examplewindow.cc 
b/examples/book/treeview/listviewtext/examplewindow.cc
index 4aa92f3..7fc7d76 100644
--- a/examples/book/treeview/listviewtext/examplewindow.cc
+++ b/examples/book/treeview/listviewtext/examplewindow.cc
@@ -25,7 +25,7 @@ ExampleWindow::ExampleWindow()
   set_title("Gtk::ListViewText example");
   set_default_size(400, 200);
 
-  m_VBox.property_margin() = 6;
+  m_VBox.set_margin(6);
   add(m_VBox);
 
   //Add the TreeView, inside a ScrolledWindow, with the button underneath:
@@ -38,7 +38,7 @@ ExampleWindow::ExampleWindow()
   m_VBox.pack_start(m_ButtonBox, Gtk::PACK_SHRINK);
 
   m_ButtonBox.pack_start(m_Button_Quit, Gtk::PACK_SHRINK);
-  m_ButtonBox.property_margin() = 5;
+  m_ButtonBox.set_margin(5);
   m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
   m_Button_Quit.signal_clicked().connect( sigc::mem_fun(*this,
               &ExampleWindow::on_button_quit) );
@@ -59,8 +59,6 @@ ExampleWindow::ExampleWindow()
   m_ListViewText.set_text(row_number,  0, "Lisbon");
   m_ListViewText.set_text(row_number, 1, "25");   // degrees for Lisbon
   m_ListViewText.set_text(row_number, 2, "rainy");  // forecast for Lisbon
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/treeview/modelsort/examplewindow.cc 
b/examples/book/treeview/modelsort/examplewindow.cc
index 24661c7..b0fa1fd 100644
--- a/examples/book/treeview/modelsort/examplewindow.cc
+++ b/examples/book/treeview/modelsort/examplewindow.cc
@@ -24,7 +24,7 @@ ExampleWindow::ExampleWindow()
   set_title("Gtk::TreeView (TreeModelSort) example");
   set_default_size(400, 400);
 
-  m_VBox.property_margin() = 6;
+  m_VBox.set_margin(6);
   m_VBox.set_spacing(6);
   add(m_VBox);
 
@@ -41,7 +41,7 @@ ExampleWindow::ExampleWindow()
   m_VBox.pack_start(m_ButtonBox, Gtk::PACK_SHRINK);
 
   m_ButtonBox.pack_start(m_Button_Quit, Gtk::PACK_SHRINK);
-  m_ButtonBox.property_margin() = 5;
+  m_ButtonBox.set_margin(5);
   m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
   m_Button_Quit.signal_clicked().connect( sigc::mem_fun(*this,
               &ExampleWindow::on_button_quit) );
@@ -89,8 +89,6 @@ ExampleWindow::ExampleWindow()
   m_TreeView2.append_column("ID", m_Columns.m_col_id);
   m_TreeView2.append_column("Name", m_Columns.m_col_name);
   m_TreeView2.append_column_editable("Something", m_Columns.m_col_something);
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/treeview/popup/examplewindow.cc b/examples/book/treeview/popup/examplewindow.cc
index 93f31ce..a2da5cf 100644
--- a/examples/book/treeview/popup/examplewindow.cc
+++ b/examples/book/treeview/popup/examplewindow.cc
@@ -24,7 +24,7 @@ ExampleWindow::ExampleWindow()
   set_title("Gtk::TreeView (ListStore) example");
   set_default_size(400, 200);
 
-  m_VBox.property_margin() = 5;
+  m_VBox.set_margin(5);
   add(m_VBox);
 
   //Add the TreeView, inside a ScrolledWindow, with the button underneath:
@@ -37,12 +37,10 @@ ExampleWindow::ExampleWindow()
   m_VBox.pack_start(m_ButtonBox, Gtk::PACK_SHRINK);
 
   m_ButtonBox.pack_start(m_Button_Quit, Gtk::PACK_SHRINK);
-  m_ButtonBox.property_margin() = 5;
+  m_ButtonBox.set_margin(5);
   m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
   m_Button_Quit.signal_clicked().connect( sigc::mem_fun(*this,
               &ExampleWindow::on_button_quit) );
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/treeview/popup/treeview_withpopup.cc 
b/examples/book/treeview/popup/treeview_withpopup.cc
index ddcac5b..2f3c6cd 100644
--- a/examples/book/treeview/popup/treeview_withpopup.cc
+++ b/examples/book/treeview/popup/treeview_withpopup.cc
@@ -57,7 +57,6 @@ TreeView_WithPopup::TreeView_WithPopup()
   m_Menu_Popup.append(*item);
 
   m_Menu_Popup.accelerate(*this);
-  m_Menu_Popup.show_all(); //Show all menu items when the menu pops up
 }
 
 TreeView_WithPopup::~TreeView_WithPopup()
diff --git a/examples/book/treeview/tree/examplewindow.cc b/examples/book/treeview/tree/examplewindow.cc
index de865c0..1989050 100644
--- a/examples/book/treeview/tree/examplewindow.cc
+++ b/examples/book/treeview/tree/examplewindow.cc
@@ -24,7 +24,7 @@ ExampleWindow::ExampleWindow()
   set_title("Gtk::TreeView (TreeStore) example");
   set_default_size(400, 200);
 
-  m_VBox.property_margin() = 5;
+  m_VBox.set_margin(5);
   add(m_VBox);
 
   //Add the TreeView, inside a ScrolledWindow, with the button underneath:
@@ -37,7 +37,7 @@ ExampleWindow::ExampleWindow()
   m_VBox.pack_start(m_ButtonBox, Gtk::PACK_SHRINK);
 
   m_ButtonBox.pack_start(m_Button_Quit, Gtk::PACK_SHRINK);
-  m_ButtonBox.property_margin() = 5;
+  m_ButtonBox.set_margin(5);
   m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
   m_Button_Quit.signal_clicked().connect(sigc::mem_fun(*this,
               &ExampleWindow::on_button_quit) );
@@ -82,8 +82,6 @@ ExampleWindow::ExampleWindow()
   //Connect signal:
   m_TreeView.signal_row_activated().connect(sigc::mem_fun(*this,
               &ExampleWindow::on_treeview_row_activated) );
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/book/update_ui/examplewindow.cc b/examples/book/update_ui/examplewindow.cc
index 03db7db..1d5fbc1 100644
--- a/examples/book/update_ui/examplewindow.cc
+++ b/examples/book/update_ui/examplewindow.cc
@@ -25,7 +25,7 @@ ExampleWindow::ExampleWindow()
   set_title("update-ui example");
   set_default_size(400, -1);
 
-  m_VBox.property_margin() = 6;
+  m_VBox.set_margin(6);
   add(m_VBox);
 
   m_VBox.pack_start(m_ProgressBar, Gtk::PACK_SHRINK);
@@ -33,14 +33,12 @@ ExampleWindow::ExampleWindow()
 
   m_ButtonBox.pack_start(m_Button_Quit, Gtk::PACK_SHRINK);
   m_ButtonBox.pack_start(m_Button_Start, Gtk::PACK_SHRINK);
-  m_ButtonBox.property_margin() = 6;
+  m_ButtonBox.set_margin(6);
   m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
   m_Button_Quit.signal_clicked().connect(sigc::mem_fun(*this,
               &ExampleWindow::on_button_quit) );
   m_Button_Start.signal_clicked().connect(sigc::mem_fun(*this,
               &ExampleWindow::on_button_start) );
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()
diff --git a/examples/others/arrow/arrow.cc b/examples/others/arrow/arrow.cc
index 8f2d473..744a2a3 100644
--- a/examples/others/arrow/arrow.cc
+++ b/examples/others/arrow/arrow.cc
@@ -58,26 +58,25 @@ AppWindow::AppWindow()
   grid->set_column_homogeneous(true);
 
   /* Set the margin around the grid. */
-  grid->property_margin() = 12;
+  grid->set_margin(12);
 
   /* Pack and show all our widgets */
   button = Gtk::manage (new ArrowButton (Gtk::ARROW_UP));
-  grid->attach (*button, 1, 0, 1, 1);
+  grid->attach (*button, 1, 0);
 
   button = Gtk::manage (new ArrowButton (Gtk::ARROW_LEFT));
-  grid->attach (*button, 0, 1, 1, 1);
+  grid->attach (*button, 0, 1);
 
   button = Gtk::manage (new ArrowButton (Gtk::ARROW_RIGHT));
-  grid->attach (*button, 2, 1, 1, 1);
+  grid->attach (*button, 2, 1);
 
   button = Gtk::manage (new ArrowButton (Gtk::ARROW_DOWN));
-  grid->attach (*button, 1, 2, 1, 1);
+  grid->attach (*button, 1, 2);
 
   grid->set_row_spacing(5);
   grid->set_column_spacing(5);
 
   add (*grid);
-  show_all ();
 }
 
 AppWindow::~AppWindow()
diff --git a/examples/others/calendar/calendar.cc b/examples/others/calendar/calendar.cc
index d6db5df..bf5a6ef 100644
--- a/examples/others/calendar/calendar.cc
+++ b/examples/others/calendar/calendar.cc
@@ -176,7 +176,7 @@ CalendarExample::CalendarExample()
   set_resizable(false);
 
   auto vbox = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL, DEF_PAD));
-  vbox->property_margin() = 5;
+  vbox->set_margin(5);
   add(*vbox);
 
   /*
@@ -288,8 +288,6 @@ CalendarExample::CalendarExample()
   bbox->add(*button);
   button->set_can_default();
   button->grab_default();
-
-  show_all();
 }
 
 Glib::Date CalendarExample::get_date() const
diff --git a/examples/others/cellrenderercustom/cellrendererlist.cc 
b/examples/others/cellrenderercustom/cellrendererlist.cc
index 7f70014..e6fe1c8 100644
--- a/examples/others/cellrenderercustom/cellrendererlist.cc
+++ b/examples/others/cellrenderercustom/cellrendererlist.cc
@@ -1,5 +1,3 @@
-//$Id: cellrendererlist.cc 156 2004-03-12 10:11:35Z murrayc $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -60,7 +58,6 @@ CellRendererList::CellRendererList()
 
   frame->add(tree_view_);
   frame->set_shadow_type(Gtk::SHADOW_OUT);
-  frame->show_all();
 
   set_focus_widget(tree_view_);
 }
diff --git a/examples/others/cellrenderercustom/cellrenderertoggle.cc 
b/examples/others/cellrenderercustom/cellrenderertoggle.cc
index 1810d2b..3854d1c 100644
--- a/examples/others/cellrenderercustom/cellrenderertoggle.cc
+++ b/examples/others/cellrenderercustom/cellrenderertoggle.cc
@@ -267,8 +267,6 @@ AppWindow::AppWindow()
     row[list_columns_.text]   = output.str();
     row[list_columns_.active] = ((i % 2) != 0);
   }
-
-  show_all_children();
 }
 
 AppWindow::~AppWindow()
diff --git a/examples/others/cellrenderercustom/popupentry.cc 
b/examples/others/cellrenderercustom/popupentry.cc
index d12ea3d..5997cd9 100644
--- a/examples/others/cellrenderercustom/popupentry.cc
+++ b/examples/others/cellrenderercustom/popupentry.cc
@@ -47,8 +47,6 @@ PopupEntry::PopupEntry(const Glib::ustring& path)
 
   set_can_focus();
   add_events(Gdk::KEY_PRESS_MASK | Gdk::KEY_RELEASE_MASK);
-
-  show_all_children();
 }
 
 PopupEntry::~PopupEntry()
@@ -91,7 +89,6 @@ int PopupEntry::get_button_width()
 
   // Urgh.  Hackish :/
   window.move(-500, -500);
-  window.show_all();
 
   //TODO: Support natural-size:
   Gtk::Requisition requisition_min, requisition_natural;
diff --git a/examples/others/cellrenderercustom/testpopup.cc b/examples/others/cellrenderercustom/testpopup.cc
index 4d8fab5..2406402 100644
--- a/examples/others/cellrenderercustom/testpopup.cc
+++ b/examples/others/cellrenderercustom/testpopup.cc
@@ -1,5 +1,3 @@
-//$Id: testpopup.cc 613 2006-05-10 20:59:28Z murrayc $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -90,8 +88,6 @@ AppWindow::AppWindow()
     row[list_columns_.text1] = output.str();
     row[list_columns_.text2] = "foobar!";
   }
-
-  show_all_children();
 }
 
 AppWindow::~AppWindow()
diff --git a/examples/others/dnd/dndwindow.cc b/examples/others/dnd/dndwindow.cc
index f0f2f66..f5ca75d 100644
--- a/examples/others/dnd/dndwindow.cc
+++ b/examples/others/dnd/dndwindow.cc
@@ -1,5 +1,3 @@
-//$Id: dndwindow.cc 177 2004-03-28 18:58:09Z murrayc $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -48,13 +46,13 @@ DnDWindow::DnDWindow()
 
   m_Label_Drop.signal_drag_data_received().connect( sigc::mem_fun(*this, 
&DnDWindow::on_label_drop_drag_data_received) );
 
-  m_Grid.attach(m_Label_Drop, 0, 0, 1, 1);
+  m_Grid.attach(m_Label_Drop, 0, 0);
   m_Label_Drop.set_hexpand(true);
   m_Label_Drop.set_vexpand(true);
 
   m_Label_Popup.drag_dest_set(m_listTargetsNoRoot, Gtk::DEST_DEFAULT_ALL, Gdk::DragAction(GDK_ACTION_COPY | 
GDK_ACTION_MOVE));
 
-  m_Grid.attach(m_Label_Popup, 1, 1, 1, 1);
+  m_Grid.attach(m_Label_Popup, 1, 1);
   m_Label_Popup.set_hexpand(true);
   m_Label_Popup.set_vexpand(true);
 
@@ -64,7 +62,7 @@ DnDWindow::DnDWindow()
   m_Image.set(m_trashcan_closed);
   m_Image.drag_dest_set();
 
-  m_Grid.attach(m_Image, 1, 0, 1, 1);
+  m_Grid.attach(m_Image, 1, 0);
   m_Image.set_hexpand(true);
   m_Image.set_vexpand(true);
 
@@ -80,7 +78,7 @@ DnDWindow::DnDWindow()
 
   m_Button.drag_source_set_icon(m_drag_icon);
 
-  m_Grid.attach(m_Button, 0, 1, 1, 1);
+  m_Grid.attach(m_Button, 0, 1);
   m_Button.set_hexpand(true);
   m_Button.set_vexpand(true);
 
@@ -88,8 +86,6 @@ DnDWindow::DnDWindow()
   m_Button.signal_drag_data_delete().connect( sigc::mem_fun(*this, &DnDWindow::on_button_drag_data_delete));
 
   create_popup();
-
-  show_all();
 }
 
 DnDWindow::~DnDWindow()
@@ -251,7 +247,6 @@ void DnDWindow::create_popup()
     }
   }
 
-  pGrid->show_all();
   m_PopupWindow.add(*pGrid);
 }
 
diff --git a/examples/others/exception/exceptiontest.cc b/examples/others/exception/exceptiontest.cc
index 8561dbd..fd71794 100644
--- a/examples/others/exception/exceptiontest.cc
+++ b/examples/others/exception/exceptiontest.cc
@@ -99,7 +99,7 @@ int main(int argc, char** argv)
   window.set_title("Exception Handlers");
 
   Gtk::Box *const box = new Gtk::Box(Gtk::ORIENTATION_VERTICAL, 5);
-  box->property_margin() = 10;
+  box->set_margin(10);
   window.add(*Gtk::manage(box));
 
   // New exception handlers are inserted at the front of the per-thread
@@ -128,8 +128,6 @@ int main(int argc, char** argv)
   button5->signal_clicked().connect(sigc::mem_fun(conn_handler1, &sigc::connection::disconnect));
   button6->signal_clicked().connect(sigc::mem_fun(conn_handler2, &sigc::connection::disconnect));
 
-
-  window.show_all_children();
   return app->run(window);
 }
 
diff --git a/examples/others/idle/idle.cc b/examples/others/idle/idle.cc
index a7ba406..ed72f39 100644
--- a/examples/others/idle/idle.cc
+++ b/examples/others/idle/idle.cc
@@ -58,9 +58,8 @@ IdleExample::IdleExample() :
   vbox->pack_start(*hbox);
 
   // set margin and display all
-  vbox->property_margin() = 5;
+  vbox->set_margin(5);
   add(*vbox);
-  show_all_children();
 
   // formatting drive c in timeout callback ;-)
   Glib::signal_timeout().connect(sigc::mem_fun(*this, &IdleExample::timer_callback), 50);
diff --git a/examples/others/statusbar/statusbar.cc b/examples/others/statusbar/statusbar.cc
index 7a8b04e..6825d52 100644
--- a/examples/others/statusbar/statusbar.cc
+++ b/examples/others/statusbar/statusbar.cc
@@ -44,8 +44,6 @@ StatusBarExample::StatusBarExample()
 
   m_bPop.signal_clicked().connect( sigc::bind(sigc::mem_fun(*this, &StatusBarExample::pop_item), 
m_context_id) );
   m_vbox.pack_start(m_bPop);
-
-  show_all();
 }
 
 void
diff --git a/examples/others/tictactoe/tictactoe.cc b/examples/others/tictactoe/tictactoe.cc
index 1c021f4..5dd55dc 100644
--- a/examples/others/tictactoe/tictactoe.cc
+++ b/examples/others/tictactoe/tictactoe.cc
@@ -1,5 +1,3 @@
-/* example-start tictactoe tictactoe.c */
-
 /* GTK - The GIMP Toolkit
  * Copyright(C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
  *
@@ -37,15 +35,13 @@ TicTacToe::TicTacToe()
     {
       Gtk::ToggleButton* button = nullptr;
       buttons[i][j] = button = Gtk::manage( new Gtk::ToggleButton());
-      grid->attach(*button, i, j, 1, 1);
+      grid->attach(*button, i, j);
       button->signal_toggled().connect( sigc::bind(
                                      sigc::mem_fun(*this, &TicTacToe::toggle),
                                      button));
       button->set_size_request(20, 20);
     }
   }
-
-  grid->show_all();
 }
 
 TicTacToe::~TicTacToe()
diff --git a/examples/others/tictactoe/ttt_test.cc b/examples/others/tictactoe/ttt_test.cc
index a24ea77..616e01a 100644
--- a/examples/others/tictactoe/ttt_test.cc
+++ b/examples/others/tictactoe/ttt_test.cc
@@ -21,9 +21,8 @@ main (int argc, char *argv[])
 
   Gtk::Window window;
   window.set_title("Tic-Tac-Toe");
-  ttt->property_margin() = 10;
+  ttt->set_margin(10);
   window.add(*ttt);
-  window.show_all_children();
 
   return app->run(window);
 }
diff --git a/examples/others/treemodelcustom/examplewindow.cc 
b/examples/others/treemodelcustom/examplewindow.cc
index bd14375..bcd7c3f 100644
--- a/examples/others/treemodelcustom/examplewindow.cc
+++ b/examples/others/treemodelcustom/examplewindow.cc
@@ -24,7 +24,7 @@ ExampleWindow::ExampleWindow()
   set_title("Gtk::TreeView (custom TreeModel) example");
   set_default_size(400, 200);
 
-  m_VBox.property_margin() = 5;
+  m_VBox.set_margin(5);
   add(m_VBox);
 
   //Add the TreeView, inside a ScrolledWindow, with the button underneath:
@@ -37,7 +37,7 @@ ExampleWindow::ExampleWindow()
   m_VBox.pack_start(m_ButtonBox, Gtk::PACK_SHRINK);
 
   m_ButtonBox.pack_start(m_Button_Quit, Gtk::PACK_SHRINK);
-  m_ButtonBox.property_margin() = 5;
+  m_ButtonBox.set_margin(5);
   m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
   m_Button_Quit.signal_clicked().connect( sigc::mem_fun(*this, &ExampleWindow::on_button_quit) );
 
@@ -49,8 +49,6 @@ ExampleWindow::ExampleWindow()
   m_TreeView.append_column( "one", m_refTreeModel->get_model_column(0) );
   m_TreeView.append_column( "two", m_refTreeModel->get_model_column(1) );
   m_TreeView.append_column( "three", m_refTreeModel->get_model_column(2) );
-
-  show_all_children();
 }
 
 ExampleWindow::~ExampleWindow()



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