gir_ffi-gtk 0.15.1 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f8204b8f178dd3105a669419cde269dce4c4ef0ab197a4013751f85fc03c681
4
- data.tar.gz: d2e212b732094a2a3b769aa6bd08e7ae215ab165b3f0eb5ea18e1348a819d7c0
3
+ metadata.gz: 95669cd5d19ece1433eb6a8905bb6017dbbe1fd3d5b5b064530873a0ff728afd
4
+ data.tar.gz: f07d8fb7a0f00ef3bfa77a0d20e09bdc425eb3fb0f65f2e7ad736e510559d212
5
5
  SHA512:
6
- metadata.gz: 0f3b6997995a646ae826954fe25bdcac1c4f3b6687aed8986478a9770ecfb6b22b1ecc7a05149e36f1af86fc4818f850cfd80d688ee3e3d8d9b01a13ac8e1bc8
7
- data.tar.gz: 3d71a088f9ba042372aeb71e5f0e00671ca64090237176254871026f2eb2d35821db9d91b3143c33e6f21d4487461cfd4a16986b09bdad8d9b72ee96c97ddb2f
6
+ metadata.gz: d1161f3518e33be27a2a0aa9508cc6e72013855aad0163db6bd70e6484438d302ec02fb764186b563bd9eceaf536061ca1ef78794049ef61ad35643e96a36903
7
+ data.tar.gz: 3fa8e8894b2da74a4c0613ba9e355a91681f42497817fd8e88a81c1c323e1cc486fefbfc0e31845fe6c1488e8b424c00214653faaff4f571cd13194dccd7787a
data/Changelog.md CHANGED
@@ -3,6 +3,21 @@
3
3
  All notable changes to this project will be documented in this file. See the
4
4
  Git log for all changes.
5
5
 
