gtk3 1.2.4-x86-mingw32 → 1.2.5-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
@@ -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-2013 Ruby-GNOME2 Project Team
4
4
  * Copyright (C) 2002,2003 OGASAWARA, Takeshi
5
5
  *
6
6
  * This library is free software; you can redistribute it and/or
@@ -57,7 +57,8 @@ static VALUE
57
57
  rg_initialize(VALUE self)
58
58
  {
59
59
  GtkAccelGroupEntry key;
60
- G_INITIALIZE(self, &key);
60
+ memset(&key, 0, sizeof(GtkAccelGroupEntry));
61
+ G_INITIALIZE(self, g_boxed_copy(GTK_TYPE_ACCEL_GROUP_ENTRY, &key));
61
62
  return Qnil;
62
63
  }
63
64
 
@@ -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-2013 Ruby-GNOME2 Project Team
4
4
  * Copyright (C) 2002,2003 OGASAWARA, Takeshi
5
5
  *
6
6
  * This library is free software; you can redistribute it and/or
@@ -59,7 +59,8 @@ static VALUE
59
59
  rg_initialize(VALUE self)
60
60
  {
61
61
  GtkAccelKey key;
62
- G_INITIALIZE(self, &key);
62
+ memset(&key, 0, sizeof(GtkAccelKey));
63
+ G_INITIALIZE(self, g_boxed_copy(GTK_TYPE_ACCEL_KEY, &key));
63
64
  return Qnil;
64
65
  }
65
66
 
@@ -47,14 +47,14 @@ gtk_allocation_get_type(void)
47
47
  static VALUE
48
48
  rg_initialize(VALUE self, VALUE x, VALUE y, VALUE width, VALUE height)
49
49
  {
50
- GtkAllocation new;
50
+ GtkAllocation allocation;
51
51
 
52
- new.x = NUM2INT(x);
53
- new.y = NUM2INT(y);
54
- new.width = NUM2INT(width);
55
- new.height = NUM2INT(height);
52
+ allocation.x = NUM2INT(x);
53
+ allocation.y = NUM2INT(y);
54
+ allocation.width = NUM2INT(width);
55
+ allocation.height = NUM2INT(height);
56
56
 
57
- G_INITIALIZE(self, &new);
57
+ G_INITIALIZE(self, g_boxed_copy(GTK_TYPE_ALLOCATION, &allocation));
58
58
  return Qnil;
59
59
  }
60
60
 
@@ -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-2013 Ruby-GNOME2 Project Team
4
4
  * Copyright (C) 2002-2004 Ruby-GNOME2 Project Team
5
5
  * Copyright (C) 1998-2000 Yukihiro Matsumoto,
6
6
  * Daisuke Kanda,
@@ -36,7 +36,7 @@ rg_initialize(VALUE self, VALUE left, VALUE right, VALUE top, VALUE bottom)
36
36
  border.top = NUM2INT(top);
37
37
  border.bottom = NUM2INT(bottom);
38
38
 
39
- G_INITIALIZE(self, &border);
39
+ G_INITIALIZE(self, g_boxed_copy(GTK_TYPE_BORDER, &border));
40
40
  return Qnil;
41
41
  }
42
42
 
@@ -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-2013 Ruby-GNOME2 Project Team
4
4
  * Copyright (C) 2006 Masao Mutoh
5
5
  *
6
6
  * This library is free software; you can redistribute it and/or
@@ -58,9 +58,10 @@ gtk_recent_data_get_type(void)
58
58
 
59
59
  static VALUE
60
60
  rg_initialize(VALUE self)
