gir_ffi-gtk 0.13.1 → 0.15.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/Changelog.md +26 -1
  3. data/lib/gir_ffi-gtk/base.rb +3 -3
  4. data/lib/gir_ffi-gtk/dialog.rb +31 -0
  5. data/lib/gir_ffi-gtk/file_chooser_dialog.rb +35 -0
  6. data/lib/gir_ffi-gtk/gtk2/menu.rb +26 -0
  7. data/lib/gir_ffi-gtk/message_dialog.rb +1 -1
  8. data/lib/gir_ffi-gtk/tree_path.rb +1 -1
  9. data/lib/gir_ffi-gtk/version.rb +5 -0
  10. data/lib/gir_ffi-gtk/widget.rb +25 -0
  11. data/lib/gir_ffi-gtk2.rb +22 -18
  12. data/lib/gir_ffi-gtk3.rb +18 -15
  13. metadata +98 -69
  14. data/Rakefile +0 -8
  15. data/examples/01_empty_window.rb +0 -12
  16. data/examples/02_hello_world.rb +0 -27
  17. data/examples/03_upgraded_hello_world.rb +0 -40
  18. data/examples/04_webkit.rb +0 -18
  19. data/examples/05_notification.rb +0 -33
  20. data/examples/06_treeview.rb +0 -51
  21. data/examples/07_simple_gtk_application.rb +0 -30
  22. data/examples/08_webkit_headless.rb +0 -21
  23. data/examples/09_webkit2_headless.rb +0 -24
  24. data/examples/10_completion_provider.rb +0 -62
  25. data/lib/gir_ffi-gtk/menu.rb +0 -19
  26. data/tasks/test.rake +0 -30
  27. data/test/callback_exceptions_test.rb +0 -58
  28. data/test/gir_ffi-gtk/action_test.rb +0 -17
  29. data/test/gir_ffi-gtk/base_test.rb +0 -47
  30. data/test/gir_ffi-gtk/builder_test.rb +0 -70
  31. data/test/gir_ffi-gtk/button_test.rb +0 -19
  32. data/test/gir_ffi-gtk/container_test.rb +0 -33
  33. data/test/gir_ffi-gtk/generated_gtk_test.rb +0 -58
  34. data/test/gir_ffi-gtk/image_test.rb +0 -43
  35. data/test/gir_ffi-gtk/list_store_test.rb +0 -38
  36. data/test/gir_ffi-gtk/menu_test.rb +0 -20
  37. data/test/gir_ffi-gtk/message_dialog_test.rb +0 -15
  38. data/test/gir_ffi-gtk/radio_action_test.rb +0 -28
  39. data/test/gir_ffi-gtk/radio_button_test.rb +0 -37
  40. data/test/gir_ffi-gtk/target_entry_test.rb +0 -19
  41. data/test/gir_ffi-gtk/tree_path_test.rb +0 -17
  42. data/test/gir_ffi-gtk/tree_store_test.rb +0 -38
  43. data/test/gir_ffi-gtk/tree_view_column_test.rb +0 -51
  44. data/test/test_helper.rb +0 -36
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff690307c8af4d785db6460b4944c73e7f80b0a5d51e58516d2bd18ad18b27cc
4
- data.tar.gz: c428003b8da3caa6e48f1b297c79f9c8482d8cbce82a1c05f0748572efa40af5
3
+ metadata.gz: 0f8204b8f178dd3105a669419cde269dce4c4ef0ab197a4013751f85fc03c681
4
+ data.tar.gz: d2e212b732094a2a3b769aa6bd08e7ae215ab165b3f0eb5ea18e1348a819d7c0
5
5
  SHA512:
