[gnote] Replace Glib::ListHandle with std::vector in recentchanges
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Replace Glib::ListHandle with std::vector in recentchanges
- Date: Wed, 1 Jun 2011 20:10:21 +0000 (UTC)
commit 4f4f5e61b8ff3421fa97d6ce35bca93196edd305
Author: Aurimas Ä?ernius <aurisc4 gmail com>
Date: Tue May 31 23:06:02 2011 +0300
Replace Glib::ListHandle with std::vector in recentchanges
src/recentchanges.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index c53ccb0..c9870b7 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -1012,9 +1012,9 @@ namespace gnote {
{
Note::List selected_notes;
- Glib::ListHandle<Gtk::TreePath, Gtk::TreePath_Traits> selected_rows =
+ std::vector<Gtk::TreePath> selected_rows =
m_tree->get_selection()->get_selected_rows ();
- for(Glib::ListHandle<Gtk::TreePath, Gtk::TreePath_Traits>::const_iterator iter
+ for(std::vector<Gtk::TreePath>::const_iterator iter
= selected_rows.begin(); iter != selected_rows.end(); ++iter) {
Note::Ptr note = get_note (*iter);
if (!note) {
@@ -1368,8 +1368,8 @@ namespace gnote {
allow_edit = true;
}
- Glib::ListHandle<Gtk::CellRenderer*> renderers = m_notebooksTree->get_column(0)->get_cell_renderers();
- for (Glib::ListHandle<Gtk::CellRenderer*>::iterator renderer = renderers.begin();
+ std::vector<Gtk::CellRenderer*> renderers = m_notebooksTree->get_column(0)->get_cells();
+ for (std::vector<Gtk::CellRenderer*>::iterator renderer = renderers.begin();
renderer != renderers.end(); ++renderer) {
Gtk::CellRendererText *text_rederer = dynamic_cast<Gtk::CellRendererText*>(*renderer);
if (text_rederer) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]