gtk3 3.3.8 → 3.3.9

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
  SHA256:
3
- metadata.gz: c99baef7afb1fb30ff648ae19402646c427d46686e98906a75393ec355b0d21a
4
- data.tar.gz: b5c4bf1a38ce808c7a3addf4da66b8a057e15237859ae364ac0e110f53d02b30
3
+ metadata.gz: 04a0f7f2d95ea6a2b7666e001e53b2823203496e603beda15f2182d6272d2645
4
+ data.tar.gz: 2b6a83c596071e51333d8d97b73ab754b378cc36891fd2285a26bd470f3c7f39
5
5
  SHA512:
6
- metadata.gz: 7bb35f67fda45026474dca01739f5b4bb164c8dba8034c472d545b3050d92738d6a2b8834e18799c9dbcd9f763f8430ade5e726036daebcd8f3addaccb4d0a12
7
- data.tar.gz: dff89e3fe4c3987830e323d88ca8ecbd441fe4131c32cb38247b7dcd684496c1adb14d02da0497422becf40a78c0b29665750e97785d7345183a37af715bfff3
6
+ metadata.gz: bb452074062e6f4cd5a46083daf95d414850849bb4f6361faf7dac7fbaf8cde65d3fec148560b765e5ce372577f3ffaf6775e74e789b547ed253c56f44f08b4f
7
+ data.tar.gz: f35a6ad707e0936758adef67d6eaa03fbf0ab649f466bb73cb5bd1e8f29200b095407e5ab64ea0d9abb149ff5ad46511f80405fc819ebeba98619136a6ac23c7
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # Copyright (C) 2015 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2015-2019 Ruby-GNOME Project Team
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -36,7 +36,7 @@ $LOAD_PATH.unshift(mkmf_gnome2_dir.to_s)
36
36
  module_name = "gtk3"
37
37
  package_id = "gtk+-3.0"
38
38
 
39
- require "mkmf-gnome2"
39
+ require "mkmf-gnome"
40
40
 