6
- metadata.gz: e12f72f2b557f3e7b0ad3880775f4b9e1aacb34c7c9818f8c3c560d305a820bb50f5af9c69cd215c58d479aa60e7d4f7b15fca76a2a9e2291807b65c6d57fa1a
7
- data.tar.gz: 2ffba95ce0d0dbf4771321eec7da295d5febee23ca10593eecde56c1a584757d19bbee37fbe4e5f2f5971470e5f8c84042875cefd982ce0356526ce75e4d4266
6
+ metadata.gz: 0f3b6997995a646ae826954fe25bdcac1c4f3b6687aed8986478a9770ecfb6b22b1ecc7a05149e36f1af86fc4818f850cfd80d688ee3e3d8d9b01a13ac8e1bc8
7
+ data.tar.gz: 3d71a088f9ba042372aeb71e5f0e00671ca64090237176254871026f2eb2d35821db9d91b3143c33e6f21d4487461cfd4a16986b09bdad8d9b72ee96c97ddb2f
data/Changelog.md CHANGED
@@ -3,10 +3,35 @@
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.15.1 / 2022-01-21
7
+
8
+ * Silence warnings about redefining initialize in FileChooserDialog override
9
+ * Depend on GirFFI 0.15.2
10
+ * Target Ruby 2.6+
11
+
12
+ ## 0.15.0 / 2019-10-19
13
+
14
+ * Fix override for `Gtk::Menu#popup`
15
+ * Depend on GirFFI 0.15.0
16
+ * Target Ruby 2.4+
17
+
18
+ ## 0.14.1 / 2018-12-19
19
+
20
+ * Override `Gtk::Widget#get_events`, `Gtk::Widget#set_events` and
21
+ `Gtk::Widget#add_events` methods to take and return `EventMask` values
22
+ instead of bare `int`s.
23
+ * Fix license in gemspec; it's LGPL 2.1 or later
24
+
25
+ ## 0.14.0 / 2018-09-27
26
+
27
+ * Depend on GirFFI 0.14.0
28
+ * Add override for `Gtk::Dialog.new_with_buttons`
29
+ * Add override for `Gtk::FileChooserDialog.new`
30
+
6
31
  ## 0.13.1 / 2018-09-24
7
32
 
8
33
  * Depend on GirFFI 0.13.1
9
- * Add overrides for some methods that take a Gtk::IconSize parameter
34
+ * Add overrides for some methods that take a `Gtk::IconSize` parameter
10
35
 
11
36
  ## 0.13.0 / 2018-09-08
12
37
 
@@ -43,7 +43,7 @@ module GirFFIGtk
43
43
  # Implementation of class methods for MainLoopOverride
44
44
  module ClassMethods
45
45
  def main_with_override
46
- GLib::MainLoop::ThreadEnabler.instance.setup_idle_handler if RUBY_ENGINE == 'ruby'
46
+ GLib::MainLoop::ThreadEnabler.instance.setup_idle_handler if RUBY_ENGINE == "ruby"
47
47
  GLib::MainLoop::RUNNING_LOOPS << DummyLoop.new
48
48
  result = main_without_override
49
49
  ex = GLib::MainLoop::EXCEPTIONS.shift
@@ -58,8 +58,8 @@ end
58
58
 
59
59
  # Overrides for Gtk module functions
60
60
  module Gtk
61
- setup_method! 'init'
62
- setup_method! 'main'
61
+ setup_method! "init"
62
+ setup_method! "main"
63
63
 
64
64
  include GirFFIGtk::AutoArgv
