glom r1705 - in trunk: . glom/mode_design/print_layouts



Author: murrayc
Date: Mon Oct 13 12:57:45 2008
New Revision: 1705
URL: http://svn.gnome.org/viewvc/glom?rev=1705&view=rev

Log:
2008-10-13  Murray Cumming  <murrayc murrayc com>

* glom/mode_design/print_layouts/canvas_print_layout.cc:
get_canvas_table_cell_child(): Adapted for my 
Goocanvas::Item::get_child_property() API change. 

Modified:
   trunk/ChangeLog
   trunk/glom/mode_design/print_layouts/canvas_print_layout.cc

Modified: trunk/glom/mode_design/print_layouts/canvas_print_layout.cc
==============================================================================
--- trunk/glom/mode_design/print_layouts/canvas_print_layout.cc	(original)
+++ trunk/glom/mode_design/print_layouts/canvas_print_layout.cc	Mon Oct 13 12:57:45 2008
@@ -815,17 +815,14 @@
     if(!child)
       continue;
 
-    Glib::Value<int> column_value;
-    column_value.init( Glib::Value<int>::value_type() );
+    int column_value = 0;
     table->get_child_property(child, "column", column_value);
-
-    Glib::Value<int> row_value;
-    row_value.init( Glib::Value<int>::value_type() );
+    int row_value = 0;
     table->get_child_property(child, "row", row_value);
        
     //This assumes that all items occupy only one cell:
-    if( (column_value.get() == col) &&
-        (row_value.get() == row) )
+    if( (column_value == col) &&
+        (row_value == row) )
     {
       return child;
     }



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