gtk2 1.2.0-x86-mingw32 → 1.2.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/ext/gtk2/rbgtkliststore.c +0 -9
  2. data/ext/gtk2/rbgtktreemodel.c +0 -4
  3. data/lib/1.8/gtk2.so +0 -0
  4. data/lib/1.9/gtk2.so +0 -0
  5. data/test/test_gtk_list_store.rb +27 -0
  6. data/vendor/local/bin/gtk-demo.exe +0 -0
  7. data/vendor/local/bin/gtk-query-immodules-2.0.exe +0 -0
  8. data/vendor/local/bin/gtk-update-icon-cache.exe +0 -0
  9. data/vendor/local/bin/libgailutil-18.dll +0 -0
  10. data/vendor/local/bin/libgdk-win32-2.0-0.dll +0 -0
  11. data/vendor/local/bin/libgtk-win32-2.0-0.dll +0 -0
  12. data/vendor/local/lib/gtk-2.0/2.10.0/engines/libpixmap.dll +0 -0
  13. data/vendor/local/lib/gtk-2.0/2.10.0/engines/libpixmap.dll.a +0 -0
  14. data/vendor/local/lib/gtk-2.0/2.10.0/engines/libwimp.dll +0 -0
  15. data/vendor/local/lib/gtk-2.0/2.10.0/engines/libwimp.dll.a +0 -0
  16. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-am-et.dll +0 -0
  17. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-am-et.dll.a +0 -0
  18. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-cedilla.dll +0 -0
  19. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-cedilla.dll.a +0 -0
  20. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-cyrillic-translit.dll +0 -0
  21. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-cyrillic-translit.dll.a +0 -0
  22. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ime.dll +0 -0
  23. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ime.dll.a +0 -0
  24. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-inuktitut.dll +0 -0
  25. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-inuktitut.dll.a +0 -0
  26. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ipa.dll +0 -0
  27. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ipa.dll.a +0 -0
  28. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-multipress.dll +0 -0
  29. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-multipress.dll.a +0 -0
  30. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-thai.dll +0 -0
  31. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-thai.dll.a +0 -0
  32. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ti-er.dll +0 -0
  33. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ti-er.dll.a +0 -0
  34. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ti-et.dll +0 -0
  35. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ti-et.dll.a +0 -0
  36. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-viqr.dll +0 -0
  37. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-viqr.dll.a +0 -0
  38. data/vendor/local/lib/gtk-2.0/modules/libgail.dll +0 -0
  39. data/vendor/local/lib/gtk-2.0/modules/libgail.dll.a +0 -0
  40. data/vendor/local/lib/libgailutil.dll.a +0 -0
  41. data/vendor/local/lib/libgdk-win32-2.0.dll.a +0 -0
  42. data/vendor/local/lib/libgtk-win32-2.0.dll.a +0 -0
  43. metadata +13 -13
@@ -73,7 +73,6 @@ rg_set_value(VALUE self, VALUE iter, VALUE column, VALUE value)
73
73
 
74
74
  rbgobj_rvalue_to_gvalue(value, &gval);
75
75
 
76
- G_CHILD_ADD(self, iter);
77
76
  G_CHILD_ADD(iter, value);
78
77
 
79
78
  gtk_list_store_set_value(_SELF(self), RVAL2GTKTREEITER(iter), NUM2INT(column), &gval);
@@ -157,8 +156,6 @@ rg_set_values(VALUE self, VALUE iter, VALUE values)
157
156
  g_values = ALLOCA_N(GValue, length);
158
157
  MEMZERO(g_values, GValue, length);
159
158
 
160
- G_CHILD_ADD(self, iter);
161
-
162
159
  store = _SELF(self);
163
160
  model = GTK_TREE_MODEL(store);
164
161
  if (RVAL2CBOOL(rb_obj_is_kind_of(values, rb_cHash))) {
@@ -288,8 +285,6 @@ rg_insert(int argc, VALUE *argv, VALUE self)
288
285
 
289
286
  result = GTKTREEITER2RVAL(&args.iter);
290
287
 
291
- G_CHILD_ADD(self, result);
292
-
293
288
  return result;
294
289
  }
295
290
 
@@ -303,7 +298,6 @@ rg_insert_before(VALUE self, VALUE sibling)
303
298
  iter.user_data3 = model;
304
299
 
305
300
  ret = GTKTREEITER2RVAL(&iter);
