Displaying 11 results from an estimated 11 matches for "getclientdata".
2006 Nov 21
0
[744] trunk/wxruby2: get_data support & mem mgmt to all ControlWithItems types, using more
...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)
- {
-        VALUE returnVal = (VALUE) self->Ge...
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)
...lt;/span><span class="cx"> // First hide the old Wx definitions of these methods - which segfault
</span><del>-// TODO - these are not ACTUALLY getting ignored, whether they are
-// named by method only or with full class qualification. Perh Swig 1.3.29 bug?
-%ignore GetClientData(int n) const;
-%ignore GetClientObject(int n) const;
-%ignore SetClientObject(int n, wxClientData * data);
</del><ins>+%ignore *::GetClientData(int n) const;
+%ignore *::GetClientObject(int n) const;
+%ignore *::SetClientObject(int n, wxClientData * data);
</ins><span class=&...
2006 Nov 07
0
[722] trunk/wxruby2/swig: Wx::Choice fixes for get_client_data (AF)
...pan><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)
+ {
+        VALUE returnVal = (VALUE) self->GetClientData(n);
+     &nb...
2007 May 21
0
[1026] trunk/wxruby2/swig/shared/control_with_items.i: Memory mgmt: USe __wx_destroyed__ instead of __swig_dead__; fix some
...as client data
</span><span class="cx"> static VALUE wxControlWithItems_get_client_data(wxControlWithItems *ptr, int n) {
</span><span class="cx">         VALUE returnVal = (VALUE) ptr->GetClientData(n);
</span><del>-        if ( returnVal == NULL )
</del><ins>+        if ( returnVal )
</ins><span class="cx">  &...
2007 Jul 21
0
[1135] trunk/wxruby2/swig/mark_free_impl.i: Convert from DOS to Unix newlines
...nbsp   return; // Control containing only strings
-
- for (int i = 0; i < count; ++i)
-        {
-         VALUE object = (VALUE) wx_cwi->GetClientData(i);
-         if ( object && object != Qnil )
-                rb_gc_mark(object);
- &...
2007 Apr 02
0
[936] branches/wxruby2/wxwidgets_282/swig/shared/control_with_items.i: Remove debugging output
...amp;nbsp        {
</span><span class="cx">                 VALUE object = (VALUE) wx_cwi->GetClientData(i);
</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
...as client data
</span><span class="cx"> static VALUE wxControlWithItems_get_client_data(wxControlWithItems *ptr, int n) {
</span><span class="cx">         VALUE returnVal = (VALUE) ptr->GetClientData(n);
</span><span class="lines">@@ -24,8 +26,12 @@
</span><span class="cx">         VALUE rb_obj = SWIG_RubyInstanceFor(ptr);
</span><span class="cx">   &...
2007 Jul 21
0
[1133] trunk/wxruby2/swig/shared/control_with_items.i: Move mark func for ControlWithItems into shared file so changes affect
... for (int i = 0; i < count; ++i)
-         {
-                VALUE object = (VALUE) wx_cwi->GetClientData(i);
-                if ( object && object != Qnil )
-            ...
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   return; // Control containing only strings
+
+ for (int i = 0; i < count; ++i)
+        {
+         VALUE object = (VALUE) wx_cwi->GetClientData(i);
+         if ( object && object != Qnil )
+                rb_gc_mark(object);
+ &...
2007 Mar 17
0
[883] branches/wxruby2/wxwidgets_282/swig: API changes for move to WxWidgets 2.8
...;nbsp   2007-03-17 18:39:40 UTC (rev 883)
</span><span class="lines">@@ -67,7 +67,7 @@
</span><span class="cx"> virtual int FindString(const wxString& string );
</span><span class="cx"> virtual void * GetClientData(int n ) const;
</span><span class="cx"> virtual wxClientData * GetClientObject(int n ) const;
</span><del>- virtual int GetCount() const;
</del><ins>+ virtual unsigned int GetCount() const;
</ins><span class="cx"> virtual i...
2006 Dec 01
0
[766] trunk/wxruby2: Added item_data aliases for client_data functions, update doc & tests;
...an class="cx"> * "ControlWithItems#delete":#ControlWithItems_delete
</span><span class="cx"> * "ControlWithItems#find_string":#ControlWithItems_findstring
</span><del>-* "ControlWithItems#get_client_data":#ControlWithItems_getclientdata
-* "ControlWithItems#get_client_object":#ControlWithItems_getclientobject
</del><span class="cx"> * "ControlWithItems#get_count":#ControlWithItems_getcount
</span><ins>+* "ControlWithItems#get_item_data":#ControlWithItems_getitemdata
&...