[gtkmm-documentation] Use RefPtr::reset() instead of deprecated RefPtr::clear().



commit 44d7c291d08482a93ee76a876d31becf15c619bb
Author: Murray Cumming <murrayc murrayc com>
Date:   Sat Jan 8 15:49:36 2011 +0100

    Use RefPtr::reset() instead of deprecated RefPtr::clear().
    
    * examples/book/clipboard/ideal/examplewindow.cc:
    * examples/book/custom/custom_widget/mywidget.cc:
    * examples/book/treeview/editable_cells/examplewindow.cc: These were causing
    build errors now that we build with deprecated glibmm API disabled.

 ChangeLog                                          |    9 +++++++++
 examples/book/clipboard/ideal/examplewindow.cc     |    2 +-
 examples/book/custom/custom_widget/mywidget.cc     |    2 +-
 .../book/treeview/editable_cells/examplewindow.cc  |    2 +-
 4 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ab5e92b..6e29b09 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-01-08  Murray Cumming  <murrayc murrayc com>
+
+	Use RefPtr::reset() instead of deprecated RefPtr::clear().
+
+	* examples/book/clipboard/ideal/examplewindow.cc:
+	* examples/book/custom/custom_widget/mywidget.cc:
+	* examples/book/treeview/editable_cells/examplewindow.cc: These were causing 
+	build errors now that we build with deprecated glibmm API disabled.
+
 2011-01-06  Krzesimir Nowak  <qdlacz gmail com>
 
 	Fix compilation of cellrenderercustom example.
diff --git a/examples/book/clipboard/ideal/examplewindow.cc b/examples/book/clipboard/ideal/examplewindow.cc
index 029c54a..2703c8e 100644
--- a/examples/book/clipboard/ideal/examplewindow.cc
+++ b/examples/book/clipboard/ideal/examplewindow.cc
@@ -159,7 +159,7 @@ void ExampleWindow::on_clipboard_get(Gtk::SelectionData& selection_data, guint)
 void ExampleWindow::on_clipboard_clear()
 {
   //This isn't really necessary. I guess it might save memory.
-  m_ClipboardStore.clear();
+  m_ClipboardStore.reset();
 }
 
 void ExampleWindow::on_clipboard_received(
diff --git a/examples/book/custom/custom_widget/mywidget.cc b/examples/book/custom/custom_widget/mywidget.cc
index 4773b18..4fd4cd8 100644
--- a/examples/book/custom/custom_widget/mywidget.cc
+++ b/examples/book/custom/custom_widget/mywidget.cc
@@ -155,7 +155,7 @@ void MyWidget::on_realize()
 
 void MyWidget::on_unrealize()
 {
-  m_refGdkWindow.clear();
+  m_refGdkWindow.reset();
 
   //Call base class:
   Gtk::Widget::on_unrealize();
diff --git a/examples/book/treeview/editable_cells/examplewindow.cc b/examples/book/treeview/editable_cells/examplewindow.cc
index e7527c1..27e37b1 100644
--- a/examples/book/treeview/editable_cells/examplewindow.cc
+++ b/examples/book/treeview/editable_cells/examplewindow.cc
@@ -158,7 +158,7 @@ void ExampleWindow::cellrenderer_validated_on_editing_started(
     {
       pEntry->set_text(m_invalid_text_for_retry);
       m_validate_retry = false;
-      m_invalid_text_for_retry.clear();
+      m_invalid_text_for_retry.reset();
     }
   }
 



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