[glom] treeview_append_column():



commit ccc0802722dff4bf378af20c2ace06c2a979c4de
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Oct 27 17:28:15 2009 +0100

    treeview_append_column():
    Don't try to put -1 in a guint for the column width.

 ChangeLog                                   |    5 +++++
 glom/utility_widgets/db_adddel/db_adddel.cc |    4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f431335..1b9152c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-10-27  Murray Cumming  <murrayc murrayc com>
+
+	* glom/utility_widgets/db_adddel/db_adddel.cc: treeview_append_column(): 
+	Don't try to put -1 in a guint for the column width.
+
 2009-10-21  Armin Burgmeier  <armin arbur net>
 
 	* Makefile_libglom.am: Link against winsock on Windows.
diff --git a/glom/utility_widgets/db_adddel/db_adddel.cc b/glom/utility_widgets/db_adddel/db_adddel.cc
index 8f76a8c..7fe90cb 100644
--- a/glom/utility_widgets/db_adddel/db_adddel.cc
+++ b/glom/utility_widgets/db_adddel/db_adddel.cc
@@ -1991,11 +1991,11 @@ guint DbAddDel::treeview_append_column(const Glib::ustring& title, Gtk::CellRend
   pViewColumn->set_resizable();
   #endif //GLOM_ENABLE_MAEMO
   
-  guint column_width = -1; //Means expand.
+  int column_width = -1; //Means expand.
   if(!expand)
   {
     column_width = layout_item->get_display_width();
-    if(!column_width)
+    if(!(column_width > 0))
     {
       //TODO: Choose a width based on the first 100 values.
       if(layout_item_field)



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