[gtkmm] ListViewText: Rename methods to be consistent with ComboBoxText.



commit 3326f9c4c92887ab7a1be7c6b296f6973dbb4f44
Author: Murray Cumming <murrayc murrayc com>
Date:   Sat Jan 15 00:18:40 2011 +0100

    ListViewText: Rename methods to be consistent with ComboBoxText.
    
    * gtk/gtkmm/listviewtext.[h|cc]: Rename append_text(), insert_text(), and
    prepend_text() to append(), insert() and prepend() because that is what
    ComboBoxText now uses (because it has other append overloads).

 ChangeLog                 |    8 ++++++++
 gtk/gtkmm/listviewtext.cc |    6 +++---
 gtk/gtkmm/listviewtext.h  |    6 +++---
 3 files changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ba5cc9d..f0eabe3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2011-01-15  Murray Cumming  <murrayc murrayc com>
 
+	ListViewText: Rename methods to be consistent with ComboBoxText.
+
+	* gtk/gtkmm/listviewtext.[h|cc]: Rename append_text(), insert_text(), and 
+	prepend_text() to append(), insert() and prepend() because that is what 
+	ComboBoxText now uses (because it has other append overloads).
+
+2011-01-15  Murray Cumming  <murrayc murrayc com>
+
 	ComboBoxText: Remove the constructor that takes a model.
 	
 	* gtk/src/comboboxtext.[hg|ccg]: Remove the (model, bool) constructor 
diff --git a/gtk/gtkmm/listviewtext.cc b/gtk/gtkmm/listviewtext.cc
index c4f82f8..e9eee8a 100644
--- a/gtk/gtkmm/listviewtext.cc
+++ b/gtk/gtkmm/listviewtext.cc
@@ -88,7 +88,7 @@ Glib::ustring ListViewText::get_column_title(guint column) const
   return get_column(column)->get_title();
 }
 
-guint ListViewText::append_text(const Glib::ustring& column_one_value)
+guint ListViewText::append(const Glib::ustring& column_one_value)
 {
   Gtk::TreeModel::Row newRow = *(m_model->append());
 
@@ -97,14 +97,14 @@ guint ListViewText::append_text(const Glib::ustring& column_one_value)
   return size() - 1;
 }
 
-void ListViewText::prepend_text(const Glib::ustring& column_one_value)
+void ListViewText::prepend(const Glib::ustring& column_one_value)
 {
   Gtk::TreeModel::Row newRow = *(m_model->prepend());
 
   newRow[m_model_columns.m_columns[0]] = column_one_value;
 }
 
-void ListViewText::insert_text(guint row, const Glib::ustring& column_one_value)
+void ListViewText::insert(guint row, const Glib::ustring& column_one_value)
 {
   g_return_if_fail( row < size() );
 
diff --git a/gtk/gtkmm/listviewtext.h b/gtk/gtkmm/listviewtext.h
index 79166d9..4124303 100644
--- a/gtk/gtkmm/listviewtext.h
+++ b/gtk/gtkmm/listviewtext.h
@@ -61,18 +61,18 @@ public:
    * @param column_one_value the new text for the new row, column 0
    * @return the number of the row added
    */
-  guint append_text(const Glib::ustring& column_one_value = Glib::ustring());
+  guint append(const Glib::ustring& column_one_value = Glib::ustring());
 
   /** Insert a new row at the beginning of the list
    * @param column_one_value the new text for the new row, column 0
    */
-  void prepend_text(const Glib::ustring& column_one_value = Glib::ustring());
+  void prepend(const Glib::ustring& column_one_value = Glib::ustring());
 
   /** Insert a new row at an arbitrary position in the list
    * @param row The row number
    * @param column_one_value the new text for the new row, column 0
    */
-  void insert_text(guint row, const Glib::ustring& column_one_value = Glib::ustring());
+  void insert(guint row, const Glib::ustring& column_one_value = Glib::ustring());
 
   /// Discard all row:
   void clear_items();



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