gtk3 2.2.3-x86-mingw32 → 2.2.4-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42ff79bf8b5e0233f4befcbd0988d959370f6308
4
- data.tar.gz: 80d528424c749ec1a4ddc1b187540a956277aa12
3
+ metadata.gz: ec3f85ab59452443d05b43dd5794ebc1faf18f8d
4
+ data.tar.gz: 3c6650aa7324948d7c1f77ce40aa8462bbc0bcf4
5
5
  SHA512:
6
- metadata.gz: 899c2772f1ac8ab7a27485668de0e14c02c9105c72710d6507bc2b7fdf327108d0eaedbc544e05272b7487f643e8b3d3cdf3f20f71470e12f5e53a67682b5b86
7
- data.tar.gz: 96d2f551b7fd330f5b722b331c0f2a292c102ed1a6b2dfd802d011713bfe307a17767823ec090f8d0c50d2990eedc98635f8a286a07dac7b2e6fd1acdd7f0afc
6
+ metadata.gz: 79f859689e58fd0fa69458686a8f86d2a4edeae60c666b3eb3da3951c47d210f978b9ca7ee6ddec1f7d8bbb3043d0a0f07d9fe2849bd3543cf8f6801a5a25bea
7
+ data.tar.gz: b19aaeb6dfc4e021ba24d3ee8d065315844e11ceff3e4fbeaf6ef75a6e7792e0518a4194dabf619ffa2fcaa985e46b148e76d4bfa69d204826eee35a9316695b
@@ -43,24 +43,11 @@ have_func("rb_errinfo")
43
43
  :target_build_dir => build_dir)
44
44
  end
45
45
 
46
- rcairo_options = {}
47
- rcairo_source_dir_names = ["rcairo"]
48
- if /mingw|cygwin|mswin/ =~ RUBY_PLATFORM
49
- rcairo_source_dir_names.unshift("rcairo.win32")
50
- end
51
- rcairo_source_dir_names.each do |rcairo_source_dir_name|
52
- rcairo_source_dir = top_dir.parent.expand_path + rcairo_source_dir_name
53
- if rcairo_source_dir.exist?
54
- rcairo_options[:rcairo_source_dir] = rcairo_source_dir.to_s
55
- break
56
- end
57
- end
58
-
59
- unless check_cairo(rcairo_options)
46
+ unless check_cairo(:top_dir => top_dir)
60
47
  exit(false)
61
48
  end
62
49
 
63
- setup_win32(module_name, base_dir)
50
+ setup_windows(module_name, base_dir)
64
51
 
65
52
  unless required_pkg_config_package(package_id,
66
53
  :debian => "libgtk-3-dev",
@@ -74,7 +74,9 @@ rg_s_show(VALUE self, VALUE parent, VALUE props)
74
74
  strlen(pd[i].name) == strlen("logo")){
75
75
  pd[i].value = g_object_ref(RVAL2GOBJ(RARRAY_PTR(RARRAY_PTR(ary)[i])[1]));
76
76
  } else if (strncmp(pd[i].name, "wrap_license", strlen("wrap_license")) == 0){
77
- pd[i].value = GINT_TO_POINTER(RVAL2CBOOL(RARRAY_PTR(ary)[i]));
77
+ pd[i].value = GINT_TO_POINTER(RVAL2CBOOL(RARRAY_PTR(RARRAY_PTR(ary)[i])[1]));
78
+ } else if (strncmp(pd[i].name, "license_type", strlen("license_type")) == 0){
79
+ pd[i].value = GINT_TO_POINTER(RVAL2GTKLICENSE(RARRAY_PTR(RARRAY_PTR(ary)[i])[1]));
78
80
  } else {
79
81
  pd[i].value = g_strdup(RVAL2CSTR(RARRAY_PTR(RARRAY_PTR(ary)[i])[1]));
80
82
  }
