[gtkmm-documentation] Adapt to removal of the Gtk::Range update_policy.



commit ccd4eed35828d7cc4a73ae3281cea65871d75ae4
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Jan 26 11:59:22 2011 +0100

    Adapt to removal of the Gtk::Range update_policy.
    
    * examples/book/range_widgets/examplewindow.cc:
    * examples/book/range_widgets/examplewindow.h: Just remove UI that showed
    the use of this API.

 ChangeLog                                    |    8 +++++++
 examples/book/range_widgets/examplewindow.cc |   28 --------------------------
 examples/book/range_widgets/examplewindow.h  |    3 +-
 3 files changed, 9 insertions(+), 30 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0d6fd94..793f7de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2011-01-26  Murray Cumming  <murrayc murrayc com>
 
+	Adapt to removal of the Gtk::Range update_policy.
+
+	* examples/book/range_widgets/examplewindow.cc:
+	* examples/book/range_widgets/examplewindow.h: Just remove UI that showed 
+	the use of this API.
+
+2011-01-26  Murray Cumming  <murrayc murrayc com>
+
 	Adapt to the Pango::Layout::get_iter(iter) deprecation.
 
 	* examples/book/printing/advanced/printformoperation.cc:
diff --git a/examples/book/range_widgets/examplewindow.cc b/examples/book/range_widgets/examplewindow.cc
index bae2874..abc64ed 100644
--- a/examples/book/range_widgets/examplewindow.cc
+++ b/examples/book/range_widgets/examplewindow.cc
@@ -53,13 +53,11 @@ ExampleWindow::ExampleWindow()
   set_title("range controls");
 
   //VScale:
-  m_VScale.set_update_policy(Gtk::UPDATE_CONTINUOUS);
   m_VScale.set_digits(1);
   m_VScale.set_value_pos(Gtk::POS_TOP);
   m_VScale.set_draw_value();
 
   //HScale:
-  m_HScale.set_update_policy(Gtk::UPDATE_CONTINUOUS);
   m_HScale.set_digits(1);
   m_HScale.set_value_pos(Gtk::POS_TOP);
   m_HScale.set_draw_value();
@@ -77,7 +75,6 @@ ExampleWindow::ExampleWindow()
   m_VBox_HScale.pack_start(m_HScale);
 
   //Scrollbar:
-  m_Scrollbar.set_update_policy(Gtk::UPDATE_CONTINUOUS);
   m_VBox_HScale.pack_start(m_Scrollbar);
 
   //CheckButton:
@@ -111,25 +108,6 @@ ExampleWindow::ExampleWindow()
       &ExampleWindow::on_menu_position), Gtk::POS_RIGHT));
   m_Menu_Position.append(*item);
 
-
-  item = Gtk::manage(new Gtk::MenuItem("Continuous"));
-  item->signal_activate().connect(
-    sigc::bind(sigc::mem_fun(*this,
-      &ExampleWindow::on_menu_policy), Gtk::UPDATE_CONTINUOUS));
-  m_Menu_Policy.append(*item);
-
-  item = Gtk::manage(new Gtk::MenuItem("Discontinuous"));
-  item->signal_activate().connect(
-    sigc::bind(sigc::mem_fun(*this,
-      &ExampleWindow::on_menu_policy), Gtk::UPDATE_DISCONTINUOUS));
-  m_Menu_Policy.append(*item);
-
-  item = Gtk::manage(new Gtk::MenuItem("Delayed"));
-  item->signal_activate().connect(
-    sigc::bind(sigc::mem_fun(*this,
-      &ExampleWindow::on_menu_policy), Gtk::UPDATE_DELAYED));
-  m_Menu_Policy.append(*item);
-
   //Digits:
   m_HBox_Digits.pack_start(
     *Gtk::manage(new Gtk::Label("Scale Digits:", 0)), Gtk::PACK_SHRINK);
@@ -177,12 +155,6 @@ void ExampleWindow::on_menu_position(Gtk::PositionType postype)
   m_HScale.set_value_pos(postype);
 }
 
-void ExampleWindow::on_menu_policy(Gtk::UpdateType type)
-{
-  m_VScale.set_update_policy(type);
-  m_HScale.set_update_policy(type);
-}
-
 void ExampleWindow::on_adjustment1_value_changed()
 {
   const double val = m_adjustment_digits->get_value();
diff --git a/examples/book/range_widgets/examplewindow.h b/examples/book/range_widgets/examplewindow.h
index 511a9b5..25eec56 100644
--- a/examples/book/range_widgets/examplewindow.h
+++ b/examples/book/range_widgets/examplewindow.h
@@ -31,7 +31,6 @@ protected:
   //Signal handlers:
   void on_checkbutton_toggled();
   void on_menu_position(Gtk::PositionType type);
-  void on_menu_policy(Gtk::UpdateType type);
   void on_adjustment1_value_changed();
   void on_adjustment2_value_changed();
   void on_button_quit();
@@ -51,7 +50,7 @@ protected:
 
   Gtk::HScrollbar m_Scrollbar;
 
-  Gtk::Menu m_Menu_Position, m_Menu_Policy;
+  Gtk::Menu m_Menu_Position;
 
   Gtk::Button m_Button_Quit;
 };



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