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) )
-        return;
-
- wxControlWithItems* wx_cwi = (wxControlWithItems*) ptr;
- int count = wx_cwi->GetCount();
- if ( count == 0 )
-        return; // Empty control
- if ( ! wx_cwi->HasClientObjectData() && ! wx_cwi->HasClientUntypedData() )
-  &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      if ( ! rb_obj_is_kind_of(rb_obj, cWxControlWithItems.klass) )
-         return;
-
-        wxControlWithItems* wx_cwi = (wxControlWithItems*) ptr;
-        int count = wx_cwi->GetCount();
-        if ( count == 0 )
-       &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)
...        fflush(stdout);
+        
</ins><span class="cx">         wxControlWithItems* wx_cwi = (wxControlWithItems*) ptr;
</span><span class="cx">         int count = wx_cwi->GetCount();
</span><span class="cx">        &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) )
+        return;
+
+ wxControlWithItems* wx_cwi = (wxControlWithItems*) ptr;
+ int count = wx_cwi->GetCount();
+ if ( count == 0 )
+        return; // Empty control
+ if ( ! wx_cwi->HasClientObjectData() && ! wx_cwi->HasClientUntypedData() )
+  &a...
2007 Apr 02
0
[936] branches/wxruby2/wxwidgets_282/swig/shared/control_with_items.i: Remove debugging output
...p;nbsp 2007-04-02 18:42:37 UTC (rev 936)
</span><span class="lines">@@ -32,7 +32,7 @@
</span><span class="cx">          return;
</span><span class="cx"> if(!wx_cwi->HasClientObjectData()&&!wx_cwi->HasClientUntypedData())
</span><span class="cx"> return; // Control containing only strings
</span><del>-        printf("4x\n");
</de...
2006 Nov 07
0
[722] trunk/wxruby2/swig: Wx::Choice fixes for get_client_data (AF)
...p     if ( rb_ivar_get(rb_obj, rb_intern("@__swig_dead__") ) == Qtrue )
+         return;
+
+        wxControlWithItems* wx_cwi = (wxControlWithItems*) ptr;
+        int count = wx_cwi->GetCount();
+        if ( count == 0 )
+       &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">         return;
</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 if ( ! rb_obj_is_kind_of(rb_obj, cWxControlWithItems.klass) )
+         return;
+
</ins><span class="cx">         wxControlWithItems* wx_cwi = (wxControlWithItems*) ptr;
</span><span class="cx">         int count = wx_cwi->GetCount();
</span><span class="cx">        &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;>          {
</span><span class="cx">                 VALUE object = (VALUE) wx_cwi->GetClientData(i);
</span><del>-                if ( object != NULL && object != Qnil )
</del><ins>+   &nbs...