65
65
  include GirFFIGtk::MainLoopOverride
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gtk.load_class :Dialog
4
+
5
+ module Gtk
6
+ # Add non-introspected function to Gtk::Lib
7
+ module Lib
8
+ attach_function :gtk_dialog_new_with_buttons, [:string,
9
+ :pointer,
10
+ Gtk::DialogFlags,
11
+ :varargs], :pointer
12
+ end
13
+
14
+ # Overrides for GtkDialog
15
+ class Dialog
16
+ def self.new_with_buttons(*args)
17
+ obj = allocate
18
+ obj.send :initialize_with_buttons, *args
19
+ obj
20
+ end
21
+
22
+ def initialize_with_buttons(title, parent, flags, buttons)
23
+ button_params = buttons.flat_map do |button_text, button_response|
24
+ [:string, button_text, :int, Gtk::ResponseType.to_int(button_response)]
25
+ end
26
+ ptr = Gtk::Lib.gtk_dialog_new_with_buttons(title, parent, flags,
27
+ *button_params, :string, nil)
28
+ store_pointer(ptr)
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gtk.load_class :FileChooserDialog
4
+
5
+ module Gtk
6
+ # Add non-introspected function to Gtk::Lib
7
+ module Lib
8
+ attach_function :gtk_file_chooser_dialog_new, [:string,
9
+ :pointer,
10
+ Gtk::FileChooserAction,
11
+ :varargs], :pointer
12
+ end
13
+
14
+ # Overrides for GtkFileChooserDialog
15
+ class FileChooserDialog
16
+ def self.new(*args)
17
+ obj = allocate
18
+ obj.send :initialize, *args
19
+ obj
20
+ end
21
+
22
+ alias old_initialize initialize
23
+
24
+ def initialize(title, parent, action, buttons)
25
+ button_params = buttons.flat_map do |button_text, button_response|
26
+ [:string, button_text, :int, Gtk::ResponseType.to_int(button_response)]
27
+ end
28
+ ptr = Gtk::Lib.gtk_file_chooser_dialog_new(title, parent, action,
29
+ *button_params, :string, nil)
30
+ store_pointer(ptr)
31
+ end
32
+
33
+ remove_method :old_initialize
34
+ end
35
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gtk.load_class :Menu
4
+ module Gtk
5
+ # Add non-introspected functions to Gtk::Lib
6
+ module Lib
7
+ attach_function(:gtk_menu_popup,
8
+ [:pointer, :pointer, :pointer,
9
+ :pointer, :pointer,
10
+ :uint, :uint32],
11
+ :void)
12
+ end
13
+
14
+ # Overrides for GtkMenu
15
+ class Menu
16
+ def popup(parent_menu_shell, parent_menu_item, button, activate_time, &func)
17
+ v1 = Gtk::Widget.from(parent_menu_shell)
18
+ v2 = Gtk::Widget.from(parent_menu_item)
19
+ v3 = Gtk::MenuPositionFunc.from(func)
20
+ v4 = GirFFI::ArgHelper.store(v3)
21
+ v5 = button
22
+ v6 = activate_time
23
+ Gtk::Lib.gtk_menu_popup self, v1, v2, v3, v4, v5, v6
24
+ end
25
+ end
26
+ end
@@ -19,7 +19,7 @@ module Gtk
19
19
 
20
20
  def initialize(parent, flags, type, buttons, message)
21
21
  ptr = Gtk::Lib.gtk_message_dialog_new(parent, flags, type, buttons,
22
- '%s',
22
+ "%s",
23
23
  :string, message)
24
24
  store_pointer(ptr)
25
25
  end
@@ -26,7 +26,7 @@ module Gtk
26
26
  end
27
27
 
28
28
  if Gtk::MAJOR_VERSION == 2
29
- setup_instance_method! 'get_indices'
29
+ setup_instance_method! "get_indices"
30
30
  remove_method :get_indices
31
31
 
32
32
  def get_indices
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GirFFIGtk
4
+ VERSION = "0.15.1"
5
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GirFFIGtk
4
+ # Overrides for GtkWidget methods
5
+ module WidgetOverrides
6
+ def add_events(events)
7
+ super Gdk::EventMask.to_int events
8
+ end
9
+
10
+ def get_events
11
+ Gdk::EventMask.from_native super
12
+ end
13
+
14
+ def set_events(events)
15
+ super Gdk::EventMask.to_int events
16
+ end
17
+ end
18
+ end
19
+
20
+ Gtk.load_class :Widget
21
+
22
+ Gtk::Widget.setup_instance_method! :add_events
23
+ Gtk::Widget.setup_instance_method! :get_events
24
+ Gtk::Widget.setup_instance_method! :set_events
25
+ Gtk::Widget.prepend GirFFIGtk::WidgetOverrides
data/lib/gir_ffi-gtk2.rb CHANGED
@@ -1,24 +1,28 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'gir_ffi'
3
+ require "gir_ffi"
4
4
 
5
- GirFFI.setup :Gtk, '2.0'
5
+ GirFFI.setup :Gtk, "2.0"
6
6
 
7
- require 'gir_ffi-gtk/base'
7
+ require "gir_ffi-gtk/base"
8
+ require "gir_ffi-gtk/version"
8
9
 
9
- require 'gir_ffi-gtk/action'
10
- require 'gir_ffi-gtk/builder'
11
- require 'gir_ffi-gtk/container'
12
- require 'gir_ffi-gtk/image'
13
- require 'gir_ffi-gtk/list_store'
14
- require 'gir_ffi-gtk/menu'
15
- require 'gir_ffi-gtk/message_dialog'
16
- require 'gir_ffi-gtk/tree_path'
17
- require 'gir_ffi-gtk/tree_store'
18
- require 'gir_ffi-gtk/tree_view_column'
10
+ require "gir_ffi-gtk/action"
11
+ require "gir_ffi-gtk/builder"
12
+ require "gir_ffi-gtk/container"
13
+ require "gir_ffi-gtk/dialog"
14
+ require "gir_ffi-gtk/file_chooser_dialog"
15
+ require "gir_ffi-gtk/image"
16
+ require "gir_ffi-gtk/list_store"
17
+ require "gir_ffi-gtk/message_dialog"
18
+ require "gir_ffi-gtk/tree_path"
19
+ require "gir_ffi-gtk/tree_store"
20
+ require "gir_ffi-gtk/tree_view_column"
21
+ require "gir_ffi-gtk/widget"
19
22
 
