search for: wx_cwi

Displaying 9 results from an estimated 9 matches for "wx_cwi".

2007 Jul 21
0
[1135] trunk/wxruby2/swig/mark_free_impl.i: Convert from DOS to Unix newlines
...#39;s GC sweeping up items that are stored as client data -// Checks whether the C++ object is still around first... -void mark_wxControlWithItems(void* ptr) { - if ( GC_IsWindowDeleted(ptr) ) -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn; - - wxControlWithItems* wx_cwi = (wxControlWithItems*) ptr; - int count = wx_cwi->GetCount(); - if ( count == 0 ) -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn; // Empty control - if ( ! wx_cwi->HasClientObjectData() && ! wx_cwi->HasClientUntypedData() ) -&nbsp&nbsp&a...
2007 Jul 21
0
[1133] trunk/wxruby2/swig/shared/control_with_items.i: Move mark func for ControlWithItems into shared file so changes affect
...;nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( ! rb_obj_is_kind_of(rb_obj, cWxControlWithItems.klass) ) -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp return; - -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspwxControlWithItems* wx_cwi = (wxControlWithItems*) ptr; -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspint count = wx_cwi->GetCount(); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( count == 0 ) -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nb...
2007 Mar 17
0
[889] branches/wxruby2/wxwidgets_282/swig/shared/control_with_items.i: Ensure SWIG doesn''t generate wrappers for client data methods (Artur Kuptel)
...&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspfflush(stdout); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp </ins><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspwxControlWithItems* wx_cwi = (wxControlWithItems*) ptr; </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspint count = wx_cwi->GetCount(); </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&n...
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
...#39;s GC sweeping up items that are stored as client data +// Checks whether the C++ object is still around first... +void mark_wxControlWithItems(void* ptr) { + if ( GC_IsWindowDeleted(ptr) ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn; + + wxControlWithItems* wx_cwi = (wxControlWithItems*) ptr; + int count = wx_cwi->GetCount(); + if ( count == 0 ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn; // Empty control + if ( ! wx_cwi->HasClientObjectData() && ! wx_cwi->HasClientUntypedData() ) +&nbsp&nbsp&a...
2007 Apr 02
0
[936] branches/wxruby2/wxwidgets_282/swig/shared/control_with_items.i: Remove debugging output
...p;nbsp&nbsp2007-04-02 18:42:37 UTC (rev 936) </span><span class="lines">@@ -32,7 +32,7 @@ </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp return; </span><span class="cx"> if(!wx_cwi->HasClientObjectData()&&!wx_cwi->HasClientUntypedData()) </span><span class="cx"> return; // Control containing only strings </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspprintf("4x\n"); </de...
2006 Nov 07
0
[722] trunk/wxruby2/swig: Wx::Choice fixes for get_client_data (AF)
...p&nbsp&nbsp&nbsp&nbsp&nbspif ( rb_ivar_get(rb_obj, rb_intern("@__swig_dead__") ) == Qtrue ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp return; + +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspwxControlWithItems* wx_cwi = (wxControlWithItems*) ptr; +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspint count = wx_cwi->GetCount(); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( count == 0 ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nb...
2007 Jul 22
0
[1141] trunk/wxruby2/swig/mark_free_impl.i: ControlWithItems call default Window mark routine to preserve ToolTips etc
...r) ) </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn; </span><span class="cx"> </span><ins>+ GC_mark_wxWindow(ptr); + </ins><span class="cx"> wxControlWithItems* wx_cwi = (wxControlWithItems*) ptr; </span><span class="cx"> int count = wx_cwi->GetCount(); </span><span class="cx"> if ( count == 0 ) </span></span></pre> </div> </div> </body> </html>
2007 Jul 20
0
[1125] trunk/wxruby2/swig/shared/control_with_items.i: Avoid MSW crashes when unexpected object is returned by SWIG tracking
...;nbsp&nbspif ( ! rb_obj_is_kind_of(rb_obj, cWxControlWithItems.klass) ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp return; + </ins><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspwxControlWithItems* wx_cwi = (wxControlWithItems*) ptr; </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspint count = wx_cwi->GetCount(); </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&n...
2007 May 21
0
[1026] trunk/wxruby2/swig/shared/control_with_items.i: Memory mgmt: USe __wx_destroyed__ instead of __swig_dead__; fix some
...quot;> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp { </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE object = (VALUE) wx_cwi->GetClientData(i); </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( object != NULL && object != Qnil ) </del><ins>+&nbsp&nbsp&nbsp&nbs...