[glom] Dialog_FlowTable: Make a getter const.



commit 6696d9077288f74fcb65bc3b718202e29d118b81
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Apr 1 21:27:55 2013 +0200

    Dialog_FlowTable: Make a getter const.
    
            * glom/utility_widgets/dialog_flowtable.[h|cc]:
        Make get_columns_count() const.

 ChangeLog                                |    7 +++++++
 glom/utility_widgets/dialog_flowtable.cc |    2 +-
 glom/utility_widgets/dialog_flowtable.h  |    8 ++++++--
 3 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a7252cc..8312506 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2013-04-01  Murray Cumming  <murrayc murrayc com>
 
+        Dialog_FlowTable: Make a getter const.
+
+        * glom/utility_widgets/dialog_flowtable.[h|cc]:
+       Make get_columns_count() const.
+
+2013-04-01  Murray Cumming  <murrayc murrayc com>
+
         LayoutItem_Portal: Do not implement get_part_type_name().
 
         * glom/libglom/data_structure/layout/layoutitem_portal.[h|cc]:
diff --git a/glom/utility_widgets/dialog_flowtable.cc b/glom/utility_widgets/dialog_flowtable.cc
index 76b35bd..adf6cd5 100644
--- a/glom/utility_widgets/dialog_flowtable.cc
+++ b/glom/utility_widgets/dialog_flowtable.cc
@@ -66,7 +66,7 @@ Glib::ustring Dialog_FlowTable::get_title()
   return m_entry_title->get_text();
 }
 
-gint Dialog_FlowTable::get_columns_count()
+gint Dialog_FlowTable::get_columns_count() const
 {
   return m_spin_columns->get_value_as_int();
 }
diff --git a/glom/utility_widgets/dialog_flowtable.h b/glom/utility_widgets/dialog_flowtable.h
index 5acf1c2..5fc49d4 100644
--- a/glom/utility_widgets/dialog_flowtable.h
+++ b/glom/utility_widgets/dialog_flowtable.h
@@ -46,8 +46,12 @@ public:
 
   void set_flowtable(FlowTableWithFields* flowtable);
   
-  gint get_columns_count(); //TODO: Make const?
-  Glib::ustring get_title(); //TODO: Isn't this the same as Widget::get_title()?
+  gint get_columns_count() const;
+
+  //TODO: Isn't this the same as Window::get_title()?
+  //  Probably, yes, at least when it is properly const.
+  //  so, TODO: find out what calls it.
+  Glib::ustring get_title();
     
 private:
   Gtk::Entry* m_entry_title;


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