Displaying 6 results from an estimated 6 matches for "wxsizeritemlist".
2007 Jul 21
0
[1135] trunk/wxruby2/swig/mark_free_impl.i: Convert from DOS to Unix newlines
...result. Because Sizers are SWIG
-// directors, they must be preserved from GC.
-void GC_mark_SizerBelongingToWindow(wxSizer *wx_sizer, VALUE rb_sizer)
-{
- // First, mark this sizer
- rb_gc_mark( rb_sizer );
-
- // Then loop over hte sizer''s content and mark each sub-sizer in turn
- wxSizerItemList& children = wx_sizer->GetChildren();
- for ( wxwxSizerItemListNode *node = children.GetFirst();
-                node;
-    &n...
2007 Jul 21
0
[1127] trunk/wxruby2: Move shared C++ GC functions into separate file included into wx.i
...result. Because Sizers are SWIG
+// directors, they must be preserved from GC.
+void GC_mark_SizerBelongingToWindow(wxSizer *wx_sizer, VALUE rb_sizer)
+{
+ // First, mark this sizer
+ rb_gc_mark( rb_sizer );
+
+ // Then loop over hte sizer''s content and mark each sub-sizer in turn
+ wxSizerItemList& children = wx_sizer->GetChildren();
+ for ( wxwxSizerItemListNode *node = children.GetFirst();
+                node;
+    &n...
2007 Jul 04
0
[1108] trunk/wxruby2/swig: Revised mem mgmt for Sizers to address more GC crashes in Sizers demo
...<span class="cx">
</span><del>-
-// Whilst sizers that are directly managing Windows will be marked,
-// those that are contained within other sizers need to be explicitly
-// handled:
-%{
-static void mark_wxSizer(void *ptr)
-{
- wxSizer* wx_sizer = (wxSizer*)ptr;
- wxSizerItemList& children = wx_sizer->GetChildren();
-
- // Mark each menu in the menubar in turn
- for ( wxwxSizerItemListNode *node = children.GetFirst();
-                n...
2007 Jul 20
0
[1123] trunk/wxruby2/swig/wx.i: Check sizers being marked have a ruby rep and are not internal Wx-only,
...nstanceFor(wx_sizer) );
</del><ins>+ rb_gc_mark( rb_sizer );
</ins><span class="cx">
</span><span class="cx"> // Then loop over hte sizer''s content and mark each sub-sizer in turn
</span><span class="cx"> wxSizerItemList& children = wx_sizer->GetChildren();
</span><span class="lines">@@ -59,7 +60,11 @@
</span><span class="cx">          wxSizerItem* item = node->GetData();
</span><span clas...
2007 May 28
0
[1033] trunk/wxruby2/swig: GC fixes for nested sizers; fix crashes in html.rb demo
...9;d by Ruby
+%apply SWIGTYPE *DISOWN { wxSizer* sizer };
+
+
+// Whilst sizers that are directly managing Windows will be marked,
+// those that are contained within other sizers need to be explicitly
+// handled:
+%{
+static void mark_wxSizer(void *ptr)
+{
+ wxSizer* wx_sizer = (wxSizer*)ptr;
+ wxSizerItemList& children = wx_sizer->GetChildren();
+
+ // Mark each menu in the menubar in turn
+ for ( wxwxSizerItemListNode *node = children.GetFirst();
+                n...
2007 Jul 05
0
[1109] trunk/wxruby2/swig: Move marking of MenuBar from direct %markfunc to via mark_wxFrame, so
...ass="cx"> rb_gc_mark( SWIG_RubyInstanceFor(wx_sizer) );
</span><del>-
</del><ins>+
</ins><span class="cx"> // Then loop over hte sizer''s content and mark each sub-sizer in turn
</span><span class="cx"> wxSizerItemList& children = wx_sizer->GetChildren();
</span><span class="cx"> for ( wxwxSizerItemListNode *node = children.GetFirst();
</span><span class="lines">@@ -53,7 +63,26 @@
</span><span class="cx">    &n...