qtbindings 4.6.3.2 → 4.6.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,7 @@
3
3
  #undef write
4
4
  #undef connect
5
5
  #undef accept
6
+ #undef truncate
6
7
 
7
8
  #include <QHash>
8
9
  #include <QList>
@@ -20,6 +20,7 @@
20
20
  #undef write
21
21
  #undef connect
22
22
  #undef accept
23
+ #undef truncate
23
24
 
24
25
  #include <qtruby.h>
25
26
  #include <smokeruby.h>
@@ -300,7 +300,8 @@ Binding::callMethod(Smoke::Index method, void *ptr, Smoke::Stack args, bool /*is
300
300
  }
301
301
  // If the virtual method hasn't been overriden, just call the C++ one.
302
302
  // During GC, avoid checking for override and just call the C++ version
303
- if (rb_during_gc() || rb_respond_to(obj, rb_intern(methodName)) == 0) {
303
+ // If not in a ruby thread, just call the C++ version
304
+ if (rb_during_gc() || ruby_check_stack() || rb_respond_to(obj, rb_intern(methodName)) == 0) {
304
305
  return false;
305
306
  }
306
307
  QtRuby::VirtualMethodCall c(smoke, method, args, obj, ALLOCA_N(VALUE, smoke->methods[method].numArgs));
@@ -20,6 +20,7 @@
20
20
  #undef write
21
21
  #undef connect
22
22
  #undef accept
23
+ #undef truncate
23
24
 
24
25
  #include <QHash>
25
26
  #include <QList>
@@ -20,6 +20,7 @@
20
20
  #undef write
21
21
  #undef connect
22
22
  #undef accept
23
+ #undef truncate
23
24
 
24
25
  #include <qtruby.h>
25
26
  #include <smokeruby.h>
@@ -20,6 +20,7 @@
20
20
  #undef write
21
21
  #undef connect
22
22
  #undef accept
23
+ #undef truncate
23
24
 
24
25
  #include <QHash>
25
26
  #include <QList>
@@ -20,6 +20,7 @@
20
20
  #undef write
21
21
  #undef connect
22
22
  #undef accept
23
+ #undef truncate
23
24
 
24
25
  #include <qtruby.h>
25
26
  #include <smokeruby.h>
@@ -20,6 +20,7 @@
20
20
  #undef write
21
21
  #undef connect
22
22
  #undef accept
23
+ #undef truncate
23
24
 
24
25
  #include <QHash>
25
26
  #include <QList>
@@ -21,6 +21,7 @@
21
21
  #undef write
22
22
  #undef connect
23
23
  #undef accept
24
+ #undef truncate
24
25
 
25
26
  #include <qtruby.h>
26
27
  #include <smokeruby.h>
@@ -3,6 +3,7 @@
3
3
  #undef write
4
4
  #undef connect
5
5
  #undef accept
6
+ #undef truncate
6
7
 
7
8
  #include <QHash>
8
9
  #include <QList>
@@ -20,6 +20,7 @@
20
20
  #undef write
21
21
  #undef connect
22
22
  #undef accept
23
+ #undef truncate
23
24
 
24
25
  #include <qtruby.h>
25
26
  #include <smokeruby.h>
data/lib/Qt/qtruby4.rb CHANGED
@@ -3161,8 +3161,14 @@ class Module
3161
3161
  private :_constants, :_instance_methods
3162
3162
  private :_protected_instance_methods, :_public_instance_methods
3163
3163
 
3164
- def constants
3165
- qt_methods(_constants, 0x10, true)
3164
+ if RUBY_VERSION < '1.9'
3165
+ def constants
3166
+ qt_methods(_constants, 0x10, true)
3167
+ end
3168
+ else
3169
+ def constants(_arg = true)
3170
+ qt_methods(_constants, 0x10, true)
3171
+ end
3166
3172
  end
3167
3173
 
3168
3174
  def instance_methods(inc_super=true)
@@ -1,2 +1,2 @@
1
- QTBINDINGS_VERSION = '4.6.3.2'
2
- QTBINDINGS_RELEASE_DATE = '2010-12-06 07:43:59 -0700'
1
+ QTBINDINGS_VERSION = '4.6.3.3'
2
+ QTBINDINGS_RELEASE_DATE = '2011-08-05 23:17:11 -0600'
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 4
7
7
  - 6
8
8
  - 3
9
- - 2
10
- version: 4.6.3.2
9
+ - 3
10
+ version: 4.6.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Richard Dale
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-12-06 00:00:00 -07:00
20
+ date: 2011-08-05 00:00:00 -06:00
21
21
  default_executable:
22
22
  dependencies: []
23
23