gtk2 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,5 @@
1
- install-so:
1
+ install-so: install-headers
2
+ install-headers:
2
3
  $(INSTALL_DATA) $(srcdir)/rbgdk.h $(RUBYARCHDIR)
3
4
  $(INSTALL_DATA) $(srcdir)/rbgdkconversions.h $(RUBYARCHDIR)
4
5
  $(INSTALL_DATA) $(srcdir)/rbgtk.h $(RUBYARCHDIR)
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2011 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2011-2012 Ruby-GNOME2 Project Team
4
4
  * Copyright (C) 2005 Masao Mutoh
5
5
  *
6
6
  * This library is free software; you can redistribute it and/or
@@ -95,9 +95,9 @@ rg_set_stipple(VALUE self, VALUE part, VALUE stipple)
95
95
  }
96
96
  #else
97
97
  static VALUE
98
- prenderer_set_stipple(G_GNUC_UNUSED VALUE self,
99
- G_GNUC_UNUSED VALUE part,
100
- G_GNUC_UNUSED VALUE stipple)
98
+ rg_set_stipple(G_GNUC_UNUSED VALUE self,
99
+ G_GNUC_UNUSED VALUE part,
100
+ G_GNUC_UNUSED VALUE stipple)
101
101
  {
102
102
  rb_warning("Gdk::PangoRender#set_tipple is not supported (Require pango-1.8.1 or later");
103
103
 
@@ -117,9 +117,9 @@ rg_set_override_color(VALUE self, VALUE part, VALUE color)
117
117
  }
118
118
  #else
119
119
  static VALUE
120
- prenderer_set_override_color(G_GNUC_UNUSED VALUE self,
121
- G_GNUC_UNUSED VALUE part,
122
- G_GNUC_UNUSED VALUE color)
120
+ rg_set_override_color(G_GNUC_UNUSED VALUE self,
121
+ G_GNUC_UNUSED VALUE part,
122
+ G_GNUC_UNUSED VALUE color)
123
123
  {
124
124
  rb_warning("Gdk::PangoRender#set_override_color is not supported (Require pango-1.8.1 or later");
125
125
 
@@ -60,6 +60,37 @@ rg_iter_first(VALUE self)
60
60
  return val;
61
61
  }
62
62
 
63
+ static VALUE
64
+ rg_iter_root(VALUE self)
65
+ {
66
+ VALUE val = Qnil;
67
+ GtkTreeIter iter;
68
+ GtkTreeModel* model = _SELF(self);
69
+ gboolean ret = (gtk_tree_model_get_iter_root(model, &iter));
70
+ iter.user_data3 = model;
71
+
72
+ if (ret) {
73
+ val = GTKTREEITER2RVAL(&iter);
74
+ G_CHILD_ADD(self, val);
75
+ }
76
+
77
+ return val;
78
+ }
79
+
80
+ static VALUE
81
+ rg_iter_next(VALUE self, VALUE iter)
82
+ {
83
+ VALUE val = Qnil;
84
+ gboolean ret = (gtk_tree_model_iter_next(_SELF(self), RVAL2GTKTREEITER(iter)));
85
+
86
+ if (ret) {
87
+ val = GTKTREEITER2RVAL(&iter);
88
+ G_CHILD_ADD(self, val);
89
+ }
90
+
91
+ return val;
92
+ }
93
+
63
94
  static VALUE
64
95
  rg_get_iter(VALUE self, VALUE path)
65
96
  {
@@ -230,6 +261,8 @@ Init_gtk_treemodel(VALUE mGtk)
230
261
  RG_DEF_METHOD(n_columns, 0);
231
262
  RG_DEF_METHOD(get_column_type, 1);
232
263
  RG_DEF_METHOD(iter_first, 0);
264
+ RG_DEF_METHOD(iter_root, 0);
265
+ RG_DEF_METHOD(iter_next, 1);
233
266
  RG_DEF_METHOD(get_iter, 1);
234
267
  RG_DEF_METHOD(get_value, 2);
235
268
  RG_DEF_METHOD(each, 0);
metadata CHANGED
@@ -1,71 +1,79 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: gtk2
3
- version: !ruby/object:Gem::Version
4
- version: 1.1.5
3
+ version: !ruby/object:Gem::Version
4
+ hash: 31
5
5
  prerelease:
6
+ segments:
7
+ - 1
8
+ - 1
9
+ - 6
10
+ version: 1.1.6
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - The Ruby-GNOME2 Project Team
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-08-28 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2012-12-02 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: atk
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: 1.1.5
22
- type: :runtime
23
22
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
23
+ requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: 1.1.5
30
- - !ruby/object:Gem::Dependency
31
- name: pango
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: 1.1.5
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 31
29
+ segments:
30
+ - 1
31
+ - 1
32
+ - 6
33
+ version: 1.1.6
38
34
  type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: pango
39
38
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
39
+ requirement: &id002 !ruby/object:Gem::Requirement
41
40
  none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: 1.1.5
46
- - !ruby/object:Gem::Dependency
47
- name: gdk_pixbuf2
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: 1.1.5
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 31
45
+ segments:
46
+ - 1
47
+ - 1
48
+ - 6
49
+ version: 1.1.6
54
50
  type: :runtime
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: gdk_pixbuf2
55
54
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
55
+ requirement: &id003 !ruby/object:Gem::Requirement
57
56
  none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: 1.1.5
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ hash: 31
61
+ segments:
62
+ - 1
63
+ - 1
64
+ - 6
65
+ version: 1.1.6
66
+ type: :runtime
67
+ version_requirements: *id003
62
68
  description: Ruby/GTK2 is a Ruby binding of GTK+-2.x.
63
69
  email: ruby-gnome2-devel-en@lists.sourceforge.net
64
70
  executables: []
65
- extensions:
71
+
72
+ extensions:
66
73
  - ext/gtk2/extconf.rb
67
74
  extra_rdoc_files: []
68
- files:
75
+
76
+ files:
69
77
  - README
70
78
  - Rakefile
71
79
  - extconf.rb
@@ -532,26 +540,38 @@ files:
532
540
  - test/test_gdk.rb
533
541
  homepage: http://ruby-gnome2.sourceforge.jp/
534
542
  licenses: []
543
+
535
544
  post_install_message:
536
545
  rdoc_options: []
537
- require_paths:
546
+
547
+ require_paths:
538
548
  - lib
539
- required_ruby_version: !ruby/object:Gem::Requirement
549
+ required_ruby_version: !ruby/object:Gem::Requirement
540
550
  none: false
541
- requirements:
542
- - - ! '>='
543
- - !ruby/object:Gem::Version
551
+ requirements:
552
+ - - ">="
553
+ - !ruby/object:Gem::Version
554
+ hash: 61
555
+ segments:
556
+ - 1
557
+ - 8
558
+ - 5
544
559
  version: 1.8.5
545
- required_rubygems_version: !ruby/object:Gem::Requirement
560
+ required_rubygems_version: !ruby/object:Gem::Requirement
546
561
  none: false
547
- requirements:
548
- - - ! '>='
549
- - !ruby/object:Gem::Version
550
- version: '0'
562
+ requirements:
563
+ - - ">="
564
+ - !ruby/object:Gem::Version
565
+ hash: 3
566
+ segments:
567
+ - 0
568
+ version: "0"
551
569
  requirements: []
570
+
552
571
  rubyforge_project:
553
- rubygems_version: 1.8.23
572
+ rubygems_version: 1.8.24
554
573
  signing_key:
555
574
  specification_version: 3
556
575
  summary: Ruby/GTK2 is a Ruby binding of GTK+-2.x.
557
576
  test_files: []
577
+