search for: gc_manage_as_event

Displaying 10 results from an estimated 10 matches for "gc_manage_as_event".

2007 Jul 23
11
Memory problem with GridCell*Editor
...es when editing cells in a grid: ./init.rb:1072:in `main_loop'': undefined method `begin_edit'' for "_p_wxEvent":String (NoMethodError) from ./init.rb:1072 but only after the first App GC mark phase. So I changed all the GridCell*Editor.i files from GC_MANAGE to GC_MANAGE_AS_EVENT. Which stopped the crashing. My question Alex is do you think this is the correct GC_* to use in this situation? I wanted to run this by you before I do a commit, since I have not messed around with memory management since the big overhaul. thanks Sean
2007 Jun 06
0
[1054] trunk/wxruby2: Add missing EraseEvent and mapping for EVT_ERASE_BACKGROUND, fix unknown
...p&nbsp&nbsp&nbsp2007-06-06 21:02:18 UTC (rev 1054) </span><span class="lines">@@ -0,0 +1,12 @@ </span><ins>+// Copyright 2004-2007 by Kevin Smith +// released under the MIT-like wxRuby license + +%include "../common.i" + +%module wxEraseEvent +GC_MANAGE_AS_EVENT(wxEraseEvent); + +%import "include/wxObject.h" +%import "include/wxEvent.h" + +%include "include/wxEraseEvent.h" </ins></span></pre> </div> </div> </body> </html>
2007 Jun 26
0
[1074] trunk/wxruby2/swig/classes: Add IconizeEvent and cleanup header file
...p2007-06-26 00:08:32 UTC (rev 1074) </span><span class="lines">@@ -0,0 +1,13 @@ </span><ins>+// Copyright 2004-2007 by Kevin Smith +// released under the MIT-like wxRuby license + +%include "../common.i" + +%module(directors="1") wxIconizeEvent +GC_MANAGE_AS_EVENT(wxIconizeEvent); + + +%import "include/wxObject.h" +%import "include/wxEvent.h" + +%include "include/wxIconizeEvent.h" </ins></span></pre></div> <a id="trunkwxruby2swigclassesincludewxIconizeEventh"></a> <div class=&quot...
2007 Jun 28
0
[1094] trunk/wxruby2: Added SetCursorEvent and mapping
...007-06-28 08:35:04 UTC (rev 1094) </span><span class="lines">@@ -0,0 +1,12 @@ </span><ins>+// Copyright 2004-2007 by Kevin Smith +// released under the MIT-like wxRuby license + +%include "../common.i" + +%module(directors="1") wxSetCursorEvent +GC_MANAGE_AS_EVENT(wxSetCursorEvent); + +%import "include/wxObject.h" +%import "include/wxEvent.h" + +%include "include/wxSetCursorEvent.h" </ins></span></pre></div> <a id="trunkwxruby2swigclassesincludewxSetCursorEventh"></a> <div class=&...
2007 Jun 26
0
[1078] trunk/wxruby2: Map evt_spinctrl to SpinEvent instead of CommandEvent; add example to bigdemo
...nbsp2007-06-26 08:03:51 UTC (rev 1077) +++ trunk/wxruby2/swig/classes/SpinEvent.i&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2007-06-26 08:55:43 UTC (rev 1078) </span><span class="lines">@@ -7,7 +7,7 @@ </span><span class="cx"> GC_MANAGE_AS_EVENT(wxSpinEvent); </span><span class="cx"> </span><span class="cx"> %{ </span><del>-#include <wx/spinbutt.h> </del><ins>+#include <wx/spinctrl.h> </ins><span class="cx"> %} </span><span class...
2007 Jun 28
0
[1093] trunk/wxruby2: Added ChildFocusEvent class, mapping and documentation
...07-06-28 08:03:34 UTC (rev 1093) </span><span class="lines">@@ -0,0 +1,13 @@ </span><ins>+// Copyright 2004-2007 by Kevin Smith +// released under the MIT-like wxRuby license + +%include "../common.i" + +%module(directors="1") wxChildFocusEvent +GC_MANAGE_AS_EVENT(wxChildFocusEvent); + +%import "include/wxObject.h" +%import "include/wxEvent.h" +%import "include/wxCommandEvent.h" + +%include "include/wxChildFocusEvent.h" </ins></span></pre></div> <a id="trunkwxruby2swigclassesincludewxChi...
2007 May 22
0
[1032] trunk/wxruby2/swig: Preserve Sizers associated with Windows from GC; fix several sample
...><span class="cx"> </span><span class="cx"> // Events - cleaned up by WxWidgets when handling is complete, shouldn''t </span><span class="cx"> // be stored so not tracked. </span><span class="cx"> %define GC_MANAGE_AS_EVENT(kls) </span><span class="cx"> %feature("freefunc") kls "GcNullFreeFunc"; </span><ins>+%feature("nodirector") kls; </ins><span class="cx"> %enddef </span><span class="cx"> </span><sp...
2007 May 21
0
[1024] trunk/wxruby2/swig: Memory mgmt: defs and implementation of new memory management; strip
...ine GC_MANAGE_AS_FRAME(kls) +GC_NEVER(kls); +%enddef + +// Strategy for dialogs - these are destroyed automatically +%define GC_MANAGE_AS_DIALOG(kls) +GC_NEVER(kls); +%enddef + +// Events - cleaned up by WxWidgets when handling is complete, shouldn''t +// be stored so not tracked. +%define GC_MANAGE_AS_EVENT(kls) +%feature("freefunc") kls "GcNullFreeFunc"; +%enddef + +// Other descendants of Wx::Object - eg Colour, Pen, Bitmap - that Wx +// manages by reference counting +%define GC_MANAGE_AS_OBJECT(kls) +%trackobjects; +%enddef + +// All other classes - mainly helper classes (eg Si...
2007 Jun 26
0
[1081] trunk/wxruby2: Added HyperlinkCtrl from the 2.8 API plus event mappings
...007-06-26 18:35:28 UTC (rev 1081) </span><span class="lines">@@ -0,0 +1,19 @@ </span><ins>+// Copyright 2004-2007 by Kevin Smith +// released under the MIT-like wxRuby license + +%include "../common.i" + +%module(directors="1") wxHyperlinkEvent +GC_MANAGE_AS_EVENT(wxHyperlinkEvent); + +%{ +#include <wx/hyperlink.h> +%} + +%ignore wxCommandEvent::Checked; + +%import "include/wxObject.h" +%import "include/wxEvent.h" +%import "include/wxCommandEvent.h" + +%include "include/wxHyperlinkEvent.h" </ins></span&g...
2007 Jun 25
0
[1066] trunk/wxruby2/swig: Move EVT constants in swig/classes/Event.i; add a few missing ones
...p;nbsp2007-06-25 17:32:39 UTC (rev 1065) +++ trunk/wxruby2/swig/classes/Event.i&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2007-06-25 17:42:15 UTC (rev 1066) </span><span class="lines">@@ -7,6 +7,323 @@ </span><span class="cx"> GC_MANAGE_AS_EVENT(wxEvent); </span><span class="cx"> </span><span class="cx"> </span><ins>+// These includes are all required so that the wx EVT_XXX constants +// are all loaded +%{ + +#include <wx/calctrl.h> +#include <wx/choicebk.h> +#include &...