gtk3 3.1.0-x86-mingw32 → 3.1.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2.2/gtk3.so +0 -0
  3. data/lib/2.3/gtk3.so +0 -0
  4. data/lib/2.4/gtk3.so +0 -0
  5. data/lib/gtk3/container.rb +2 -7
  6. data/lib/gtk3/dialog.rb +10 -1
  7. data/lib/gtk3/loader.rb +0 -14
  8. data/lib/gtk3/tree-selection.rb +0 -2
  9. data/lib/gtk3/tree-view-column.rb +34 -8
  10. data/sample/gtk-demo/TODO +19 -20
  11. data/sample/gtk-demo/assistant.rb +0 -2
  12. data/sample/gtk-demo/blendmodes.ui +391 -0
  13. data/sample/gtk-demo/blends.png +0 -0
  14. data/sample/gtk-demo/button_box.rb +16 -19
  15. data/sample/gtk-demo/clipboard.rb +2 -3
  16. data/sample/gtk-demo/cmy.jpg +0 -0
  17. data/sample/gtk-demo/colorsel.rb +1 -2
  18. data/sample/gtk-demo/context_menu_cursor.png +0 -0
  19. data/sample/gtk-demo/css_accordion.css +1 -1
  20. data/sample/gtk-demo/css_blendmodes.css +77 -0
  21. data/sample/gtk-demo/cssview.css +1 -1
  22. data/sample/gtk-demo/data/16x16/{gtk3-demo-symbolic.symbolic.png → gtk4-demo-symbolic.symbolic.png} +0 -0
  23. data/sample/gtk-demo/data/16x16/{gtk3-demo.png → gtk4-demo.png} +0 -0
  24. data/sample/gtk-demo/data/22x22/{gtk3-demo-symbolic.symbolic.png → gtk4-demo-symbolic.symbolic.png} +0 -0
  25. data/sample/gtk-demo/data/22x22/{gtk3-demo.png → gtk4-demo.png} +0 -0
  26. data/sample/gtk-demo/data/24x24/{gtk3-demo-symbolic.symbolic.png → gtk4-demo-symbolic.symbolic.png} +0 -0
  27. data/sample/gtk-demo/data/24x24/{gtk3-demo.png → gtk4-demo.png} +0 -0
  28. data/sample/gtk-demo/data/256x256/{gtk3-demo-symbolic.symbolic.png → gtk4-demo-symbolic.symbolic.png} +0 -0
  29. data/sample/gtk-demo/data/256x256/{gtk3-demo.png → gtk4-demo.png} +0 -0
  30. data/sample/gtk-demo/data/32x32/{gtk3-demo-symbolic.symbolic.png → gtk4-demo-symbolic.symbolic.png} +0 -0
  31. data/sample/gtk-demo/data/32x32/{gtk3-demo.png → gtk4-demo.png} +0 -0
  32. data/sample/gtk-demo/data/48x48/{gtk3-demo-symbolic.symbolic.png → gtk4-demo-symbolic.symbolic.png} +0 -0
  33. data/sample/gtk-demo/data/48x48/{gtk3-demo.png → gtk4-demo.png} +0 -0
  34. data/sample/gtk-demo/data/512x512/{gtk3-demo-symbolic.symbolic.png → gtk4-demo-symbolic.symbolic.png} +0 -0
  35. data/sample/gtk-demo/data/512x512/{gtk3-demo.png → gtk4-demo.png} +0 -0
  36. data/sample/gtk-demo/demo.gresource.xml +15 -2
  37. data/sample/gtk-demo/demo.ui +2 -1
  38. data/sample/gtk-demo/dialog.rb +2 -3
  39. data/sample/gtk-demo/drawingarea.rb +1 -2
  40. data/sample/gtk-demo/ducky.png +0 -0
  41. data/sample/gtk-demo/editable_cells.rb +1 -1
  42. data/sample/gtk-demo/entry_buffer.rb +1 -1
  43. data/sample/gtk-demo/entry_completion.rb +1 -1
  44. data/sample/gtk-demo/filtermodel.ui +15 -6
  45. data/sample/gtk-demo/fishbowl.ui +49 -0
  46. data/sample/gtk-demo/{glarea-fragment.glsl → glarea-gl.fs.glsl} +0 -0
  47. data/sample/gtk-demo/{glarea-vertex.glsl → glarea-gl.vs.glsl} +0 -0
  48. data/sample/gtk-demo/glarea-gles.fs.glsl +7 -0
  49. data/sample/gtk-demo/glarea-gles.vs.glsl +7 -0
  50. data/sample/gtk-demo/glarea.rb +15 -6
  51. data/sample/gtk-demo/hypertext.rb +0 -1
  52. data/sample/gtk-demo/images.rb +151 -168
  53. data/sample/gtk-demo/infobar.rb +5 -3
  54. data/sample/gtk-demo/links.rb +0 -1
  55. data/sample/gtk-demo/list_store.rb +1 -1
  56. data/sample/gtk-demo/listbox.ui +1 -1
  57. data/sample/gtk-demo/main.rb +4 -1
  58. data/sample/gtk-demo/markup.rb +2 -0
  59. data/sample/gtk-demo/menus.rb +0 -2
  60. data/sample/gtk-demo/no_drop_cursor.png +0 -0
  61. data/sample/gtk-demo/{cairo-arc-negative.rb → old_demos/cairo-arc-negative.rb} +0 -0
  62. data/sample/gtk-demo/{cairo-arc.rb → old_demos/cairo-arc.rb} +0 -0
  63. data/sample/gtk-demo/{cairo-clip-image.rb → old_demos/cairo-clip-image.rb} +0 -0
  64. data/sample/gtk-demo/{cairo-clip-rectangle.rb → old_demos/cairo-clip-rectangle.rb} +0 -0
  65. data/sample/gtk-demo/{cairo-clip.rb → old_demos/cairo-clip.rb} +0 -0
  66. data/sample/gtk-demo/{cairo-curve-rectangle.rb → old_demos/cairo-curve-rectangle.rb} +0 -0
  67. data/sample/gtk-demo/{cairo-curve-to.rb → old_demos/cairo-curve-to.rb} +0 -0
  68. data/sample/gtk-demo/{cairo-dash.rb → old_demos/cairo-dash.rb} +0 -0
  69. data/sample/gtk-demo/{cairo-fill-and-stroke.rb → old_demos/cairo-fill-and-stroke.rb} +0 -0
  70. data/sample/gtk-demo/{cairo-fill-and-stroke2.rb → old_demos/cairo-fill-and-stroke2.rb} +0 -0
  71. data/sample/gtk-demo/{cairo-gradient.rb → old_demos/cairo-gradient.rb} +0 -0
  72. data/sample/gtk-demo/{cairo-image-pattern.rb → old_demos/cairo-image-pattern.rb} +0 -0
  73. data/sample/gtk-demo/{cairo-image.rb → old_demos/cairo-image.rb} +0 -0
  74. data/sample/gtk-demo/{cairo-line-cap.rb → old_demos/cairo-line-cap.rb} +0 -0
  75. data/sample/gtk-demo/{cairo-line-join.rb → old_demos/cairo-line-join.rb} +0 -0
  76. data/sample/gtk-demo/{cairo-long-lines.rb → old_demos/cairo-long-lines.rb} +0 -0
  77. data/sample/gtk-demo/{cairo-operator.rb → old_demos/cairo-operator.rb} +0 -0
  78. data/sample/gtk-demo/{cairo-path.rb → old_demos/cairo-path.rb} +0 -0
  79. data/sample/gtk-demo/{cairo-pattern-fill.rb → old_demos/cairo-pattern-fill.rb} +0 -0
  80. data/sample/gtk-demo/{cairo-self-intersect.rb → old_demos/cairo-self-intersect.rb} +0 -0
  81. data/sample/gtk-demo/{cairo-text-align-center.rb → old_demos/cairo-text-align-center.rb} +0 -0
  82. data/sample/gtk-demo/{cairo-text-extents.rb → old_demos/cairo-text-extents.rb} +0 -0
  83. data/sample/gtk-demo/{cairo-text.rb → old_demos/cairo-text.rb} +0 -0
  84. data/sample/gtk-demo/{changedisplay.rb → old_demos/changedisplay.rb} +0 -0
  85. data/sample/gtk-demo/{common.rb → old_demos/common.rb} +0 -0
  86. data/sample/gtk-demo/{item_factory.rb → old_demos/item_factory.rb} +0 -0
  87. data/sample/gtk-demo/{stock_browser.rb → old_demos/stock_browser.rb} +0 -0
  88. data/sample/gtk-demo/old_demos/textview.rb +436 -0
  89. data/sample/gtk-demo/{tree_store.rb → old_demos/tree_store.rb} +0 -0
  90. data/sample/gtk-demo/panes.rb +2 -3
  91. data/sample/gtk-demo/pickers.rb +6 -5
  92. data/sample/gtk-demo/popover.rb +2 -7
  93. data/sample/gtk-demo/popover.ui +1 -0
  94. data/sample/gtk-demo/revealer.rb +4 -2
  95. data/sample/gtk-demo/revealer.ui +0 -1
  96. data/sample/gtk-demo/scale.ui +7 -1
  97. data/sample/gtk-demo/search_entry.rb +1 -2
  98. data/sample/gtk-demo/search_entry2.rb +0 -3
  99. data/sample/gtk-demo/shortcuts-builder.ui +42 -27
  100. data/sample/gtk-demo/sizegroup.rb +15 -14
  101. data/sample/gtk-demo/spinner.rb +1 -1
  102. data/sample/gtk-demo/textview.rb +358 -382
  103. data/sample/gtk-demo/theming.ui +0 -29
  104. data/sample/gtk-demo/theming_style_classes.rb +0 -1
  105. data/sample/gtk-demo/transparent.rb +0 -1
  106. data/test/test-gtk-tree-view-column.rb +44 -1
  107. metadata +77 -63