20
- require 'gir_ffi-gtk/gtk2/list_store'
21
- require 'gir_ffi-gtk/gtk2/radio_action'
22
- require 'gir_ffi-gtk/gtk2/radio_button'
23
- require 'gir_ffi-gtk/gtk2/target_entry'
24
- require 'gir_ffi-gtk/gtk2/tree_store'
23
+ require "gir_ffi-gtk/gtk2/list_store"
24
+ require "gir_ffi-gtk/gtk2/menu"
25
+ require "gir_ffi-gtk/gtk2/radio_action"
26
+ require "gir_ffi-gtk/gtk2/radio_button"
27
+ require "gir_ffi-gtk/gtk2/target_entry"
28
+ require "gir_ffi-gtk/gtk2/tree_store"
data/lib/gir_ffi-gtk3.rb CHANGED
@@ -1,21 +1,24 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'gir_ffi'
3
+ require "gir_ffi"
4
4
 
5
- GirFFI.setup :Gtk, '3.0'
5
+ GirFFI.setup :Gtk, "3.0"
6
6
 
7
- require 'gir_ffi-gtk/base'
7
+ require "gir_ffi-gtk/base"
8
+ require "gir_ffi-gtk/version"
8
9
 
9
- require 'gir_ffi-gtk/action'
10
- require 'gir_ffi-gtk/builder'
11
- require 'gir_ffi-gtk/container'
12
- require 'gir_ffi-gtk/image'
13
- require 'gir_ffi-gtk/list_store'
14
- require 'gir_ffi-gtk/menu'
15
- require 'gir_ffi-gtk/message_dialog'
16
- require 'gir_ffi-gtk/tree_path'
17
- require 'gir_ffi-gtk/tree_store'
18
- require 'gir_ffi-gtk/tree_view_column'
10
+ require "gir_ffi-gtk/action"
11
+ require "gir_ffi-gtk/builder"
12
+ require "gir_ffi-gtk/container"
13
+ require "gir_ffi-gtk/dialog"
14
+ require "gir_ffi-gtk/file_chooser_dialog"
15
+ require "gir_ffi-gtk/image"
16
+ require "gir_ffi-gtk/list_store"
17
+ require "gir_ffi-gtk/message_dialog"
18
+ require "gir_ffi-gtk/tree_path"
19
+ require "gir_ffi-gtk/tree_store"
20
+ require "gir_ffi-gtk/tree_view_column"
21
+ require "gir_ffi-gtk/widget"
19
22
 
20
- require 'gir_ffi-gtk/gtk3/button'
21
- require 'gir_ffi-gtk/gtk3/target_entry'
23
+ require "gir_ffi-gtk/gtk3/button"
24
+ require "gir_ffi-gtk/gtk3/target_entry"
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.13.1
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matijs van Zuijlen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-24 00:00:00.000000000 Z
11
+ date: 2022-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gir_ffi
@@ -16,56 +16,126 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.13.1
19
+ version: 0.15.2
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.13.1
26
+ version: 0.15.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '5.0'
33
+ version: '5.12'
34
34
  type: :development
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: '5.0'
40
+ version: '5.12'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '12.0'
47
+ version: '13.0'
48
48
  type: :development
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: '12.0'
54
+ version: '13.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rr
56
+ name: rake-manifest
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.1'
61
+ version: 0.2.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.1'
68
+ version: 0.2.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.25.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.25.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-minitest
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.17.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.17.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop-packaging
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 0.5.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.5.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop-performance
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 1.13.0
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 1.13.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: simplecov
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.21.0
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.21.0
69
139
  description: Bindings for Gtk+ 2 and 3, generated by GirFFI, with overrides.
70
140
  email:
71
141
  - matijs@matijs.net
@@ -76,22 +146,14 @@ files:
76
146
  - COPYING.LIB
