[glom/gtkmm4v4: 35/37] gtkmm4: Adapt use of cell_data_func API to use const_iterator.



commit 22619651a20b36f0572e9a33df1ce9831bd22721
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Mar 15 15:43:36 2017 +0100

    gtkmm4: Adapt use of cell_data_func API to use const_iterator.

 glom/dialog_existing_or_new.cc                     |    8 ++++----
 glom/dialog_existing_or_new.h                      |    8 ++++----
 glom/import_csv/dialog_import_csv.cc               |    4 ++--
 glom/import_csv/dialog_import_csv.h                |    4 ++--
 glom/mode_data/db_adddel/db_adddel.cc              |    2 +-
 glom/mode_data/db_adddel/db_adddel.h               |    2 +-
 glom/mode_design/layout/dialog_layout_details.cc   |    8 ++++----
 glom/mode_design/layout/dialog_layout_details.h    |    8 ++++----
 glom/mode_design/layout/dialog_layout_export.cc    |    2 +-
 glom/mode_design/layout/dialog_layout_export.h     |    2 +-
 .../layout_item_dialogs/dialog_fieldslist.cc       |    2 +-
 .../layout/layout_item_dialogs/dialog_fieldslist.h |    2 +-
 .../layout_item_dialogs/dialog_sortfields.cc       |    2 +-
 .../layout/layout_item_dialogs/dialog_sortfields.h |    2 +-
 .../report_layout/dialog_layout_report.cc          |    6 +++---
 .../report_layout/dialog_layout_report.h           |    6 +++---
 .../mode_design/translation/window_translations.cc |    4 ++--
 glom/mode_design/translation/window_translations.h |    4 ++--
 glom/mode_design/users/dialog_groups_list.cc       |    2 +-
 glom/mode_design/users/dialog_groups_list.h        |    2 +-
 20 files changed, 40 insertions(+), 40 deletions(-)
---
diff --git a/glom/dialog_existing_or_new.cc b/glom/dialog_existing_or_new.cc
index 3810e9d..8605ac5 100644
--- a/glom/dialog_existing_or_new.cc
+++ b/glom/dialog_existing_or_new.cc
@@ -446,7 +446,7 @@ std::shared_ptr<Gtk::TreeModel::iterator> Dialog_ExistingOrNew::create_dummy_ite
 }
 #endif //GLOM_ENABLE_CLIENT_ONLY
 
-void Dialog_ExistingOrNew::existing_icon_data_func(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::iterator& iter)
+void Dialog_ExistingOrNew::existing_icon_data_func(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::const_iterator& iter)
 {
   auto pixbuf_renderer = dynamic_cast<Gtk::CellRendererPixbuf*>(renderer);
   if(!pixbuf_renderer)
@@ -499,7 +499,7 @@ void Dialog_ExistingOrNew::existing_icon_data_func(Gtk::CellRenderer* renderer,
   }
 }
 
