gtksourceview3 2.2.5 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +3 -4
- data/lib/gtksourceview3/loader.rb +46 -0
- data/lib/gtksourceview3/mark-attributes.rb +29 -0
- data/lib/gtksourceview3.rb +47 -12
- data/test/run-test.rb +2 -0
- data/test/{test_mark_attributes.rb → test-mark-attributes.rb} +1 -1
- data/test/{test_source_language_manager.rb → test-source-language-manager.rb} +6 -6
- data/test/{test_source_view.rb → test-source-view.rb} +1 -1
- metadata +25 -34
- data/ext/gtksourceview3/depend +0 -6
- data/ext/gtksourceview3/extconf.rb +0 -67
- data/ext/gtksourceview3/gtksourceview3.def +0 -2
- data/ext/gtksourceview3/rbgtksource.c +0 -53
- data/ext/gtksourceview3/rbgtksourcebuffer.c +0 -318
- data/ext/gtksourceview3/rbgtksourcegutter.c +0 -82
- data/ext/gtksourceview3/rbgtksourcegutterrenderer.c +0 -143
- data/ext/gtksourceview3/rbgtksourcegutterrendererpixbuf.c +0 -42
- data/ext/gtksourceview3/rbgtksourcegutterrenderertext.c +0 -40
- data/ext/gtksourceview3/rbgtksourcelanguage.c +0 -124
- data/ext/gtksourceview3/rbgtksourcelanguagemanager.c +0 -114
- data/ext/gtksourceview3/rbgtksourcemark.c +0 -85
- data/ext/gtksourceview3/rbgtksourcemarkattributes.c +0 -77
- data/ext/gtksourceview3/rbgtksourceprintcompositor.c +0 -171
- data/ext/gtksourceview3/rbgtksourcestyle.c +0 -42
- data/ext/gtksourceview3/rbgtksourcestylescheme.c +0 -72
- data/ext/gtksourceview3/rbgtksourcestyleschememanager.c +0 -140
- data/ext/gtksourceview3/rbgtksourceundomanager.c +0 -83
- data/ext/gtksourceview3/rbgtksourceview.c +0 -94
- data/ext/gtksourceview3/rbgtksourceview3conversions.h +0 -50
- data/ext/gtksourceview3/rbgtksourceview3private.h +0 -53
- data/extconf.rb +0 -49
- data/sample/sourcelanguagemanager.rb +0 -21
- data/sample/test.rb +0 -32
- /data/test/{test_source_gutter_renderer.rb → test-source-gutter-renderer.rb} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7687d9d29363321b3c2fca3d6763990cc5e1ed9
|
4
|
+
data.tar.gz: 87f2b45bdc9ce78c3a97d2a444eaee1a8615cb37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e185d927d0217a17648cc84628dcab33cd98bcb7a0d5f328076189c64f6ddf9759407bc0232f34fded8990b693f5cba02953a0e5871c1852b66877fd0d06d465
|
7
|
+
data.tar.gz: 53d4be80181dd2121293c50126d87d1e686b2d5668e75cdec7933b2254739d9f4cc78e253aaf16374282323cb98bb4de8772b2f9f547c2e3045bb44d89363a75
|
data/Rakefile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- ruby -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2012-
|
3
|
+
# Copyright (C) 2012-2015 Ruby-GNOME2 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
|
@@ -22,7 +22,7 @@ require "gnome2/rake/package-task"
|
|
22
22
|
package_task = GNOME2::Rake::PackageTask.new do |package|
|
23
23
|
package.summary = "Ruby/GtkSourceView3 is a Ruby binding of gtksourceview-3.x."
|
24
24
|
package.description = "Ruby/GtkSourceView3 is a Ruby binding of gtksourceview-3.x."
|
25
|
-
package.dependency.gem.runtime = ["gtk3"]
|
25
|
+
package.dependency.gem.runtime = ["gtk3", "gobject-introspection"]
|
26
26
|
package.windows.packages = []
|
27
27
|
package.windows.dependencies = []
|
28
28
|
package.windows.build_dependencies = [
|
@@ -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.
|
47
|
+
:version => "3.16.1",
|
48
48
|
:compression_method => "xz",
|
49
49
|
:windows => {
|
50
50
|
:configure_args => [
|
@@ -56,4 +56,3 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
|
|
56
56
|
]
|
57
57
|
end
|
58
58
|
package_task.define
|
59
|
-
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# Copyright (C) 2014-2015 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
|
+
module GtkSource
|
18
|
+
class Loader < GObjectIntrospection::Loader
|
19
|
+
private
|
20
|
+
def load_function_info(info)
|
21
|
+
name = info.name
|
22
|
+
case name
|
23
|
+
when "init"
|
24
|
+
# ignore
|
25
|
+
else
|
26
|
+
super
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def post_load(repository, namespace)
|
31
|
+
require_libraries
|
32
|
+
end
|
33
|
+
|
34
|
+
def require_libraries
|
35
|
+
require "gtksourceview3/mark-attributes"
|
36
|
+
|
37
|
+
require "gtksourceview3/deprecated"
|
38
|
+
end
|
39
|
+
|
40
|
+
def initialize_post(object)
|
41
|
+
super
|
42
|
+
return unless object.is_a?(GLib::Object)
|
43
|
+
self.class.reference_gobject(object, :sink => true)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# Copyright (C) 2015 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
|
+
module GtkSource
|
18
|
+
class MarkAttributes
|
19
|
+
alias_method :background_raw, :background
|
20
|
+
def background
|
21
|
+
set, rgba = background_raw
|
22
|
+
if set
|
23
|
+
rgba
|
24
|
+
else
|
25
|
+
nil
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
data/lib/gtksourceview3.rb
CHANGED
@@ -1,20 +1,55 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
# Copyright (C) 2014-2015 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
|
5
16
|
|
6
|
-
require
|
17
|
+
require "gtk3"
|
7
18
|
|
8
19
|
base_dir = Pathname.new(__FILE__).dirname.dirname.expand_path
|
9
20
|
vendor_dir = base_dir + "vendor" + "local"
|
10
21
|
vendor_bin_dir = vendor_dir + "bin"
|
11
22
|
GLib.prepend_dll_path(vendor_bin_dir)
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
23
|
+
vendor_girepository_dir = vendor_dir + "lib" + "girepository-1.0"
|
24
|
+
GObjectIntrospection.prepend_typelib_path(vendor_girepository_dir)
|
25
|
+
|
26
|
+
require "gtksourceview3/loader"
|
27
|
+
|
28
|
+
module GtkSource
|
29
|
+
LOG_DOMAIN = "GtkSource"
|
30
|
+
GLib::Log.set_log_domain(LOG_DOMAIN)
|
18
31
|
|
19
|
-
|
32
|
+
class Error < StandardError
|
33
|
+
end
|
20
34
|
|
35
|
+
class << self
|
36
|
+
def const_missing(name)
|
37
|
+
init
|
38
|
+
if const_defined?(name)
|
39
|
+
const_get(name)
|
40
|
+
else
|
41
|
+
super
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
def init
|
46
|
+
class << self
|
47
|
+
remove_method(:init)
|
48
|
+
remove_method(:const_missing)
|
49
|
+
end
|
50
|
+
Gtk.init if Gtk.respond_to?(:init)
|
51
|
+
loader = Loader.new(self)
|
52
|
+
loader.load("GtkSource")
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
data/test/run-test.rb
CHANGED
@@ -9,6 +9,7 @@ cairo_gobject_base = File.join(ruby_gnome2_base, "cairo-gobject")
|
|
9
9
|
pango_base = File.join(ruby_gnome2_base, "pango")
|
10
10
|
gdk_pixbuf_base = File.join(ruby_gnome2_base, "gdk_pixbuf2")
|
11
11
|
gobject_introspection_base = File.join(ruby_gnome2_base, "gobject-introspection")
|
12
|
+
gio2_base = File.join(ruby_gnome2_base, "gio2")
|
12
13
|
gdk3_base = File.join(ruby_gnome2_base, "gdk3")
|
13
14
|
gtk3_base = File.join(ruby_gnome2_base, "gtk3")
|
14
15
|
gtk_source_view3_base = File.join(ruby_gnome2_base, "gtksourceview3")
|
@@ -23,6 +24,7 @@ dependencies = [
|
|
23
24
|
pango_base,
|
24
25
|
gdk_pixbuf_base,
|
25
26
|
gobject_introspection_base,
|
27
|
+
gio2_base,
|
26
28
|
gdk3_base,
|
27
29
|
gtk3_base,
|
28
30
|
gtk_source_view3_base,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2014 Ruby-GNOME2 Project Team
|
1
|
+
# Copyright (C) 2014-2015 Ruby-GNOME2 Project Team
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -16,12 +16,12 @@
|
|
16
16
|
|
17
17
|
class TestLanguageManager < Test::Unit::TestCase
|
18
18
|
def setup
|
19
|
-
@
|
19
|
+
@manager = GtkSource::LanguageManager.new
|
20
20
|
@view = GtkSource::View.new
|
21
21
|
end
|
22
22
|
|
23
23
|
def test_language
|
24
|
-
language = @
|
24
|
+
language = @manager.get_language("ruby")
|
25
25
|
@view.buffer.language = language
|
26
26
|
assert_equal(language, @view.buffer.language)
|
27
27
|
|
@@ -34,13 +34,13 @@ class TestLanguageManager < Test::Unit::TestCase
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def test_language_ids
|
37
|
-
ids = @
|
37
|
+
ids = @manager.language_ids
|
38
38
|
assert_include(ids, "ruby")
|
39
39
|
end
|
40
40
|
|
41
41
|
def test_search_path
|
42
42
|
custom_path = "/path/to/search"
|
43
|
-
@
|
44
|
-
assert_equal([custom_path], @
|
43
|
+
@manager.search_path = [custom_path]
|
44
|
+
assert_equal([custom_path], @manager.search_path)
|
45
45
|
end
|
46
46
|
end
|
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:
|
4
|
+
version: 3.0.1
|
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: 2015-
|
11
|
+
date: 2015-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gtk3
|
@@ -16,53 +16,44 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 3.0.1
|
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:
|
26
|
+
version: 3.0.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: gobject-introspection
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.0.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 3.0.1
|
27
41
|
description: Ruby/GtkSourceView3 is a Ruby binding of gtksourceview-3.x.
|
28
42
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
29
43
|
executables: []
|
30
|
-
extensions:
|
31
|
-
- ext/gtksourceview3/extconf.rb
|
44
|
+
extensions: []
|
32
45
|
extra_rdoc_files: []
|
33
46
|
files:
|
34
47
|
- Rakefile
|
35
|
-
- ext/gtksourceview3/depend
|
36
|
-
- ext/gtksourceview3/extconf.rb
|
37
|
-
- ext/gtksourceview3/gtksourceview3.def
|
38
|
-
- ext/gtksourceview3/rbgtksource.c
|
39
|
-
- ext/gtksourceview3/rbgtksourcebuffer.c
|
40
|
-
- ext/gtksourceview3/rbgtksourcegutter.c
|
41
|
-
- ext/gtksourceview3/rbgtksourcegutterrenderer.c
|
42
|
-
- ext/gtksourceview3/rbgtksourcegutterrendererpixbuf.c
|
43
|
-
- ext/gtksourceview3/rbgtksourcegutterrenderertext.c
|
44
|
-
- ext/gtksourceview3/rbgtksourcelanguage.c
|
45
|
-
- ext/gtksourceview3/rbgtksourcelanguagemanager.c
|
46
|
-
- ext/gtksourceview3/rbgtksourcemark.c
|
47
|
-
- ext/gtksourceview3/rbgtksourcemarkattributes.c
|
48
|
-
- ext/gtksourceview3/rbgtksourceprintcompositor.c
|
49
|
-
- ext/gtksourceview3/rbgtksourcestyle.c
|
50
|
-
- ext/gtksourceview3/rbgtksourcestylescheme.c
|
51
|
-
- ext/gtksourceview3/rbgtksourcestyleschememanager.c
|
52
|
-
- ext/gtksourceview3/rbgtksourceundomanager.c
|
53
|
-
- ext/gtksourceview3/rbgtksourceview.c
|
54
|
-
- ext/gtksourceview3/rbgtksourceview3conversions.h
|
55
|
-
- ext/gtksourceview3/rbgtksourceview3private.h
|
56
|
-
- extconf.rb
|
57
48
|
- lib/gtksourceview3.rb
|
58
49
|
- lib/gtksourceview3/deprecated.rb
|
59
|
-
-
|
60
|
-
-
|
50
|
+
- lib/gtksourceview3/loader.rb
|
51
|
+
- lib/gtksourceview3/mark-attributes.rb
|
61
52
|
- test/run-test.rb
|
62
|
-
- test/
|
63
|
-
- test/
|
64
|
-
- test/
|
65
|
-
- test/
|
53
|
+
- test/test-mark-attributes.rb
|
54
|
+
- test/test-source-gutter-renderer.rb
|
55
|
+
- test/test-source-language-manager.rb
|
56
|
+
- test/test-source-view.rb
|
66
57
|
homepage: http://ruby-gnome2.sourceforge.jp/
|
67
58
|
licenses:
|
68
59
|
- LGPLv2.1 or later
|
data/ext/gtksourceview3/depend
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
extconf.rb for Ruby/GtkSourceView3 extension library
|
3
|
-
=end
|
4
|
-
|
5
|
-
require 'pathname'
|
6
|
-
|
7
|
-
base_dir = Pathname(__FILE__).dirname.parent.parent.expand_path
|
8
|
-
top_dir = base_dir.parent
|
9
|
-
top_build_dir = Pathname(".").parent.parent.parent.expand_path
|
10
|
-
|
11
|
-
mkmf_gnome2_dir = top_dir + "glib2" + 'lib'
|
12
|
-
version_suffix = ""
|
13
|
-
unless mkmf_gnome2_dir.exist?
|
14
|
-
if /(-\d+\.\d+\.\d+)\z/ =~ base_dir.basename.to_s
|
15
|
-
version_suffix = $1
|
16
|
-
mkmf_gnome2_dir = top_dir + "glib2#{version_suffix}" + 'lib'
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
$LOAD_PATH.unshift(mkmf_gnome2_dir.to_s)
|
21
|
-
|
22
|
-
module_name = "gtksourceview3"
|
23
|
-
package_id = "gtksourceview-3.0"
|
24
|
-
|
25
|
-
begin
|
26
|
-
require 'mkmf-gnome2'
|
27
|
-
rescue LoadError
|
28
|
-
require 'rubygems'
|
29
|
-
gem 'glib2'
|
30
|
-
require 'mkmf-gnome2'
|
31
|
-
end
|
32
|
-
|
33
|
-
["glib2", "atk", "pango", "gdk_pixbuf2", "gtk3"].each do |package|
|
34
|
-
directory = "#{package}#{version_suffix}"
|
35
|
-
build_dir = "#{directory}/tmp/#{RUBY_PLATFORM}/#{package}/#{RUBY_VERSION}"
|
36
|
-
add_depend_package(package, "#{directory}/ext/#{package}",
|
37
|
-
top_dir.to_s,
|
38
|
-
:top_build_dir => top_build_dir.to_s,
|
39
|
-
:target_build_dir => build_dir)
|
40
|
-
end
|
41
|
-
|
42
|
-
unless check_cairo(:top_dir => top_dir)
|
43
|
-
exit(false)
|
44
|
-
end
|
45
|
-
|
46
|
-
setup_windows(module_name, base_dir)
|
47
|
-
|
48
|
-
unless required_pkg_config_package(package_id,
|
49
|
-
:debian => "libgtksourceview-3.0-dev",
|
50
|
-
:fedora => "gtksourceview3-devel",
|
51
|
-
:homebrew => "gtksourceview3",
|
52
|
-
:macports => "gtksourceview3")
|
53
|
-
exit(false)
|
54
|
-
end
|
55
|
-
|
56
|
-
make_version_header("GTKSOURCEVIEW3", package_id, ".")
|
57
|
-
|
58
|
-
create_pkg_config_file("Ruby/GtkSourceView3", package_id)
|
59
|
-
$defs << "-DRUBY_GTKSOURCEVIEW3_COMPILATION"
|
60
|
-
create_makefile(module_name)
|
61
|
-
pkg_config_dir = with_config("pkg-config-dir")
|
62
|
-
if pkg_config_dir.is_a?(String)
|
63
|
-
File.open("Makefile", "ab") do |makefile|
|
64
|
-
makefile.puts
|
65
|
-
makefile.puts("pkgconfigdir=#{pkg_config_dir}")
|
66
|
-
end
|
67
|
-
end
|
@@ -1,53 +0,0 @@
|
|
1
|
-
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
/*
|
3
|
-
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
-
* Copyright (C) 2004,2005 Ruby-GNOME2 Project Team
|
5
|
-
* Copyright (C) 2003 Geoff Youngs, based on gtktextview.c by Masao Mutoh
|
6
|
-
*
|
7
|
-
* This library is free software; you can redistribute it and/or
|
8
|
-
* modify it under the terms of the GNU Lesser General Public
|
9
|
-
* License as published by the Free Software Foundation; either
|
10
|
-
* version 2.1 of the License, or (at your option) any later version.
|
11
|
-
*
|
12
|
-
* This library is distributed in the hope that it will be useful,
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
15
|
-
* Lesser General Public License for more details.
|
16
|
-
*
|
17
|
-
* You should have received a copy of the GNU Lesser General Public
|
18
|
-
* License along with this library; if not, write to the Free Software
|
19
|
-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
20
|
-
* MA 02110-1301 USA
|
21
|
-
*/
|
22
|
-
|
23
|
-
#include "rbgtksourceview3private.h"
|
24
|
-
|
25
|
-
#define RG_TARGET_NAMESPACE mGtkSource
|
26
|
-
|
27
|
-
void
|
28
|
-
Init_gtksourceview3 (void)
|
29
|
-
{
|
30
|
-
VALUE RG_TARGET_NAMESPACE = rb_define_module("GtkSource");
|
31
|
-
|
32
|
-
rb_define_const(RG_TARGET_NAMESPACE, "BUILD_VERSION",
|
33
|
-
rb_ary_new3(3,
|
34
|
-
INT2FIX(GTKSOURCEVIEW3_MAJOR_VERSION),
|
35
|
-
INT2FIX(GTKSOURCEVIEW3_MINOR_VERSION),
|
36
|
-
INT2FIX(GTKSOURCEVIEW3_MICRO_VERSION)));
|
37
|
-
|
38
|
-
Init_gtksource_view (RG_TARGET_NAMESPACE);
|
39
|
-
Init_gtksource_buffer (RG_TARGET_NAMESPACE);
|
40
|
-
Init_gtksource_language (RG_TARGET_NAMESPACE);
|
41
|
-
Init_gtksource_languagemanager (RG_TARGET_NAMESPACE);
|
42
|
-
Init_gtksource_mark (RG_TARGET_NAMESPACE);
|
43
|
-
Init_gtksource_printcompositor (RG_TARGET_NAMESPACE);
|
44
|
-
Init_gtksource_style (RG_TARGET_NAMESPACE);
|
45
|
-
Init_gtksource_stylescheme (RG_TARGET_NAMESPACE);
|
46
|
-
Init_gtksource_styleschememanager (RG_TARGET_NAMESPACE);
|
47
|
-
Init_gtksource_gutter(RG_TARGET_NAMESPACE);
|
48
|
-
Init_gtksource_gutterrenderer(RG_TARGET_NAMESPACE);
|
49
|
-
Init_gtksource_gutterrendererpixbuf(RG_TARGET_NAMESPACE);
|
50
|
-
Init_gtksource_gutterrenderertext(RG_TARGET_NAMESPACE);
|
51
|
-
Init_gtksource_markattributes(RG_TARGET_NAMESPACE);
|
52
|
-
Init_gtksource_undomanager(RG_TARGET_NAMESPACE);
|
53
|
-
}
|