gtk2 1.1.5-x86-mingw32 → 1.1.6-x86-mingw32

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);
Binary file
Binary file
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: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 5
10
- version: 1.1.5
9
+ - 6
10
+ version: 1.1.6
11
11
  platform: x86-mingw32
12
12
  authors:
13
13
  - The Ruby-GNOME2 Project Team
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-08-28 00:00:00 Z
18
+ date: 2012-12-02 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: atk
@@ -25,12 +25,12 @@ dependencies:
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- hash: 25
28
+ hash: 31
29
29
  segments:
30
30
  - 1
31
31
  - 1
32
- - 5
33
- version: 1.1.5
32
+ - 6
33
+ version: 1.1.6
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
36
  - !ruby/object:Gem::Dependency
@@ -41,12 +41,12 @@ dependencies:
41
41
  requirements:
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- hash: 25
44
+ hash: 31
45
45
  segments:
46
46
  - 1
47
47
  - 1
48
- - 5
49
- version: 1.1.5
48
+ - 6
49
+ version: 1.1.6
50
50
  type: :runtime
51
51
  version_requirements: *id002
52
52
  - !ruby/object:Gem::Dependency
@@ -57,12 +57,12 @@ dependencies:
57
57
  requirements:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- hash: 25
60
+ hash: 31
61
61
  segments:
62
62
  - 1
63
63
  - 1
64
- - 5
65
- version: 1.1.5
64
+ - 6
65
+ version: 1.1.6
66
66
  type: :runtime
67
67
  version_requirements: *id003
68
68
  description: Ruby/GTK2 is a Ruby binding of GTK+-2.x.