6
+ ## 0.17.0 / 2023-12-31
7
+
8
+ * Drop support for Ruby 2.7 ([#129] by [mvz])
9
+ * Depend on GirFFI 0.17.0 ([#130] by [mvz])
10
+
11
+ [mvz]: https://github.com/mvz
12
+
13
+ [#129]: https://github.com/mvz/gir_ffi-gtk/pull/129
14
+ [#130]: https://github.com/mvz/gir_ffi-gtk/pull/130
15
+
16
+ ## 0.16.0 / 2022-05-21
17
+
18
+ * Drop support for Ruby 2.6 and JRuby
19
+ * Depend on GirFFI 0.16.0
20
+
6
21
  ## 0.15.1 / 2022-01-21
7
22
 
8
23
  * Silence warnings about redefining initialize in FileChooserDialog override
data/README.md CHANGED
@@ -1,52 +1,65 @@
1
1
  # GirFFI-Gtk
2
2
 
3
- GirFFI-based bindings for Gtk+. Supports both Gtk+ 2 and Gtk+ 3.
3
+ GirFFI-based Ruby bindings for Gtk+. Supports both Gtk+ 2 and Gtk+ 3.
4
4
 
5
5
  ## Usage
6
6
 
7
- Gtk2:
7
+ Gtk+ 2:
8
8
 
9
- require 'gir_ffi-gtk2'
10
- Gtk.init
11
- win = Gtk::Window.new :toplevel
12
- win.show
13
- GObject.signal_connect(win, "destroy") { Gtk.main_quit }
14
- Gtk.main
9
+ ```ruby
10
+ require 'gir_ffi-gtk2'
11
+ Gtk.init
12
+ win = Gtk::Window.new :toplevel
13
+ win.show
14
+ GObject.signal_connect(win, "destroy") { Gtk.main_quit }
15
+ Gtk.main
16
+ ```
15
17
 
16
- Gtk3:
18
+ Gtk+ 3:
17
19
 
18
- require 'gir_ffi-gtk3'
19
- Gtk.init
20
- win = Gtk::Window.new :toplevel
21
- win.show
22
- GObject.signal_connect(win, "destroy") { Gtk.main_quit }
23
- Gtk.main
20
+ ```ruby
21
+ require 'gir_ffi-gtk3'
22
+ Gtk.init
23
+ win = Gtk::Window.new :toplevel
24
+ win.show
25
+ GObject.signal_connect(win, "destroy") { Gtk.main_quit }
26
+ Gtk.main
27
+ ```
24
28
 
25
29
  See the `examples/` directory for more examples.
26
30
 
31
+ ## Install
32
+
33
+ ```bash
34
+ gem install gir_ffi-gtk
35
+ ```
36
+
27
37
  ## Requirements
28
38
 
29
39
  First, make sure the `ffi` gem is properly installed. See its documentation for
30
40
  the necessary requirements.
31
41
 
32
- GirFFI-Gtk itself depends on the GirFFI gem, and the gobject-introspection and
33
- gtk+ libaries.
42
+ GirFFI-Gtk itself depends on the [GirFFI](https://rubygems.org/gems/gir_ffi)
43
+ gem, and the gobject-introspection and gtk+ libaries.
34
44
 
35
- For debian-like systems, try the following for Gtk+ 3:
45
+ For Debian-like systems, try the following for Gtk+ 3:
36
46
 
37
- apt-get install libgirepository1.0-dev gobject-introspection gir1.2-gtk-3.0
47
+ ```bash
48
+ apt-get install libgirepository1.0-dev gobject-introspection gir1.2-gtk-3.0
49
+ ```
38
50
 
39
51
  and for Gtk+ 2:
40
52
 
41
- apt-get install libgirepository1.0-dev gobject-introspection gir1.2-gtk-2.0
42
-
43
- ## Install
53
+ ```bash
54
+ apt-get install libgirepository1.0-dev gobject-introspection gir1.2-gtk-2.0
55
+ ```
44
56
 
45
- gem install gir_ffi-gtk
57
+ This gem has not been tested on Mac OS X or Microsoft Windows. YMMV. Pull
58
+ requests to support these platforms are welcome.
46
59
 
47
60
  ## License
48
61
 
49
- Copyright © 2012–2018 [Matijs van Zuijlen](http://www.matijs.net)
62
+ Copyright © 2012–2022 [Matijs van Zuijlen](http://www.matijs.net)
50
63
 
51
64
  GirFFI-Gtk is free software, distributed under the terms of the GNU Lesser
52
65
  General Public License, version 2.1 or later. See the file COPYING.LIB for
@@ -4,7 +4,7 @@ module GirFFIGtk
4
4
  # Overrides for GtkAction
5
5
  module ActionOverrides
6
6
  def create_icon(icon_size)
7
- super Gtk::IconSize.to_int(icon_size)
7
+ super(Gtk::IconSize.to_int(icon_size))
8
8
  end
9
9
  end
10
10
  end
@@ -14,7 +14,7 @@ module Gtk
14
14
  setup_instance_method! :child_get_property
15
15
 
16
16
  def child_get_property_with_override(widget, property_name)
17
- param_spec = object_class.find_child_property property_name
17
+ param_spec = class_struct.find_child_property property_name
18
18
  unless param_spec
19
19
  raise(ArgumentError,
20
20
  "child property named '#{property_name}' not found in #{self.class}")
@@ -4,7 +4,7 @@ module GirFFIGtk
4
4
  # Overrides for GtkAction class methods
5
5
  module ButtonClassOverrides
6
6
  def new_from_icon_name(icon_name, size)
7
- super icon_name, Gtk::IconSize.to_int(size)
7
+ super(icon_name, Gtk::IconSize.to_int(size))
8
8
  end
9
9
  end
10
10
  end
@@ -4,18 +4,18 @@ module GirFFIGtk
4
4
  # Overrides for GtkImage methods
5
5
  module ImageOverrides
6
6
  def set_from_gicon(icon, size)
7
- super icon, Gtk::IconSize.to_int(size)
7
+ super(icon, Gtk::IconSize.to_int(size))
8
8
  end
9
9
  end
10
10
 
11
11
  # Overrides for GtkImage class methods
12
12
  module ImageClassOverrides
13
13
  def new_from_icon_name(icon_name, size)
14
- super icon_name, Gtk::IconSize.to_int(size)
14
+ super(icon_name, Gtk::IconSize.to_int(size))
15
15
  end
16
16
 
17
17
  def new_from_gicon(icon, size)
18
- super icon, Gtk::IconSize.to_int(size)
18
+ super(icon, Gtk::IconSize.to_int(size))
19
19
  end
20
20
  end
21
21
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GirFFIGtk
4
- VERSION = "0.15.1"
4
+ VERSION = "0.17.0"
5
5
  end
@@ -4,7 +4,7 @@ module GirFFIGtk
4
4
  # Overrides for GtkWidget methods
5
5
  module WidgetOverrides
6
6
  def add_events(events)
7
- super Gdk::EventMask.to_int events
7
+ super(Gdk::EventMask.to_int events)
8
8
  end
9
9
 
10
10
  def get_events
@@ -12,7 +12,7 @@ module GirFFIGtk
12
12
  end
13
13
 
14
14
  def set_events(events)
15
- super Gdk::EventMask.to_int events
15
+ super(Gdk::EventMask.to_int events)
16
16
  end
17
17
  end
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gir_ffi-gtk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matijs van Zuijlen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-21 00:00:00.000000000 Z
11
+ date: 2023-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gir_ffi
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.15.2
19
+ version: 0.17.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: 0.15.2
26
+ version: 0.17.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -72,70 +72,84 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.25.0
75
+ version: '1.52'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 1.25.0
82
+ version: '1.52'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rubocop-minitest
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.17.0
89
+ version: 0.34.1
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.17.0
96
+ version: 0.34.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop-packaging
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.5.0
103
+ version: 0.5.2
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.5.0
110
+ version: 0.5.2
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rubocop-performance
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.13.0
117
+ version: '1.18'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.18'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop-rake
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.6.0
118
132
  type: :development
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
136
  - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: 1.13.0
138
+ version: 0.6.0
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: simplecov
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
143
  - - "~>"
130
144
  - !ruby/object:Gem::Version
131
- version: 0.21.0
145
+ version: 0.22.0
132
146
  type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
150
  - - "~>"
137
151
  - !ruby/object:Gem::Version
138
- version: 0.21.0
152
+ version: 0.22.0
139
153
  description: Bindings for Gtk+ 2 and 3, generated by GirFFI, with overrides.
140
154
  email:
141
155
  - matijs@matijs.net
@@ -186,14 +200,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
186
200
  requirements:
187
201
  - - ">="
188
202
  - !ruby/object:Gem::Version
189
- version: 2.6.0
203
+ version: 3.0.0
190
204
  required_rubygems_version: !ruby/object:Gem::Requirement
191
205
  requirements:
192
206
  - - ">="
193
207
  - !ruby/object:Gem::Version
194
208
  version: '0'
195
209
  requirements: []
196
- rubygems_version: 3.3.3
210
+ rubygems_version: 3.5.3
197
211
  signing_key:
198
212
  specification_version: 4
199
213
  summary: GirFFI-based Ruby bindings for Gtk+ 2 and 3