@@ -11,16 +11,15 @@ class ButtonBoxDemo
11
11
  @window = Gtk::Window.new(:toplevel)
12
12
  @window.screen = main_window.screen
13
13
  @window.title = "Button Boxes"
14
- @window.border_width = 10
15
14
 
16
15
  main_vbox = Gtk::Box.new(:vertical, 0)
17
16
  @window.add(main_vbox)
18
17
  frame_horz = generate_horizontal_frame
19
18
  main_vbox.pack_start(frame_horz,
20
- :expand => true, :fill => true, :padding => 10)
19
+ :expand => true, :fill => true, :padding => 0)
21
20
  frame_vert = generate_vertical_frame
22
21
  main_vbox.pack_start(frame_vert,
23
- :expand => true, :fill => true, :padding => 10)
22
+ :expand => true, :fill => true, :padding => 0)
24
23
  end
25
24
 
26
25
  def run
@@ -36,36 +35,35 @@ class ButtonBoxDemo
36
35
 
37
36
  def generate_horizontal_frame
38
37
  frame_horz = Gtk::Frame.new("Horizontal Button Boxes")
39
-
40
- vbox = Gtk::Box.new(:vertical, 0)
41
- vbox.border_width = 10
38
+ frame_horz.margin_top = 10
39
+ frame_horz.margin_bottom = 10
40
+ vbox = Gtk::Box.new(:vertical, 10)
42
41
  frame_horz.add(vbox)
