]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_gbsizer.i
compilation fix for GTK+ 2.0
[wxWidgets.git] / wxPython / src / _gbsizer.i
index 76989c4f502aec6bf5b280d22beeaa041766f825..08e468f3c70355495830671c1ab5af70a7ccaefe 100644 (file)
@@ -42,7 +42,7 @@ bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj)
 {
     if (source == Py_None) {
         **obj = wxGBPosition(-1,-1);
-        return True;
+        return true;
     }
     return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition"));
 }
@@ -51,7 +51,7 @@ bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj)
 {
     if (source == Py_None) {
         **obj = wxGBSpan(-1,-1);
-        return True;
+        return true;
     }
     return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan"));
 }
@@ -80,8 +80,8 @@ public:
     void SetCol(int col);
 
 //     %extend {
-//         bool __eq__(const wxGBPosition* other) { return other ? (*self == *other) : False; }
-//         bool __ne__(const wxGBPosition* other) { return other ? (*self != *other) : True;  }
+//         bool __eq__(const wxGBPosition* other) { return other ? (*self == *other) : false; }
+//         bool __ne__(const wxGBPosition* other) { return other ? (*self != *other) : true;  }
 //     }
 
     bool operator==(const wxGBPosition& other);
@@ -149,8 +149,8 @@ cell in each direction.", "");
     void SetColspan(int colspan);
     
 //     %extend {
-//         bool __eq__(const wxGBSpan* other) { return other ? (*self == *other) : False; }
-//         bool __ne__(const wxGBSpan* other) { return other ? (*self != *other) : True;  }
+//         bool __eq__(const wxGBSpan* other) { return other ? (*self == *other) : false; }
+//         bool __ne__(const wxGBSpan* other) { return other ? (*self != *other) : true;  }
 //     }
     bool operator==(const wxGBSpan& other);
     bool operator!=(const wxGBSpan& other);
@@ -386,7 +386,7 @@ position, False if something was already there.
 
             wxPyUserData* data = NULL;
             bool blocked = wxPyBeginBlockThreads();
-            wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
+            wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
             if ( userData && (info.window || info.sizer || info.gotSize) )
                 data = new wxPyUserData(userData);
             wxPyEndBlockThreads(blocked);
@@ -399,7 +399,7 @@ position, False if something was already there.
             else if (info.gotSize)
                 return self->Add(info.size.GetWidth(), info.size.GetHeight(),
                                  pos, span, flag, border, data);
-            return False;
+            return false;
         }
     }
     
@@ -410,7 +410,11 @@ position, False if something was already there.
 the item was successfully placed at its given cell position, False if
 something was already there.", "",
         AddItem);
-    
+
+    DocDeclStr(
+        wxSize , GetCellSize(int row, int col) const,
+        "Get the size of the specified cell, including hgap and
+vgap.  Only valid after a Layout.", "");
 
     DocDeclStr(
         wxSize , GetEmptyCellSize() const,