gtk3 3.0.5 → 3.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/ext/gtk3/rb-gtk3-cell-layout.c +42 -0
  3. data/ext/gtk3/rb-gtk3-private.h +3 -0
  4. data/ext/gtk3/rb-gtk3-tree-model.c +77 -0
  5. data/ext/gtk3/rb-gtk3-tree-view.c +42 -0
  6. data/ext/gtk3/rb-gtk3.c +33 -0
  7. data/lib/gtk3/builder.rb +54 -11
  8. data/lib/gtk3/container.rb +13 -0
  9. data/lib/gtk3/deprecated.rb +4 -4
  10. data/lib/gtk3/loader.rb +2 -0
  11. data/lib/gtk3/show-uri.rb +34 -0
  12. data/lib/gtk3/stock-item.rb +36 -0
  13. data/lib/gtk3/tree-iter.rb +3 -1
  14. data/sample/gtk-demo/TODO +1 -1
  15. data/sample/gtk-demo/alias_cursor.png +0 -0
  16. data/sample/gtk-demo/all_scroll_cursor.png +0 -0
  17. data/sample/gtk-demo/application.ui +11 -18
  18. data/sample/gtk-demo/brick.png +0 -0
  19. data/sample/gtk-demo/brick2.png +0 -0
  20. data/sample/gtk-demo/cell_cursor.png +0 -0
  21. data/sample/gtk-demo/col_resize_cursor.png +0 -0
  22. data/sample/gtk-demo/copy_cursor.png +0 -0
  23. data/sample/gtk-demo/crosshair_cursor.png +0 -0
  24. data/sample/gtk-demo/css_accordion.css +1 -2
  25. data/sample/gtk-demo/css_basics.css +1 -1
  26. data/sample/gtk-demo/css_multiplebgs.css +136 -0
  27. data/sample/gtk-demo/css_pixbufs.css +76 -0
  28. data/sample/gtk-demo/css_shadows.css +44 -0
  29. data/sample/gtk-demo/cssview.css +41 -0
  30. data/sample/gtk-demo/decor1.png +0 -0
  31. data/sample/gtk-demo/decor2.png +0 -0
  32. data/sample/gtk-demo/default_cursor.png +0 -0
  33. data/sample/gtk-demo/demo.gresource.xml +216 -0
  34. data/sample/gtk-demo/demo.ui +285 -241
  35. data/sample/gtk-demo/e_resize_cursor.png +0 -0
  36. data/sample/gtk-demo/ew_resize_cursor.png +0 -0
  37. data/sample/gtk-demo/filtermodel.ui +195 -0
  38. data/sample/gtk-demo/font-features.ui +966 -0
  39. data/sample/gtk-demo/glarea-fragment.glsl +9 -0
  40. data/sample/gtk-demo/glarea-vertex.glsl +8 -0
  41. data/sample/gtk-demo/grab_cursor.png +0 -0
  42. data/sample/gtk-demo/grabbing_cursor.png +0 -0
  43. data/sample/gtk-demo/hand_cursor.png +0 -0
  44. data/sample/gtk-demo/help_cursor.png +0 -0
  45. data/sample/gtk-demo/listbox.ui +332 -0
  46. data/sample/gtk-demo/main.rb +132 -313
  47. data/sample/gtk-demo/main.ui +190 -0
  48. data/sample/gtk-demo/markup.txt +16 -0
  49. data/sample/gtk-demo/menus.ui +1 -1
  50. data/sample/gtk-demo/messages.txt +388 -0
  51. data/sample/gtk-demo/modelbutton.ui +162 -0
  52. data/sample/gtk-demo/move_cursor.png +0 -0
  53. data/sample/gtk-demo/n_resize_cursor.png +0 -0
  54. data/sample/gtk-demo/ne_resize_cursor.png +0 -0
  55. data/sample/gtk-demo/nesw_resize_cursor.png +0 -0
  56. data/sample/gtk-demo/no_drop_cursor.png +0 -0
  57. data/sample/gtk-demo/none_cursor.png +0 -0
  58. data/sample/gtk-demo/not_allowed_cursor.png +0 -0
  59. data/sample/gtk-demo/ns_resize_cursor.png +0 -0
  60. data/sample/gtk-demo/nw_resize_cursor.png +0 -0
  61. data/sample/gtk-demo/nwse_resize_cursor.png +0 -0
  62. data/sample/gtk-demo/org.gtk.Demo.gschema.xml +17 -0
  63. data/sample/gtk-demo/pointer_cursor.png +0 -0
  64. data/sample/gtk-demo/popover.ui +94 -0
  65. data/sample/gtk-demo/progress_cursor.png +0 -0
  66. data/sample/gtk-demo/reset.css +0 -1
  67. data/sample/gtk-demo/revealer.ui +177 -0
  68. data/sample/gtk-demo/row_resize_cursor.png +0 -0
  69. data/sample/gtk-demo/s_resize_cursor.png +0 -0
  70. data/sample/gtk-demo/scale.ui +117 -0
  71. data/sample/gtk-demo/se_resize_cursor.png +0 -0
  72. data/sample/gtk-demo/spinbutton.ui +194 -0
  73. data/sample/gtk-demo/stack.ui +72 -0
  74. data/sample/gtk-demo/sw_resize_cursor.png +0 -0
  75. data/sample/gtk-demo/text_cursor.png +0 -0
  76. data/sample/gtk-demo/theming.ui +102 -147
  77. data/sample/gtk-demo/vertical_text_cursor.png +0 -0
  78. data/sample/gtk-demo/w_resize_cursor.png +0 -0
  79. data/sample/gtk-demo/wait_cursor.png +0 -0
  80. data/sample/gtk-demo/zoom_in_cursor.png +0 -0
  81. data/sample/gtk-demo/zoom_out_cursor.png +0 -0
  82. data/sample/tutorial/README.md +415 -0
  83. data/test/run-test.rb +1 -1
  84. data/test/test-gtk-builder.rb +108 -30
  85. data/test/test-gtk-cell-layout.rb +6 -0
  86. metadata +80 -16