306
- G_CHILD_ADD(self, ret);
307
301
  return ret;
308
302
  }
309
303
 
@@ -317,7 +311,6 @@ rg_insert_after(VALUE self, VALUE sibling)
317
311
  iter.user_data3 = model;
318
312
 
319
313
  ret = GTKTREEITER2RVAL(&iter);
320
- G_CHILD_ADD(self, ret);
321
314
  return ret;
322
315
  }
323
316
 
@@ -331,7 +324,6 @@ rg_prepend(VALUE self)
331
324
  iter.user_data3 = model;
332
325
 
333
326
  ret = GTKTREEITER2RVAL(&iter);
334
- G_CHILD_ADD(self, ret);
335
327
  return ret;
336
328
  }
337
329
 
@@ -345,7 +337,6 @@ rg_append(VALUE self)
345
337
  iter.user_data3 = model;
346
338
 
347
339
  ret = GTKTREEITER2RVAL(&iter);
348
- G_CHILD_ADD(self, ret);
349
340
  return ret;
350
341
  }
351
342
 
@@ -54,7 +54,6 @@ rg_iter_first(VALUE self)
54
54
 
55
55
  if (ret) {
56
56
  val = GTKTREEITER2RVAL(&iter);
57
- G_CHILD_ADD(self, val);
58
57
  }
59
58
 
60
59
  return val;
@@ -71,7 +70,6 @@ rg_iter_root(VALUE self)
71
70
 
72
71
  if (ret) {
73
72
  val = GTKTREEITER2RVAL(&iter);
74
- G_CHILD_ADD(self, val);
75
73
  }
76
74
 
77
75
  return val;
@@ -85,7 +83,6 @@ rg_iter_next(VALUE self, VALUE iter)
85
83
 
86
84
  if (ret) {
87
85
  val = GTKTREEITER2RVAL(&iter);
88
- G_CHILD_ADD(self, val);
89
86
  }
90
87
 
91
88
  return val;
@@ -110,7 +107,6 @@ rg_get_iter(VALUE self, VALUE path)
110
107
 
111
108
  if (ret) {
112
109
  val = GTKTREEITER2RVAL(&iter);
113
- G_CHILD_ADD(self, val);
114
110
  }
115
111
 
116
112
  return val;
Binary file
Binary file
@@ -62,4 +62,31 @@ class TestGtkListStore < Test::Unit::TestCase
62
62
  end
63
63
  assert_equal([2, 'she'], [iter[ID], iter[NAME]])
64
64
  end
65
+
66
+ def test_iter_gc
67
+ n_iterators = count_objects(Gtk::TreeIter)
68
+ 50.times do |i|
69
+ iter = @store.append
70
+ iter[ID] = i
71
+ iter[NAME] = i.to_s
72
+ end
73
+ 100.times do
74
+ @store.iter_first
75
+ end
76
+ iter = @store.iter_first
77
+ while @store.remove(iter); end
78
+ iter = nil
79
+ assert_equal(0, @store.to_enum(:each).to_a.size)
80
+ GC.start
81
+ assert_equal(n_iterators, count_objects(Gtk::TreeIter))
82
+ end
83
+
84
+ private
85
+ def count_objects(klass)
86
+ n_objects = ObjectSpace.each_object(Gtk::TreeIter) do
87
+ # do nothing
88
+ end
89
+ n_objects
90
+ end
65
91
  end
92
+
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: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 0
10
- version: 1.2.0
9
+ - 1
10
+ version: 1.2.1
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: 2013-01-24 00:00:00 Z
18
+ date: 2013-01-30 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: 31
28
+ hash: 29
29
29
  segments:
30
30
  - 1
31
31
  - 2
32
- - 0
33
- version: 1.2.0
32
+ - 1
33
+ version: 1.2.1
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: 31
44
+ hash: 29
45
45
  segments:
46
46
  - 1
47
47
  - 2
48
- - 0
49
- version: 1.2.0
48
+ - 1
49
+ version: 1.2.1
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: 31
60
+ hash: 29
61
61
  segments:
62
62
  - 1
63
63
  - 2
64
- - 0
65
- version: 1.2.0
64
+ - 1
65
+ version: 1.2.1
66
66
  type: :runtime
67
67
  version_requirements: *id003
68
68
  description: Ruby/GTK2 is a Ruby binding of GTK+-2.x.