gtk3 4.2.4 → 4.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -2
  3. data/gtk3.gemspec +12 -1
  4. metadata +15 -8
  5. data/sample/gtk-demo/panes.rb +0 -124
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b96642cd9cd111822e583462931034e926d73da06aca371395482b98e7daa74
4
- data.tar.gz: 41eee7e0962ce991d3697f64c32618741ac4179be3e12ca7f06fcedc41269399
3
+ metadata.gz: 10cbcea628eefe0ddd49e94136f69539f1a784e09899c354a48d99cb9c07ee12
4
+ data.tar.gz: 65baaf5c76e72100faf6c62ae0012f30def03aad0cc55e84159fb97c23eea617
5
5
  SHA512:
6
- metadata.gz: 8cf429272ce3a0f501f4402954f9ae62aa765a336758208844e868ac6f7fa5f9ba0c01495a37c8294809ae160dbc7b46fdc3a47e1ee6374406bf7d26c38792b6
7
- data.tar.gz: 8e6b55851373854c3caacd7928e48c26c0cad7dcd643163d0f80ec45ee9f7de84006c32f1f43c8a4a93b094cf1401f858e77bf8db7d604a56c865c950dba7f5c
6
+ metadata.gz: d58620854f6da9b8bffb19ca6a07ad920652659731feb6927eb14b922f7161f16aa8d2fe521ed56a9dd1c18ac4387e711bc2d85dfef8ceb99a8b4ae66169f5ff
7
+ data.tar.gz: 3ca088f2f8c82e6aeff70d3f28fec801c0c4a2374297f419bf23d20abda21f4f76f841b84a5cec13c5cc50c825641032779b0ad0d7328b2b548da85b1b8c61ac
data/Rakefile CHANGED
@@ -18,10 +18,10 @@
18
18
 
19
19
 
20
20
  $LOAD_PATH.unshift("./../glib2/lib")
21
- require 'gnome2/rake/package-task'
21
+ require 'gnome/rake/package-task'
22
22
 
23
23
  package_name = File.basename(__dir__)
24
24
  spec = Gem::Specification.load("#{package_name}.gemspec")
25
25
 
26
- GNOME2::Rake::PackageTask.define(spec, __dir__) do |package|
26
+ GNOME::Rake::PackageTask.define(spec, __dir__) do |package|
27
27
  end
data/gtk3.gemspec CHANGED
@@ -21,7 +21,18 @@ require_relative "../glib2/version"
21
21
  Gem::Specification.new do |s|
22
22
  s.name = "gtk3"
23
23
  s.summary = "Ruby/GTK3 is a Ruby binding of GTK+-3.x."
24
- s.description = "Ruby/GTK3 is a Ruby binding of GTK+-3.x."
24
+ s.description = "Ruby/Gtk3 is a Ruby binding of GTK 3.x. It allows Ruby " +
25
+ "programmers to use the GTK graphics toolkit to make " +
26
+ "graphical user interfaces for their Ruby scripts. " +
27
+ "Many of the programs you use like file explorers, " +
28
+ "browsers, graphics programs etc. use GTK to make their " +
29
+ "GUI. In fact, there's a good chance that you're looking at " +
30
+ "a GTK window right now. All the GTK commands and widgets " +
31
+ "have been translated into Ruby, so Ruby programmers can " +
32
+ "write scripts that create windows instead of only " +
33
+ "using the command line. Visit our homepage for install " +
34
+ "instructions and tutorials, at: " +
35
+ "https://www.rubydoc.info/gems/gtk3/"
25
36
  s.author = "The Ruby-GNOME Project Team"
26
37
  s.email = "ruby-gnome2-devel-en@lists.sourceforge.net"
27
38
  s.homepage = "https://ruby-gnome.github.io/"
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtk3
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.4
4
+ version: 4.2.5
5
5
  platform: ruby
6
+ original_platform: ''
6
7
  authors:
7
8
  - The Ruby-GNOME Project Team
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 2024-09-23 00:00:00.000000000 Z
11
+ date: 2024-12-15 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: atk
@@ -15,29 +16,36 @@ dependencies:
15
16
  requirements:
16
17
  - - '='
17
18
  - !ruby/object:Gem::Version
18
- version: 4.2.4
19
+ version: 4.2.5
19
20
  type: :runtime
20
21
  prerelease: false
21
22
  version_requirements: !ruby/object:Gem::Requirement
22
23
  requirements:
23
24
  - - '='
24
25
  - !ruby/object:Gem::Version
25
- version: 4.2.4
26
+ version: 4.2.5
26
27
  - !ruby/object:Gem::Dependency
27
28
  name: gdk3
28
29
  requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - '='
31
32
  - !ruby/object:Gem::Version
32
- version: 4.2.4
33
+ version: 4.2.5
33
34
  type: :runtime
34
35
  prerelease: false
35
36
  version_requirements: !ruby/object:Gem::Requirement
36
37
  requirements:
37
38
  - - '='
38
39
  - !ruby/object:Gem::Version
