[gtkmm] Correct Gtk::TreeModelColumnRecord documentation



commit 806a2381e99da22050a6c91a09e76b143f98142c
Author: Daniel Elstner <daniel kitta gmail com>
Date:   Sun Oct 18 07:22:56 2009 +0200

    Correct Gtk::TreeModelColumnRecord documentation
    
    * gtk/gtkmm/treemodelcolumn.h (Gtk::TreeModelColumnRecord): Remove
    bogus sentence vaguely cautioning against the use of static variables
    to implement singletons.  Reword the preceding sentence to avoid this
    sort of misunderstanding.

 ChangeLog                   |    9 +++++++++
 gtk/gtkmm/treemodelcolumn.h |    7 +++----
 2 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 37293f5..636cc76 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2009-10-18  Daniel Elstner  <daniel kitta gmail com>
+
+	Correct Gtk::TreeModelColumnRecord documentation
+
+	* gtk/gtkmm/treemodelcolumn.h (Gtk::TreeModelColumnRecord): Remove
+	bogus sentence vaguely cautioning against the use of static variables
+	to implement singletons.  Reword the preceding sentence to avoid this
+	sort of misunderstanding.
+
 2009-10-13  David King  <davidk openismus com>
 
 	* gtk/src/dialog.hg: Change return type of
diff --git a/gtk/gtkmm/treemodelcolumn.h b/gtk/gtkmm/treemodelcolumn.h
index 0337746..1d21d6e 100644
--- a/gtk/gtkmm/treemodelcolumn.h
+++ b/gtk/gtkmm/treemodelcolumn.h
@@ -63,10 +63,9 @@ class TreeModelColumnBase;
  * they merely describe what C++ type is stored in which column
  * of a TreeModel, and save you from having to repeat that type information in several places.
  *
- * Thus you may use a statically allocated
- * TreeModel::ColumnRecord (as long as you make sure it's instantiated after
- * Gtk::Main), even when creating multiple models from it. However, it is very difficult to 
- * specify the sequence of allocation of static objects, so this should probably be avoided.
+ * Thus TreeModel::ColumnRecord can be made a singleton (as long as you make
+ * sure it's instantiated after Gtk::Main), even when creating multiple models
+ * from it.
  */
 class TreeModelColumnRecord
 {



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