77
147
  - Changelog.md
78
148
  - README.md
79
- - Rakefile
80
- - examples/01_empty_window.rb
81
- - examples/02_hello_world.rb
82
- - examples/03_upgraded_hello_world.rb
83
- - examples/04_webkit.rb
84
- - examples/05_notification.rb
85
- - examples/06_treeview.rb
86
- - examples/07_simple_gtk_application.rb
87
- - examples/08_webkit_headless.rb
88
- - examples/09_webkit2_headless.rb
89
- - examples/10_completion_provider.rb
90
149
  - lib/gir_ffi-gtk/action.rb
91
150
  - lib/gir_ffi-gtk/base.rb
92
151
  - lib/gir_ffi-gtk/builder.rb
93
152
  - lib/gir_ffi-gtk/container.rb
153
+ - lib/gir_ffi-gtk/dialog.rb
154
+ - lib/gir_ffi-gtk/file_chooser_dialog.rb
94
155
  - lib/gir_ffi-gtk/gtk2/list_store.rb
156
+ - lib/gir_ffi-gtk/gtk2/menu.rb
95
157
  - lib/gir_ffi-gtk/gtk2/radio_action.rb
96
158
  - lib/gir_ffi-gtk/gtk2/radio_button.rb
97
159
  - lib/gir_ffi-gtk/gtk2/target_entry.rb
@@ -100,37 +162,23 @@ files:
100
162
  - lib/gir_ffi-gtk/gtk3/target_entry.rb
101
163
  - lib/gir_ffi-gtk/image.rb
102
164
  - lib/gir_ffi-gtk/list_store.rb
103
- - lib/gir_ffi-gtk/menu.rb
104
165
  - lib/gir_ffi-gtk/message_dialog.rb
105
166
  - lib/gir_ffi-gtk/tree_path.rb
106
167
  - lib/gir_ffi-gtk/tree_store.rb
107
168
  - lib/gir_ffi-gtk/tree_view_column.rb
169
+ - lib/gir_ffi-gtk/version.rb
170
+ - lib/gir_ffi-gtk/widget.rb
108
171
  - lib/gir_ffi-gtk2.rb
109
172
  - lib/gir_ffi-gtk3.rb
110
- - tasks/test.rake
111
- - test/callback_exceptions_test.rb
112
- - test/gir_ffi-gtk/action_test.rb
113
- - test/gir_ffi-gtk/base_test.rb
114
- - test/gir_ffi-gtk/builder_test.rb
115
- - test/gir_ffi-gtk/button_test.rb
116
- - test/gir_ffi-gtk/container_test.rb
117
- - test/gir_ffi-gtk/generated_gtk_test.rb
118
- - test/gir_ffi-gtk/image_test.rb
119
- - test/gir_ffi-gtk/list_store_test.rb
120
- - test/gir_ffi-gtk/menu_test.rb
121
- - test/gir_ffi-gtk/message_dialog_test.rb
122
- - test/gir_ffi-gtk/radio_action_test.rb
123
- - test/gir_ffi-gtk/radio_button_test.rb
124
- - test/gir_ffi-gtk/target_entry_test.rb
125
- - test/gir_ffi-gtk/tree_path_test.rb
126
- - test/gir_ffi-gtk/tree_store_test.rb
127
- - test/gir_ffi-gtk/tree_view_column_test.rb
128
- - test/test_helper.rb
129
173
  homepage: http://www.github.com/mvz/gir_ffi-gtk
130
174
  licenses:
131
- - LGPL-2.1
132
- metadata: {}
133
- post_install_message:
175
+ - LGPL-2.1+
176
+ metadata:
177
+ homepage_uri: http://www.github.com/mvz/gir_ffi-gtk
178
+ source_code_uri: https://github.com/mvz/gir_ffi-gtk
179
+ changelog_uri: https://github.com/mvz/gir_ffi-gtk/blob/master/Changelog.md
180
+ rubygems_mfa_required: 'true'
181
+ post_install_message:
134
182
  rdoc_options: []
135
183
  require_paths:
136
184
  - lib
@@ -138,34 +186,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
138
186
  requirements:
139
187
  - - ">="
140
188
  - !ruby/object:Gem::Version
141
- version: 2.2.0
189
+ version: 2.6.0
142
190
  required_rubygems_version: !ruby/object:Gem::Requirement
