gtksourceview3 2.1.0-x86-mingw32 → 2.2.0-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 +4 -4
- data/Rakefile +1 -1
- data/lib/1.9/gtksourceview3.so +0 -0
- data/lib/2.0/gtksourceview3.so +0 -0
- data/lib/2.1/gtksourceview3.so +0 -0
- data/lib/gtksourceview3.rb +1 -1
- data/sample/sourcelanguagemanager.rb +4 -4
- data/sample/test.rb +10 -10
- data/test/run-test.rb +7 -6
- data/test/test_mark_attributes.rb +26 -0
- data/test/test_source_view.rb +18 -12
- data/vendor/local/bin/libgtksourceview-3.0-1.dll +0 -0
- data/vendor/local/lib/libgtksourceview-3.0.dll.a +0 -0
- data/vendor/local/lib/libgtksourceview-3.0.la +1 -1
- data/vendor/local/lib/locale/de/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/el/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/zh_CN/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/pkgconfig/gtksourceview-3.0.pc +1 -1
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/annotation-glossary.html +13 -25
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/index.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/index.sgml +5 -5
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f00ac57899ea53168f8ea0c6ed999d4787742ce
|
4
|
+
data.tar.gz: 1bd36499975c6ccba4e7cf3227ab2238ed06d75e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
47
|
+
:version => "3.10.2",
|
48
48
|
:compression_method => "xz",
|
49
49
|
:windows => {
|
50
50
|
:configure_args => [
|
data/lib/1.9/gtksourceview3.so
CHANGED
Binary file
|
data/lib/2.0/gtksourceview3.so
CHANGED
Binary file
|
data/lib/2.1/gtksourceview3.so
CHANGED
Binary file
|
data/lib/gtksourceview3.rb
CHANGED
@@ -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,
|
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/
|
3
|
+
sourcelanguagesmanager.rb - Ruby/GtkSourceView3 sample script.
|
4
4
|
|
5
|
-
Copyright (c) 2006
|
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
|
11
|
+
require "gtksourceview3"
|
12
12
|
|
13
|
-
s =
|
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/
|
3
|
+
test.rb - Ruby/GtkSourceView3 sample script.
|
4
4
|
|
5
|
-
Copyright (c) 2006
|
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
|
11
|
+
require "gtksourceview3"
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
window = Gtk::Window.new
|
14
|
+
window.signal_connect("delete-event") {Gtk.main_quit}
|
15
15
|
|
16
|
-
view =
|
17
|
-
|
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 =
|
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
|
-
|
30
|
-
|
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
|
-
|
11
|
-
|
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,
|
17
|
-
|
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(
|
29
|
+
$LOAD_PATH.unshift(File.join(gtk3_base, "test"))
|
29
30
|
require 'gtk-test-utils'
|
30
31
|
|
31
|
-
require '
|
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
|
data/test/test_source_view.rb
CHANGED
@@ -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
|
5
|
-
view =
|
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
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -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="#
|
16
|
+
<a class="shortcut" href="#glsA">A</a>
|
17
17
|
|
|
18
|
-
<a class="shortcut" href="#
|
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
|
-
<
|
50
|
-
<
|
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.
|
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-
|
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.
|
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:
|
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.
|
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.
|
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
|