@@ -0,0 +1,162 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <interface>
3
+ <!-- interface-requires gtk+ 3.6 -->
4
+ <object class="GtkWindow" id="window1">
5
+ <child type="titlebar">
6
+ <object class="GtkHeaderBar">
7
+ <property name="visible">1</property>
8
+ <property name="show-close-button">1</property>
9
+ <property name="title" translatable="yes">Model Button</property>
10
+ </object>
11
+ </child>
12
+ <child>
13
+ <object class="GtkBox">
14
+ <property name="visible">1</property>
15
+ <property name="orientation">vertical</property>
16
+ <property name="margin">80</property>
17
+ <child>
18
+ <object class="GtkMenuButton">
19
+ <property name="visible">1</property>
20
+ <property name="popover">thing_a</property>
21
+ <child>
22
+ <object class="GtkLabel">
23
+ <property name="visible">1</property>
24
+ <property name="label">Color</property>
25
+ <property name="hexpand">1</property>
26
+ </object>
27
+ </child>
28
+ </object>
29
+ </child>
30
+ <child>
31
+ <object class="GtkMenuButton">
32
+ <property name="visible">1</property>
33
+ <property name="popover">thing_b</property>
34
+ <child>
35
+ <object class="GtkLabel">
36
+ <property name="visible">1</property>
37
+ <property name="label">Flavors</property>
38
+ <property name="hexpand">1</property>
39
+ </object>
40
+ </child>
41
+ </object>
42
+ </child>
43
+ <child>
44
+ <object class="GtkMenuButton">
45
+ <property name="visible">1</property>
46
+ <property name="popover">thing_c</property>
47
+ <child>
48
+ <object class="GtkLabel">
49
+ <property name="visible">1</property>
50
+ <property name="label">Tools</property>
51
+ <property name="hexpand">1</property>
52
+ </object>
53
+ </child>
54
+ </object>
55
+ </child>
56
+ </object>
57
+ </child>
58
+ </object>
59
+ <object class="GtkPopover" id="thing_a">
60
+ <child>
61
+ <object class="GtkBox">
62
+ <property name="visible">1</property>
63
+ <property name="margin">10</property>
64
+ <property name="orientation">vertical</property>
65
+ <child>
66
+ <object class="GtkModelButton">
67
+ <property name="visible">1</property>
68
+ <property name="action-name">win.color</property>
69
+ <property name="text">Red</property>
70
+ <property name="inverted">1</property>
71
+ </object>
72
+ </child>
73
+ <child>
74
+ <object class="GtkModelButton">
75
+ <property name="visible">1</property>
76
+ <property name="action-name">win.color</property>
77
+ <property name="text">Green</property>
78
+ <property name="inverted">1</property>
79
+ </object>
80
+ </child>
81
+ <child>
82
+ <object class="GtkModelButton">
83
+ <property name="visible">1</property>
84
+ <property name="action-name">win.color</property>
85
+ <property name="text">Blue</property>
86
+ <property name="inverted">1</property>
87
+ </object>
88
+ </child>
89
+ </object>
90
+ </child>
91
+ </object>
92
+ <object class="GtkPopover" id="thing_b">
93
+ <child>
94
+ <object class="GtkBox">
95
+ <property name="visible">1</property>
96
+ <property name="margin">10</property>
97
+ <property name="orientation">vertical</property>
98
+ <property name="spacing">10</property>
99
+ <child>
100
+ <object class="GtkModelButton">
101
+ <property name="visible">1</property>
102
+ <property name="action-name">win.chocolate</property>
103
+ <property name="text">Chocolate</property>
104
+ </object>
105
+ </child>
106
+ <child>
107
+ <object class="GtkModelButton">
108
+ <property name="visible">1</property>
109
+ <property name="action-name">win.vanilla</property>
110
+ <property name="text">Vanilla</property>
111
+ </object>
112
+ </child>
113
+ <child>
114
+ <object class="GtkSeparator">
115
+ <property name="visible">1</property>
116
+ </object>
117
+ </child>
118
+ <child>
119
+ <object class="GtkModelButton">
120
+ <property name="visible">1</property>
121
+ <property name="action-name">win.sprinkles</property>
122
+ <property name="text">Add Sprinkles</property>
123
+ </object>
124
+ </child>
125
+ </object>
126
+ </child>
127
+ </object>
128
+ <object class="GtkPopover" id="thing_c">
129
+ <child>
130
+ <object class="GtkBox">
131
+ <property name="visible">1</property>
132
+ <property name="margin">10</property>
133
+ <property name="orientation">vertical</property>
134
+ <property name="spacing">10</property>
135
+ <child>
136
+ <object class="GtkModelButton">
137
+ <property name="visible">1</property>
138
+ <property name="text">Hammer</property>
139
+ <property name="role">check</property>
140
+ <signal name="clicked" handler="tool_clicked"/>
141
+ </object>
142
+ </child>
143
+ <child>
144
+ <object class="GtkModelButton">
145
+ <property name="visible">1</property>
146
+ <property name="text">Screwdriver</property>
147
+ <property name="role">check</property>
148
+ <signal name="clicked" handler="tool_clicked"/>
149
+ </object>
150
+ </child>
151
+ <child>
152
+ <object class="GtkModelButton">
153
+ <property name="visible">1</property>
154
+ <property name="text">Drill</property>
155
+ <property name="role">check</property>
156
+ <signal name="clicked" handler="tool_clicked"/>
157
+ </object>
158
+ </child>
159
+ </object>
160
+ </child>
161
+ </object>
162
+ </interface>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+
3
+ <schemalist>
4
+
5
+ <enum id='org.gtk.Demo.Color'>
6
+ <value nick='red' value='0'/>
7
+ <value nick='green' value='1'/>
8
+ <value nick='blue' value='2'/>
9
+ </enum>
10
+
11
+ <schema id='org.gtk.Demo' path='/org/gtk/Demo/'>
12
+ <key name='color' enum='org.gtk.Demo.Color'>
13
+ <default>'red'</default>
14
+ </key>
15
+ </schema>
16
+
17
+ </schemalist>
@@ -0,0 +1,94 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Generated with glade 3.16.0 on Wed Nov 13 16:45:55 2013 -->
3
+ <interface>
4
+ <!-- interface-requires gtk+ 3.10 -->
5
+ <object class="GtkListStore" id="liststore1">
6
+ <columns>
7
+ <!-- column-name Name -->
8
+ <column type="gchararray"/>
9
+ </columns>
10
+ <data>
11
+ <row>
12
+ <col id="0" translatable="yes">Item 1</col>
13
+ </row>
14
+ <row>
15
+ <col id="0" translatable="yes">Item 2</col>
16
+ </row>
17
+ <row>
18
+ <col id="0" translatable="yes">Item 3</col>
19
+ </row>
20
+ <row>
21
+ <col id="0" translatable="yes">Item 4</col>
22
+ </row>
23
+ <row>
24
+ <col id="0" translatable="yes">Item 5</col>
25
+ </row>
26
+ <row>
27
+ <col id="0" translatable="yes">Item 6</col>
28
+ </row>
29
+ <row>
30
+ <col id="0" translatable="yes">Item 7</col>
31
+ </row>
32
+ <row>
33
+ <col id="0" translatable="yes">Item 8</col>
34
+ </row>
35
+ <row>
36
+ <col id="0" translatable="yes">Item 9</col>
37
+ </row>
38
+ <row>
39
+ <col id="0" translatable="yes">Item 10</col>
40
+ </row>
41
+ </data>
42
+ </object>
43
+ <object class="GtkWindow" id="window">
44
+ <child>
45
+ <object class="GtkBox" id="box">
46
+ <property name="visible">1</property>
47
+ <property name="orientation">vertical</property>
48
+ <property name="spacing">6</property>
49
+ <child>
50
+ <object class="GtkEntry" id="entry1">
51
+ <property name="visible">1</property>
52
+ <property name="can_focus">1</property>
53
+ <property name="primary_icon_name">edit-find</property>
54
+ <property name="secondary_icon_name">edit-clear</property>
55
+ </object>
56
+ </child>
57
+ <child>
58
+ <object class="GtkScrolledWindow" id="scrolledwindow1">
59
+ <property name="visible">1</property>
60
+ <property name="can_focus">1</property>
61
+ <property name="shadow_type">in</property>
62
+ <child>
63
+ <object class="GtkTreeView" id="treeview1">
64
+ <property name="visible">1</property>
65
+ <property name="can_focus">1</property>
66
+ <property name="vexpand">1</property>
67
+ <property name="model">liststore1</property>
68
+ <property name="headers_visible">0</property>
69
+ <property name="enable_search">0</property>
70
+ <property name="search_column">2</property>
71
+ <child internal-child="selection">
72
+ <object class="GtkTreeSelection" id="treeview-selection1"/>
73
+ </child>
74
+ <child>
75
+ <object class="GtkTreeViewColumn" id="column1">
76
+ <child>
77
+ <object class="GtkCellRendererText" id="cellrenderer1"/>
78
+ <attributes>
79
+ <attribute name="text">0</attribute>
80
+ </attributes>
81
+ </child>
82
+ </object>
83
+ </child>
84
+ </object>
85
+ </child>
86
+ </object>
87
+ <packing>
88
+ <property name="position">1</property>
89
+ </packing>
90
+ </child>
91
+ </object>
92
+ </child>
93
+ </object>
94
+ </interface>
@@ -66,4 +66,3 @@
66
66
  -GtkWidget-focus-padding: 0;
