gir_ffi 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.0.13 / 2011-09-09
2
+
3
+ * Remove IErrorDomain related code. This functinality was removed from
4
+ GObject Introspection in version 1.29.17
5
+
1
6
  == 0.0.12 / 2011-09-04
2
7
 
3
8
  * No longer use _id2ref to locate objects past as user data pointers.
@@ -18,7 +18,6 @@ require 'gir_ffi/i_value_info'
18
18
  require 'gir_ffi/i_union_info'
19
19
  require 'gir_ffi/i_enum_info'
20
20
  require 'gir_ffi/i_flags_info'
21
- require 'gir_ffi/i_error_domain_info'
22
21
  require 'gir_ffi/arg_helper'
23
22
 
24
23
  module GirFFI
@@ -39,7 +38,7 @@ module GirFFI
39
38
  :object => IObjectInfo,
40
39
  :interface => IInterfaceInfo,
41
40
  :constant => IConstantInfo,
42
- :error_domain => IErrorDomainInfo,
41
+ :invalid_was_error_domain => IBaseInfo,
43
42
  :union => IUnionInfo,
44
43
  :value => IValueInfo,
45
44
  :signal => ISignalInfo,
@@ -31,14 +31,6 @@ module GirFFI
31
31
  def zero_terminated?
32
32
  Lib.g_type_info_is_zero_terminated @gobj
33
33
  end
34
- def n_error_domains
35
- Lib.g_type_info_get_n_error_domains @gobj
36
- end
37
- def error_domain(index)
38
- IErrorDomainInfo.wrap(Lib.g_type_info_get_error_domain @gobj, index)
39
- end
40
- ##
41
- build_array_method :error_domains
42
34
 
43
35
  def name
44
36
  raise "Should not call this for gir 0.6.5 ..."
data/lib/gir_ffi/lib.rb CHANGED
@@ -37,7 +37,7 @@ module GirFFI
37
37
  :object,
38
38
  :interface,
39
39
  :constant,
40
- :error_domain,
40
+ :invalid_was_error_domain, # deprecated in GI 1.29.17
41
41
  :union,
42
42
  :value,
43
43
  :signal,
@@ -129,8 +129,6 @@ module GirFFI
129
129
  attach_function :g_type_info_get_array_fixed_size, [:pointer], :int
130
130
  attach_function :g_type_info_get_array_type, [:pointer], :IArrayType
131
131
  attach_function :g_type_info_is_zero_terminated, [:pointer], :bool
132
- attach_function :g_type_info_get_n_error_domains, [:pointer], :int
133
- attach_function :g_type_info_get_error_domain, [:pointer, :int], :pointer
134
132
 
135
133
  # IStructInfo
136
134
  attach_function :g_struct_info_get_n_fields, [:pointer], :int
@@ -144,11 +144,7 @@ module GirFFI
144
144
 
145
145
  arr = ::GObject::ValueArray.new sig.n_args+1
146
146
 
147
- val = ::GObject::Value.new
148
- val.init ::GObject.type_from_instance(instance)
149
- val.set_instance instance
150
- arr.append val
151
- val.unset
147
+ arr.append signal_reciever_to_gvalue instance
152
148
 
153
149
  sig.args.zip(rest).each do |info, arg|
154
150
  arr.append signal_argument_to_gvalue info, arg
@@ -156,7 +152,14 @@ module GirFFI
156
152
 
157
153
  arr
158
154
  end
159
-
155
+
156
+ def self.signal_reciever_to_gvalue instance
157
+ val = ::GObject::Value.new
158
+ val.init ::GObject.type_from_instance instance
159
+ val.set_instance instance
160
+ return val
161
+ end
162
+
160
163
  def self.signal_argument_to_gvalue info, arg
161
164
  arg_type = info.argument_type
162
165
  tag = arg_type.tag
@@ -1,4 +1,4 @@
1
1
  module GirFFI
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gir_ffi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 12
10
- version: 0.0.12
9
+ - 13
10
+ version: 0.0.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matijs van Zuijlen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-04 00:00:00 Z
18
+ date: 2011-09-09 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: ffi
@@ -128,7 +128,6 @@ files:
128
128
  - lib/gir_ffi/in_pointer.rb
129
129
  - lib/gir_ffi/i_callable_info.rb
130
130
  - lib/gir_ffi/i_function_info.rb
131
- - lib/gir_ffi/i_error_domain_info.rb
132
131
  - lib/gir_ffi/version.rb
133
132
  - lib/gir_ffi/overrides/glib.rb
134
133
  - lib/gir_ffi/overrides/gtk.rb
@@ -1,8 +0,0 @@
1
- module GirFFI
2
- # Wraps a GIErrorDomainInfo struct.
3
- # Represents an error domain.
4
- # Not implemented yet.
5
- class IErrorDomainInfo < IRegisteredTypeInfo
6
- end
7
- end
8
-