gtksourceview3 2.1.0-x86-mingw32 → 2.2.0-x86-mingw32

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: be9cf554e9bd00c94a2ff593eb46bc3baa8adab3
4
- data.tar.gz: 78eaf801d42a105b9900fdc78d7ce6205287d6b3
3
+ metadata.gz: 9f00ac57899ea53168f8ea0c6ed999d4787742ce
4
+ data.tar.gz: 1bd36499975c6ccba4e7cf3227ab2238ed06d75e
5
5
  SHA512:
6
- metadata.gz: 9d29a6738e9b453fc61bf725cb6c2e01e124e10eedb95886fc3a0b9fb8dcd41fccbf1bb5f44185f42297279fd70330dd97503d3f9bb4d8e2bb7dfdabc140e0f0
7
- data.tar.gz: 62bb8388cf4a31d31df62f61a208541a1795a02a55c4cd284555d9f8ca56cd2814b4674f580c6783f3b0283c90567f4db59de28b90a517b72b465c5d2e6f4cfe
6
+ metadata.gz: 3771b410e24df495cd83600f1b2968ae3335d0803ce8a7a33cf22870b281503df861f34be2b66a15269eb17018e101665527145c274aae3be9bb43e81d01d5c3
7
+ data.tar.gz: 36b6a1baac2e4aa969d08b581395b7f6ea4916f94e858dae2a8b872ff3fc009d72207c4340c689a1441811709508155401e715896564168867d3c6ddb032948b
data/Rakefile CHANGED
@@ -44,7 +44,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
44
44
  :name => "gtksourceview",
45
45
  :download_site => :gnome,
46
46
  :label => "GtkSourceView",
47
- :version => "3.10.1",
47
+ :version => "3.10.2",
48
48
  :compression_method => "xz",
