Commit 3326f9c4 authored by Murray Cumming's avatar Murray Cumming

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).
parent fc66116e
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.
......
......@@ -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() );
......
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment