gdk3 3.4.9 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dependency-check/Rakefile +2 -1
- data/lib/gdk3/loader.rb +84 -21
- data/lib/gdk3/x11-loader.rb +16 -2
- data/lib/gdk3.rb +1 -1
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd80628d71f57707c58942900c0814817cb8e3cc241eaa102cb62c29883881c9
|
4
|
+
data.tar.gz: eeceec314d59dfed8aad93c1247e42440064254572fb3ec696437044cfc5484c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0809f85ba98b882bfa11764674746e2b554639f1005f74c009dff90d3ff92666482e64efc34461dbecca3e6e4d8ef5dad0e14034272937b6011ed95ff945f100'
|
7
|
+
data.tar.gz: e1bc545404afe47f420f7dc5b65641f2f1ef152bce3eaa85fc894db2797a34bba9462acaeeed52682ed721313b0a8161473212162e68ef6b196b7f266e167736
|
data/dependency-check/Rakefile
CHANGED
@@ -31,7 +31,8 @@ namespace :dependency do
|
|
31
31
|
task :check do
|
32
32
|
package_id = "gdk-3.0"
|
33
33
|
unless PKGConfig.check_version?(package_id)
|
34
|
-
unless NativePackageInstaller.install(:
|
34
|
+
unless NativePackageInstaller.install(:alt_linux => "libgtk+3-devel",
|
35
|
+
:arch_linux => "gtk3",
|
35
36
|
:debian => "libgtk-3-dev",
|
36
37
|
:redhat => "pkgconfig(#{package_id})",
|
37
38
|
:homebrew => "gtk+3",
|
data/lib/gdk3/loader.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2013-
|
1
|
+
# Copyright (C) 2013-2021 Ruby-GNOME Project Team
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -22,34 +22,83 @@ module Gdk
|
|
22
22
|
end
|
23
23
|
|
24
24
|
private
|
25
|
-
def window_class
|
26
|
-
@window_class ||= @base_module.const_get(:Window)
|
27
|
-
end
|
28
|
-
|
29
25
|
def event_class
|
30
26
|
@event_class ||= @base_module.const_get(:Event)
|
31
27
|
end
|
32
28
|
|
33
|
-
def event_motion_class
|
34
|
-
@event_motion_class ||= @base_module.const_get(:EventMotion)
|
35
|
-
end
|
36
|
-
|
37
29
|
def pre_load(repository, namespace)
|
38
30
|
setup_pending_constants
|
39
31
|
setup_pending_rectangle_functions
|
40
32
|
define_keyval_module
|
41
33
|
define_selection_module
|
34
|
+
define_event_singleton_methods_module
|
35
|
+
define_event_motion_methods_module
|
36
|
+
define_window_methods_module
|
37
|
+
define_cairo_context_methods_module
|
38
|
+
define_cairo_surface_methods_module
|
42
39
|
require_pre_libraries
|
43
40
|
end
|
44
41
|
|
45
42
|
def define_keyval_module
|
46
|
-
@keyval_module =
|
47
|
-
|
43
|
+
@keyval_module = define_methods_module(:Keyval)
|
44
|
+
end
|
45
|
+
|
46
|
+
def post_keyval_module
|
47
|
+
post_methods_module(@keyval_module)
|
48
48
|
end
|
49
49
|
|
50
50
|
def define_selection_module
|
51
51
|
@selection_module = Module.new
|
52
|
-
@base_module.const_set(
|
52
|
+
@base_module.const_set(:Selection, @selection_module)
|
53
|
+
end
|
54
|
+
|
55
|
+
def define_event_singleton_methods_module
|
56
|
+
@event_singleton_methods_module =
|
57
|
+
define_methods_module(:EventSingletonMethods)
|
58
|
+
end
|
59
|
+
|
60
|
+
def apply_event_singleton_methods
|
61
|
+
event_class = @base_module.const_get(:Event)
|
62
|
+
apply_methods_module(@event_singleton_methods_module,
|
63
|
+
event_class.singleton_class)
|
64
|
+
end
|
65
|
+
|
66
|
+
def define_event_motion_methods_module
|
67
|
+
@event_motion_methods_module =
|
68
|
+
define_methods_module(:EventMotionMethods)
|
69
|
+
end
|
70
|
+
|
71
|
+
def apply_event_motion_methods
|
72
|
+
event_motion_class = @base_module.const_get(:EventMotion)
|
73
|
+
apply_methods_module(@event_motion_methods_module,
|
74
|
+
event_motion_class)
|
75
|
+
end
|
76
|
+
|
77
|
+
def define_window_methods_module
|
78
|
+
@window_methods_module = define_methods_module(:WindowMethods)
|
79
|
+
end
|
80
|
+
|
81
|
+
def apply_window_methods
|
82
|
+
window_class = @base_module.const_get(:Window)
|
83
|
+
apply_methods_module(@window_methods_module, window_class)
|
84
|
+
end
|
85
|
+
|
86
|
+
def define_cairo_context_methods_module
|
87
|
+
@cairo_context_methods_module =
|
88
|
+
define_methods_module(:CairoContextMethods)
|
89
|
+
end
|
90
|
+
|
91
|
+
def apply_cairo_context_methods
|
92
|
+
apply_methods_module(@cairo_context_methods_module, Cairo::Context)
|
93
|
+
end
|
94
|
+
|
95
|
+
def define_cairo_surface_methods_module
|
96
|
+
@cairo_surface_methods_module =
|
97
|
+
define_methods_module(:CairoSurfaceMethods)
|
98
|
+
end
|
99
|
+
|
100
|
+
def apply_cairo_surface_methods
|
101
|
+
apply_methods_module(@cairo_surface_methods_module, Cairo::Surface)
|
53
102
|
end
|
54
103
|
|
55
104
|
def require_pre_libraries
|
@@ -59,6 +108,12 @@ module Gdk
|
|
59
108
|
def post_load(repository, namespace)
|
60
109
|
apply_pending_constants
|
61
110
|
apply_pending_rectangle_functions
|
111
|
+
post_keyval_module
|
112
|
+
apply_event_singleton_methods
|
113
|
+
apply_event_motion_methods
|
114
|
+
apply_window_methods
|
115
|
+
apply_cairo_context_methods
|
116
|
+
apply_cairo_surface_methods
|
62
117
|
require_post_libraries
|
63
118
|
convert_event_classes
|
64
119
|
define_selection_constants
|
@@ -217,9 +272,9 @@ module Gdk
|
|
217
272
|
target_class = nil
|
218
273
|
case $POSTMATCH
|
219
274
|
when "get_from_window"
|
220
|
-
target_class =
|
275
|
+
target_class = @window_methods_module
|
221
276
|
when "get_from_surface"
|
222
|
-
target_class =
|
277
|
+
target_class = @cairo_surface_methods_module
|
223
278
|
end
|
224
279
|
if target_class
|
225
280
|
define_method(info, target_class, "to_pixbuf")
|
@@ -230,30 +285,38 @@ module Gdk
|
|
230
285
|
name = $POSTMATCH
|
231
286
|
case name
|
232
287
|
when "request_motions"
|
233
|
-
define_method(info,
|
288
|
+
define_method(info, @event_motion_methods_module, "request")
|
234
289
|
else
|
235
290
|
# ignore because moved to Gdk::Event
|
236
291
|
end
|
237
292
|
when /\Aevents_/
|
238
293
|
method_name = rubyish_method_name(info, :prefix => "events_")
|
239
|
-
|
294
|
+
define_module_function(@event_singleton_methods_module,
|
295
|
+
method_name,
|
296
|
+
info)
|
240
297
|
when /\Acairo_/
|
241
298
|
name = $POSTMATCH
|
242
299
|
case name
|
243
300
|
when "create"
|
244
|
-
define_method(info,
|
301
|
+
define_method(info, @window_methods_module, "create_cairo_context")
|
245
302
|
when "set_source_color"
|
246
|
-
define_method(info,
|
303
|
+
define_method(info,
|
304
|
+
@cairo_context_methods_module,
|
305
|
+
"set_source_gdk_color")
|
247
306
|
when "set_source_rgba"
|
248
|
-
define_method(info,
|
307
|
+
define_method(info,
|
308
|
+
@cairo_context_methods_module,
|
309
|
+
"set_source_gdk_rgba")
|
249
310
|
when "rectangle"
|
250
|
-
define_method(info,
|
311
|
+
define_method(info,
|
312
|
+
@cairo_context_methods_module,
|
313
|
+
"gdk_rectangle")
|
251
314
|
when "region_create_from_surface"
|
252
315
|
# TODO
|
253
316
|
when "surface_create_from_pixbuf"
|
254
317
|
# TODO
|
255
318
|
else
|
256
|
-
define_method(info,
|
319
|
+
define_method(info, @cairo_context_methods_module, name)
|
257
320
|
end
|
258
321
|
when /\Akeyval_/
|
259
322
|
name = rubyish_method_name(info, :prefix => "keyval_")
|
data/lib/gdk3/x11-loader.rb
CHANGED
@@ -14,8 +14,8 @@
|
|
14
14
|
# License along with this library; if not, write to the Free Software
|
15
15
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
16
|
|
17
|
-
module
|
18
|
-
class
|
17
|
+
module GdkX11
|
18
|
+
class Loader < GObjectIntrospection::Loader
|
19
19
|
def load
|
20
20
|
begin
|
21
21
|
self.version = "3.0"
|
@@ -24,5 +24,19 @@ module Gdk
|
|
24
24
|
# Ignore. Some environments such as Windows don't have it.
|
25
25
|
end
|
26
26
|
end
|
27
|
+
|
28
|
+
private
|
29
|
+
def post_load(repository, namespace)
|
30
|
+
@base_module.constants.each do |constant|
|
31
|
+
case constant
|
32
|
+
when :INVOKERS,
|
33
|
+
:Loader
|
34
|
+
next
|
35
|
+
else
|
36
|
+
value = @base_module.const_get(constant)
|
37
|
+
Gdk.const_set(constant, value)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
27
41
|
end
|
28
42
|
end
|
data/lib/gdk3.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gdk3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME Project Team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pango
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: gdk_pixbuf2
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 4.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 4.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: cairo-gobject
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 4.0.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 4.0.0
|
55
55
|
description: Ruby/GDK3 is a Ruby binding of GDK-3.x.
|
56
56
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
57
57
|
executables: []
|
@@ -101,7 +101,7 @@ licenses:
|
|
101
101
|
- LGPL-2.1+
|
102
102
|
metadata:
|
103
103
|
msys2_mingw_dependencies: gtk3
|
104
|
-
post_install_message:
|
104
|
+
post_install_message:
|
105
105
|
rdoc_options: []
|
106
106
|
require_paths:
|
107
107
|
- lib
|
@@ -116,8 +116,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
|
-
rubygems_version: 3.
|
120
|
-
signing_key:
|
119
|
+
rubygems_version: 3.4.0.dev
|
120
|
+
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: Ruby/GDK3 is a Ruby binding of GDK-3.x.
|
123
123
|
test_files: []
|