61
- {
61
+ {
62
62
  GtkRecentData data;
63
- G_INITIALIZE(self, &data);
63
+ memset(&data, 0, sizeof(GtkRecentData));
64
+ G_INITIALIZE(self, g_boxed_copy(GTK_TYPE_RECENT_DATA, &data));
64
65
  return Qnil;
65
66
  }
66
67
 
@@ -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-2013 Ruby-GNOME2 Project Team
4
4
  * Copyright (C) 2006 Masao Mutoh
5
5
  *
6
6
  * This library is free software; you can redistribute it and/or
@@ -35,7 +35,7 @@ rf_copy(const GtkRecentFilterInfo* info)
35
35
  static void
36
36
  rf_free(GtkRecentFilterInfo* boxed)
37
37
  {
38
- if (boxed){
38
+ if (boxed) {
39
39
  g_free(boxed->applications);
40
40
  g_free(boxed->groups);
41
41
  g_free(boxed);
@@ -59,9 +59,10 @@ gtk_recent_filter_info_get_type(void)
59
59
 
60
60
  static VALUE
61
61
  rg_initialize(VALUE self)
62
- {
62
+ {
63
63
  GtkRecentFilterInfo finfo;
64
- G_INITIALIZE(self, &finfo);
64
+ memset(&finfo, 0, sizeof(GtkRecentFilterInfo));
65
+ G_INITIALIZE(self, g_boxed_copy(GTK_TYPE_RECENT_FILTER_INFO, &finfo));
65
66
  return Qnil;
66
67
  }
67
68
 
Binary file
Binary file
@@ -1,4 +1,20 @@
1
1
  #!/usr/bin/env ruby
2
+ #
3
+ # Copyright (C) 2013 Ruby-GNOME2 Project Team
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2
18
 
3
19
  ruby_gnome2_base = File.join(File.dirname(__FILE__), "..", "..")
4
20
  ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
@@ -7,13 +23,15 @@ glib_base = File.join(ruby_gnome2_base, "glib2")
7
23
  atk_base = File.join(ruby_gnome2_base, "atk")
8
24
  pango_base = File.join(ruby_gnome2_base, "pango")
9
25
  gdk_pixbuf_base = File.join(ruby_gnome2_base, "gdk_pixbuf2")
10
- gtk_base = File.join(ruby_gnome2_base, "gtk2")
26
+ gdk3_base = File.join(ruby_gnome2_base, "gdk3")
27
+ gtk3_base = File.join(ruby_gnome2_base, "gtk3")
11
28
 
12
29
  [[glib_base, "glib2"],
13
30
  [atk_base, "atk"],
14
31
  [pango_base, "pango"],
15
32
  [gdk_pixbuf_base, "gdk_pixbuf2"],
16
- [gtk_base, "gtk2"]].each do |target, module_name|
33
+ [gdk3_base, "gdk3"],
34
+ [gtk3_base, "gtk3"]].each do |target, module_name|
17
35
  if system("which make > /dev/null")
18
36
  `make -C #{target.dump} > /dev/null` or exit(false)
19
37
  end
@@ -24,9 +42,9 @@ end
24
42
  $LOAD_PATH.unshift(File.join(glib_base, "test"))
25
43
  require 'glib-test-init'
26
44
 
27
- $LOAD_PATH.unshift(File.join(gtk_base, "test"))
45
+ $LOAD_PATH.unshift(File.join(gtk3_base, "test"))
28
46
  require 'gtk-test-utils'
29
47
 
30
- require 'gtk2'
48
+ require 'gtk3'
31
49
 
32
50
  exit Test::Unit::AutoRunner.run(true)
@@ -1,6 +1,3 @@
1
- require 'test/unit'
2
- require 'gtk2'
3
-
4
1
  class TestGC < Test::Unit::TestCase
5
2
  priority :must
6
3
  def test_closure
@@ -0,0 +1,24 @@
1
+ # -*- coding: utf-8 -*-
2
+ #
3
+ # Copyright (C) 2013 Ruby-GNOME2 Project Team
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ class TestGtkAccelGroupEntry < Test::Unit::TestCase
20
+ def test_accel_path
21
+ entry = Gtk::AccelGroupEntry.new
22
+ assert_nil(entry.accel_path)
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ # -*- coding: utf-8 -*-
2
+ #
3
+ # Copyright (C) 2013 Ruby-GNOME2 Project Team
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ class TestGtkAccelKey < Test::Unit::TestCase
20
+ def test_flags
21
+ key = Gtk::AccelKey.new
22
+ assert_equal(0, key.flags)
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ # -*- coding: utf-8 -*-
2
+ #
3
+ # Copyright (C) 2013 Ruby-GNOME2 Project Team
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ class TestGtkAllocation < Test::Unit::TestCase
20
+ def test_width
21
+ allocation = Gtk::Allocation.new(0, 10, 20, 30)
22
+ assert_equal(20, allocation.width)
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ # -*- coding: utf-8 -*-
2
+ #
3
+ # Copyright (C) 2013 Ruby-GNOME2 Project Team
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ class TestGtkBorder < Test::Unit::TestCase
20
+ def test_left
21
+ border = Gtk::Border.new(10, 15, 20, 25)
22
+ assert_equal(10, border.left)
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ # -*- coding: utf-8 -*-
2
+ #
3
+ # Copyright (C) 2013 Ruby-GNOME2 Project Team
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ class TestGtkRecentData < Test::Unit::TestCase
20
+ def test_mime_type
21
+ data = Gtk::RecentData.new
22
+ assert_nil(data.mime_type)
23
+ end
24
+ end
@@ -0,0 +1,26 @@
1
+ # -*- coding: utf-8 -*-
2
+ #
3
+ # Copyright (C) 2013 Ruby-GNOME2 Project Team
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ class TestGtkRecentFilterInfo < Test::Unit::TestCase
20
+ include GtkTestUtils
21
+
22
+ def test_contains
23
+ info = Gtk::RecentFilterInfo.new
24
+ assert_equal(Gtk::RecentFilter::Flags.new, info.contains)
25
+ end
26
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtk3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  prerelease:
6
6
  platform: x86-mingw32
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-24 00:00:00.000000000 Z
12
+ date: 2013-03-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: glib2
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.2.4
21
+ version: 1.2.5
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: 1.2.4
29
+ version: 1.2.5
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: gio2
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ! '>='
36
36
  - !ruby/object:Gem::Version
37
- version: 1.2.4
37
+ version: 1.2.5
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
- version: 1.2.4
45
+ version: 1.2.5
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: atk
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ! '>='
52
52
  - !ruby/object:Gem::Version
53
- version: 1.2.4
53
+ version: 1.2.5
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,7 +58,7 @@ dependencies:
58
58
  requirements:
59
59
  - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
- version: 1.2.4
61
+ version: 1.2.5
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: pango
64
64
  requirement: !ruby/object:Gem::Requirement
@@ -66,7 +66,7 @@ dependencies:
66
66
  requirements:
67
67
  - - ! '>='
68
68
  - !ruby/object:Gem::Version
69
- version: 1.2.4
69
+ version: 1.2.5
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -74,7 +74,7 @@ dependencies:
74
74
  requirements:
75
75
  - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
- version: 1.2.4
77
+ version: 1.2.5
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: gdk_pixbuf2
80
80
  requirement: !ruby/object:Gem::Requirement
@@ -82,7 +82,7 @@ dependencies:
82
82
  requirements:
83
83
  - - ! '>='
84
84
  - !ruby/object:Gem::Version
85
- version: 1.2.4
85
+ version: 1.2.5
86
86
  type: :runtime
87
87
  prerelease: false
88
88
  version_requirements: !ruby/object:Gem::Requirement
@@ -90,7 +90,7 @@ dependencies:
90
90
  requirements:
91
91
  - - ! '>='
92
92
  - !ruby/object:Gem::Version
93
- version: 1.2.4
93
+ version: 1.2.5
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: gdk3
96
96
  requirement: !ruby/object:Gem::Requirement
@@ -98,7 +98,7 @@ dependencies:
98
98
  requirements:
99
99
  - - ! '>='
100
100
  - !ruby/object:Gem::Version
101
- version: 1.2.4
101
+ version: 1.2.5
102
102
  type: :runtime
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
@@ -106,7 +106,7 @@ dependencies:
106
106
  requirements:
107
107
  - - ! '>='
108
108
  - !ruby/object:Gem::Version
109
- version: 1.2.4
109
+ version: 1.2.5
110
110
  description: Ruby/GTK3 is a Ruby binding of GTK+-3.x.
111
111
  email: ruby-gnome2-devel-en@lists.sourceforge.net
112
112
  executables: []
@@ -525,6 +525,10 @@ files:
525
525
  - test/test_gdk_window.rb
526
526
  - test/test_gdk_window_attribute.rb
527
527
  - test/test_gtk_about_dialog.rb
528
+ - test/test_gtk_accel_group_entry.rb
529
+ - test/test_gtk_accel_key.rb
530
+ - test/test_gtk_allocation.rb
531
+ - test/test_gtk_border.rb
528
532
  - test/test_gtk_buildable.rb
529
533
  - test/test_gtk_builder.rb
530
534
  - test/test_gtk_entry.rb
@@ -533,6 +537,8 @@ files:
533
537
  - test/test_gtk_list_store.rb
534
538
  - test/test_gtk_menu_item.rb
535
539
  - test/test_gtk_rc_style.rb
540
+ - test/test_gtk_recent_data.rb
541
+ - test/test_gtk_recent_filter_info.rb
536
542
  - test/test_gtk_tree_path.rb
537
543
  - test/test_gtk_unix_print.rb
538
544
  - test/test_gtk_widget.rb