gtk3 3.1.7 → 3.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/sample/gtk-demo/rotated_text.rb +6 -5
  3. metadata +16 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46d25e3ef4f8f4f867e7c4c302a40aeaf98751c3
4
- data.tar.gz: cfa9b630510b66a3fb79a23ce87c373a979d82a6
3
+ metadata.gz: f90949b956fea2408497d7def0903ead978b1699
4
+ data.tar.gz: 2620fc84410b101c33dfc9af616dee401044b494
5
5
  SHA512:
6
- metadata.gz: 33e0431bf941c84715b89161754c72bab2e0b6ad623eb06ee00f887b551799977e1d6422374b370ec44c88d20b18c6a9a931247edb70709f3c46c1a2c145e5d8
7
- data.tar.gz: bc25f8ff6ccd9b26652e39e0aa11c33a7a7001934828cd72f07954fa5c974ab2d4a6393127977f5a5dc8ebb753fb72502dcda37d6c1a73a220d7a6a70e305012
6
+ metadata.gz: b7f9d8e15575f5917e175ac89b6d6ae63571ce96143e27354b2c678da866d6cc4202c323537252df715b7f93d82e6987e9cfdad41f01919f39799d27543001ee
7
+ data.tar.gz: 751b86a11a6e2f66d01f76b0299c6617d31d6c8a8d2388a11bfea5868ddefec1a4f7c3c105ca1cdf78bf6a99373f5fa3d987ed48fb14f579933150d54d01ac92
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2016 Ruby-GNOME2 Project Team
1
+ # Copyright (c) 2016-2017 Ruby-GNOME2 Project Team
2
2
  # This program is licenced under the same licence as Ruby-GNOME2.
3
3
  #
4
4
  =begin
@@ -56,7 +56,7 @@ class RotatedTextDemo
56
56
  fancy_shape_renderer(cr, attr, do_path)
57
57
  end
58
58
 
59
- layout.attributes = create_fancy_attr_list_for_layout(layout)
59
+ label.attributes = create_fancy_attr_list_for_layout(layout)
60
60
  end
61
61
 
62
62
  def run
@@ -73,8 +73,9 @@ class RotatedTextDemo
73
73
  def fancy_shape_renderer(cr, attr, do_path)
74
74
  x, y = cr.current_point
75
75
  cr.translate(x, y)
76
- cr.scale(attr.ink_rect.width / Pango::SCALE,
77
- attr.ink_rect.height / Pango::SCALE)
76
+ rect = attr.ink_rect
77
+ cr.scale(rect.width / Pango::SCALE,
78
+ rect.height / Pango::SCALE)
78
79
 
79
80
  if attr.data == HEART
80
81
  cr.move_to(0.5, 0)
@@ -94,7 +95,7 @@ class RotatedTextDemo
94
95
  metrics = layout.context.get_metrics(layout.font_description)
95
96
  ascent = metrics.ascent
96
97
  logical_rect = Pango::Rectangle.new(0, -ascent, ascent, ascent)
97
- ink_rect = logical_rect.dup
98
+ ink_rect = Pango::Rectangle.new(0, -ascent, ascent, ascent)
98
99
 
99
100
  attrs = Pango::AttrList.new
100
101
  attr = Pango::AttrShape.new(ink_rect, logical_rect, HEART)
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: 3.1.7
4
+ version: 3.1.8
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: 2017-07-10 00:00:00.000000000 Z
11
+ date: 2017-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: glib2
@@ -16,98 +16,98 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.1.7
19
+ version: 3.1.8
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: 3.1.7
26
+ version: 3.1.8
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: 3.1.7
33
+ version: 3.1.8
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: 3.1.7
40
+ version: 3.1.8
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: 3.1.7
47
+ version: 3.1.8
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: 3.1.7
54
+ version: 3.1.8
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: 3.1.7
61
+ version: 3.1.8
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: 3.1.7
68
+ version: 3.1.8
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: 3.1.7
75
+ version: 3.1.8
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: 3.1.7
82
+ version: 3.1.8
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: 3.1.7
89
+ version: 3.1.8
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: 3.1.7
96
+ version: 3.1.8
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: gobject-introspection
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: 3.1.7
103
+ version: 3.1.8
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - '='
109
109
  - !ruby/object:Gem::Version
110
- version: 3.1.7
110
+ version: 3.1.8
111
111
  description: Ruby/GTK3 is a Ruby binding of GTK+-3.x.
112
112
  email: ruby-gnome2-devel-en@lists.sourceforge.net
113
113
  executables: []