143
191
  requirements:
144
192
  - - ">="
145
193
  - !ruby/object:Gem::Version
146
194
  version: '0'
147
195
  requirements: []
148
- rubyforge_project:
149
- rubygems_version: 2.7.6
150
- signing_key:
196
+ rubygems_version: 3.3.3
197
+ signing_key:
151
198
  specification_version: 4
152
199
  summary: GirFFI-based Ruby bindings for Gtk+ 2 and 3
153
- test_files:
154
- - test/callback_exceptions_test.rb
155
- - test/gir_ffi-gtk/action_test.rb
156
- - test/gir_ffi-gtk/base_test.rb
157
- - test/gir_ffi-gtk/builder_test.rb
158
- - test/gir_ffi-gtk/button_test.rb
159
- - test/gir_ffi-gtk/container_test.rb
160
- - test/gir_ffi-gtk/generated_gtk_test.rb
161
- - test/gir_ffi-gtk/image_test.rb
162
- - test/gir_ffi-gtk/list_store_test.rb
163
- - test/gir_ffi-gtk/menu_test.rb
164
- - test/gir_ffi-gtk/message_dialog_test.rb
165
- - test/gir_ffi-gtk/radio_action_test.rb
166
- - test/gir_ffi-gtk/radio_button_test.rb
167
- - test/gir_ffi-gtk/target_entry_test.rb
168
- - test/gir_ffi-gtk/tree_path_test.rb
169
- - test/gir_ffi-gtk/tree_store_test.rb
170
- - test/gir_ffi-gtk/tree_view_column_test.rb
171
- - test/test_helper.rb
200
+ test_files: []
data/Rakefile DELETED
@@ -1,8 +0,0 @@
1
- require 'bundler/gem_helper'
2
- require 'rake/clean'
3
-
4
- Bundler::GemHelper.install_tasks
5
-
6
- load 'tasks/test.rake'
7
-
8
- task default: :test
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # Based on the empty window Gtk+ tutorial example at
4
- # http://library.gnome.org/devel/gtk-tutorial/2.90/c39.html
5
- #
6
- require 'gir_ffi-gtk3'
7
-
8
- Gtk.init
9
- win = Gtk::Window.new :toplevel
10
- win.show
11
- win.signal_connect("destroy") { Gtk.main_quit }
12
- Gtk.main
@@ -1,27 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # Based on the 'Hello world' Gtk+ tutorial example at
4
- # http://library.gnome.org/devel/gtk-tutorial/2.90/c39.html#SEC-HELLOWORLD
5
- #
6
- require 'gir_ffi-gtk3'
7
-
8
- Gtk.init
9
-
10
- win = Gtk::Window.new(:toplevel)
11
- win.signal_connect "delete-event" do
12
- puts "delete event occured"
13
- true
14
- end
15
-
16
- win.signal_connect("destroy") { Gtk.main_quit }
17
- win.border_width = 10
18
-
19
- but = Gtk::Button.new_with_label("Hello World")
20
- but.signal_connect("clicked") { win.destroy }
21
-
22
- win.add but
23
-
24
- but.show
25
- win.show
26
-
27
- Gtk.main
@@ -1,40 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # Based on the 'Upgraded Hello world' Gtk+ tutorial example at
4
- # http://library.gnome.org/devel/gtk-tutorial/2.90/x344.html
5
- #
6
- require 'gir_ffi-gtk3'
7
-
8
- callback = lambda { |widget, data|
9
- puts "Hello again - #{data} was pressed"
10
- }
11
-
12
- Gtk.init
13
-
14
- win = Gtk::Window.new(:toplevel)
15
- win.title= "Hello Buttons!"
16
-
17
- win.signal_connect "delete-event" do
18
- Gtk.main_quit
19
- false
20
- end
21
-
22
- win.border_width = 10
23
-
24
- box = Gtk::HBox.new(false, 0)
25
- win.add box
26
-
27
- button = Gtk::Button.new_with_label("Button 1")
28
- button.signal_connect "clicked", "button 1", &callback
29
- box.pack_start button, true, true, 0
30
- button.show
31
-
32
- button = Gtk::Button.new_with_label("Button 2")
33
- button.signal_connect "clicked", "button 2", &callback
34
- box.pack_start button, true, true, 0
35
- button.show
36
-
37
- box.show
38
- win.show
39
-
40
- Gtk.main