[goocanvasmm] Remove show_all_children() calls.



commit 05f7d1c57a24af296ac758fb5db36603271c644c
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Mar 31 14:29:35 2017 +0200

    Remove show_all_children() calls.

 examples/coordinates/window.cc           |    6 ++----
 examples/custom_item/examplewindow.cc    |    2 --
 examples/demo/window.cc                  |    1 -
 examples/drag_to_canvas/examplewindow.cc |    2 --
 examples/moving_shapes/window.cc         |    2 --
 examples/simple/examplewindow.cc         |    2 --
 examples/table/examplewindow.cc          |    2 --
 examples/tablemodel/examplewindow.cc     |    2 --
 examples/text/window.cc                  |    8 +++-----
 9 files changed, 5 insertions(+), 22 deletions(-)
---
diff --git a/examples/coordinates/window.cc b/examples/coordinates/window.cc
index a276e41..20ffc69 100644
--- a/examples/coordinates/window.cc
+++ b/examples/coordinates/window.cc
@@ -67,8 +67,6 @@ ExampleWindow::ExampleWindow()
   m_label_status.set_xalign(0.0);
   add(m_box);
 
-  show_all_children();
-
   update_label();
 }
 
@@ -77,8 +75,8 @@ void ExampleWindow::update_label()
 {
   std::stringstream str;
 #ifdef GLIBMM_PROPERTIES_ENABLED
-  str << "Rect: x=" << m_rect->property_x() << ", y=" << m_rect->property_y() << 
-         ", width=" << m_rect->property_width() << ",  height=" << m_rect->property_height() << 
+  str << "Rect: x=" << m_rect->property_x() << ", y=" << m_rect->property_y() <<
+         ", width=" << m_rect->property_width() << ",  height=" << m_rect->property_height() <<
          ", line_width=" << m_rect->property_line_width() << std::endl;
 #else
   //TODO.
diff --git a/examples/custom_item/examplewindow.cc b/examples/custom_item/examplewindow.cc
index 8764ab0..99bd5f8 100644
--- a/examples/custom_item/examplewindow.cc
+++ b/examples/custom_item/examplewindow.cc
@@ -44,7 +44,5 @@ ExampleWindow::ExampleWindow()
   auto sw = Gtk::manage(new Gtk::ScrolledWindow());
   sw->add(m_canvas);
   add(*sw);
-
-  show_all_children();
 }
 
diff --git a/examples/demo/window.cc b/examples/demo/window.cc
index 348f891..f1a268e 100644
--- a/examples/demo/window.cc
+++ b/examples/demo/window.cc
@@ -34,6 +34,5 @@ DemoWindow::DemoWindow()
   }
 
   add(*nb);
-  show_all_children();
 }
 
diff --git a/examples/drag_to_canvas/examplewindow.cc b/examples/drag_to_canvas/examplewindow.cc
index f79c7db..4395986 100644
--- a/examples/drag_to_canvas/examplewindow.cc
+++ b/examples/drag_to_canvas/examplewindow.cc
@@ -61,8 +61,6 @@ ExampleWindow::ExampleWindow()
 
   m_canvas.signal_drag_data_received().connect(
       sigc::mem_fun(*this, &ExampleWindow::on_canvas_drag_data_received) );
-
-  show_all_children();
 }
 
 void ExampleWindow::make_widget_draggable(Gtk::Widget& widget, DragItem drag_item)
diff --git a/examples/moving_shapes/window.cc b/examples/moving_shapes/window.cc
index 109dd55..d84ad65 100644
--- a/examples/moving_shapes/window.cc
+++ b/examples/moving_shapes/window.cc
@@ -68,8 +68,6 @@ Window::Window()
   auto sw = Gtk::manage(new Gtk::ScrolledWindow());
   sw->add(*_canvas);
   add(*sw);
-
-  show_all_children();
 }
 
 void
diff --git a/examples/simple/examplewindow.cc b/examples/simple/examplewindow.cc
index f2acdbc..f502ca9 100644
--- a/examples/simple/examplewindow.cc
+++ b/examples/simple/examplewindow.cc
@@ -58,8 +58,6 @@ ExampleWindow::ExampleWindow()
   auto sw = Gtk::manage(new Gtk::ScrolledWindow());
   sw->add(m_canvas);
   add(*sw);
-
-  show_all_children();
 }
 
 bool
diff --git a/examples/table/examplewindow.cc b/examples/table/examplewindow.cc
index 9304e4b..d53729c 100644
--- a/examples/table/examplewindow.cc
+++ b/examples/table/examplewindow.cc
@@ -56,8 +56,6 @@ ExampleWindow::ExampleWindow()
   auto sw = Gtk::manage(new Gtk::ScrolledWindow());
   sw->add(m_canvas);
   add(*sw);
-
-  show_all_children();
 }
 
 void ExampleWindow::add_text_to_cell(const Glib::RefPtr<Goocanvas::Table>& table, const Glib::ustring& text, 
guint row, guint col)
diff --git a/examples/tablemodel/examplewindow.cc b/examples/tablemodel/examplewindow.cc
index 705f4cc..e974926 100644
--- a/examples/tablemodel/examplewindow.cc
+++ b/examples/tablemodel/examplewindow.cc
@@ -67,8 +67,6 @@ ExampleWindow::ExampleWindow()
   box->pack_start(*sw1, Gtk::PACK_EXPAND_WIDGET);
   box->pack_start(*sw2, Gtk::PACK_EXPAND_WIDGET);
   add(*box);
-
-  show_all_children();
 }
 
 void ExampleWindow::add_text_to_cell(const Glib::RefPtr<Goocanvas::TableModel>& table, const Glib::ustring& 
text, guint row, guint col)
diff --git a/examples/text/window.cc b/examples/text/window.cc
index d54d56f..9fbe1aa 100644
--- a/examples/text/window.cc
+++ b/examples/text/window.cc
@@ -78,7 +78,7 @@ ExampleWindow::ExampleWindow()
   m_button_zoom.signal_clicked().connect(sigc::mem_fun(*this, &ExampleWindow::on_button_zoom_canvas));
 
   m_box.pack_start(m_button_box2, Gtk::PACK_SHRINK);
-  
+
   m_button_box2.pack_start(m_button_set_width, Gtk::PACK_SHRINK);
   m_button_set_width.signal_clicked().connect(sigc::mem_fun(*this, &ExampleWindow::on_button_set_width));
 
@@ -89,8 +89,6 @@ ExampleWindow::ExampleWindow()
   m_label_status.set_xalign(0.0);
   add(m_box);
 
-  show_all_children();
-
   update_label();
 }
 
@@ -100,8 +98,8 @@ void ExampleWindow::update_label()
   std::stringstream str;
 
 #ifdef GLIBMM_PROPERTIES_ENABLED
-  str << "Rect: x=" << m_text->property_x() << ", y=" << m_text->property_y() << 
-         ", width=" << m_text->property_width() << //",  height=" << m_text->property_height() << 
+  str << "Rect: x=" << m_text->property_x() << ", y=" << m_text->property_y() <<
+         ", width=" << m_text->property_width() << //",  height=" << m_text->property_height() <<
          ", line_width=" << m_text->property_line_width() << std::endl;
 #else
   //TODO:


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