49
49
  :windows => {
50
50
  :configure_args => [
Binary file
Binary file
Binary file
@@ -10,7 +10,7 @@ vendor_dir = base_dir + "vendor" + "local"
10
10
  vendor_bin_dir = vendor_dir + "bin"
11
11
  GLib.prepend_dll_path(vendor_bin_dir)
12
12
  begin
13
- major, minor, micro, = RUBY_VERSION.split(/\./)
13
+ major, minor, = RUBY_VERSION.split(/\./)
14
14
  require "#{major}.#{minor}/gtksourceview3.so"
15
15
  rescue LoadError
16
16
  require "gtksourceview3.so"
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin
3
- sourcelanguagesmanager.rb - Ruby/GtkSourceView sample script.
3
+ sourcelanguagesmanager.rb - Ruby/GtkSourceView3 sample script.
4
4
 
5
- Copyright (c) 2006 Ruby-GNOME2 Project Team
5
+ Copyright (c) 2006-2014 Ruby-GNOME2 Project Team
6
6
  This program is licenced under the same licence as Ruby-GNOME2.
7
7
 
8
8
  $Id: sourcelanguagesmanager.rb,v 1.3 2007/06/03 02:11:07 mutoh Exp $
9
9
  =end
10
10
 
11
- require 'gtksourceview3'
11
+ require "gtksourceview3"
12
12
 
13
- s = Gtk::SourceLanguageManager.new
13
+ s = GtkSource::LanguageManager.new
14
14
  s.language_ids.each do |v|
15
15
  puts v
16
16
  end
data/sample/test.rb CHANGED
@@ -1,32 +1,32 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin
3
- test.rb - Ruby/GtkSourceView2 sample script.
3
+ test.rb - Ruby/GtkSourceView3 sample script.
4
4
 
5
- Copyright (c) 2006 Ruby-GNOME2 Project Team
5
+ Copyright (c) 2006-2014 Ruby-GNOME2 Project Team
6
6
  This program is licenced under the same licence as Ruby-GNOME2.
7
7
 
8
8
  $Id: test.rb,v 1.4 2007/06/03 02:11:07 mutoh Exp $
9
9
  =end
10
10
 
11
- require 'gtksourceview3'
11
+ require "gtksourceview3"
12
12
 
13
- w = Gtk::Window.new
14
- w.signal_connect("delete-event"){Gtk::main_quit}
13
+ window = Gtk::Window.new
14
+ window.signal_connect("delete-event") {Gtk.main_quit}
15
15
 
16
- view = Gtk::SourceView.new
17
- w.add(Gtk::ScrolledWindow.new.add(view))
16
+ view = GtkSource::View.new
17
+ window.add(Gtk::ScrolledWindow.new.add(view))
18
18
  view.show_line_numbers = true
19
19
  view.insert_spaces_instead_of_tabs = true
20
20
  view.indent_width = 4
21
21
  view.show_right_margin = true
22
22
  view.right_margin_position = 80
23
23
 
24
- lang = Gtk::SourceLanguageManager.new.get_language('ruby')
24
+ lang = GtkSource::LanguageManager.new.get_language("ruby")
25
25
  view.buffer.language = lang
26
26
  view.buffer.highlight_syntax = true
27
27
  view.buffer.highlight_matching_brackets = true
28
28
 
29
- w.set_default_size(450,300)
30
- w.show_all
29
+ window.set_default_size(450, 300)
30
+ window.show_all
31
31
 
32
32
  Gtk.main
data/test/run-test.rb CHANGED
@@ -7,14 +7,15 @@ glib_base = File.join(ruby_gnome2_base, "glib2")
7
7
  atk_base = File.join(ruby_gnome2_base, "atk")
8
8
  pango_base = File.join(ruby_gnome2_base, "pango")
9
9
  gdk_pixbuf_base = File.join(ruby_gnome2_base, "gdk_pixbuf2")
10
- gtk_base = File.join(ruby_gnome2_base, "gtk2")
11
- gtk_source_view2_base = File.join(ruby_gnome2_base, "gtksourceview2")
10
+ gdk3_base = File.join(ruby_gnome2_base, "gdk3")
11
+ gtk3_base = File.join(ruby_gnome2_base, "gtk3")
12
+ gtk_source_view3_base = File.join(ruby_gnome2_base, "gtksourceview3")
12
13
 
13
14
  $LOAD_PATH.unshift(glib_base)
14
15
  require 'test/glib-test-init'
15
16
 
16
- [glib_base, atk_base, pango_base, gdk_pixbuf_base, gtk_base,
17
- gtk_source_view2_base].each do |target|
17
+ [glib_base, atk_base, pango_base, gdk_pixbuf_base, gdk3_base, gtk3_base,
18
+ gtk_source_view3_base].each do |target|
18
19
  if system("which make > /dev/null")
19
20
  `make -C #{target.dump} > /dev/null` or exit(1)
20
21
  end
@@ -25,9 +26,9 @@ require 'test/glib-test-init'
25
26
  $LOAD_PATH.unshift(File.join(target, "lib"))
26
27
  end
27
28
 
28
- $LOAD_PATH.unshift(File.join(gtk_base, "test"))
29
+ $LOAD_PATH.unshift(File.join(gtk3_base, "test"))
29
30
  require 'gtk-test-utils'
30
31
 
31
- require 'gtksourceview2'
32
+ require 'gtksourceview3'
32
33
 
33
34
  exit Test::Unit::AutoRunner.run(true)
@@ -0,0 +1,26 @@
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 TestMarkAttributes < Test::Unit::TestCase
18
+ def setup
19
+ @mark_attributes = GtkSource::MarkAttributes.new
20
+ end
21
+
22
+ def test_background
23
+ @mark_attributes.background = Gdk::RGBA.new(1, 0, 0, 0)
24
+ assert_equal(Gdk::RGBA.new(1, 0, 0, 0), @mark_attributes.background)
25
+ end
26
+ end
@@ -1,17 +1,23 @@
1
1
  # -*- coding: utf-8 -*-
2
+ #
3
+ # Copyright (C) 2011-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, MA 02110-1301 USA
2
18
 
3
19
  class TestSourceView < Test::Unit::TestCase
4
- def test_mark_category_background
5
- view = Gtk::SourceView.new
6
-
7
- red_rgb = [65535, 0, 0]
8
- red_color = Gdk::Color.parse("red")
9
- assert_not_equal(red_rgb, view.get_mark_category_background("XXX").to_a)
10
-
11
- view.set_mark_category_background("XXX", red_color)
12
- assert_equal(red_rgb, view.get_mark_category_background("XXX").to_a)
13
-
14
- view.set_mark_category_background("XXX", nil)
15
- assert_not_equal(red_rgb, view.get_mark_category_background("XXX").to_a)
20
+ def setup
21
+ @view = GtkSource::View.new
16
22
  end
17
23
  end
@@ -1,5 +1,5 @@
1
1
  # libgtksourceview-3.0.la - a libtool library file
2
- # Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.3
2
+ # Generated by libtool (GNU libtool) 2.4.2
3
3
  #
4
4
  # Please DO NOT delete this file!
5
5
  # It is necessary for linking the library.
@@ -5,7 +5,7 @@ includedir=${prefix}/include
5
5
 
6
6
  Name: gtksourceview
7
7
  Description: GTK+ 3.0 Source Editing Widget
8
- Version: 3.10.1
8
+ Version: 3.10.2
9
9
  Requires: gtk+-3.0 >= 3.9.9
10
10
  Requires.private: libxml-2.0 >= 2.6.0
11
11
  Libs: -L${libdir} -lgtksourceview-3.0
@@ -13,21 +13,13 @@
13
13
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14
14
  <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
15
15
  <td width="100%" align="left">
16
- <a class="shortcut" href="#glsE">E</a>
16
+ <a class="shortcut" href="#glsA">A</a>
17
17
   | 
18
- <a class="shortcut" href="#glsO">O</a>
19
-  | 
20
- <a class="shortcut" href="#glsT">T</a>
21
-  | 
22
- <a class="shortcut" href="#glsA">A</a>
18
+ <a class="shortcut" href="#glsE">E</a>
23
19
   | 
24
20
  <a class="shortcut" href="#glsO">O</a>
25
21
   | 
26
22
  <a class="shortcut" href="#glsT">T</a>
27
-  | 
28
- <a class="shortcut" href="#glsA">A</a>
29
-  | 
30
- <a class="shortcut" href="#glsT">T</a>
31
23
  </td>
32
24
  <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
33
25
  <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
@@ -37,34 +29,30 @@
37
29
  <div class="glossary">
38
30
  <div class="titlepage"><div><div><h1 class="title">
39
31
  <a name="annotation-glossary"></a>Annotation Glossary</h1></div></div></div>
32
+ <a name="glsA"></a><h3 class="title">A</h3>
33
+ <dt><span class="glossterm"><a name="annotation-glossterm-allow-none"></a>allow-none</span></dt>
34
+ <dd class="glossdef"><p>NULL is ok, both for passing and for returning.</p></dd>
35
+ <dt><span class="glossterm"><a name="annotation-glossterm-array"></a>array</span></dt>
36
+ <dd class="glossdef"><p>Parameter points to an array of items.</p></dd>
40
37
  <a name="glsE"></a><h3 class="title">E</h3>
41
38
  <dt><span class="glossterm"><a name="annotation-glossterm-element-type"></a>element-type</span></dt>
42
39
  <dd class="glossdef"><p>Generics and defining elements of containers and arrays.</p></dd>
43
40
  <a name="glsO"></a><h3 class="title">O</h3>
41
+ <dt><span class="glossterm"><a name="annotation-glossterm-out"></a>out</span></dt>
42
+ <dd class="glossdef"><p>Parameter for returning results. Default is <acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>.</p></dd>
44
43
  <dt><span class="glossterm"><a name="annotation-glossterm-out%20caller-allocates"></a>out caller-allocates</span></dt>
45
44
  <dd class="glossdef"><p>Out parameter, where caller must allocate storage.</p></dd>
46
45
  <a name="glsT"></a><h3 class="title">T</h3>
47
46
  <dt><span class="glossterm"><a name="annotation-glossterm-transfer%20container"></a>transfer container</span></dt>
48
47
  <dd class="glossdef"><p>Free data container after the code is done.</p></dd>
49
- <a name="glsA"></a><h3 class="title">A</h3>
50
- <dt><span class="glossterm"><a name="annotation-glossterm-array"></a>array</span></dt>
51
- <dd class="glossdef"><p>Parameter points to an array of items.</p></dd>
52
- <a name="glsO"></a><h3 class="title">O</h3>
53
- <dt><span class="glossterm"><a name="annotation-glossterm-out"></a>out</span></dt>
54
- <dd class="glossdef"><p>Parameter for returning results. Default is <acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>.</p></dd>
55
- <a name="glsT"></a><h3 class="title">T</h3>
56
- <dt><span class="glossterm"><a name="annotation-glossterm-transfer%20none"></a>transfer none</span></dt>
57
- <dd class="glossdef"><p>Don't free data after the code is done.</p></dd>
48
+ <dt><span class="glossterm"><a name="annotation-glossterm-transfer%20floating"></a>transfer floating</span></dt>
49
+ <dd class="glossdef"><p>Alias for <acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>, used for objects with floating refs.</p></dd>
58
50
  <dt><span class="glossterm"><a name="annotation-glossterm-transfer%20full"></a>transfer full</span></dt>
59
51
  <dd class="glossdef"><p>Free data after the code is done.</p></dd>
52
+ <dt><span class="glossterm"><a name="annotation-glossterm-transfer%20none"></a>transfer none</span></dt>
53
+ <dd class="glossdef"><p>Don't free data after the code is done.</p></dd>
60
54
  <dt><span class="glossterm"><a name="annotation-glossterm-type"></a>type</span></dt>
61
55
  <dd class="glossdef"><p>Override the parsed C type with given type.</p></dd>
62
- <a name="glsA"></a><h3 class="title">A</h3>
63
- <dt><span class="glossterm"><a name="annotation-glossterm-allow-none"></a>allow-none</span></dt>
64
- <dd class="glossdef"><p>NULL is ok, both for passing and for returning.</p></dd>
65
- <a name="glsT"></a><h3 class="title">T</h3>
66
- <dt><span class="glossterm"><a name="annotation-glossterm-transfer%20floating"></a>transfer floating</span></dt>
67
- <dd class="glossdef"><p>Alias for <acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>, used for objects with floating refs.</p></dd>
68
56
  </div>
69
57
  <div class="footer">
70
58
  <hr>
@@ -14,7 +14,7 @@
14
14
  <div class="titlepage">
15
15
  <div>
16
16
  <div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">GtkSourceView 3 Reference Manual</p></th></tr></table></div>
17
- <div><p class="releaseinfo">for GtkSourceView 3.10.1
17
+ <div><p class="releaseinfo">for GtkSourceView 3.10.2
18
18
  </p></div>
19
19
  </div>
20
20
  <hr>
@@ -697,13 +697,13 @@
697
697
  <ANCHOR id="tutorial" href="gtksourceview-3.0/lang-tutorial.html#tutorial">
698
698
  <ANCHOR id="lang-reference" href="gtksourceview-3.0/lang-reference.html">
699
699
  <ANCHOR id="style-reference" href="gtksourceview-3.0/style-reference.html">
700
+ <ANCHOR id="annotation-glossterm-allow-none" href="gtksourceview-3.0/annotation-glossary.html#annotation-glossterm-allow-none">
701
+ <ANCHOR id="annotation-glossterm-array" href="gtksourceview-3.0/annotation-glossary.html#annotation-glossterm-array">
700
702
  <ANCHOR id="annotation-glossterm-element-type" href="gtksourceview-3.0/annotation-glossary.html#annotation-glossterm-element-type">
703
+ <ANCHOR id="annotation-glossterm-out" href="gtksourceview-3.0/annotation-glossary.html#annotation-glossterm-out">
701
704
  <ANCHOR id="annotation-glossterm-out caller-allocates" href="gtksourceview-3.0/annotation-glossary.html#annotation-glossterm-out caller-allocates">
702
705
  <ANCHOR id="annotation-glossterm-transfer container" href="gtksourceview-3.0/annotation-glossary.html#annotation-glossterm-transfer container">
703
- <ANCHOR id="annotation-glossterm-array" href="gtksourceview-3.0/annotation-glossary.html#annotation-glossterm-array">
704
- <ANCHOR id="annotation-glossterm-out" href="gtksourceview-3.0/annotation-glossary.html#annotation-glossterm-out">
705
- <ANCHOR id="annotation-glossterm-transfer none" href="gtksourceview-3.0/annotation-glossary.html#annotation-glossterm-transfer none">
706
+ <ANCHOR id="annotation-glossterm-transfer floating" href="gtksourceview-3.0/annotation-glossary.html#annotation-glossterm-transfer floating">
706
707
  <ANCHOR id="annotation-glossterm-transfer full" href="gtksourceview-3.0/annotation-glossary.html#annotation-glossterm-transfer full">
708
+ <ANCHOR id="annotation-glossterm-transfer none" href="gtksourceview-3.0/annotation-glossary.html#annotation-glossterm-transfer none">
707
709
  <ANCHOR id="annotation-glossterm-type" href="gtksourceview-3.0/annotation-glossary.html#annotation-glossterm-type">
708
- <ANCHOR id="annotation-glossterm-allow-none" href="gtksourceview-3.0/annotation-glossary.html#annotation-glossterm-allow-none">
709
- <ANCHOR id="annotation-glossterm-transfer floating" href="gtksourceview-3.0/annotation-glossary.html#annotation-glossterm-transfer floating">
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtksourceview3
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
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: 2013-12-29 00:00:00.000000000 Z
11
+ date: 2014-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gtk3
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.1.0
19
+ version: 2.2.0
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.1.0
26
+ version: 2.2.0
27
27
  description: Ruby/GtkSourceView3 is a Ruby binding of gtksourceview-3.x.
28
28
  email: ruby-gnome2-devel-en@lists.sourceforge.net
29
29
  executables: []
@@ -58,6 +58,7 @@ files:
58
58
  - sample/sourcelanguagemanager.rb
59
59
  - sample/test.rb
60
60
  - test/run-test.rb
61
+ - test/test_mark_attributes.rb
61
62
  - test/test_source_view.rb
62
63
  - lib/1.9/gtksourceview3.so
63
64
  - lib/2.0/gtksourceview3.so