gtk3 2.2.3 → 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8be943912dcbd3203bd39d186dfc01a25ee2b1fc
4
- data.tar.gz: 8488fbe968186ade229ce7a5bb770c56ff3f71ec
3
+ metadata.gz: b7e041adbc6e554c7ba5f490fa043f760032d01a
4
+ data.tar.gz: d49472b9ca4ffa0df928f3610c03160184dd42d5
5
5
  SHA512:
6
- metadata.gz: 305d17e8ba936794bb460e91a6584913109201fb04a34ffcf14ea9e2c1e240deac8b20893dcc3d0711545ea2cc0ce513218873d230876c7c0257f2e7482f585f
7
- data.tar.gz: 485c766efca428b64a3c8c86b3366b89e6c917c34a7584795c268a16135bbcb50e918895f34c8c48243643f24b334981139ff99a84bd682fb56d4387ef6b43a2
6
+ metadata.gz: b72ec6fb7c19848e3f04468380cccd990c688be3e2201e7c21a4df9d9c2010fbd4e53b0ee58cc1c105bf454d34cbe63ee11154f9cea1b9a1c34c52b5b164824c
7
+ data.tar.gz: b65ae45521ad50f4aa0fa325149b722fdb3b5a41c972ae737d21238889126aaea55f2701a5c827353e2d28482a280c6cc48b746aff43fc87f808fad3bd557e46
@@ -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);
@@ -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: ruby
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: []
@@ -115,6 +115,7 @@ files:
115
115
  - ext/gtk3/rbgtk-accel-map.c
116
116
  - ext/gtk3/rbgtk-accelerator.c
117
117
  - ext/gtk3/rbgtk-accessible.c
118
+ - ext/gtk3/rbgtk-action-bar.c
118
119
  - ext/gtk3/rbgtk-action-group.c
119
120
  - ext/gtk3/rbgtk-action.c
120
121
  - ext/gtk3/rbgtk-activatable.c
@@ -523,6 +524,7 @@ files:
523
524
  - test/test_gtk_accel_group_entry.rb
524
525
  - test/test_gtk_accel_key.rb
525
526
  - test/test_gtk_accessible.rb
527
+ - test/test_gtk_action_group.rb
526
528
  - test/test_gtk_allocation.rb
527
529
  - test/test_gtk_border.rb
528
530
  - test/test_gtk_buildable.rb