41
41
  depended_packages = [
42
42
  "glib2",
@@ -65,7 +65,7 @@ end
65
65
  unless required_pkg_config_package(package_id,
66
66
  :alt_linux => "libgtk+3-devel",
67
67
  :debian => "libgtk-3-dev",
68
- :redhat => "gtk3-devel",
68
+ :redhat => "pkgconfig(#{package_id})",
69
69
  :arch_linux => "gtk3",
70
70
  :homebrew => "gtk+3",
71
71
  :macports => "gtk3",
@@ -139,6 +139,7 @@ module Gtk
139
139
  require "gtk3/tree-iter"
140
140
  require "gtk3/tree-model"
141
141
  require "gtk3/tree-model-filter"
142
+ require "gtk3/tree-model-sort"
142
143
  require "gtk3/tree-path"
143
144
  require "gtk3/tree-selection"
144
145
  require "gtk3/tree-store"
@@ -0,0 +1,27 @@
1
+ # Copyright (C) 2019 Ruby-GNOME 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
+ module Gtk
18
+ class TreeModelSort
19
+ if TreeModel.method_defined?(:sort_new_with_model)
20
+ class << self
21
+ def new(model)
22
+ model.sort_new_with_model
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -51,14 +51,6 @@ module GtkTestUtils
51
51
  end
52
52
  end
53
53
 
54
- def window_have_default_title?
55
- # Maybe 03213b9509fc1df16c66194ea168aed6c15110e9 in GTK+
56
- return false if Gtk::Version.or_later?(3, 17, 0)
57
- return true if csd_supported?
58
-
59
- false
60
- end
61
-
62
54
  def fixture_path(*components)
63
55
  File.join(File.dirname(__FILE__), "fixture", *components)
64
56
  end
@@ -20,11 +20,7 @@ class TestGtkColorChooserDialog < Test::Unit::TestCase
20
20
  sub_test_case ".new" do
21
21
  test "no argument" do
22
22
  dialog = Gtk::ColorChooserDialog.new
23
- if window_have_default_title?
24
- assert_equal("", dialog.title)
25
- else
26
- assert_nil(dialog.title)
27
- end
23
+ assert_equal("", dialog.title || "")
28
24
  end
29
25
 
30
26
  test "title" do
@@ -20,11 +20,7 @@ class TestGtkFontChooserDialog < Test::Unit::TestCase
20
20
  sub_test_case ".new" do
21
21
  test "no argument" do
22
22
  dialog = Gtk::FontChooserDialog.new
23
- if window_have_default_title?
24
- assert_equal("", dialog.title)
25
- else
26
- assert_nil(dialog.title)
27
- end
23
+ assert_equal("", dialog.title || "")
28
24
  end
29
25
 
30
26
  test "title" do
@@ -25,7 +25,7 @@ class TestGtkIconTheme < Test::Unit::TestCase
25
25
  end
26
26
 
27
27
  def test_context
28
- assert_operator(@theme.icons("Actions"), :include?, "edit-find")
28
+ assert_operator(@theme.icons("Actions"), :include?, "gtk-edit")
29
29
  end
30
30
  end
31
31
 
@@ -0,0 +1,31 @@
1
+ # Copyright (C) 2019 Ruby-GNOME 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 TestGtkTreeModelSort < Test::Unit::TestCase
18
+ include GtkTestUtils
19
+
20
+ def setup
21
+ @model = Gtk::TreeStore.new(String)
22
+ @root = @model.append(nil)
23
+ @filter_root = @model.append(@root)
24
+ @filter = Gtk::TreeModelFilter.new(@model, @filter_root.path)
25
+ end
26
+
27
+ test(".new") do
28
+ sort = Gtk::TreeModelSort.new(@filter)
29
+ assert_equal(@filter, sort.model)
30
+ end
31
+ 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: 3.3.8
4
+ version: 3.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-09 00:00:00.000000000 Z
11
+ date: 2019-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gio2
@@ -16,70 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.3.8
19
+ version: 3.3.9
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: 3.3.8
26
+ version: 3.3.9
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: atk
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.3.8
33
+ version: 3.3.9
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: 3.3.8
40
+ version: 3.3.9
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pango
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 3.3.8
47
+ version: 3.3.9
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: 3.3.8
54
+ version: 3.3.9
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: gdk_pixbuf2
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 3.3.8
61
+ version: 3.3.9
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: 3.3.8
68
+ version: 3.3.9
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: gdk3
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 3.3.8
75
+ version: 3.3.9
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: 3.3.8
82
+ version: 3.3.9
83
83
  description: Ruby/GTK3 is a Ruby binding of GTK+-3.x.
84
84
  email: ruby-gnome2-devel-en@lists.sourceforge.net
85
85
  executables: []
@@ -171,6 +171,7 @@ files:
171
171
  - lib/gtk3/tool-button.rb
172
172
  - lib/gtk3/tree-iter.rb
173
173
  - lib/gtk3/tree-model-filter.rb
174
+ - lib/gtk3/tree-model-sort.rb
174
175
  - lib/gtk3/tree-model.rb
175
176
  - lib/gtk3/tree-path.rb
176
177
  - lib/gtk3/tree-selection.rb
@@ -622,6 +623,7 @@ files:
622
623
  - test/test-gtk-tool-button.rb
623
624
  - test/test-gtk-tree-iter.rb
624
625
  - test/test-gtk-tree-model-filter.rb
626
+ - test/test-gtk-tree-model-sort.rb
625
627
  - test/test-gtk-tree-path.rb
626
628
  - test/test-gtk-tree-selection.rb
627
629
  - test/test-gtk-tree-sortable.rb
@@ -652,7 +654,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
652
654
  - !ruby/object:Gem::Version
653
655
  version: '0'
654
656
  requirements: []
655
- rubygems_version: 3.1.0.pre1
657
+ rubyforge_project:
658
+ rubygems_version: 2.7.6.2
656
659
  signing_key:
657
660
  specification_version: 4
658
661
  summary: Ruby/GTK3 is a Ruby binding of GTK+-3.x.