43
42
 
44
43
  bbox = create_bbox(true, "Spread", 40, :spread)
45
44
  vbox.pack_start(bbox, :expand => true, :fill => true, :padding => 0)
46
45
 
47
46
  bbox = create_bbox(true, "Edge", 40, :edge)
48
- vbox.pack_start(bbox, :expand => true, :fill => true, :padding => 5)
47
+ vbox.pack_start(bbox, :expand => true, :fill => true, :padding => 0)
49
48
 
50
49
  bbox = create_bbox(true, "Start", 40, :start)
51
- vbox.pack_start(bbox, :expand => true, :fill => true, :padding => 5)
50
+ vbox.pack_start(bbox, :expand => true, :fill => true, :padding => 0)
52
51
 
53
52
  bbox = create_bbox(true, "End", 40, :end)
54
- vbox.pack_start(bbox, :expand => true, :fill => true, :padding => 5)
53
+ vbox.pack_start(bbox, :expand => true, :fill => true, :padding => 0)
55
54
 
56
55
  bbox = create_bbox(true, "Center", 40, :center)
57
- vbox.pack_start(bbox, :expand => true, :fill => true, :padding => 5)
56
+ vbox.pack_start(bbox, :expand => true, :fill => true, :padding => 0)
58
57
 
59
58
  bbox = create_bbox(true, "Expand", 0, :expand)
