search for: mark_wxcontrolwithitems

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

2006 Nov 21
0
[744] trunk/wxruby2: get_data support & mem mgmt to all ControlWithItems types, using more
...pan class="cx"> </span><del>- </del><span class="cx"> // start client_data fixes </span><span class="cx"> %include "../shared/control_with_items.i" </span><span class="cx"> %markfunc wxChoice "mark_wxControlWithItems"; </span><span class="cx"> </span><del>-%ignore wxChoice::GetClientData(int n) const; -%ignore wxChoice::GetClientObject(int n) const; </del><span class="cx"> %extend wxChoice { </span><del>- VALUE get_client_data(int n) -...
2006 Nov 23
0
[748] trunk/wxruby2/swig/classes: Fix an errant Ruby-ism in C++ code (Roy Sutton)
...9 UTC (rev 747) +++ trunk/wxruby2/swig/classes/Choice.i&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2006-11-23 00:13:04 UTC (rev 748) </span><span class="lines">@@ -33,7 +33,7 @@ </span><span class="cx"> %markfunc wxChoice "mark_wxControlWithItems"; </span><span class="cx"> </span><span class="cx"> %extend wxChoice { </span><del>- VALUE get_client_data(int n) { wxControlWithItems_get_client_data(self, n); } </del><ins>+ VALUE get_client_data(int n) { return wxControl...
2007 Jul 21
0
[1133] trunk/wxruby2/swig/shared/control_with_items.i: Move mark func for ControlWithItems into shared file so changes affect
...v 1133) </span><span class="lines">@@ -11,6 +11,7 @@ </span><span class="cx"> </span><span class="cx"> %{ </span><span class="cx"> extern swig_class cWxControlWithItems; </span><ins>+ extern void mark_wxControlWithItems(void* ptr); </ins><span class="cx"> </span><span class="cx"> // Returns a ruby object stored as client data </span><span class="cx"> static VALUE wxControlWithItems_get_client_data(wxControlWithItems *ptr, int n) { </span>...
2006 Nov 07
0
[722] trunk/wxruby2/swig: Wx::Choice fixes for get_client_data (AF)
...const wxString& name = wxChoiceNameStr); </span><del>- </del><span class="cx"> </span><span class="cx"> </span><ins>+// start client_data fixes +%include "../shared/control_with_items.i" +%markfunc wxChoice "mark_wxControlWithItems"; + +%ignore wxChoice::GetClientData(int n) const; +%ignore wxChoice::GetClientObject(int n) const; +%extend wxChoice { + VALUE get_client_data(int n) + { +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE returnVal = (VALUE) self->GetClientData(n); +&nbsp&...
2007 Jul 21
0
[1135] trunk/wxruby2/swig/mark_free_impl.i: Convert from DOS to Unix newlines
...nuBar(); - if ( menu_bar ) -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{ GC_mark_MenuBarBelongingToFrame(menu_bar); } -} - -// Prevents Ruby''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&...
2007 May 21
0
[1026] trunk/wxruby2/swig/shared/control_with_items.i: Memory mgmt: USe __wx_destroyed__ instead of __swig_dead__; fix some
...rn returnVal; </span><span class="cx"> } </span><span class="lines">@@ -22,7 +22,7 @@ </span><span class="cx"> // Checks whether the C++ object is still around first... </span><span class="cx"> static void mark_wxControlWithItems(void* ptr) { </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE rb_obj = SWIG_RubyInstanceFor(ptr); </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( rb_ivar_get(rb_obj, rb_...
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
...;nbsp&nbsp&nbsp&nbsp{ GC_mark_MenuBarBelongingToFrame(menu_bar); } </span><span class="cx"> } </span><ins>+ +// Prevents Ruby''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&...
2007 Feb 09
20
Hello Everyone
I have a bit of a problem with installation. I installed wxX11 in my linux box. I compiled the demos and all the demos, save dbbrowse, work. I think I have a functional wx. Now I''m trying to install wxRuby from source, since I have a 64 bit machine. I only have permission to my home directory so my installation is : /usr/people/stevenq/Applications/wxX11/