glom r1935 - in branches/glom-1-8: . glom/utility_widgets



Author: murrayc
Date: Tue Feb 24 22:36:38 2009
New Revision: 1935
URL: http://svn.gnome.org/viewvc/glom?rev=1935&view=rev

Log:
2009-02-24  Murray Cumming  <murrayc murrayc com>

* glom/utility_widgets/flowtable.cc: on_size_allocate(): Change an 
accidental += to the = that it should be, to stop columns getting 
increasingly large amounts of extra width when there are >2 columns.
Bug #539369 (maximiliano)

Modified:
   branches/glom-1-8/ChangeLog
   branches/glom-1-8/glom/utility_widgets/flowtable.cc
   branches/glom-1-8/glom/utility_widgets/test_flowtable.cc

Modified: branches/glom-1-8/glom/utility_widgets/flowtable.cc
==============================================================================
--- branches/glom-1-8/glom/utility_widgets/flowtable.cc	(original)
+++ branches/glom-1-8/glom/utility_widgets/flowtable.cc	Tue Feb 24 22:36:38 2009
@@ -841,7 +841,7 @@
       //start a new column:
       column_child_y_start = allocation.get_y();
       int column_x_start_plus_singles = column_x_start + singles_max_width;
-      column_x_start += column_x_start_second + second_max_width;
+      column_x_start = column_x_start_second + second_max_width;
       column_x_start = MAX(column_x_start, column_x_start_plus_singles); //Maybe the single items take up even more width.
       column_x_start += m_padding;
 

Modified: branches/glom-1-8/glom/utility_widgets/test_flowtable.cc
==============================================================================
--- branches/glom-1-8/glom/utility_widgets/test_flowtable.cc	(original)
+++ branches/glom-1-8/glom/utility_widgets/test_flowtable.cc	Tue Feb 24 22:36:38 2009
@@ -44,7 +44,7 @@
   Gtk::Window window;
   //Gtk::VBox flowtable;
   Glom::FlowTable flowtable;
-  flowtable.set_columns_count(4);
+  flowtable.set_columns_count(3);
   flowtable.set_padding(5);
 
   Gtk::Entry button7; button7.set_text("seven");



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