@@ -0,0 +1,73 @@
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Copyright (C) 2014 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,
18
+ * MA 02110-1301 USA
19
+ */
20
+
21
+ #include "rbgtk3private.h"
22
+
23
+ #define RG_TARGET_NAMESPACE cActionBar
24
+ #define _SELF(self) (RVAL2GTKACTIONBAR(self))
25
+
26
+ #if GTK_CHECK_VERSION(3, 12, 0)
27
+ static VALUE
28
+ rg_initialize(VALUE self)
29
+ {
30
+ RBGTK_INITIALIZE(self, gtk_action_bar_new());
31
+ return Qnil;
32
+ }
33
+
34
+ static VALUE
35
+ rg_pack_start(VALUE self, VALUE child)
36
+ {
37
+ gtk_action_bar_pack_start(_SELF(self), RVAL2GOBJ(child));
38
+ return self;
39
+ }
40
+
41
+ static VALUE
42
+ rg_pack_end(VALUE self, VALUE child)
43
+ {
44
+ gtk_action_bar_pack_end(_SELF(self), RVAL2GOBJ(child));
45
+ return self;
46
+ }
47
+
48
+ static VALUE
49
+ rg_center_widget(VALUE self)
50
+ {
51
+ return GOBJ2RVAL(gtk_action_bar_get_center_widget(_SELF(self)));
52
+ }
53
+
54
+ static VALUE
55
+ rg_set_center_widget(VALUE self, VALUE child)
56
+ {
57
+ gtk_action_bar_set_center_widget(_SELF(self), RVAL2GOBJ(child));
58
+ return self;
59
+ }
60
+
61
+ void
62
+ Init_gtk_action_bar(VALUE mGtk)
63
+ {
64
+ VALUE RG_TARGET_NAMESPACE =
65
+ G_DEF_CLASS(GTK_TYPE_ACTION_BAR, "ActionBar", mGtk);
66
+
67
+ RG_DEF_METHOD(initialize, 0);
68
+ RG_DEF_METHOD(pack_start, 1);
69
+ RG_DEF_METHOD(pack_end, 1);
70
+ RG_DEF_METHOD(center_widget, 0);
71
+ RG_DEF_METHOD(set_center_widget, 1);
72
+ }
73
+ #endif
@@ -564,6 +564,9 @@ Init_gtk(void)
564
564
  Init_gtk_accel_map(RG_TARGET_NAMESPACE);
565
565
  Init_gtk_accessible(RG_TARGET_NAMESPACE);
566
566
  Init_gtk_action(RG_TARGET_NAMESPACE);
567
+ #if GTK_CHECK_VERSION(3, 12, 0)
568
+ Init_gtk_action_bar(RG_TARGET_NAMESPACE);
569
+ #endif
567
570
  Init_gtk_actiongroup(RG_TARGET_NAMESPACE);
568
571
  Init_gtk_activatable(RG_TARGET_NAMESPACE);
569
572
  Init_gtk_adjustment(RG_TARGET_NAMESPACE);
@@ -26,6 +26,7 @@
26
26
  #define RVAL2GTKACCELLABEL(o) (GTK_ACCEL_LABEL(RVAL2GOBJ(o)))
27
27
  #define RVAL2GTKACCESSIBLE(o) (GTK_ACCESSIBLE(RVAL2GOBJ(o)))
28
28
  #define RVAL2GTKACTION(o) (GTK_ACTION(RVAL2GOBJ(o)))
29
+ #define RVAL2GTKACTIONBAR(o) (GTK_ACTION_BAR(RVAL2GOBJ(o)))
29
30
  #define RVAL2GTKACTIONGROUP(o) (GTK_ACTION_GROUP(RVAL2GOBJ(o)))
30
31
  #define RVAL2GTKADJUSTMENT(o) (GTK_ADJUSTMENT(RVAL2GOBJ(o)))
31
32
  #define RVAL2GTKALIGNMENT(o) (GTK_ALIGNMENT(RVAL2GOBJ(o)))
@@ -330,6 +331,8 @@
330
331
  #define GTKWINDOWTYPE2RVAL(o) (GENUM2RVAL(o, GTK_TYPE_WINDOW_TYPE))
331
332
  #define RVAL2GTKWRAPMODE(o) (RVAL2GENUM(o, GTK_TYPE_WRAP_MODE))
332
333
  #define GTKWRAPMODE2RVAL(o) (GENUM2RVAL(o, GTK_TYPE_WRAP_MODE))
334
+ #define RVAL2GTKLICENSE(o) (RVAL2GENUM(o, GTK_TYPE_LICENSE))
335
+ #define GTKLICENSE2RVAL(o) (GENUM2RVAL(o, GTK_TYPE_LICENSE))
333
336
 
334
337
  #define RVAL2GTKACCELFLAGS(o) (RVAL2GFLAGS(o, GTK_TYPE_ACCEL_FLAGS))
335
338
  #define GTKACCELFLAGS2RVAL(o) (GFLAGS2RVAL(o, GTK_TYPE_ACCEL_FLAGS))
@@ -79,6 +79,9 @@ G_GNUC_INTERNAL void Init_gtk_accel_label(VALUE mGtk);
79
79
  G_GNUC_INTERNAL void Init_gtk_accel_map(VALUE mGtk);
80
80
  G_GNUC_INTERNAL void Init_gtk_accessible(VALUE mGtk);
81
81
  G_GNUC_INTERNAL void Init_gtk_action(VALUE mGtk);
82
+ #if GTK_CHECK_VERSION(3, 12, 0)
83
+ G_GNUC_INTERNAL void Init_gtk_action_bar(VALUE mGtk);
84
+ #endif
82
85
  G_GNUC_INTERNAL void Init_gtk_actiongroup(VALUE mGtk);
