[gtkmm-documentation] Clipboard example: Fix the build.



commit f058002400685e50cd532dbc7ad4b0867a64a5eb
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Jan 17 12:18:00 2011 +0100

    Clipboard example: Fix the build.
    
    * examples/book/clipboard/ideal/examplewindow.cc: Fix my mistaken change
    of clear() to reset(). This one was a ustring, not a RefPtr.

 ChangeLog                                      |    7 +++++++
 examples/book/clipboard/ideal/examplewindow.cc |    2 +-
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3dcac07..b3ac6d5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-01-17  Murray Cumming  <murrayc murrayc com>
+
+	Clipboard example: Fix the build.
+
+	* examples/book/clipboard/ideal/examplewindow.cc: Fix my mistaken change 
+	of clear() to reset(). This one was a ustring, not a RefPtr.
+
 2011-01-12  Kjell Ahlstedt <kjell ahlstedt bredband net>
 
 	Modified the custom_widget example
diff --git a/examples/book/clipboard/ideal/examplewindow.cc b/examples/book/clipboard/ideal/examplewindow.cc
index 2703c8e..029c54a 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.reset();
+  m_ClipboardStore.clear();
 }
 
 void ExampleWindow::on_clipboard_received(



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