gtk3 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/ext/gtk3/extconf.rb +1 -1
  3. data/ext/gtk3/rbgtk-color-button.c +7 -1
  4. data/ext/gtk3/rbgtk-dialog.c +26 -6
  5. data/ext/gtk3/rbgtk-image.c +1 -0
  6. data/ext/gtk3/rbgtk-selection-data.c +4 -5
  7. data/ext/gtk3/rbgtk-stack-switcher.c +41 -0
  8. data/ext/gtk3/rbgtk-window.c +8 -0
  9. data/ext/gtk3/rbgtk.c +158 -0
  10. data/ext/gtk3/rbgtk3.h +33 -0
  11. data/ext/gtk3/rbgtk3conversions.h +60 -1
  12. data/ext/gtk3/rbgtk3private.h +1 -1
  13. data/lib/gtk3.rb +1 -0
  14. data/sample/gtk-demo/cairo-arc-negative.rb +1 -1
  15. data/sample/gtk-demo/cairo-arc.rb +1 -1
  16. data/sample/gtk-demo/cairo-clip-image.rb +6 -6
  17. data/sample/gtk-demo/cairo-clip-rectangle.rb +2 -2
  18. data/sample/gtk-demo/cairo-curve-rectangle.rb +2 -2
  19. data/sample/gtk-demo/cairo-curve-to.rb +2 -2
  20. data/sample/gtk-demo/cairo-dash.rb +1 -1
  21. data/sample/gtk-demo/cairo-fill-and-stroke.rb +1 -1
  22. data/sample/gtk-demo/cairo-fill-and-stroke2.rb +2 -2
  23. data/sample/gtk-demo/cairo-gradient.rb +1 -1
  24. data/sample/gtk-demo/cairo-image-pattern.rb +5 -5
  25. data/sample/gtk-demo/cairo-image.rb +4 -4
  26. data/sample/gtk-demo/cairo-line-cap.rb +8 -8
  27. data/sample/gtk-demo/cairo-line-join.rb +3 -3
  28. data/sample/gtk-demo/cairo-long-lines.rb +3 -3
  29. data/sample/gtk-demo/cairo-pattern-fill.rb +11 -11
  30. data/sample/gtk-demo/cairo-self-intersect.rb +2 -2
  31. data/sample/gtk-demo/cairo-text-align-center.rb +4 -4
  32. data/sample/gtk-demo/cairo-text-extents.rb +5 -5
  33. data/sample/gtk-demo/cairo-text.rb +3 -3
  34. data/sample/gtk-demo/common.rb +0 -1
  35. data/sample/gtk-demo/dialog.rb +23 -23
  36. data/sample/gtk-demo/drawingarea.rb +5 -1
  37. data/sample/gtk-demo/editable_cells.rb +28 -28
  38. data/sample/gtk-demo/entry_completion.rb +3 -3
  39. data/sample/gtk-demo/images.rb +75 -75
  40. data/sample/gtk-demo/item_factory.rb +40 -40
  41. data/sample/gtk-demo/list_store.rb +13 -13
  42. data/sample/gtk-demo/menus.rb +34 -34
  43. data/sample/gtk-demo/panes.rb +28 -28
  44. data/sample/gtk-demo/rotated_text.rb +41 -53
  45. data/sample/gtk-demo/sizegroup.rb +17 -17
  46. data/sample/gtk-demo/spinner.rb +1 -1
  47. data/sample/gtk-demo/textview.rb +137 -137
  48. data/sample/gtk-demo/theming.ui +319 -0
  49. data/sample/gtk-demo/theming_style_classes.rb +48 -0
  50. data/sample/gtk-demo/tree_store.rb +127 -127
  51. data/sample/misc/assistant.rb +6 -66
  52. data/sample/misc/bindings.rb +22 -32
  53. data/sample/misc/button.rb +8 -5
  54. data/sample/misc/buttonbox.rb +2 -2
  55. data/sample/misc/checkbutton.rb +4 -1
  56. data/sample/misc/colorselection.rb +7 -10
  57. data/sample/misc/combo_check.rb +34 -26
  58. data/sample/misc/combobox.rb +10 -11
  59. data/sample/misc/cursor.rb +3 -1
  60. data/sample/misc/dialog.rb +12 -12
  61. data/sample/misc/dialog2.rb +13 -16
  62. data/sample/misc/drawing.rb +40 -21
  63. data/sample/misc/statusicon.rb +28 -45
  64. data/sample/misc/threads.rb +16 -18
  65. data/sample/misc/tree_progress.rb +10 -12
  66. data/test/run-test.rb +17 -9
  67. data/test/test_gtk_search_bar.rb +1 -1
  68. data/test/test_gtk_stack_switcher.rb +30 -0
  69. metadata +25 -21