83
86
  G_GNUC_INTERNAL void Init_gtk_activatable(VALUE mGtk);
84
87
  G_GNUC_INTERNAL void Init_gtk_adjustment(VALUE mGtk);
Binary file
Binary file
Binary file
@@ -0,0 +1,46 @@
1
+ # Copyright (C) 2014 Ruby-GNOME2 Project Team
2
+ #
3
+ # This library is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU Lesser General Public
5
+ # License as published by the Free Software Foundation; either
6
+ # version 2.1 of the License, or (at your option) any later version.
7
+ #
8
+ # This library is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this library; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
+
17
+ class TestGtkActionBar < Test::Unit::TestCase
18
+ include GtkTestUtils
19
+
20
+ def setup
21
+ @bar = Gtk::ActionBar.new
22
+ end
23
+
24
+ def test_pack_start
25
+ widget1 = Gtk::Box.new(:horizontal)
26
+ widget2 = Gtk::Box.new(:horizontal)
27
+ @bar.pack_start(widget1)
28
+ @bar.pack_start(widget2)
29
+ assert_equal([widget1, widget2], @bar.children)
30
+ end
31
+
32
+ def test_pack_end
33
+ widget1 = Gtk::Box.new(:horizontal)
34
+ widget2 = Gtk::Box.new(:horizontal)
35
+ @bar.pack_end(widget1)
36
+ @bar.pack_end(widget2)
37
+ assert_equal([widget2, widget1], @bar.children)
38
+ end
39
+
40
+ def test_center_widget
41
+ widget = Gtk::Box.new(:horizontal)
42
+ assert_nil(@bar.center_widget)
43
+ @bar.center_widget = widget
44
+ assert_equal(widget, @bar.center_widget)
45
+ end
46
+ end
@@ -2,7 +2,7 @@ class TestGtkImage < Test::Unit::TestCase
2
2
  include GtkTestUtils
3
3
 
4
4
  def test_stock
5
- image = Gtk::Image.new(Gtk::Stock::GO_FORWARD, :dialog)
5
+ image = Gtk::Image.new(:stock => Gtk::Stock::GO_FORWARD, :size => :dialog)
6
6
  assert_equal(Gtk::Stock::GO_FORWARD.to_s, image.stock)
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtk3
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.3
4
+ version: 2.2.4
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - The Ruby-GNOME2 Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-26 00:00:00.000000000 Z
11
+ date: 2014-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: glib2
@@ -16,84 +16,84 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.3
19
+ version: 2.2.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.2.3
26
+ version: 2.2.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gio2
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.2.3
33
+ version: 2.2.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 2.2.3
40
+ version: 2.2.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: atk
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 2.2.3
47
+ version: 2.2.4
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 2.2.3
54
+ version: 2.2.4
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pango
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 2.2.3
61
+ version: 2.2.4
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 2.2.3
68
+ version: 2.2.4
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: gdk_pixbuf2
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 2.2.3
75
+ version: 2.2.4
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 2.2.3
82
+ version: 2.2.4
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: gdk3
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 2.2.3
89
+ version: 2.2.4
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 2.2.3
96
+ version: 2.2.4
97
97
  description: Ruby/GTK3 is a Ruby binding of GTK+-3.x.
98
98
  email: ruby-gnome2-devel-en@lists.sourceforge.net
99
99
  executables: []
@@ -114,6 +114,7 @@ files:
114
114
  - ext/gtk3/rbgtk-accel-map.c
115
115
  - ext/gtk3/rbgtk-accelerator.c
116
116
  - ext/gtk3/rbgtk-accessible.c
117
+ - ext/gtk3/rbgtk-action-bar.c
117
118
  - ext/gtk3/rbgtk-action-group.c
118
119
  - ext/gtk3/rbgtk-action.c
119
120
  - ext/gtk3/rbgtk-activatable.c
@@ -327,6 +328,7 @@ files:
327
328
  - extconf.rb
328
329
  - lib/2.0/gtk3.so
329
330
  - lib/2.1/gtk3.so
331
+ - lib/2.2/gtk3.so
330
332
  - lib/gtk3.rb
331
333
  - lib/gtk3/base.rb
332
334
  - lib/gtk3/deprecated.rb
@@ -524,6 +526,7 @@ files:
524
526
  - test/test_gtk_accel_group_entry.rb
525
527
  - test/test_gtk_accel_key.rb
526
528
  - test/test_gtk_accessible.rb
529
+ - test/test_gtk_action_group.rb
527
530
  - test/test_gtk_allocation.rb
528
531
  - test/test_gtk_border.rb
529
532
  - test/test_gtk_buildable.rb