67
67
  -GtkNotebook-initial-gap: 0;
68
68
  }
69
-
@@ -0,0 +1,177 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <interface>
3
+ <!-- interface-requires gtk+ 3.6 -->
4
+ <object class="GtkWindow" id="window">
5
+ <property name="border_width">5</property>
6
+ <property name="default_width">300</property>
7
+ <property name="default_height">300</property>
8
+ <property name="title">Revealer</property>
9
+ <child>
10
+ <object class="GtkGrid">
11
+ <property name="visible">1</property>
12
+ <property name="halign">center</property>
13
+ <property name="valign">center</property>
14
+ <child>
15
+ <object class="GtkRevealer" id="revealer0">
16
+ <property name="visible">1</property>
17
+ <property name="transition-duration">2000</property>
18
+ <property name="transition-type">crossfade</property>
19
+ <child>
20
+ <object class="GtkImage">
21
+ <property name="visible">1</property>
22
+ <property name="icon-name">face-cool-symbolic</property>
23
+ <property name="icon-size">6</property>
24
+ </object>
25
+ </child>
26
+ </object>
27
+ <packing>
28
+ <property name="left-attach">2</property>
29
+ <property name="top-attach">2</property>
30
+ </packing>
31
+ </child>
32
+ <child>
33
+ <object class="GtkRevealer" id="revealer1">
34
+ <property name="visible">1</property>
35
+ <property name="transition-duration">2000</property>
36
+ <property name="transition-type">slide-up</property>
37
+ <child>
38
+ <object class="GtkImage">
39
+ <property name="visible">1</property>
40
+ <property name="icon-name">face-cool-symbolic</property>
41
+ <property name="icon-size">6</property>
42
+ </object>
43
+ </child>
44
+ </object>
45
+ <packing>
46
+ <property name="left-attach">2</property>
47
+ <property name="top-attach">1</property>
48
+ </packing>
49
+ </child>
50
+ <child>
51
+ <object class="GtkRevealer" id="revealer2">
52
+ <property name="visible">1</property>
53
+ <property name="transition-duration">2000</property>
54
+ <property name="transition-type">slide-right</property>
55
+ <child>
56
+ <object class="GtkImage">
57
+ <property name="visible">1</property>
58
+ <property name="icon-name">face-cool-symbolic</property>
59
+ <property name="icon-size">6</property>
60
+ </object>
61
+ </child>
62
+ </object>
63
+ <packing>
64
+ <property name="left-attach">3</property>
65
+ <property name="top-attach">2</property>
66
+ </packing>
67
+ </child>
68
+ <child>
69
+ <object class="GtkRevealer" id="revealer3">
70
+ <property name="visible">1</property>
71
+ <property name="transition-duration">2000</property>
72
+ <child>
73
+ <object class="GtkImage">
74
+ <property name="visible">1</property>
75
+ <property name="icon-name">face-cool-symbolic</property>
76
+ <property name="icon-size">6</property>
77
+ </object>
78
+ </child>
79
+ </object>
80
+ <packing>
81
+ <property name="left-attach">2</property>
82
+ <property name="top-attach">3</property>
83
+ </packing>
84
+ </child>
85
+ <child>
86
+ <object class="GtkRevealer" id="revealer4">
87
+ <property name="visible">1</property>
88
+ <property name="transition-duration">2000</property>
89
+ <property name="transition-type">slide-left</property>
90
+ <child>
91
+ <object class="GtkImage">
92
+ <property name="visible">1</property>
93
+ <property name="icon-name">face-cool-symbolic</property>
94
+ <property name="icon-size">6</property>
95
+ </object>
96
+ </child>
97
+ </object>
98
+ <packing>
99
+ <property name="left-attach">1</property>
100
+ <property name="top-attach">2</property>
101
+ </packing>
102
+ </child>
103
+ <child>
104
+ <object class="GtkRevealer" id="revealer5">
105
+ <property name="visible">1</property>
106
+ <property name="transition-duration">2000</property>
107
+ <property name="transition-type">slide-up</property>
108
+ <child>
109
+ <object class="GtkImage">
110
+ <property name="visible">1</property>
111
+ <property name="icon-name">face-cool-symbolic</property>
112
+ <property name="icon-size">6</property>
113
+ </object>
114
+ </child>
115
+ </object>
116
+ <packing>
117
+ <property name="left-attach">2</property>
118
+ <property name="top-attach">0</property>
119
+ </packing>
120
+ </child>
121
+ <child>
122
+ <object class="GtkRevealer" id="revealer6">
123
+ <property name="visible">1</property>
124
+ <property name="transition-duration">2000</property>
125
+ <property name="transition-type">slide-right</property>
126
+ <child>
127
+ <object class="GtkImage">
128
+ <property name="visible">1</property>
129
+ <property name="icon-name">face-cool-symbolic</property>
130
+ <property name="icon-size">6</property>
131
+ </object>
132
+ </child>
133
+ </object>
134
+ <packing>
135
+ <property name="left-attach">4</property>
136
+ <property name="top-attach">2</property>
137
+ </packing>
138
+ </child>
139
+ <child>
140
+ <object class="GtkRevealer" id="revealer7">
141
+ <property name="visible">1</property>
142
+ <property name="transition-duration">2000</property>
143
+ <child>
144
+ <object class="GtkImage">
145
+ <property name="visible">1</property>
146
+ <property name="icon-name">face-cool-symbolic</property>
147
+ <property name="icon-size">6</property>
148
+ </object>
149
+ </child>
150
+ </object>
151
+ <packing>
152
+ <property name="left-attach">2</property>
153
+ <property name="top-attach">4</property>
154
+ </packing>
155
+ </child>
156
+ <child>
157
+ <object class="GtkRevealer" id="revealer8">
158
+ <property name="visible">1</property>
159
+ <property name="transition-duration">2000</property>
160
+ <property name="transition-type">slide-left</property>
161
+ <child>
162
+ <object class="GtkImage">
163
+ <property name="visible">1</property>
164
+ <property name="icon-name">face-cool-symbolic</property>
165
+ <property name="icon-size">6</property>
166
+ </object>
167
+ </child>
168
+ </object>
169
+ <packing>
170
+ <property name="left-attach">0</property>
171
+ <property name="top-attach">2</property>
172
+ </packing>
173
+ </child>
174
+ </object>
175
+ </child>
176
+ </object>
177
+ </interface>