@@ -21,21 +21,29 @@ ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
21
21
 
22
22
  glib_base = File.join(ruby_gnome2_base, "glib2")
23
23
  atk_base = File.join(ruby_gnome2_base, "atk")
24
+ cairo_gobject_base = File.join(ruby_gnome2_base, "cairo-gobject")
24
25
  pango_base = File.join(ruby_gnome2_base, "pango")
25
26
  gdk_pixbuf_base = File.join(ruby_gnome2_base, "gdk_pixbuf2")
27
+ gobject_introspection_base = File.join(ruby_gnome2_base, "gobject-introspection")
26
28
  gdk3_base = File.join(ruby_gnome2_base, "gdk3")
27
29
  gtk3_base = File.join(ruby_gnome2_base, "gtk3")
28
30
 
29
- [[glib_base, "glib2"],
30
- [atk_base, "atk"],
31
- [pango_base, "pango"],
32
- [gdk_pixbuf_base, "gdk_pixbuf2"],
33
- [gdk3_base, "gdk3"],
34
- [gtk3_base, "gtk3"]].each do |target, module_name|
35
- if system("which make > /dev/null")
36
- `make -C #{target.dump} > /dev/null` or exit(false)
31
+ [
32
+ [glib_base, "glib2"],
33
+ [atk_base, "atk"],
34
+ [cairo_gobject_base, "cairo-gobject"],
35
+ [pango_base, "pango"],
36
+ [gdk_pixbuf_base, "gdk_pixbuf2"],
37
+ [gobject_introspection_base, "gobject-introspection"],
38
+ [gdk3_base, "gdk3"],
39
+ [gtk3_base, "gtk3"]
40
+ ].each do |target, module_name|
41
+ if File.exist?(File.join(target, "Makefile"))
42
+ if system("which make > /dev/null")
43
+ `make -C #{target.dump} > /dev/null` or exit(false)
44
+ end
45
+ $LOAD_PATH.unshift(File.join(target, "ext", module_name))
37
46
  end
38
- $LOAD_PATH.unshift(File.join(target, "ext", module_name))
39
47
  $LOAD_PATH.unshift(File.join(target, "lib"))
40
48
  end
41
49
 
@@ -42,7 +42,7 @@ class TestGtkSearchBar < Test::Unit::TestCase
42
42
  def test_handle_event
43
43
  window = Gtk::Window.new
44
44
  key_press_event = Gdk::EventKey.new(:key_press)
45
- key_press_event.keyval = Gdk::Keyval::GDK_KEY_a
45
+ key_press_event.keyval = Gdk::Keyval::KEY_a
46
46
  entry = Gtk::SearchEntry.new
47
47
  @search_bar.add(entry)
48
48
  @search_bar.connect_entry(entry)
@@ -0,0 +1,30 @@
1
+ # Copyright (C) 2014 Ruby-GNOME2 Project Team
2
+ #
3
+ # This library is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU Lesser General Public
5
+ # License as published by the Free Software Foundation; either
6
+ # version 2.1 of the License, or (at your option) any later version.
7
+ #
8
+ # This library is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this library; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
+
17
+ class TestGtkStackSwitcher < Test::Unit::TestCase
18
+ include GtkTestUtils
19
+
20
+ def setup
21
+ only_gtk_version(3, 10, 0)
22
+ @stack_switcher = Gtk::StackSwitcher.new
23
+ end
24
+
25
+ def test_stack_switcher_accessors
26
+ stack = Gtk::Stack.new
27
+ @stack_switcher.stack = stack
28
+ assert_equal(stack, @stack_switcher.stack)
29
+ end
30
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtk3
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME2 Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-09 00:00:00.000000000 Z
11
+ date: 2014-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: glib2
@@ -16,84 +16,84 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.0
19
+ version: 2.2.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.2.0
26
+ version: 2.2.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gio2
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.2.0
33
+ version: 2.2.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 2.2.0
40
+ version: 2.2.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: atk
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 2.2.0
47
+ version: 2.2.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 2.2.0
54
+ version: 2.2.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pango
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 2.2.0
61
+ version: 2.2.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 2.2.0
68
+ version: 2.2.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: gdk_pixbuf2
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 2.2.0
75
+ version: 2.2.1
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 2.2.0
82
+ version: 2.2.1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: gdk3
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 2.2.0
89
+ version: 2.2.1
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 2.2.0
96
+ version: 2.2.1
97
97
  description: Ruby/GTK3 is a Ruby binding of GTK+-3.x.
