[glom] Minor int->guint change.



commit 957b64f16fe2591206bc91fce3ef885895881ca1
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Jul 8 12:35:15 2011 +0200

    Minor int->guint change.
    
    	* glom/mode_data/db_adddel/db_adddel.[h|cc]: get_fixed_cell_height():
    	Return a guint instead of an int.

 ChangeLog                             |    7 +++++++
 glom/mode_data/db_adddel/db_adddel.cc |    6 +++---
 glom/mode_data/db_adddel/db_adddel.h  |    4 ++--
 3 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 933bdc7..9f5f9e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-07-08  Murray Cumming  <murrayc murrayc com>
 
+	Minor int->guint change.
+
+	* glom/mode_data/db_adddel/db_adddel.[h|cc]: get_fixed_cell_height(): 
+	Return a guint instead of an int.
+
+2011-07-08  Murray Cumming  <murrayc murrayc com>
+
 	Details: Do not navigate past the last row.
 
 	* glom/mode_data/datawidget/treemodel_db.[h|cc]: get_last_row(): 
diff --git a/glom/mode_data/db_adddel/db_adddel.cc b/glom/mode_data/db_adddel/db_adddel.cc
index d9bb2d6..cb55580 100644
--- a/glom/mode_data/db_adddel/db_adddel.cc
+++ b/glom/mode_data/db_adddel/db_adddel.cc
@@ -596,7 +596,7 @@ guint DbAddDel::get_columns_count() const
   #endif //GLOM_ENABLE_MAEMO
 }
 
-int DbAddDel::get_fixed_cell_height()
+guint DbAddDel::get_fixed_cell_height()
 {
   if(m_fixed_cell_height <= 0)
   {
@@ -635,8 +635,8 @@ int DbAddDel::get_fixed_cell_height()
       int height = 0;
       refLayout->get_pixel_size(width, height);
 
-      if(height > m_fixed_cell_height)
-        m_fixed_cell_height = height;
+      if(height > (int)m_fixed_cell_height)
+        m_fixed_cell_height = (guint)height;
     }
   }
   
diff --git a/glom/mode_data/db_adddel/db_adddel.h b/glom/mode_data/db_adddel/db_adddel.h
index cdc49b2..a38459b 100644
--- a/glom/mode_data/db_adddel/db_adddel.h
+++ b/glom/mode_data/db_adddel/db_adddel.h
@@ -384,7 +384,7 @@ private:
    */
   void show_hint_model();
 
-  int get_fixed_cell_height();
+  guint get_fixed_cell_height();
 
   //TODO: Remove this and use AppGlom::get_application() instead?
   Application* get_application();
@@ -504,7 +504,7 @@ private:
   ModelColumnsEmptyHint m_columns_hint;
   Glib::RefPtr<Gtk::ListStore> m_model_hint;
 
-  int m_fixed_cell_height;
+  guint m_fixed_cell_height;
 
 private:
 



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