60
- vbox.pack_start(bbox, :expand => true, :fill => true, :padding => 5)
59
+ vbox.pack_start(bbox, :expand => true, :fill => true, :padding => 0)
61
60
  frame_horz
62
61
  end
63
62
 
64
63
  def generate_vertical_frame
65
64
  frame_vert = Gtk::Frame.new("Vertical Button Boxes")
66
65
 
67
- hbox = Gtk::Box.new(:horizontal, 0)
68
- hbox.border_width = 10
66
+ hbox = Gtk::Box.new(:horizontal, 10)
69
67
 
70
68
  frame_vert.add(hbox)
71
69
 
@@ -73,19 +71,19 @@ class ButtonBoxDemo
73
71
  hbox.pack_start(bbox, :expand => true, :fill => true, :padding => 0)
74
72
 
75
73
  bbox = create_bbox(false, "Edge", 10, :edge)
76
- hbox.pack_start(bbox, :expand => true, :fill => true, :padding => 5)
74
+ hbox.pack_start(bbox, :expand => true, :fill => true, :padding => 0)
77
75
 
78
76
  bbox = create_bbox(false, "Start", 10, :start)
79
- hbox.pack_start(bbox, :expand => true, :fill => true, :padding => 5)
77
+ hbox.pack_start(bbox, :expand => true, :fill => true, :padding => 0)
80
78
 
81
79
  bbox = create_bbox(false, "End", 10, :end)
82
- hbox.pack_start(bbox, :expand => true, :fill => true, :padding => 5)
80
+ hbox.pack_start(bbox, :expand => true, :fill => true, :padding => 0)
83
81
 
84
82
  bbox = create_bbox(false, "Center", 10, :center)
85
- hbox.pack_start(bbox, :expand => true, :fill => true, :padding => 5)
83
+ hbox.pack_start(bbox, :expand => true, :fill => true, :padding => 0)
86
84
 
87
85
  bbox = create_bbox(false, "Expand", 0, :expand)
88
- hbox.pack_start(bbox, :expand => true, :fill => true, :padding => 5)
86
+ hbox.pack_start(bbox, :expand => true, :fill => true, :padding => 0)
89
87
  frame_vert
90
88
  end
91
89
 
@@ -96,7 +94,6 @@ class ButtonBoxDemo
96
94
  orientation = horizontal ? :horizontal : :vertical
97
95
  bbox = Gtk::ButtonBox.new(orientation)
98
96
 
99
- bbox.border_width = 5
100
97
  frame.add(bbox)
101
98
  bbox.layout = layout
102
99
  bbox.spacing = spacing
@@ -19,7 +19,7 @@ class ClipboardDemo
19
19
  @window.title = "Clipboard"
20
20
 
21
21
  @vbox = Gtk::Box.new(:vertical, 0)
22
- @vbox.border_width = 0
22
+ @vbox.margin = 8
23
23
  @window.add(@vbox)
24
24
 
25
25
  text = "\"Copy\" will copy the text\nin the entry to the clipboard"
@@ -39,7 +39,6 @@ class ClipboardDemo
39
39
  @vbox.pack_start(label, :expand => false, :fill => false, :padding => 0)
40
40
 
41
41
  @hbox = Gtk::Box.new(:horizontal, 4)
42
- @hbox.border_width = 8
43
42
  @vbox.pack_start(@hbox, :expand => false, :fill => false, :padding => 0)
44
43
 
45
44
  # Create the first image