98
98
  email: ruby-gnome2-devel-en@lists.sourceforge.net
99
99
  executables: []
@@ -102,10 +102,6 @@ extensions:
102
102
  extra_rdoc_files: []
103
103
  files:
104
104
  - Rakefile
105
- - extconf.rb
106
- - lib/gtk3.rb
107
- - lib/gtk3/base.rb
108
- - lib/gtk3/deprecated.rb
109
105
  - ext/gtk3/conversions.c
110
106
  - ext/gtk3/depend
111
107
  - ext/gtk3/extconf.rb
@@ -270,6 +266,7 @@ files:
270
266
  - ext/gtk3/rbgtk-socket.c
271
267
  - ext/gtk3/rbgtk-spin-button.c
272
268
  - ext/gtk3/rbgtk-spinner.c
269
+ - ext/gtk3/rbgtk-stack-switcher.c
273
270
  - ext/gtk3/rbgtk-stack.c
274
271
  - ext/gtk3/rbgtk-status-bar.c
275
272
  - ext/gtk3/rbgtk-status-icon.c
@@ -328,6 +325,10 @@ files:
328
325
  - ext/gtk3/rbgtk3private.h
329
326
  - ext/gtk3/rbgtk3util.c
330
327
  - ext/gtk3/rbgtk3util.h
328
+ - extconf.rb
329
+ - lib/gtk3.rb
330
+ - lib/gtk3/base.rb
331
+ - lib/gtk3/deprecated.rb
331
332
  - sample/gtk-demo/README
332
333
  - sample/gtk-demo/alphatest.png
333
334
  - sample/gtk-demo/apple-red.png
@@ -400,6 +401,8 @@ files:
400
401
  - sample/gtk-demo/spinner.rb
401
402
  - sample/gtk-demo/stock_browser.rb
402
403
  - sample/gtk-demo/textview.rb
404
+ - sample/gtk-demo/theming.ui
405
+ - sample/gtk-demo/theming_style_classes.rb
403
406
  - sample/gtk-demo/tree_store.rb
404
407
  - sample/misc/aboutdialog.rb
405
408
  - sample/misc/aboutdialog2.rb
@@ -541,6 +544,7 @@ files:
541
544
  - test/test_gtk_search_bar.rb
542
545
  - test/test_gtk_search_entry.rb
543
546
  - test/test_gtk_stack.rb
547
+ - test/test_gtk_stack_switcher.rb
544
548
  - test/test_gtk_style_context.rb
545
549
  - test/test_gtk_style_properties.rb
546
550
  - test/test_gtk_tree_path.rb
@@ -557,17 +561,17 @@ require_paths:
557
561
  - lib
558
562
  required_ruby_version: !ruby/object:Gem::Requirement
559
563
  requirements:
560
- - - '>='
564
+ - - ">="
561
565
  - !ruby/object:Gem::Version
562
566
  version: 1.9.3
563
567
  required_rubygems_version: !ruby/object:Gem::Requirement
564
568
  requirements:
565
- - - '>='
569
+ - - ">="
566
570
  - !ruby/object:Gem::Version
567
571
  version: '0'
568
572
  requirements: []
569
573
  rubyforge_project:
570
- rubygems_version: 2.0.14
574
+ rubygems_version: 2.2.2
571
575
  signing_key:
572
576
  specification_version: 4
573
577
  summary: Ruby/GTK3 is a Ruby binding of GTK+-3.x.