Displaying 4 results from an estimated 4 matches for "wx_obj".
Did you mean:
rk_obj
2006 Dec 23
0
[794] trunk/wxruby2: Fix get_ruby_object so it works with SWIG tracking, move find_window_xx
...already exists,
+// and if not, wrap it in the correct class, and ensure that future
+// calls return the same object.
</ins><span class="cx"> %{
</span><del>-static VALUE get_ruby_object(wxObject *obj)
</del><ins>+static VALUE get_ruby_object(wxObject *wx_obj)
</ins><span class="cx"> {
</span><del>-        if ( ! obj )
</del><ins>+ if ( ! wx_obj ) return Qnil;
+
+ // Get the wx class and the ruby class we are converting into
+ wxString clas...
2007 Jul 05
0
[1109] trunk/wxruby2/swig: Move marking of MenuBar from direct %markfunc to via mark_wxFrame, so
...-62,11 +63,7 @@
</span><span class="cx"> void OnWindowDestroy(wxWindowDestroyEvent &event)
</span><span class="cx"> {
</span><span class="cx">         wxObject* wx_obj = event.GetEventObject();
</span><del>-        // Would be neater - but can''t do it this way b/c of destruction sequence
-        // SWIG_RubyUnlinkOb...
2007 May 21
0
[1022] trunk/wxruby2/swig/classes/App.i: Memory mgmt: use Wx::App to mark still-alive Windows, set up Wx::THE_APP const
...cial event handler for destruction of windows which is done
+ // automatically by wxWidgets. Tag the object as having been destroyed
+ // by WxWidgets.
+ void OnWindowDestroy(wxWindowDestroyEvent &event)
+ {
+        wxObject* wx_obj = event.GetEventObject();
+        // Would be neater - but can''t do it this way b/c of destruction sequence
+        // SWIG_RubyUnlinkObjects((void *)wx_obj);
+...
2007 Jul 21
0
[1136] trunk/wxruby2/swig/classes/App.i: Note when the Wx::App is exiting and avoid doing GC if in process of
...;nbsp      2007-07-21 16:42:13 UTC (rev 1136)
</span><span class="lines">@@ -68,8 +68,7 @@
</span><span class="cx">         GC_SetWindowDeleted(wx_obj);
</span><span class="cx">         event.Skip();
</span><span class="cx"> }
</span><del>-
-
</del><ins>+      &nb...