gtk4 4.2.2 → 4.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/gtk4.gemspec +1 -1
- 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 +21 -7
@@ -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,13 +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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME Project Team
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2024-
|
10
|
+
date: 2024-09-23 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: atk
|
@@ -15,28 +15,28 @@ dependencies:
|
|
15
15
|
requirements:
|
16
16
|
- - '='
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version: 4.2.
|
18
|
+
version: 4.2.4
|
19
19
|
type: :runtime
|
20
20
|
prerelease: false
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
22
22
|
requirements:
|
23
23
|
- - '='
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version: 4.2.
|
25
|
+
version: 4.2.4
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: gdk4
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
30
30
|
- - '='
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 4.2.
|
32
|
+
version: 4.2.4
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - '='
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 4.2.
|
39
|
+
version: 4.2.4
|
40
40
|
description: Ruby/GTK4 is a Ruby binding of GTK+-4.x.
|
41
41
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
42
42
|
executables: []
|
@@ -119,6 +119,20 @@ files:
|
|
119
119
|
- lib/gtk4/version.rb
|
120
120
|
- lib/gtk4/widget.rb
|
121
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
|
122
136
|
- sample/examples/README.md
|
123
137
|
- sample/examples/action-namespace.rb
|
124
138
|
- sample/examples/application1/README.md
|
@@ -164,7 +178,7 @@ files:
|
|
164
178
|
- sample/getting-started/images/example-1.png
|
165
179
|
- sample/getting-started/images/example-2.png
|
166
180
|
- sample/getting-started/images/example-3.png
|
167
|
-
homepage: https://ruby-
|
181
|
+
homepage: https://ruby-gnome.github.io/
|
168
182
|
licenses:
|
169
183
|
- LGPL-2.1+
|
170
184
|
metadata: {}
|