[glom/maemo5] Maemo: Actually show new list views and related records portals.



commit 1edf64ea786e878706ee06997975a421faf6d689
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Oct 8 08:59:39 2009 +0200

    Maemo: Actually show new list views and related records portals.
    
    * glom/utility_widgets/db_adddel/db_adddel.cc: construct_specified_columns():
    Use while(TouchSelector::remove_column()) to actually remove old view columns,
    so we actually see an effect when navigating to a new table, and so we don't
    see old data in related records tables.

 ChangeLog                                   |    9 +++++++++
 glom/utility_widgets/db_adddel/db_adddel.cc |    8 +++++---
 2 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0fde5ec..c8cfc3f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2009-10-08  Murray Cumming  <murrayc murrayc com>
+
+  Maemo: Actually show new list views and related records portals.
+  
+	* glom/utility_widgets/db_adddel/db_adddel.cc: construct_specified_columns():
+	Use while(TouchSelector::remove_column()) to actually remove old view columns, 
+	so we actually see an effect when navigating to a new table, and so we don't 
+	see old data in related records tables.
+
 2009-10-07  Murray Cumming  <murrayc murrayc com>
 
   Tests: Import: Fixed the no-exceptions build.
diff --git a/glom/utility_widgets/db_adddel/db_adddel.cc b/glom/utility_widgets/db_adddel/db_adddel.cc
index 9459709..f0f686e 100644
--- a/glom/utility_widgets/db_adddel/db_adddel.cc
+++ b/glom/utility_widgets/db_adddel/db_adddel.cc
@@ -1000,6 +1000,7 @@ void DbAddDel::construct_specified_columns()
     {
       //Create the model from the ColumnRecord:
       //Note that the model will use a dummy Gda DataModel if m_find_mode is true.
+      //std::cout << "debug: Creating new type_model_store() for table=" << m_found_set.m_table_name << std::endl;
       m_refListStore = type_model_store::create(record, m_found_set, fields, column_index_key, m_allow_view, m_find_mode);
     }
     else
@@ -1016,9 +1017,10 @@ void DbAddDel::construct_specified_columns()
  
   #ifdef GLOM_ENABLE_MAEMO
   //Remove all View columns:
-  Glib::RefPtr<Hildon::TouchSelectorColumn> column = touch_selector_get_column();
-  g_assert(column);
-  column->clear();
+  while(m_TreeView.get_num_columns())
+  {
+    m_TreeView.remove_column(0);
+  }
   #else
   m_TreeView.set_model(m_refListStore); // clear old model from treeview
 



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