gtk3app 2.0.2 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7506605f52e9d924790adc878a4ccf356c67cb48
4
- data.tar.gz: 1b27d3dc59ad38f8ba19842a7e6d2fdeac316db3
2
+ SHA256:
3
+ metadata.gz: 5776600dff1a4cff414d107d0730f52aa16d5648f7c23f158bec4d2f17ee78e0
4
+ data.tar.gz: 90fa95e7e54faec826906680e2835aef28f2ce78ff7b9fd252a46163a7b7e868
5
5
  SHA512:
6
- metadata.gz: 334468b726331a4c895e8464a2b3c84e961c716aaed4b3817006412e12ebeeb93d0f0bbfb06edad684d5bc58301d514ed52aef2b5fdccdc496952d17e5b1e39c
7
- data.tar.gz: ec08fb66a0d2d9aa7282e047fb60d01cea5bf528f8bd75fca982b01de9b3b49569c79f3bae3780aa9388c71ac459d8b8620427c4cb456ee03806d917d6729216
6
+ metadata.gz: f558b83b77e6322ee8508faf0bde2a15b3e346804db506d20a29a87c8194954e27ec5d04b2a13d1ba4d0b30dbbbe609be6a89ce7080f1337f682243288ef6681
7
+ data.tar.gz: 014e92636224ddbe4400db0ba500197bd36465c6bd512cc4f7645a48b092d1c22c472db45aa880c1c1252fbc85f3db9b77b09e4b70aa49860f6d11f85104a20c
data/README.rdoc CHANGED
@@ -34,6 +34,12 @@ directory fully explains the rest of what Gtk3App can do for you.
34
34
  * MiniMe, an alternative to the deprecated Gtk::StatusIcon.
35
35
  * Popup Application Menu from window button 3 press event (standard left click on application).
36
36
 
37
+ === New for 2.1
38
+
39
+ If in the above example MyApp.run return an object the responds to #finalize,
40
+ the method will be called before the Gtk main quit.
41
+ This allows for any cleanups the gui may need to do before exit.
42
+
37
43
  == INSTALL:
38
44
 
39
45
  $ sudo gem install gtk3app
data/data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.2
1
+ 2.1.0
@@ -88,6 +88,8 @@ module Gtk3App
88
88
  # The app menu configuration.
89
89
  # The application MAY ONLY modify app_menu.append_menu_item
90
90
  # by removing un-wanted app menu items.
91
+ # Note that you can reference the item.key,
92
+ # see: Gtk3App::Widget::MenuItem < Such::MenuItem
91
93
  APP_MENU: a0,
92
94
  app_menu: {
93
95
  append_menu_item: [:fs!, :about!, :help!, :minime!, :quit!],
@@ -23,7 +23,7 @@ module Gtk3App
23
23
 
24
24
  @fs = false
25
25
  @slot = nil
26
- app.run(self)
26
+ @gui = app.run(self)
27
27
  end
28
28
 
29
29
  def fs!
@@ -82,6 +82,7 @@ module Gtk3App
82
82
 
83
83
  def quit!
84
84
  release
85
+ @gui.finalize if @gui.respond_to? :finalize
85
86
  Gtk.main_quit
86
87
  end
87
88
  end
data/lib/gtk3app.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Gtk3App
2
- VERSION = '2.0.2'
2
+ VERSION = '2.1.0'
3
3
  end
4
4
 
5
5
  # Standard Libraries
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtk3app
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - carlosjhr64
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-29 00:00:00.000000000 Z
11
+ date: 2018-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: user_space
@@ -59,7 +59,7 @@ dependencies:
59
59
  version: '3.2'
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: 3.2.0
62
+ version: 3.2.7
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
@@ -69,7 +69,7 @@ dependencies:
69
69
  version: '3.2'
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
- version: 3.2.0
72
+ version: 3.2.7
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: such
75
75
  requirement: !ruby/object:Gem::Requirement
@@ -97,8 +97,7 @@ description: |
97
97
  email: carlosjhr64@gmail.com
98
98
  executables: []
99
99
  extensions: []
100
- extra_rdoc_files:
101
- - README.rdoc
100
+ extra_rdoc_files: []
102
101
  files:
103
102
  - README.rdoc
104
103
  - data/VERSION
@@ -116,9 +115,7 @@ licenses:
116
115
  - MIT
117
116
  metadata: {}
118
117
  post_install_message:
119
- rdoc_options:
120
- - "--main"
121
- - README.rdoc
118
+ rdoc_options: []
122
119
  require_paths:
123
120
  - lib
124
121
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -132,9 +129,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
129
  - !ruby/object:Gem::Version
133
130
  version: '0'
134
131
  requirements:
135
- - 'ruby: ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]'
132
+ - 'ruby: ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]'
136
133
  rubyforge_project:
137
- rubygems_version: 2.6.13
134
+ rubygems_version: 2.7.6
138
135
  signing_key:
139
136
  specification_version: 4
140
137
  summary: Gtk3App provides a Gtk3 application stub.