gtk3 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +0 -1
- data/ext/gtk3/extconf.rb +4 -1
- data/ext/gtk3/rbgtk-action-group.c +2 -1
- data/ext/gtk3/rbgtk-binding-set.c +0 -10
- data/ext/gtk3/rbgtk-cell-renderer.c +10 -7
- data/ext/gtk3/rbgtk-cell-view.c +0 -14
- data/ext/gtk3/rbgtk-container.c +12 -8
- data/ext/gtk3/rbgtk-file-chooser.c +4 -7
- data/ext/gtk3/rbgtk-icon-info.c +2 -2
- data/ext/gtk3/rbgtk-style-properties.c +12 -13
- data/ext/gtk3/rbgtk-style-provider.c +12 -13
- data/ext/gtk3/rbgtk-widget.c +11 -21
- data/ext/gtk3/rbgtk.c +36 -1
- data/ext/gtk3/rbgtk3conversions.h +9 -2
- data/ext/gtk3/rbgtk3private.h +1 -7
- data/lib/gtk3/deprecated.rb +4 -1
- data/sample/gtk-demo/colorsel.rb +23 -25
- data/sample/gtk-demo/common.rb +8 -8
- data/sample/gtk-demo/css_accordion.css +53 -0
- data/sample/gtk-demo/css_accordion.rb +75 -0
- data/sample/gtk-demo/main.rb +83 -83
- data/sample/gtk-demo/reset.css +69 -0
- data/test/test_gc.rb +1 -1
- data/test/test_gtk.rb +23 -0
- data/test/test_gtk_about_dialog.rb +0 -1
- data/test/test_gtk_buildable.rb +3 -13
- data/test/test_gtk_builder.rb +3 -25
- data/test/test_gtk_container.rb +32 -0
- data/test/test_gtk_css_provider.rb +27 -0
- data/test/test_gtk_entry.rb +0 -2
- data/test/test_gtk_icon_theme.rb +11 -10
- data/test/test_gtk_image.rb +2 -2
- data/test/test_gtk_list_store.rb +0 -4
- data/test/test_gtk_style_context.rb +30 -0
- data/test/test_gtk_style_properties.rb +38 -0
- data/test/test_gtk_widget.rb +3 -11
- metadata +28 -35
- data/test/test_gtk_rc_style.rb +0 -14
data/test/test_gtk_widget.rb
CHANGED
@@ -6,7 +6,7 @@ class TestGtkWidget < Test::Unit::TestCase
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def test_set_window
|
9
|
-
attrs = Gdk::WindowAttr.new(100, 100, :
|
9
|
+
attrs = Gdk::WindowAttr.new(100, 100, :input_only, :temp)
|
10
10
|
window = Gdk::Window.new(nil, attrs, 0)
|
11
11
|
@widget.window = window
|
12
12
|
assert_equal(window, @widget.window)
|
@@ -14,19 +14,11 @@ class TestGtkWidget < Test::Unit::TestCase
|
|
14
14
|
|
15
15
|
def test_modify_color_component_with_nil_color
|
16
16
|
assert_nothing_raised do
|
17
|
-
@widget.
|
17
|
+
@widget.override_color(:normal, nil)
|
18
18
|
end
|
19
19
|
|
20
20
|
assert_nothing_raised do
|
21
|
-
@widget.
|
22
|
-
end
|
23
|
-
|
24
|
-
assert_nothing_raised do
|
25
|
-
@widget.modify_fg(:normal, nil)
|
26
|
-
end
|
27
|
-
|
28
|
-
assert_nothing_raised do
|
29
|
-
@widget.modify_bg(:normal, nil)
|
21
|
+
@widget.override_background_color(:normal, nil)
|
30
22
|
end
|
31
23
|
end
|
32
24
|
end
|
metadata
CHANGED
@@ -1,112 +1,99 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gtk3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
5
|
-
prerelease:
|
4
|
+
version: 2.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- The Ruby-GNOME2 Project Team
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-12-28 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: glib2
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - '='
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.0.
|
19
|
+
version: 2.0.3
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - '='
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 2.0.
|
26
|
+
version: 2.0.3
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: gio2
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - '='
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: 2.0.
|
33
|
+
version: 2.0.3
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - '='
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: 2.0.
|
40
|
+
version: 2.0.3
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: atk
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - '='
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: 2.0.
|
47
|
+
version: 2.0.3
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - '='
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.0.
|
54
|
+
version: 2.0.3
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: pango
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - '='
|
68
60
|
- !ruby/object:Gem::Version
|
69
|
-
version: 2.0.
|
61
|
+
version: 2.0.3
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - '='
|
76
67
|
- !ruby/object:Gem::Version
|
77
|
-
version: 2.0.
|
68
|
+
version: 2.0.3
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: gdk_pixbuf2
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - '='
|
84
74
|
- !ruby/object:Gem::Version
|
85
|
-
version: 2.0.
|
75
|
+
version: 2.0.3
|
86
76
|
type: :runtime
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
80
|
- - '='
|
92
81
|
- !ruby/object:Gem::Version
|
93
|
-
version: 2.0.
|
82
|
+
version: 2.0.3
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: gdk3
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
87
|
- - '='
|
100
88
|
- !ruby/object:Gem::Version
|
101
|
-
version: 2.0.
|
89
|
+
version: 2.0.3
|
102
90
|
type: :runtime
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
94
|
- - '='
|
108
95
|
- !ruby/object:Gem::Version
|
109
|
-
version: 2.0.
|
96
|
+
version: 2.0.3
|
110
97
|
description: Ruby/GTK3 is a Ruby binding of GTK+-3.x.
|
111
98
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
112
99
|
executables: []
|
@@ -368,6 +355,8 @@ files:
|
|
368
355
|
- sample/gtk-demo/clipboard.rb
|
369
356
|
- sample/gtk-demo/colorsel.rb
|
370
357
|
- sample/gtk-demo/common.rb
|
358
|
+
- sample/gtk-demo/css_accordion.css
|
359
|
+
- sample/gtk-demo/css_accordion.rb
|
371
360
|
- sample/gtk-demo/demo.ui
|
372
361
|
- sample/gtk-demo/dialog.rb
|
373
362
|
- sample/gtk-demo/drawingarea.rb
|
@@ -397,6 +386,7 @@ files:
|
|
397
386
|
- sample/gtk-demo/panes.rb
|
398
387
|
- sample/gtk-demo/pixbufs.rb
|
399
388
|
- sample/gtk-demo/printing.rb
|
389
|
+
- sample/gtk-demo/reset.css
|
400
390
|
- sample/gtk-demo/rotated_text.rb
|
401
391
|
- sample/gtk-demo/ruby-gnome2-logo.png
|
402
392
|
- sample/gtk-demo/sizegroup.rb
|
@@ -518,6 +508,7 @@ files:
|
|
518
508
|
- test/gtk-test-utils.rb
|
519
509
|
- test/run-test.rb
|
520
510
|
- test/test_gc.rb
|
511
|
+
- test/test_gtk.rb
|
521
512
|
- test/test_gtk_about_dialog.rb
|
522
513
|
- test/test_gtk_accel_group_entry.rb
|
523
514
|
- test/test_gtk_accel_key.rb
|
@@ -525,39 +516,41 @@ files:
|
|
525
516
|
- test/test_gtk_border.rb
|
526
517
|
- test/test_gtk_buildable.rb
|
527
518
|
- test/test_gtk_builder.rb
|
519
|
+
- test/test_gtk_container.rb
|
520
|
+
- test/test_gtk_css_provider.rb
|
528
521
|
- test/test_gtk_entry.rb
|
529
522
|
- test/test_gtk_icon_theme.rb
|
530
523
|
- test/test_gtk_image.rb
|
531
524
|
- test/test_gtk_list_store.rb
|
532
525
|
- test/test_gtk_menu_item.rb
|
533
|
-
- test/test_gtk_rc_style.rb
|
534
526
|
- test/test_gtk_recent_data.rb
|
535
527
|
- test/test_gtk_recent_filter_info.rb
|
528
|
+
- test/test_gtk_style_context.rb
|
529
|
+
- test/test_gtk_style_properties.rb
|
536
530
|
- test/test_gtk_tree_path.rb
|
537
531
|
- test/test_gtk_unix_print.rb
|
538
532
|
- test/test_gtk_widget.rb
|
539
533
|
homepage: http://ruby-gnome2.sourceforge.jp/
|
540
534
|
licenses: []
|
535
|
+
metadata: {}
|
541
536
|
post_install_message:
|
542
537
|
rdoc_options: []
|
543
538
|
require_paths:
|
544
539
|
- lib
|
545
540
|
required_ruby_version: !ruby/object:Gem::Requirement
|
546
|
-
none: false
|
547
541
|
requirements:
|
548
|
-
- -
|
542
|
+
- - '>='
|
549
543
|
- !ruby/object:Gem::Version
|
550
|
-
version: 1.9.
|
544
|
+
version: 1.9.3
|
551
545
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
552
|
-
none: false
|
553
546
|
requirements:
|
554
|
-
- -
|
547
|
+
- - '>='
|
555
548
|
- !ruby/object:Gem::Version
|
556
549
|
version: '0'
|
557
550
|
requirements: []
|
558
551
|
rubyforge_project:
|
559
|
-
rubygems_version:
|
552
|
+
rubygems_version: 2.0.14
|
560
553
|
signing_key:
|
561
|
-
specification_version:
|
554
|
+
specification_version: 4
|
562
555
|
summary: Ruby/GTK3 is a Ruby binding of GTK+-3.x.
|
563
556
|
test_files: []
|
data/test/test_gtk_rc_style.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
class TestGtkRcStyle < Test::Unit::TestCase
|
2
|
-
include GtkTestUtils
|
3
|
-
|
4
|
-
def setup
|
5
|
-
@style = Gtk::RcStyle.new
|
6
|
-
end
|
7
|
-
|
8
|
-
def test_color_flags
|
9
|
-
assert_equal(Gtk::RC::Flags.new, @style.color_flags(:normal))
|
10
|
-
@style.set_color_flags(:normal, [:fg, :bg])
|
11
|
-
assert_equal(Gtk::RC::Flags::FG | Gtk::RC::Flags::BG,
|
12
|
-
@style.color_flags(:normal))
|
13
|
-
end
|
14
|
-
end
|