39
- version: 4.2.4
40
- description: Ruby/GTK3 is a Ruby binding of GTK+-3.x.
40
+ version: 4.2.5
41
+ description: 'Ruby/Gtk3 is a Ruby binding of GTK 3.x. It allows Ruby programmers to
42
+ use the GTK graphics toolkit to make graphical user interfaces for their Ruby scripts.
43
+ Many of the programs you use like file explorers, browsers, graphics programs etc.
44
+ use GTK to make their GUI. In fact, there''s a good chance that you''re looking
45
+ at a GTK window right now. All the GTK commands and widgets have been translated
46
+ into Ruby, so Ruby programmers can write scripts that create windows instead of
47
+ only using the command line. Visit our homepage for install instructions and tutorials,
48
+ at: https://www.rubydoc.info/gems/gtk3/'
41
49
  email: ruby-gnome2-devel-en@lists.sourceforge.net
42
50
  executables: []
43
51
  extensions:
@@ -300,7 +308,6 @@ files:
300
308
  - sample/gtk-demo/org.gtk.Demo.gschema.xml
301
309
  - sample/gtk-demo/overlay.rb
302
310
  - sample/gtk-demo/overlay2.rb
303
- - sample/gtk-demo/panes.rb
304
311
  - sample/gtk-demo/pickers.rb
305
312
  - sample/gtk-demo/pixbufs.rb
306
313
  - sample/gtk-demo/pointer_cursor.png
@@ -1,124 +0,0 @@
1
- # Copyright (c) 2016 Ruby-GNOME2 Project Team
2
- # This program is licenced under the same licence as Ruby-GNOME2.
3
- #
4
- =begin
5
- = Paned Widgets
6
-
7
- The GtkPaned Widget divides its content area into two panes
8
- with a divider in between that the user can adjust. A separate
9
- child is placed into each pane. GtkPaned widgets can be split
10
- horizontally or vertically.
11
-
12
- There are a number of options that can be set for each pane.
13
- This test contains both a horizontal and a vertical GtkPaned
14
- widget, and allows you to adjust the options for each side of
15
- each widget.
16
- =end
17
- class PanesDemo
18
- def initialize(main_window)
19
- @window = Gtk::Window.new(:toplevel)
20
- @window.screen = main_window.screen
21
- @window.title = "Paned Widgets"
22
-
23
- vbox = Gtk::Box.new(:vertical, 0)
24
- @window.add(vbox)
25
-
26
- vpaned = Gtk::Paned.new(:vertical)
27
- vbox.pack_start(vpaned, :expand => true, :fill => true, :padding => 0)
28
- vpaned.margin = 5
29
-
30
- @hpaned = Gtk::Paned.new(:horizontal)
31
- vpaned.add1(@hpaned)
32
-
33
- frame = Gtk::Frame.new
34
- frame.shadow_type = :in
35
- frame.set_size_request(60, 60)
36
- @hpaned.add1(frame)
37
-
38
- button = Gtk::Button.new(:label => "_Hi there", :use_underline => true)
39
- frame.add(button)
40
-
41
- frame = Gtk::Frame.new
42
- frame.shadow_type = :in
43
- frame.set_size_request(80, 60)
44
- @hpaned.add2(frame)
45
-
46
- frame = Gtk::Frame.new
47
- frame.shadow_type = :in
48
- frame.set_size_request(60, 80)
49
- vpaned.add2(frame)
50
-
51
- # Now create toggle buttons to control sizing
52
- buttons = create_pane_options("Horizontal",
53
- "Left",
54
- "Right")
55
- vbox.pack_start(buttons, :expand => false, :fill => false, :padding => 0)
56
- buttons = create_pane_options("Vertical",
57
- "Top",
58
- "Bottom")
59
- vbox.pack_start(buttons, :expand => false, :fill => false, :padding => 0)
60
- vbox.show_all
61
- end
62
-
63
- def run
64
- if !@window.visible?
65
- @window.show_all
66
- else
67
- @window.destroy
68
- end
69
- @window
70
- end
71
-
72
- private
73
-
74
- def create_pane_options(frame_label, label1, label2)
75
- child1 = @hpaned.child1
76
- child2 = @hpaned.child2
77
- frame = Gtk::Frame.new(frame_label)
78
- frame.margin = 4
79
-
80
- @table = Gtk::Grid.new
81
- frame.add(@table)
82
-
83
- label = Gtk::Label.new(label1)
84
- @table.attach(label, 0, 0, 1, 1)
85
-
86
- check_button(:resize, false, child1, 0, 1)
87
- check_button(:shrink, true, child1, 0, 2)
88
-
89
- label = Gtk::Label.new(label2)
90
- @table.attach(label, 1, 0, 1, 1)
91
-
92
- check_button(:resize, true, child2, 1, 1)
93
- check_button(:shrink, true, child2, 1, 2)
94
- frame
95
- end
96
-
97
- def check_button(type, active, child, xposition, yposition)
98
- is_resize = (type == :resize)
99
- label = is_resize ? "_Resize" : "_Shrink"
100
- check_button = Gtk::CheckButton.new(label)
101
- check_button.use_underline = true
102
- check_button.active = active
103
- @table.attach(check_button, xposition, yposition, 1, 1)
104
- check_button.signal_connect "toggled" do
105
- is_child1 = (@hpaned.child1 == child)
106
-
107
- resize = @hpaned.child_get_property(child, "resize")
108
- shrink = @hpaned.child_get_property(child, "shrink")
109
-
110
- if is_resize
111
- resize = !resize
112
- else
113
- shrink = !shrink
114
- end
115
-
116
- @hpaned.remove(child)
117
- if is_child1
118
- @hpaned.pack1(child, :resize => resize, :shrink => shrink)
119
- else
120
- @hpaned.pack2(child, :resize => resize, :shrink => shrink)
121
- end
122
- end
123
- end
124
- end