@@ -82,7 +81,7 @@ class ClipboardDemo
82
81
  @vbox.pack_start(label, :expand => false, :fill => false, :padding => 0)
83
82
 
84
83
  hbox = Gtk::Box.new(:horizontal, 4)
85
- hbox.border_width = 8
84
+ hbox.margin = 8
86
85
  @vbox.pack_start(hbox, :expand => false, :fill => false, :padding => 0)
87
86
 
88
87
  # Create the first entry
Binary file
@@ -16,10 +16,9 @@ class ColorselDemo
16
16
  @window = Gtk::Window.new(:toplevel)
17
17
  @window.screen = main_window.screen
18
18
  @window.title = "Color Chooser"
19
- @window.border_width = 8
20
19
 
21
20
  vbox = Gtk::Box.new(:vertical, 8)
22
- vbox.border_width = 8
21
+ vbox.margin = 12
23
22
  @window.add(vbox)
24
23
  frame = initialize_drawing_area_frame
25
24
  vbox.pack_start(frame, :expand => true, :fill => true, :padding => 0)
@@ -4,7 +4,7 @@
4
4
  transition-property: color, background-color, border-color, background-image, padding, border-width;
5
5
  transition-duration: 1s;
6
6
 
7
- font: Cantarell 20px;
7
+ font: 20px Cantarell;
8
8
  }
9
9
 
