gtk4 4.2.1 → 4.2.3
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 +4 -4
- data/README.md +5 -5
- data/gtk4.gemspec +1 -1
- data/lib/gtk4/css-provider.rb +23 -4
- data/lib/gtk4/loader.rb +2 -0
- data/lib/gtk4/text-buffer.rb +11 -0
- data/sample/demos/gtk-demo/README.md +3 -0
- data/sample/demos/gtk-demo/data/scalable/apps/org.gtk.Demo4.svg +1 -0
- data/sample/demos/gtk-demo/data/symbolic/apps/org.gtk.Demo4-symbolic.svg +114 -0
- data/sample/demos/gtk-demo/demo.gresource +0 -0
- data/sample/demos/gtk-demo/demo.gresource.xml +474 -0
- data/sample/demos/gtk-demo/demo.rb +82 -0
- data/sample/demos/gtk-demo/glarea-gl.fs.glsl +9 -0
- data/sample/demos/gtk-demo/glarea-gl.vs.glsl +8 -0
- data/sample/demos/gtk-demo/glarea-gles.fs.glsl +7 -0
- data/sample/demos/gtk-demo/glarea-gles.vs.glsl +7 -0
- data/sample/demos/gtk-demo/glarea.rb +323 -0
- data/sample/demos/gtk-demo/main-listitem.ui +25 -0
- data/sample/demos/gtk-demo/main.rb +264 -0
- data/sample/demos/gtk-demo/main.ui +184 -0
- metadata +22 -11
@@ -0,0 +1,184 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<interface>
|
3
|
+
<menu id="gear_menu">
|
4
|
+
<section>
|
5
|
+
<item>
|
6
|
+
<attribute name="label" translatable="yes">_Inspector</attribute>
|
7
|
+
<attribute name="action">app.inspector</attribute>
|
8
|
+
</item>
|
9
|
+
<item>
|
10
|
+
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
|
11
|
+
<attribute name="action">win.show-help-overlay</attribute>
|
12
|
+
</item>
|
13
|
+
<item>
|
14
|
+
<attribute name="label" translatable="yes">_About GTK Demo</attribute>
|
15
|
+
<attribute name="action">app.about</attribute>
|
16
|
+
</item>
|
17
|
+
</section>
|
18
|
+
</menu>
|
19
|
+
<object class="GtkApplicationWindow" id="window">
|
20
|
+
<property name="default-width">800</property>
|
21
|
+
<property name="default-height">600</property>
|
22
|
+
<child type="titlebar">
|
23
|
+
<object class="GtkHeaderBar" id="headerbar">
|
24
|
+
<child>
|
25
|
+
<object class="GtkButton">
|
26
|
+
<property name="valign">center</property>
|
27
|
+
<property name="action-name">win.run</property>
|
28
|
+
<property name="focus-on-click">0</property>
|
29
|
+
<property name="label" translatable="yes">Run</property>
|
30
|
+
</object>
|
31
|
+
</child>
|
32
|
+
<child>
|
33
|
+
<object class="GtkToggleButton">
|
34
|
+
<property name="icon-name">edit-find-symbolic</property>
|
35
|
+
<property name="valign">center</property>
|
36
|
+
<property name="focus-on-click">0</property>
|
37
|
+
<property name="active" bind-source="searchbar" bind-property="search-mode-enabled" bind-flags="bidirectional|sync-create"/>
|
38
|
+
<accessibility>
|
39
|
+
<property name="label" translatable="yes">Search</property>
|
40
|
+
</accessibility>
|
41
|
+
</object>
|
42
|
+
</child>
|
43
|
+
<child type="end">
|
44
|
+
<object class="GtkMenuButton" id="gear_menu_button">
|
45
|
+
<property name="valign">center</property>
|
46
|
+
<property name="focus-on-click">0</property>
|
47
|
+
<property name="menu-model">gear_menu</property>
|
48
|
+
<property name="icon-name">open-menu-symbolic</property>
|
49
|
+
<accessibility>
|
50
|
+
<property name="label" translatable="yes">Primary menu</property>
|
51
|
+
</accessibility>
|
52
|
+
</object>
|
53
|
+
</child>
|
54
|
+
</object>
|
55
|
+
</child>
|
56
|
+
<child>
|
57
|
+
<object class="GtkBox">
|
58
|
+
<child>
|
59
|
+
<object class="GtkBox">
|
60
|
+
<property name="orientation">vertical</property>
|
61
|
+
<child>
|
62
|
+
<object class="GtkSearchBar" id="searchbar">
|
63
|
+
<accessibility>
|
64
|
+
<relation name="labelled-by">search-entry</relation>
|
65
|
+
</accessibility>
|
66
|
+
<property name="key-capture-widget">window</property>
|
67
|
+
<child>
|
68
|
+
<object class="GtkSearchEntry" id="search-entry">
|
69
|
+
<accessibility>
|
70
|
+
<property name="label" translatable="yes">Search</property>
|
71
|
+
<relation name="controls">listview</relation>
|
72
|
+
</accessibility>
|
73
|
+
</object>
|
74
|
+
</child>
|
75
|
+
</object>
|
76
|
+
</child>
|
77
|
+
<child>
|
78
|
+
<object class="GtkScrolledWindow">
|
79
|
+
<style>
|
80
|
+
<class name="sidebar"/>
|
81
|
+
</style>
|
82
|
+
<property name="hscrollbar-policy">never</property>
|
83
|
+
<property name="propagate-natural-width">1</property>
|
84
|
+
<property name="vexpand">1</property>
|
85
|
+
<child>
|
86
|
+
<object class="GtkListView" id="listview">
|
87
|
+
<style>
|
88
|
+
<class name="navigation-sidebar"/>
|
89
|
+
</style>
|
90
|
+
<property name="tab-behavior">item</property>
|
91
|
+
<property name="factory">
|
92
|
+
<object class="GtkBuilderListItemFactory">
|
93
|
+
<property name="resource">/ui/main-listitem.ui</property>
|
94
|
+
</object>
|
95
|
+
</property>
|
96
|
+
<accessibility>
|
97
|
+
<property name="label" translatable="yes">Demo list</property>
|
98
|
+
<relation name="controls">notebook</relation>
|
99
|
+
</accessibility>
|
100
|
+
</object>
|
101
|
+
</child>
|
102
|
+
</object>
|
103
|
+
</child>
|
104
|
+
</object>
|
105
|
+
</child>
|
106
|
+
<child>
|
107
|
+
<object class="GtkNotebook" id="notebook">
|
108
|
+
<property name="scrollable">1</property>
|
109
|
+
<property name="enable-popup">1</property>
|
110
|
+
<property name="show-border">0</property>
|
111
|
+
<property name="hexpand">1</property>
|
112
|
+
<property name="vexpand">1</property>
|
113
|
+
<child>
|
114
|
+
<object class="GtkNotebookPage">
|
115
|
+
<property name="tab-expand">1</property>
|
116
|
+
<property name="child">
|
117
|
+
<object class="GtkScrolledWindow">
|
118
|
+
<child>
|
119
|
+
<object class="GtkTextView" id="info-textview">
|
120
|
+
<property name="left-margin">20</property>
|
121
|
+
<property name="right-margin">20</property>
|
122
|
+
<property name="top-margin">20</property>
|
123
|
+
<property name="bottom-margin">20</property>
|
124
|
+
<property name="pixels-above-lines">6</property>
|
125
|
+
<property name="pixels-below-lines">6</property>
|
126
|
+
<property name="monospace">0</property>
|
127
|
+
<property name="editable">0</property>
|
128
|
+
<property name="wrap-mode">word</property>
|
129
|
+
<property name="cursor-visible">0</property>
|
130
|
+
<accessibility>
|
131
|
+
<property name="label" translatable="yes">Info</property>
|
132
|
+
<property name="description" translatable="yes">A description of the demo</property>
|
133
|
+
</accessibility>
|
134
|
+
</object>
|
135
|
+
</child>
|
136
|
+
</object>
|
137
|
+
</property>
|
138
|
+
<property name="tab">
|
139
|
+
<object class="GtkLabel">
|
140
|
+
<property name="label" translatable="yes">_Info</property>
|
141
|
+
<property name="use-underline">1</property>
|
142
|
+
</object>
|
143
|
+
</property>
|
144
|
+
</object>
|
145
|
+
</child>
|
146
|
+
<child>
|
147
|
+
<object class="GtkNotebookPage">
|
148
|
+
<property name="position">1</property>
|
149
|
+
<property name="tab-expand">1</property>
|
150
|
+
<property name="child">
|
151
|
+
<object class="GtkScrolledWindow" id="source-scrolledwindow">
|
152
|
+
<child>
|
153
|
+
<object class="GtkTextView" id="source-textview">
|
154
|
+
<property name="left-margin">20</property>
|
155
|
+
<property name="right-margin">20</property>
|
156
|
+
<property name="top-margin">20</property>
|
157
|
+
<property name="bottom-margin">20</property>
|
158
|
+
<property name="editable">0</property>
|
159
|
+
<property name="cursor-visible">0</property>
|
160
|
+
<property name="monospace">1</property>
|
161
|
+
<property name="wrap-mode">word</property>
|
162
|
+
<property name="pixels-above-lines">2</property>
|
163
|
+
<property name="pixels-below-lines">2</property>
|
164
|
+
<accessibility>
|
165
|
+
<property name="label" translatable="yes">Source</property>
|
166
|
+
<property name="description" translatable="yes">The source code of the demo</property>
|
167
|
+
</accessibility>
|
168
|
+
</object>
|
169
|
+
</child>
|
170
|
+
</object>
|
171
|
+
</property>
|
172
|
+
<property name="tab">
|
173
|
+
<object class="GtkLabel">
|
174
|
+
<property name="label" translatable="yes">Source</property>
|
175
|
+
</object>
|
176
|
+
</property>
|
177
|
+
</object>
|
178
|
+
</child>
|
179
|
+
</object>
|
180
|
+
</child>
|
181
|
+
</object>
|
182
|
+
</child>
|
183
|
+
</object>
|
184
|
+
</interface>
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gtk4
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME Project Team
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date: 2024-
|
10
|
+
date: 2024-09-19 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: atk
|
@@ -16,28 +15,28 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - '='
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.2.
|
18
|
+
version: 4.2.3
|
20
19
|
type: :runtime
|
21
20
|
prerelease: false
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
23
22
|
requirements:
|
24
23
|
- - '='
|
25
24
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.2.
|
25
|
+
version: 4.2.3
|
27
26
|
- !ruby/object:Gem::Dependency
|
28
27
|
name: gdk4
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
30
29
|
requirements:
|
31
30
|
- - '='
|
32
31
|
- !ruby/object:Gem::Version
|
33
|
-
version: 4.2.
|
32
|
+
version: 4.2.3
|
34
33
|
type: :runtime
|
35
34
|
prerelease: false
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
37
36
|
requirements:
|
38
37
|
- - '='
|
39
38
|
- !ruby/object:Gem::Version
|
40
|
-
version: 4.2.
|
39
|
+
version: 4.2.3
|
41
40
|
description: Ruby/GTK4 is a Ruby binding of GTK+-4.x.
|
42
41
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
43
42
|
executables: []
|
@@ -120,6 +119,20 @@ files:
|
|
120
119
|
- lib/gtk4/version.rb
|
121
120
|
- lib/gtk4/widget.rb
|
122
121
|
- sample/demos/README.md
|
122
|
+
- sample/demos/gtk-demo/README.md
|
123
|
+
- sample/demos/gtk-demo/data/scalable/apps/org.gtk.Demo4.svg
|
124
|
+
- sample/demos/gtk-demo/data/symbolic/apps/org.gtk.Demo4-symbolic.svg
|
125
|
+
- sample/demos/gtk-demo/demo.gresource
|
126
|
+
- sample/demos/gtk-demo/demo.gresource.xml
|
127
|
+
- sample/demos/gtk-demo/demo.rb
|
128
|
+
- sample/demos/gtk-demo/glarea-gl.fs.glsl
|
129
|
+
- sample/demos/gtk-demo/glarea-gl.vs.glsl
|
130
|
+
- sample/demos/gtk-demo/glarea-gles.fs.glsl
|
131
|
+
- sample/demos/gtk-demo/glarea-gles.vs.glsl
|
132
|
+
- sample/demos/gtk-demo/glarea.rb
|
133
|
+
- sample/demos/gtk-demo/main-listitem.ui
|
134
|
+
- sample/demos/gtk-demo/main.rb
|
135
|
+
- sample/demos/gtk-demo/main.ui
|
123
136
|
- sample/examples/README.md
|
124
137
|
- sample/examples/action-namespace.rb
|
125
138
|
- sample/examples/application1/README.md
|
@@ -165,11 +178,10 @@ files:
|
|
165
178
|
- sample/getting-started/images/example-1.png
|
166
179
|
- sample/getting-started/images/example-2.png
|
167
180
|
- sample/getting-started/images/example-3.png
|
168
|
-
homepage: https://ruby-
|
181
|
+
homepage: https://ruby-gnome.github.io/
|
169
182
|
licenses:
|
170
183
|
- LGPL-2.1+
|
171
184
|
metadata: {}
|
172
|
-
post_install_message:
|
173
185
|
rdoc_options: []
|
174
186
|
require_paths:
|
175
187
|
- lib
|
@@ -184,8 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
196
|
- !ruby/object:Gem::Version
|
185
197
|
version: '0'
|
186
198
|
requirements: []
|
187
|
-
rubygems_version: 3.
|
188
|
-
signing_key:
|
199
|
+
rubygems_version: 3.6.0.dev
|
189
200
|
specification_version: 4
|
190
201
|
summary: Ruby/GTK4 is a Ruby binding of GTK+-4.x.
|
191
202
|
test_files: []
|