gtk2 0.90.8 → 0.90.9

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,25 @@
1
+ 2011-06-05 Kouhei Sutou <kou@cozmixng.org>
2
+
3
+ * sample/gtk-demo/cairo-operator.rb
4
+ (Demo::CairoOperator#operator_selector): support Ruby 1.9.
5
+ Reported by Jon. Thanks!!!
6
+
7
+ * sample/misc/cairo-pong.rb: use Gdk.cairo_available? to check
8
+ cairo support availability.
9
+ Reported by Jon. Thanks!!!
10
+
11
+ 2011-05-22 Kouhei Sutou <kou@cozmixng.org>
12
+
13
+ * ext/gtk2/rbgtkwindow.c (gwin_add_accel_group)
14
+ (gwin_remove_accel_group): add missing reference to accel group.
15
+ [#3305589]
16
+ Reported by Piotr Korzuszek. Thanks!!!
17
+
18
+ 2011-03-06 Vincent Carmona
19
+
20
+ * sample/misc/bindings.rb: use String#each_line instead of String#each
21
+ to fix bugs with ruby1.9.
22
+
1
23
  2011-02-28 Vincent Carmona
2
24
 
3
25
  * sample/gtk-demo/main.rb: Add gtk-demo directory to $: to fix
@@ -6,7 +6,7 @@
6
6
  $Author: ktou $
7
7
  $Date: 2007/09/08 12:49:10 $
8
8
 
9
- Copyright (C) 2002-2006 Ruby-GNOME2 Project Team
9
+ Copyright (C) 2002-2011 Ruby-GNOME2 Project Team
10
10
  Copyright (C) 1998-2000 Yukihiro Matsumoto,
11
11
  Daisuke Kanda,
12
12
  Hiroshi Igarashi
@@ -55,6 +55,7 @@ gwin_add_accel_group(VALUE self, VALUE accel)
55
55
  {
56
56
  gtk_window_add_accel_group(_SELF(self),
57
57
  GTK_ACCEL_GROUP(RVAL2GOBJ(accel)));
58
+ G_CHILD_ADD(self, accel);
58
59
  return self;
59
60
  }
60
61
 
@@ -63,6 +64,7 @@ gwin_remove_accel_group(VALUE self, VALUE accel)
63
64
  {
64
65
  gtk_window_remove_accel_group(_SELF(self),
65
66
  GTK_ACCEL_GROUP(RVAL2GOBJ(accel)));
67
+ G_CHILD_REMOVE(self, accel);
66
68
  return self;
67
69
  }
68
70
 
@@ -68,7 +68,7 @@ module Demo
68
68
  operators << name if /^OPERATOR_/ =~ name
69
69
  end
70
70
  operators.sort.each_with_index do |name, i|
71
- combo.append_text(name)
71
+ combo.append_text(name.to_s)
72
72
  combo.set_active(i) if Cairo.const_get(name) == @operator
73
73
  end
74
74
 
@@ -48,7 +48,7 @@ class Pager < Gtk::TextView
48
48
  end
49
49
 
50
50
  def load
51
- open(@path).read.each do |line|
51
+ open(@path).read.each_line do |line|
52
52
  @buffer.insert_at_cursor(line)
53
53
  end
54
54
  @buffer.place_cursor(@buffer.start_iter)
@@ -12,7 +12,7 @@
12
12
 
13
13
  require "gtk2"
14
14
 
15
- unless Gdk::Drawable.instance_methods.include?("create_cairo_context")
15
+ unless Gdk.cairo_available?
16
16
  raise "GTK+ 2.8.0 or later and cairo support are required."
17
17
  end
18
18
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtk2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 359
5
- prerelease: false
4
+ hash: 357
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 90
9
- - 8
10
- version: 0.90.8
9
+ - 9
10
+ version: 0.90.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - The Ruby-GNOME2 Proejct Team
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-04 00:00:00 +09:00
19
- default_executable:
18
+ date: 2011-06-11 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: atk
@@ -26,12 +25,12 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- hash: 359
28
+ hash: 357
30
29
  segments:
31
30
  - 0
32
31
  - 90
33
- - 8
34
- version: 0.90.8
32
+ - 9
33
+ version: 0.90.9
35
34
  type: :runtime
36
35
  version_requirements: *id001
37
36
  - !ruby/object:Gem::Dependency
@@ -42,12 +41,12 @@ dependencies:
42
41
  requirements:
43
42
  - - ">="
44
43
  - !ruby/object:Gem::Version
45
- hash: 359
44
+ hash: 357
46
45
  segments:
47
46
  - 0
48
47
  - 90
49
- - 8
50
- version: 0.90.8
48
+ - 9
49
+ version: 0.90.9
51
50
  type: :runtime
52
51
  version_requirements: *id002
53
52
  - !ruby/object:Gem::Dependency
@@ -58,12 +57,12 @@ dependencies:
58
57
  requirements:
59
58
  - - ">="
60
59
  - !ruby/object:Gem::Version
61
- hash: 359
60
+ hash: 357
62
61
  segments:
63
62
  - 0
64
63
  - 90
65
- - 8
66
- version: 0.90.8
64
+ - 9
65
+ version: 0.90.9
67
66
  type: :runtime
68
67
  version_requirements: *id003
69
68
  description: Ruby/GTK2 is a Ruby binding of GTK+-2.x.
@@ -538,7 +537,6 @@ files:
538
537
  - test/test_gtk_tree_path.rb
539
538
  - test/test_gdk_window_attribute.rb
540
539
  - test/test_gdk.rb
541
- has_rdoc: true
542
540
  homepage: http://ruby-gnome2.sourceforge.jp/
543
541
  licenses: []
544
542
 
@@ -570,7 +568,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
570
568
  requirements: []
571
569
 
572
570
  rubyforge_project:
573
- rubygems_version: 1.3.7
571
+ rubygems_version: 1.7.2
574
572
  signing_key:
575
573
  specification_version: 3
576
574
  summary: Ruby/GTK2 is a Ruby binding of GTK+-2.x.