10
10
  window {
@@ -0,0 +1,77 @@
1
+ /*
2
+ * First page.
3
+ */
4
+ image.duck {
5
+ background-image: url('resource://css_blendmodes/ducky.png');
6
+ background-size: cover;
7
+ min-width: 200px;
8
+ min-height: 200px;
9
+ }
10
+
11
+ image.gradient {
12
+ background-image: linear-gradient(to right, red 0%%, green 50%%, blue 100%%);
13
+ min-width: 200px;
14
+ min-height: 200px;
15
+ }
16
+
17
+ /*
18
+ * Second page.
19
+ */
20
+ image.red {
21
+ background: url('resource://css_blendmodes/blends.png') top center;
22
+ min-width: 200px;
23
+ min-height: 200px;
24
+ }
25
+
26
+ image.blue {
27
+ background: url('resource://css_blendmodes/blends.png') bottom center;
28
+ min-width: 200px;
29
+ min-height: 200px;
30
+ }
31
+
32
+ /*
33
+ * Third page.
34
+ */
35
+ image.cyan {
36
+ background: url('resource://css_blendmodes/cmy.jpg') top center;
37
+ min-width: 200px;
38
+ min-height: 200px;
39
+ }
40
+
41
+ image.magenta {
42
+ background: url('resource://css_blendmodes/cmy.jpg') center center;
43
+ min-width: 200px;
44
+ min-height: 200px;
45
+ }
46
+
47
+ image.yellow {
48
+ background: url('resource://css_blendmodes/cmy.jpg') bottom center;
49
+ min-width: 200px;
50
+ min-height: 200px;
51
+ }
52
+
53
+ image.blend0 {
54
+ background-image: url('resource://css_blendmodes/ducky.png'),
55
+ linear-gradient(to right, red 0%%, green 50%%, blue 100%%);
56
+ background-size: cover;
57
+ background-blend-mode: %s;
58
+ min-width: 200px;
59
+ min-height: 200px;
60
+ }
61
+
62
+ image.blend1 {
63
+ background: url('resource://css_blendmodes/blends.png') top center,
64
+ url('resource://css_blendmodes/blends.png') bottom center;
65
+ background-blend-mode: %s;
66
+ min-width: 200px;
67
+ min-height: 200px;
68
+ }
69
+
70
+ image.blend2 {
71
+ background: url('resource://css_blendmodes/cmy.jpg') top center,
72
+ url('resource://css_blendmodes/cmy.jpg') center center,
73
+ url('resource://css_blendmodes/cmy.jpg') bottom center;
74
+ background-blend-mode: %s;
75
+ min-width: 200px;
76
+ min-height: 200px;
77
+ }
@@ -1,7 +1,7 @@
1
1
  /* Make the text editor has a nice style */
2
2
  .view {
3
3
  color: #2e3436;
4
- font: Monospace;
4
+ font-family: Monospace;
5
5
  background-color: alpha(white, 0.30);
6
6
  }
7
7
 
@@ -20,6 +20,13 @@
20
20
  <file>css_basics.css</file>
21
21
  <file>reset.css</file>
22
22
  </gresource>
23
+ <gresource prefix="/css_blendmodes">
24
+ <file>css_blendmodes.css</file>
25
+ <file>blendmodes.ui</file>
26
+ <file>blends.png</file>
27
+ <file>ducky.png</file>
28
+ <file>cmy.jpg</file>
29
+ </gresource>
23
30
  <gresource prefix="/css_multiplebgs">
24
31
  <file>css_multiplebgs.css</file>
25
32
  <file>brick.png</file>
@@ -54,6 +61,7 @@
54
61
  <file>all_scroll_cursor.png</file>
55
62
  <file>cell_cursor.png</file>
56
63
  <file>col_resize_cursor.png</file>
64
+ <file>context_menu_cursor.png</file>
57
65
  <file>copy_cursor.png</file>
58
66
  <file>crosshair_cursor.png</file>
59
67
  <file>default_cursor.png</file>
@@ -86,6 +94,9 @@
86
94
  <file>zoom_in_cursor.png</file>
87
95
  <file>zoom_out_cursor.png</file>
88
96
  </gresource>
97
+ <gresource prefix="/fishbowl">
98
+ <file>fishbowl.ui</file>
99
+ </gresource>
89
100
  <gresource prefix="/iconview">
90
101
  <file preprocess="to-pixdata">gnome-fs-directory.png</file>
91
102
  <file preprocess="to-pixdata">gnome-fs-regular.png</file>
@@ -199,8 +210,10 @@
199
210
  <file>popover.ui</file>
200
211
  </gresource>
201
212
  <gresource prefix="/glarea">
202
- <file>glarea-fragment.glsl</file>
203
- <file>glarea-vertex.glsl</file>
213
+ <file>glarea-gl.fs.glsl</file>
214
+ <file>glarea-gl.vs.glsl</file>
215
+ <file>glarea-gles.fs.glsl</file>
216
+ <file>glarea-gles.vs.glsl</file>
204
217
  </gresource>
205
218
  <gresource prefix="/font_features">
206
219
  <file>font-features.ui</file>
@@ -35,8 +35,9 @@
35
35
  <property name="default_width">440</property>
36
36
  <property name="title" translatable="yes">Builder</property>
37
37
  <child>
38
- <object class="GtkVBox" id="vbox1">
38
+ <object class="GtkBox" id="vbox1">
39
39
  <property name="visible">1</property>
40
+ <property name="orientation">vertical</property>
40
41
  <child>
41
42
  <object class="GtkMenuBar" id="menubar1">
42
43
  <property name="visible">1</property>
@@ -11,13 +11,13 @@ class DialogDemo
11
11
  @window = Gtk::Window.new(:toplevel)
12
12
  @window.screen = main_window.screen
13
13
  @window.title = "Dialogs and Message Boxes"
14
- @window.border_width = 8
15
14
 
16
15
  frame = Gtk::Frame.new("Dialogs")
16
+ frame.margin = 8
17
17
  @window.add(frame)
18
18
 
19
19
  vbox = Gtk::Box.new(:vertical, 8)
20
- vbox.border_width = 8
20
+ vbox.margin = 8
21
21
  frame.add(vbox)
22
22
 
23
23
  # Standard message dialog
@@ -111,7 +111,6 @@ MESSAGE
111
111
 
112
112
  def initialize_interactive_dialog_interface
113
113
  hbox = Gtk::Box.new(:horizontal, 8)
114
- hbox.border_width = 8
115
114
  image = Gtk::Image.new(:icon_name => "dialog-question", :size => :dialog)
116
115
  hbox.pack_start(image)
117
116
  table, @dialog_entry1, @dialog_entry2 = initialize_grid_with_entries
@@ -21,7 +21,6 @@ class DrawingareaDemo
21
21
  @window = Gtk::Window.new(:toplevel)
22
22
  @window.screen = main_window.screen
23
23
  @window.title = "Drawing Area"
24
- @window.border_width = 8
25
24
 
26
25
  initialize_vbox
27
26
  create_the_checkerboard_area
@@ -41,7 +40,7 @@ class DrawingareaDemo
41
40
 
42
41
  def initialize_vbox
43
42
  @vbox = Gtk::Box.new(:vertical, 8)
44
- @vbox.border_width = 8
43
+ @vbox.margin = 16
45
44
  @window.add(@vbox)
46
45
  end
47
46
 
Binary file
@@ -22,9 +22,9 @@ class EditableCellsDemo
22
22
  @window = Gtk::Window.new(:toplevel)
23
23
  @window.screen = main_window.screen
24
24
  @window.title = "Editable Cells"
25
- @window.border_width = 5
26
25
 
27
26
  vbox = Gtk::Box.new(:vertical, 5)
27
+ vbox.margin = 5
28
28
  @window.add(vbox)
29
29
  label = Gtk::Label.new("Shopping list (you can edit the cells)")
30
30
  vbox.pack_start(label, :expand => false, :fill => true, :padding => 0)
@@ -16,8 +16,8 @@ class EntryBufferDemo
16
16
  @window.resizable = false
17
17
 
18
18
  vbox = Gtk::Box.new(:vertical, 5)
19
+ vbox.margin = 5
19
20
  @window.add(vbox)
20
- vbox.set_border_width(5)
21
21
 
22
22
  label = Gtk::Label.new
23
23
  markup = "Entries share a buffer. Typing in one is reflected in the other."
@@ -15,8 +15,8 @@ class EntryCompletionDemo
15
15
  @window.resizable = true
16
16
 
17
17
  vbox = Gtk::Box.new(:vertical, 5)
18
+ vbox.margin = 5
18
19
  @window.add(vbox)
19
- vbox.border_width = 5
20
20
 
21
21
  label = Gtk::Label.new
22
22
  markup = "Completion demo, try writing <b>total</b> or <b>gnome</b> for example."
@@ -24,15 +24,18 @@
24
24
  </row>
25
25
  </data>
26
26
  </object>
27
+ <object class="GtkAdjustment" id="adj">
28
+ <property name="lower">5</property>
29
+ <property name="upper">50</property>
30
+ <property name="step-increment">1</property>
31
+ <property name="page-increment">5</property>
32
+ </object>
27
33
  <object class="GtkWindow" id="window1">
28
34
  <property name="title" translatable="yes">Filter Model</property>
29
35
  <child>
30
36
  <object class="GtkGrid" id="grid1">
31
37
  <property name="visible">1</property>
32
- <property name="margin_left">10</property>
33
- <property name="margin_right">10</property>
34
- <property name="margin_top">10</property>
35
- <property name="margin_bottom">10</property>
38
+ <property name="margin">10</property>
36
39
  <property name="row_spacing">10</property>
37
40
  <property name="column_spacing">10</property>
38
41
  <property name="column_homogeneous">1</property>
@@ -63,7 +66,10 @@
63
66
  <object class="GtkTreeViewColumn" id="treeviewcolumn1">
64
67
  <property name="title" translatable="yes">Width</property>
65
68
  <child>
66
- <object class="GtkCellRendererText" id="cellrenderertext1"/>
69
+ <object class="GtkCellRendererSpin" id="cellrenderertext1">
70
+ <property name="editable">1</property>
71
+ <property name="adjustment">adj</property>
72
+ </object>
67
73
  </child>
68
74
  </object>
69
75
  </child>
@@ -71,7 +77,10 @@
71
77
  <object class="GtkTreeViewColumn" id="treeviewcolumn2">
72
78
  <property name="title" translatable="yes">Height</property>
73
79
  <child>
74
- <object class="GtkCellRendererText" id="cellrenderertext2"/>
80
+ <object class="GtkCellRendererSpin" id="cellrenderertext2">
81
+ <property name="editable">1</property>
82
+ <property name="adjustment">adj</property>
83
+ </object>
75
84
  </child>
76
85
  </object>
77
86
  </child>