search for: wx_destroyed_sym

Displaying 8 results from an estimated 8 matches for "wx_destroyed_sym".

2007 Jul 21
0
[1135] trunk/wxruby2/swig/mark_free_impl.i: Convert from DOS to Unix newlines
...tyle wxruby2 license - -// mark_free_impl.i - this contains the C++ implementation of various -// common GC-related functions, such as shared %mark functions and -// methods for checking and setting whether a wxWidgets window has been -// destroyed. It is compiled into wx.cpp. - - -%{ -static VALUE wx_destroyed_sym = rb_intern("@__wx_destroyed__"); - -// Code to be run when the ruby object is swept by GC - this only -// unlinks the C++ object from the ruby VALUE but doesn''t delete -// it because it is still needed and will be managed by WxWidgets. -void GcNullFreeFunc(void *ptr) -{ - SWIG_...
2007 Jul 21
0
[1127] trunk/wxruby2: Move shared C++ GC functions into separate file included into wx.i
...tyle wxruby2 license + +// mark_free_impl.i - this contains the C++ implementation of various +// common GC-related functions, such as shared %mark functions and +// methods for checking and setting whether a wxWidgets window has been +// destroyed. It is compiled into wx.cpp. + + +%{ +static VALUE wx_destroyed_sym = rb_intern("@__wx_destroyed__"); + +// Code to be run when the ruby object is swept by GC - this only +// unlinks the C++ object from the ruby VALUE but doesn''t delete +// it because it is still needed and will be managed by WxWidgets. +void GcNullFreeFunc(void *ptr) +{ + SWIG_...
2007 Jul 22
0
[1140] trunk/wxruby2/swig/mark_free_impl.i: Remove instance variable marking of deleted Wx Windows because it''s redundant
...mp;nbsp&nbsp2007-07-22 23:08:52 UTC (rev 1140) </span><span class="lines">@@ -8,8 +8,6 @@ </span><span class="cx"> </span><span class="cx"> </span><span class="cx"> %{ </span><del>-static VALUE wx_destroyed_sym = rb_intern("@__wx_destroyed__"); - </del><span class="cx"> // Code to be run when the ruby object is swept by GC - this only </span><span class="cx"> // unlinks the C++ object from the ruby VALUE but doesn''t delete </span><spa...
2007 Jul 05
0
[1109] trunk/wxruby2/swig: Move marking of MenuBar from direct %markfunc to via mark_wxFrame, so
...bsp&nbsp&nbsp&nbsp&nbsp2007-07-05 18:45:10 UTC (rev 1109) </span><span class="lines">@@ -22,12 +22,22 @@ </span><span class="cx"> } </span><span class="cx"> </span><span class="cx"> static VALUE wx_destroyed_sym = rb_intern("@__wx_destroyed__"); </span><ins>+ +// Tests if the window has been signalled as destroyed by a +// WindowDestroyEvent handled by wxRubyApp </ins><span class="cx"> bool GC_IsWindowDeleted(void *ptr) </span><span class="cx"&...
2007 Jul 21
0
[1134] trunk/wxruby2/swig/mark_free_impl.i: When window is deleted, unhook ruby obj from DATA_PTR to avoid MSW crashes
...t; { </span><ins>+ // If objects have been ''unlinked'' then DATA_PTR = 0 + if ( ! ptr ) return true; </ins><span class="cx"> VALUE rb_win = SWIG_RubyInstanceFor(ptr); </span><span class="cx"> if ( rb_ivar_defined(rb_win, wx_destroyed_sym ) ) </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn true; </span><span class="lines">@@ -37,6 +39,8 @@ </span><span class="cx"> if ( rb_win != Qnil ) </span><span cla...
2007 Jul 20
0
[1123] trunk/wxruby2/swig/wx.i: Check sizers being marked have a ruby rep and are not internal Wx-only,
...es">@@ -36,7 +36,8 @@ </span><span class="cx"> void GC_SetWindowDeleted(void *ptr) </span><span class="cx"> { </span><span class="cx"> VALUE rb_win = SWIG_RubyInstanceFor(ptr); </span><del>- rb_ivar_set(rb_win, wx_destroyed_sym, Qtrue); </del><ins>+ if ( rb_win != Qnil ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsprb_ivar_set(rb_win, wx_destroyed_sym, Qtrue); </ins><span class="cx"> } </span><span class="cx"> </span><span class...
2007 May 22
0
[1032] trunk/wxruby2/swig: Preserve Sizers associated with Windows from GC; fix several sample
...UTC (rev 1032) </span><span class="lines">@@ -22,6 +22,37 @@ </span><span class="cx"> { </span><span class="cx"> SWIG_RubyRemoveTracking(ptr); </span><span class="cx"> } </span><ins>+ +static VALUE wx_destroyed_sym = rb_intern("@__wx_destroyed__"); +bool GC_IsWindowDeleted(void *ptr) +{ + VALUE rb_win = SWIG_RubyInstanceFor(ptr); + return ( rb_ivar_defined(rb_win, wx_destroyed_sym ) == Qtrue ); +} + +// Default mark routine for Windows - preserve sizers +void GC_mark_wxWindow(void *ptr) +{ + + if...
2007 Jul 04
0
[1108] trunk/wxruby2/swig: Revised mem mgmt for Sizers to address more GC crashes in Sizers demo
...UTC (rev 1107) +++ trunk/wxruby2/swig/wx.i&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2007-07-04 22:50:43 UTC (rev 1108) </span><span class="lines">@@ -28,7 +28,34 @@ </span><span class="cx"> return ( rb_ivar_defined(rb_win, wx_destroyed_sym ) == Qtrue ); </span><span class="cx"> } </span><span class="cx"> </span><del>-// Default mark routine for Windows - preserve sizers </del><ins>+ +// Carries out marking of Sizer objects belonging to a Wx::Window. Note +// that th...