-void Dialog_ExistingOrNew::existing_title_data_func(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::iterator& iter)
+void Dialog_ExistingOrNew::existing_title_data_func(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::const_iterator& iter)
 {
   auto text_renderer = dynamic_cast<Gtk::CellRendererText*>(renderer);
   if(!text_renderer)
@@ -523,7 +523,7 @@ void Dialog_ExistingOrNew::existing_title_data_func(Gtk::CellRenderer* renderer,
 }
 
 #ifndef GLOM_ENABLE_CLIENT_ONLY
-void Dialog_ExistingOrNew::new_icon_data_func(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& 
iter)
+void Dialog_ExistingOrNew::new_icon_data_func(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::const_iterator& iter)
 {
   auto pixbuf_renderer = dynamic_cast<Gtk::CellRendererPixbuf*>(renderer);
   if(!pixbuf_renderer)
@@ -552,7 +552,7 @@ void Dialog_ExistingOrNew::new_icon_data_func(Gtk::CellRenderer* renderer, const
   }
 }
 
-void Dialog_ExistingOrNew::new_title_data_func(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& 
iter)
+void Dialog_ExistingOrNew::new_title_data_func(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::const_iterator& iter)
 {
   auto text_renderer = dynamic_cast<Gtk::CellRendererText*>(renderer);
   if(!text_renderer)
diff --git a/glom/dialog_existing_or_new.h b/glom/dialog_existing_or_new.h
index bb5fcfc..e6db38a 100644
--- a/glom/dialog_existing_or_new.h
+++ b/glom/dialog_existing_or_new.h
@@ -73,8 +73,8 @@ private:
   std::shared_ptr<Gtk::TreeModel::iterator> create_dummy_item_existing(const Gtk::TreeModel::iterator& 
parent, const Glib::ustring& text);
 
 
-  void existing_icon_data_func(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter);
-  void existing_title_data_func(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter);
+  void existing_icon_data_func(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& iter);
+  void existing_title_data_func(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& iter);
 
   void on_switch_page(Gtk::Widget* page, guint page_num);
   void on_existing_selection_changed();
@@ -87,8 +87,8 @@ private:
 #ifndef GLOM_ENABLE_CLIENT_ONLY
   std::shared_ptr<Gtk::TreeModel::iterator> create_dummy_item_new(const Gtk::TreeModel::iterator& parent, 
const Glib::ustring& text);
   void on_new_selection_changed();
-  void new_icon_data_func(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter);
-  void new_title_data_func(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter);
+  void new_icon_data_func(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& iter);
+  void new_title_data_func(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& iter);
   bool on_new_select_func(const Glib::RefPtr<Gtk::TreeModel>& model, const Gtk::TreeModel::Path& path, bool 
path_currently_selected);
   void on_new_row_activated(const Gtk::TreeModel::Path& path, Gtk::TreeViewColumn* column);
 
diff --git a/glom/import_csv/dialog_import_csv.cc b/glom/import_csv/dialog_import_csv.cc
index dc2a390..6ae9287 100644
--- a/glom/import_csv/dialog_import_csv.cc
+++ b/glom/import_csv/dialog_import_csv.cc
@@ -546,7 +546,7 @@ std::unique_ptr<Gtk::CellRendererCombo> Dialog_Import_CSV::create_sample_cell(gu
   return cell;
 }
 
-void Dialog_Import_CSV::line_data_func(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter)
+void Dialog_Import_CSV::line_data_func(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& 
iter)
 {
   const auto row = (*iter)[m_sample_columns.m_col_row];
   auto renderer_text = dynamic_cast<Gtk::CellRendererText*>(renderer);
@@ -559,7 +559,7 @@ void Dialog_Import_CSV::line_data_func(Gtk::CellRenderer* renderer, const Gtk::T
     renderer_text->property_text() = Glib::ustring::compose("%1", row + 1);
 }
 
-void Dialog_Import_CSV::field_data_func(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter, 
guint column_number)
+void Dialog_Import_CSV::field_data_func(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& 
iter, guint column_number)
 {
   const auto row = (*iter)[m_sample_columns.m_col_row];
   auto renderer_combo = dynamic_cast<Gtk::CellRendererCombo*>(renderer);
diff --git a/glom/import_csv/dialog_import_csv.h b/glom/import_csv/dialog_import_csv.h
index 43c2ccc..b54b3e5 100644
--- a/glom/import_csv/dialog_import_csv.h
+++ b/glom/import_csv/dialog_import_csv.h
@@ -83,8 +83,8 @@ private:
   std::unique_ptr<Gtk::CellRendererCombo> create_sample_cell(guint index);
 
   //CellRenderer cell_data_func callbacks:
-  void line_data_func(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter);
-  void field_data_func(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter, unsigned int 
column_number);
+  void line_data_func(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& iter);
+  void field_data_func(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& iter, unsigned int 
column_number);
   void on_field_edited(const Glib::ustring& path, const Glib::ustring& new_text, unsigned int column_number);
 
   void encoding_data_func(const Gtk::TreeModel::const_iterator& iter, Gtk::CellRendererText& renderer);
diff --git a/glom/mode_data/db_adddel/db_adddel.cc b/glom/mode_data/db_adddel/db_adddel.cc
index 6715951..9385934 100644
--- a/glom/mode_data/db_adddel/db_adddel.cc
+++ b/glom/mode_data/db_adddel/db_adddel.cc
@@ -1843,7 +1843,7 @@ void DbAddDel::set_key_field(const std::shared_ptr<Field>& field)
   m_key_field = field;
 }
 
-void DbAddDel::treeviewcolumn_on_cell_data(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& 
iter, int model_column_index, int data_model_column_index)
+void DbAddDel::treeviewcolumn_on_cell_data(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::const_iterator& iter, int model_column_index, int data_model_column_index)
 {
   //std::cout << "debug: DbAddDel::treeviewcolumn_on_cell_data()\n";
 
diff --git a/glom/mode_data/db_adddel/db_adddel.h b/glom/mode_data/db_adddel/db_adddel.h
index 8df14c8..da115ff 100644
--- a/glom/mode_data/db_adddel/db_adddel.h
+++ b/glom/mode_data/db_adddel/db_adddel.h
@@ -314,7 +314,7 @@ private:
   //Gtk::TreeModel::iterator get_next_available_row_with_add_if_necessary();
 
   //Signal handlers:
-  void treeviewcolumn_on_cell_data(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter, int 
model_column_index, int data_model_column_index);
+  void treeviewcolumn_on_cell_data(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& iter, 
int model_column_index, int data_model_column_index);
   void on_treeview_cell_editing_started(Gtk::CellEditable* cell_editable, const Glib::ustring& path);
 
 
diff --git a/glom/mode_design/layout/dialog_layout_details.cc 
b/glom/mode_design/layout/dialog_layout_details.cc
index 1069b7e..d9cabb8 100644
--- a/glom/mode_design/layout/dialog_layout_details.cc
+++ b/glom/mode_design/layout/dialog_layout_details.cc
@@ -1088,7 +1088,7 @@ void Dialog_Layout_Details::on_treeview_fields_selection_changed()
   enable_buttons();
 }
 
-void Dialog_Layout_Details::on_cell_data_name(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& 
iter)
+void Dialog_Layout_Details::on_cell_data_name(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::const_iterator& iter)
 {
   //TODO: If we ever use this a real layout tree, then let's add icons for each type.
 
@@ -1178,7 +1178,7 @@ void Dialog_Layout_Details::on_cell_data_name(Gtk::CellRenderer* renderer, const
     renderer_text->property_editable() = false; //Field names can never be edited.
 }
 
-void Dialog_Layout_Details::on_cell_data_title(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& 
iter)
+void Dialog_Layout_Details::on_cell_data_title(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::const_iterator& iter)
 {
   //Set the view's cell properties depending on the model's data:
   auto renderer_text = dynamic_cast<Gtk::CellRendererText*>(renderer);
@@ -1206,7 +1206,7 @@ void Dialog_Layout_Details::on_cell_data_title(Gtk::CellRenderer* renderer, cons
   renderer_text->property_editable() = editable;
 }
 
-void Dialog_Layout_Details::on_cell_data_column_width(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::iterator& iter)
+void Dialog_Layout_Details::on_cell_data_column_width(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::const_iterator& iter)
 {
   //Set the view's cell properties depending on the model's data:
   auto renderer_text = dynamic_cast<Gtk::CellRendererText*>(renderer);
@@ -1238,7 +1238,7 @@ void Dialog_Layout_Details::on_cell_data_column_width(Gtk::CellRenderer* rendere
   renderer_text->property_text() = text;
 }
 
-void Dialog_Layout_Details::on_cell_data_group_columns(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::iterator& iter)
+void Dialog_Layout_Details::on_cell_data_group_columns(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::const_iterator& iter)
 {
   //Set the view's cell properties depending on the model's data:
   auto renderer_text = dynamic_cast<Gtk::CellRendererText*>(renderer);
diff --git a/glom/mode_design/layout/dialog_layout_details.h b/glom/mode_design/layout/dialog_layout_details.h
index a5076ef..77f85b1 100644
--- a/glom/mode_design/layout/dialog_layout_details.h
+++ b/glom/mode_design/layout/dialog_layout_details.h
@@ -85,10 +85,10 @@ protected:
   virtual void on_button_edit(); //overridden in derived class
   void on_treeview_fields_selection_changed();
 
-  void on_cell_data_name(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter);
-  void on_cell_data_title(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter);
-  void on_cell_data_group_columns(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter);
-  void on_cell_data_column_width(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter);
+  void on_cell_data_name(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& iter);
+  void on_cell_data_title(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& iter);
+  void on_cell_data_group_columns(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& iter);
+  void on_cell_data_column_width(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& iter);
 
   void on_treeview_cell_edited_name(const Glib::ustring& path_string, const Glib::ustring& new_text);
   void on_treeview_cell_edited_title(const Glib::ustring& path_string, const Glib::ustring& new_text);
diff --git a/glom/mode_design/layout/dialog_layout_export.cc b/glom/mode_design/layout/dialog_layout_export.cc
index c0b7b77..275cd35 100644
--- a/glom/mode_design/layout/dialog_layout_export.cc
+++ b/glom/mode_design/layout/dialog_layout_export.cc
@@ -295,7 +295,7 @@ void Dialog_Layout_Export::on_button_delete()
 }
 
 
-void Dialog_Layout_Export::on_cell_data_name(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& 
iter)
+void Dialog_Layout_Export::on_cell_data_name(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::const_iterator& iter)
 {
   //Set the view's cell properties depending on the model's data:
   auto renderer_text = dynamic_cast<Gtk::CellRendererText*>(renderer);
diff --git a/glom/mode_design/layout/dialog_layout_export.h b/glom/mode_design/layout/dialog_layout_export.h
index efa48f9..4ab509c 100644
--- a/glom/mode_design/layout/dialog_layout_export.h
+++ b/glom/mode_design/layout/dialog_layout_export.h
@@ -56,7 +56,7 @@ private:
   void on_button_delete();
   void on_button_edit_field();
   void on_treeview_fields_selection_changed();
-  void on_cell_data_name(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter);
+  void on_cell_data_name(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& iter);
 
   //Tree model columns:
   class ModelColumns_Fields : public Gtk::TreeModel::ColumnRecord
diff --git a/glom/mode_design/layout/layout_item_dialogs/dialog_fieldslist.cc 
b/glom/mode_design/layout/layout_item_dialogs/dialog_fieldslist.cc
index 7879ed4..d459108 100644
--- a/glom/mode_design/layout/layout_item_dialogs/dialog_fieldslist.cc
+++ b/glom/mode_design/layout/layout_item_dialogs/dialog_fieldslist.cc
@@ -278,7 +278,7 @@ void Dialog_FieldsList::on_button_delete()
 }
 
 
-void Dialog_FieldsList::on_cell_data_name(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter)
+void Dialog_FieldsList::on_cell_data_name(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& 
iter)
 {
   //Set the view's cell properties depending on the model's data:
   auto renderer_text = dynamic_cast<Gtk::CellRendererText*>(renderer);
diff --git a/glom/mode_design/layout/layout_item_dialogs/dialog_fieldslist.h 
b/glom/mode_design/layout/layout_item_dialogs/dialog_fieldslist.h
index 913a219..90a8d2b 100644
--- a/glom/mode_design/layout/layout_item_dialogs/dialog_fieldslist.h
+++ b/glom/mode_design/layout/layout_item_dialogs/dialog_fieldslist.h
@@ -57,7 +57,7 @@ private:
   void on_button_edit_field();
   void on_button_formatting();
   void on_treeview_fields_selection_changed();
-  void on_cell_data_name(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter);
+  void on_cell_data_name(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& iter);
 
   Gtk::TreeModel::iterator append_appropriate_row();
 
diff --git a/glom/mode_design/layout/layout_item_dialogs/dialog_sortfields.cc 
b/glom/mode_design/layout/layout_item_dialogs/dialog_sortfields.cc
index 82d880d..1dfffa2 100644
--- a/glom/mode_design/layout/layout_item_dialogs/dialog_sortfields.cc
+++ b/glom/mode_design/layout/layout_item_dialogs/dialog_sortfields.cc
@@ -252,7 +252,7 @@ void Dialog_SortFields::on_button_delete()
 }
 
 
-void Dialog_SortFields::on_cell_data_name(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter)
+void Dialog_SortFields::on_cell_data_name(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& 
iter)
 {
   //Set the view's cell properties depending on the model's data:
   auto renderer_text = dynamic_cast<Gtk::CellRendererText*>(renderer);
diff --git a/glom/mode_design/layout/layout_item_dialogs/dialog_sortfields.h 
b/glom/mode_design/layout/layout_item_dialogs/dialog_sortfields.h
index 3eeffdc..4c6b871 100644
--- a/glom/mode_design/layout/layout_item_dialogs/dialog_sortfields.h
+++ b/glom/mode_design/layout/layout_item_dialogs/dialog_sortfields.h
@@ -52,7 +52,7 @@ private:
   void on_button_delete();
   void on_button_edit_field();
   void on_treeview_fields_selection_changed();
-  void on_cell_data_name(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter);
+  void on_cell_data_name(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& iter);
 
   //Tree model columns:
   class ModelColumns_Fields : public Gtk::TreeModel::ColumnRecord
diff --git a/glom/mode_design/report_layout/dialog_layout_report.cc 
b/glom/mode_design/report_layout/dialog_layout_report.cc
index 95f5066..8c07444 100644
--- a/glom/mode_design/report_layout/dialog_layout_report.cc
+++ b/glom/mode_design/report_layout/dialog_layout_report.cc
@@ -941,7 +941,7 @@ void Dialog_Layout_Report::on_treeview_parts_selection_changed()
   enable_buttons();
 }
 
-void Dialog_Layout_Report::on_cell_data_part(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& 
iter, const Glib::WeakRef<type_model>& model_weak)
+void Dialog_Layout_Report::on_cell_data_part(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::const_iterator& iter, const Glib::WeakRef<type_model>& model_weak)
 {
   const auto model = model_weak.get();
   if (!model)
@@ -966,7 +966,7 @@ void Dialog_Layout_Report::on_cell_data_part(Gtk::CellRenderer* renderer, const
   renderer_text->property_editable() = false; //Part names can never be edited.
 }
 
-void Dialog_Layout_Report::on_cell_data_details(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& 
iter, const Glib::WeakRef<type_model>& model_weak)
+void Dialog_Layout_Report::on_cell_data_details(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::const_iterator& iter, const Glib::WeakRef<type_model>& model_weak)
 {
   const auto model = model_weak.get();
   if(!model)
@@ -989,7 +989,7 @@ void Dialog_Layout_Report::on_cell_data_details(Gtk::CellRenderer* renderer, con
 }
 
 
-void Dialog_Layout_Report::on_cell_data_available_part(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::iterator& iter)
+void Dialog_Layout_Report::on_cell_data_available_part(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::const_iterator& iter)
 {
   //TODO: If we ever use this as a real layout tree, then let's add icons for each type.
 
diff --git a/glom/mode_design/report_layout/dialog_layout_report.h 
b/glom/mode_design/report_layout/dialog_layout_report.h
index 97cbdb1..3bad0f9 100644
--- a/glom/mode_design/report_layout/dialog_layout_report.h
+++ b/glom/mode_design/report_layout/dialog_layout_report.h
@@ -92,10 +92,10 @@ private:
   void on_treeview_parts_selection_changed();
   void on_treeview_available_parts_selection_changed();
 
-  void on_cell_data_part(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter, const 
Glib::WeakRef<type_model>& model);
-  void on_cell_data_details(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter, const 
Glib::WeakRef<type_model>& model);
+  void on_cell_data_part(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& iter, const 
Glib::WeakRef<type_model>& model);
+  void on_cell_data_details(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& iter, const 
Glib::WeakRef<type_model>& model);
 
-  void on_cell_data_available_part(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter);
+  void on_cell_data_available_part(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& iter);
 
   void on_notebook_switch_page(Gtk::Widget*, guint);
 
diff --git a/glom/mode_design/translation/window_translations.cc 
b/glom/mode_design/translation/window_translations.cc
index 9e5c944..1b9ddcf 100644
--- a/glom/mode_design/translation/window_translations.cc
+++ b/glom/mode_design/translation/window_translations.cc
@@ -171,7 +171,7 @@ void Window_Translations::on_button_identify()
 }
 
 
-void Window_Translations::on_cell_data_original(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& 
iter)
+void Window_Translations::on_cell_data_original(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::const_iterator& iter)
 {
   //Set the view's cell properties depending on the model's data:
   auto renderer_text = dynamic_cast<Gtk::CellRendererText*>(renderer);
@@ -197,7 +197,7 @@ void Window_Translations::on_cell_data_original(Gtk::CellRenderer* renderer, con
   renderer_text->property_editable() = false; //Names can never be edited.
 }
 
-void Window_Translations::on_cell_data_item_itemhint(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::iterator& iter)
+void Window_Translations::on_cell_data_item_itemhint(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::const_iterator& iter)
 {
   //Set the view's cell properties depending on the model's data:
   auto renderer_text = dynamic_cast<Gtk::CellRendererText*>(renderer);
diff --git a/glom/mode_design/translation/window_translations.h 
b/glom/mode_design/translation/window_translations.h
index 6d6b249..0bbe964 100644
--- a/glom/mode_design/translation/window_translations.h
+++ b/glom/mode_design/translation/window_translations.h
@@ -55,8 +55,8 @@ private:
 
   //signal handlers:
   void on_button_identify();
-  void on_cell_data_original(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter);
-  void on_cell_data_item_itemhint(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter);
+  void on_cell_data_original(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& iter);
+  void on_cell_data_item_itemhint(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& iter);
   void on_treeview_edited(const Glib::ustring& path, const Glib::ustring& new_text);
 
   void on_combo_target_locale_changed();
diff --git a/glom/mode_design/users/dialog_groups_list.cc b/glom/mode_design/users/dialog_groups_list.cc
index ae177c8..c3359f7 100644
--- a/glom/mode_design/users/dialog_groups_list.cc
+++ b/glom/mode_design/users/dialog_groups_list.cc
@@ -590,7 +590,7 @@ void Dialog_GroupsList::on_treeview_tables_toggled_delete(const Glib::ustring& p
   }
 }
 
-void Dialog_GroupsList::on_cell_data_group_name(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& 
iter)
+void Dialog_GroupsList::on_cell_data_group_name(Gtk::CellRenderer* renderer, const 
Gtk::TreeModel::const_iterator& iter)
 {
  //Set the view's cell properties depending on the model's data:
   auto renderer_text = dynamic_cast<Gtk::CellRendererText*>(renderer);
diff --git a/glom/mode_design/users/dialog_groups_list.h b/glom/mode_design/users/dialog_groups_list.h
index 37583e7..61a9efc 100644
--- a/glom/mode_design/users/dialog_groups_list.h
+++ b/glom/mode_design/users/dialog_groups_list.h
@@ -87,7 +87,7 @@ private:
 
   bool set_table_privilege(const Glib::ustring& table_name, const Glib::ustring& group_name, bool grant, 
enumPriv priv);
 
-  void on_cell_data_group_name(Gtk::CellRenderer* renderer, const Gtk::TreeModel::iterator& iter);
+  void on_cell_data_group_name(Gtk::CellRenderer* renderer, const Gtk::TreeModel::const_iterator& iter);
 
  // void on_treeview_cell_edited_text(const Glib::ustring& path_string, const Glib::ustring& new_text, const 
Gtk::TreeModelColumn<Glib::ustring>& model_column);
  // void on_treeview_cell_edited_numeric(const Glib::ustring& path_string, const Glib::ustring& new_text, 
const Gtk::TreeModelColumn<guint>& model_column);


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