gtksourceview3 2.2.5-x86-mingw32 → 3.0.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 +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_gutter_renderer.rb → test-source-gutter-renderer.rb} +0 -0
- 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
- data/vendor/local/bin/libgtksourceview-3.0-1.dll +0 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksource.h +3 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcebuffer.h +4 -5
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletioncontext.h +1 -1
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcegutter.h +0 -3
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcesearchcontext.h +5 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcestylescheme.h +5 -4
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcestyleschemechooser.h +60 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcestyleschemechooserbutton.h +56 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcestyleschemechooserwidget.h +56 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcetypes.h +13 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceview-typebuiltins.h +5 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceview.h +41 -14
- data/vendor/local/lib/girepository-1.0/GtkSource-3.0.typelib +0 -0
- data/vendor/local/lib/libgtksourceview-3.0.dll.a +0 -0
- data/vendor/local/lib/libgtksourceview-3.0.la +3 -3
- data/vendor/local/lib/locale/bs/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/cs/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/da/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- 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/es/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/eu/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/fi/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/fr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/gl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/he/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/hu/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/id/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/it/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/kk/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ko/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/lt/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/lv/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/nb/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/pl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/pt_BR/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ru/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sk/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sr@latin/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sv/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/tr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/zh_TW/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/pkgconfig/gtksourceview-3.0.pc +2 -2
- data/vendor/local/share/gir-1.0/GtkSource-3.0.gir +501 -39
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceBuffer.html +186 -132
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletion.html +55 -55
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionContext.html +29 -23
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionInfo.html +39 -39
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionItem.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionProposal.html +22 -22
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionProvider.html +35 -35
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionWords.html +14 -14
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceEncoding.html +19 -19
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFile.html +19 -19
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFileLoader.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFileSaver.html +32 -32
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutter.html +28 -28
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRenderer.html +141 -133
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRendererPixbuf.html +14 -14
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRendererText.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceLanguage.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceLanguageManager.html +17 -17
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceMark.html +18 -18
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceMarkAttributes.html +42 -42
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourcePrintCompositor.html +89 -89
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceSearchContext.html +155 -56
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceSearchSettings.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyle.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleScheme.html +17 -19
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleSchemeChooser.html +215 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleSchemeChooserButton.html +129 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleSchemeChooserWidget.html +129 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleSchemeManager.html +18 -18
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceUndoManager.html +27 -26
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceView.html +751 -327
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/annotation-glossary.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-0.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-10.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-12.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-14.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-16.html +107 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-4.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-deprecated.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-full.html +89 -1
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch01.html +9 -90
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch02.html +25 -16
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch03.html +53 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch04.html +44 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch05.html +50 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch06.html +33 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch07.html +38 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch08.html +38 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/gtksourceview-3.0-GtkSourceUtils.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/gtksourceview-3.0.devhelp2 +253 -161
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/index.html +57 -25
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/index.sgml +295 -190
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/lang-reference.html +73 -30
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/lang-tutorial.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/object-tree.html +13 -9
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/pt01.html +153 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/pt02.html +50 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/style-reference.html +3 -3
- data/vendor/local/share/gtksourceview-3.0/language-specs/c.lang +4 -4
- data/vendor/local/share/gtksourceview-3.0/language-specs/cmake.lang +234 -125
- data/vendor/local/share/gtksourceview-3.0/language-specs/css.lang +1 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/cuda.lang +247 -257
- data/vendor/local/share/gtksourceview-3.0/language-specs/fortran.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/genie.lang +238 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/java.lang +4 -3
- data/vendor/local/share/gtksourceview-3.0/language-specs/javascript.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/json.lang +3 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/lua.lang +150 -5
- data/vendor/local/share/gtksourceview-3.0/language-specs/matlab.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/octave.lang +1008 -172
- data/vendor/local/share/gtksourceview-3.0/language-specs/pig.lang +283 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/protobuf.lang +2 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/thrift.lang +267 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/xslt.lang +13 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/yacc.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/styles/classic.xml +2 -0
- data/vendor/local/share/gtksourceview-3.0/styles/cobalt.xml +3 -0
- data/vendor/local/share/gtksourceview-3.0/styles/kate.xml +1 -0
- data/vendor/local/share/gtksourceview-3.0/styles/oblivion.xml +3 -0
- data/vendor/local/share/gtksourceview-3.0/styles/solarized-dark.xml +3 -1
- data/vendor/local/share/gtksourceview-3.0/styles/solarized-light.xml +3 -1
- data/vendor/local/share/gtksourceview-3.0/styles/tango.xml +2 -0
- data/vendor/local/share/license/gtksourceview/AUTHORS +7 -5
- metadata +43 -35
- 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/lib/2.0/gtksourceview3.so +0 -0
- data/lib/2.1/gtksourceview3.so +0 -0
- data/lib/2.2/gtksourceview3.so +0 -0
- data/sample/sourcelanguagemanager.rb +0 -21
- data/sample/test.rb +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 782c7ff1ac6ceab4ce47c3f315359c7b098a1655
|
4
|
+
data.tar.gz: 97eabc983d43c41ab3a876e75ab050d8e7198254
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fe7670063c2fa032d81ae94488bdbc5b7624739ed9fd977bd61251a07d7a366785a3089a5be858845ec4ca643e62d065fcb1f555a45415f03825bb70d2e737b
|
7
|
+
data.tar.gz: 0255fd47f68f1ed1c6b2d166bd5187b80e882409ea701f93867d31f6bd79a1b74576c917b0085101a117f5bd61014a9e25a05c799261ba17565cfcd5000534e5
|
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,
|
File without changes
|
@@ -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
|
Binary file
|
@@ -45,6 +45,9 @@
|
|
45
45
|
#include <gtksourceview/gtksourcesearchsettings.h>
|
46
46
|
#include <gtksourceview/gtksourcestyle.h>
|
47
47
|
#include <gtksourceview/gtksourcestylescheme.h>
|
48
|
+
#include <gtksourceview/gtksourcestyleschemechooser.h>
|
49
|
+
#include <gtksourceview/gtksourcestyleschemechooserbutton.h>
|
50
|
+
#include <gtksourceview/gtksourcestyleschemechooserwidget.h>
|
48
51
|
#include <gtksourceview/gtksourcestyleschememanager.h>
|
49
52
|
#include <gtksourceview/gtksourceundomanager.h>
|
50
53
|
#include <gtksourceview/gtksourceutils.h>
|
@@ -101,12 +101,10 @@ struct _GtkSourceBufferClass
|
|
101
101
|
|
102
102
|
GType gtk_source_buffer_get_type (void) G_GNUC_CONST;
|
103
103
|
|
104
|
-
/* Constructor */
|
105
104
|
GtkSourceBuffer *gtk_source_buffer_new (GtkTextTagTable *table);
|
106
105
|
|
107
106
|
GtkSourceBuffer *gtk_source_buffer_new_with_language (GtkSourceLanguage *language);
|
108
107
|
|
109
|
-
/* Properties */
|
110
108
|
gboolean gtk_source_buffer_get_highlight_syntax (GtkSourceBuffer *buffer);
|
111
109
|
|
112
110
|
void gtk_source_buffer_set_highlight_syntax (GtkSourceBuffer *buffer,
|
@@ -136,12 +134,10 @@ GtkSourceStyleScheme *gtk_source_buffer_get_style_scheme (GtkSourceBuffer
|
|
136
134
|
void gtk_source_buffer_set_style_scheme (GtkSourceBuffer *buffer,
|
137
135
|
GtkSourceStyleScheme *scheme);
|
138
136
|
|
139
|
-
/* Force highlighting */
|
140
137
|
void gtk_source_buffer_ensure_highlight (GtkSourceBuffer *buffer,
|
141
138
|
const GtkTextIter *start,
|
142
139
|
const GtkTextIter *end);
|
143
140
|
|
144
|
-
/* Undo/redo methods */
|
145
141
|
void gtk_source_buffer_undo (GtkSourceBuffer *buffer);
|
146
142
|
|
147
143
|
void gtk_source_buffer_redo (GtkSourceBuffer *buffer);
|
@@ -150,7 +146,6 @@ void gtk_source_buffer_begin_not_undoable_action (GtkSourceBuffer *buffer);
|
|
150
146
|
|
151
147
|
void gtk_source_buffer_end_not_undoable_action (GtkSourceBuffer *buffer);
|
152
148
|
|
153
|
-
/* Mark methods */
|
154
149
|
GtkSourceMark *gtk_source_buffer_create_source_mark (GtkSourceBuffer *buffer,
|
155
150
|
const gchar *name,
|
156
151
|
const gchar *category,
|
@@ -198,6 +193,10 @@ void gtk_source_buffer_change_case (GtkSourceBuffer *buffer,
|
|
198
193
|
GtkTextIter *start,
|
199
194
|
GtkTextIter *end);
|
200
195
|
|
196
|
+
void gtk_source_buffer_join_lines (GtkSourceBuffer *buffer,
|
197
|
+
GtkTextIter *start,
|
198
|
+
GtkTextIter *end);
|
199
|
+
|
201
200
|
GtkSourceUndoManager *gtk_source_buffer_get_undo_manager (GtkSourceBuffer *buffer);
|
202
201
|
|
203
202
|
void gtk_source_buffer_set_undo_manager (GtkSourceBuffer *buffer,
|
@@ -78,7 +78,7 @@ void gtk_source_completion_context_add_proposals (GtkSourceCompletionContext
|
|
78
78
|
GList *proposals,
|
79
79
|
gboolean finished);
|
80
80
|
|
81
|
-
|
81
|
+
gboolean gtk_source_completion_context_get_iter (GtkSourceCompletionContext *context,
|
82
82
|
GtkTextIter *iter);
|
83
83
|
|
84
84
|
GtkSourceCompletionActivation
|
@@ -19,7 +19,6 @@
|
|
19
19
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
20
20
|
*/
|
21
21
|
|
22
|
-
|
23
22
|
#ifndef __GTK_SOURCE_GUTTER_H__
|
24
23
|
#define __GTK_SOURCE_GUTTER_H__
|
25
24
|
|
@@ -86,5 +85,3 @@ GtkSourceGutterRenderer *
|
|
86
85
|
G_END_DECLS
|
87
86
|
|
88
87
|
#endif /* __GTK_SOURCE_GUTTER_H__ */
|
89
|
-
|
90
|
-
/* vi:ts=8 */
|
@@ -68,6 +68,11 @@ gboolean gtk_source_search_context_get_highlight (GtkSourceSearchContext *se
|
|
68
68
|
void gtk_source_search_context_set_highlight (GtkSourceSearchContext *search,
|
69
69
|
gboolean highlight);
|
70
70
|
|
71
|
+
GtkSourceStyle *gtk_source_search_context_get_match_style (GtkSourceSearchContext *search);
|
72
|
+
|
73
|
+
void gtk_source_search_context_set_match_style (GtkSourceSearchContext *search,
|
74
|
+
GtkSourceStyle *match_style);
|
75
|
+
|
71
76
|
GError *gtk_source_search_context_get_regex_error (GtkSourceSearchContext *search);
|
72
77
|
|
73
78
|
gint gtk_source_search_context_get_occurrences_count (GtkSourceSearchContext *search);
|
@@ -54,10 +54,6 @@ struct _GtkSourceStyleSchemeClass
|
|
54
54
|
|
55
55
|
GType gtk_source_style_scheme_get_type (void) G_GNUC_CONST;
|
56
56
|
|
57
|
-
G_GNUC_INTERNAL
|
58
|
-
GtkSourceStyleScheme *_gtk_source_style_scheme_new (const gchar *id,
|
59
|
-
const gchar *name);
|
60
|
-
|
61
57
|
const gchar *gtk_source_style_scheme_get_id (GtkSourceStyleScheme *scheme);
|
62
58
|
|
63
59
|
const gchar *gtk_source_style_scheme_get_name (GtkSourceStyleScheme *scheme);
|
@@ -104,6 +100,11 @@ GtkSourceStyle *_gtk_source_style_scheme_get_draw_spaces_style (GtkSou
|
|
104
100
|
G_GNUC_INTERNAL
|
105
101
|
gboolean _gtk_source_style_scheme_get_current_line_color (GtkSourceStyleScheme *scheme,
|
106
102
|
GdkRGBA *color);
|
103
|
+
|
104
|
+
G_GNUC_INTERNAL
|
105
|
+
gboolean _gtk_source_style_scheme_get_background_pattern_color (GtkSourceStyleScheme *scheme,
|
106
|
+
GdkRGBA *color);
|
107
|
+
|
107
108
|
G_END_DECLS
|
108
109
|
|
109
110
|
#endif /* __GTK_SOURCE_STYLE_SCHEME_H__ */
|
@@ -0,0 +1,60 @@
|
|
1
|
+
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*-
|
2
|
+
* gtk_sourcesourcestyleschemechooser.h
|
3
|
+
* This file is part of gtk_sourcesourceview
|
4
|
+
*
|
5
|
+
* Copyright (C) 2014 - Ignacio Casal Quinteiro
|
6
|
+
*
|
7
|
+
* gtk_sourcesourceview 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
|
+
* gtk_sourcesourceview 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 License
|
18
|
+
* along with gtk_sourcesourceview. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
*/
|
20
|
+
|
21
|
+
|
22
|
+
#ifndef __GTK_SOURCE_STYLE_SCHEME_CHOOSER_H__
|
23
|
+
#define __GTK_SOURCE_STYLE_SCHEME_CHOOSER_H__
|
24
|
+
|
25
|
+
#include <gtksourceview/gtksourcetypes.h>
|
26
|
+
|
27
|
+
G_BEGIN_DECLS
|
28
|
+
|
29
|
+
#define GTK_SOURCE_TYPE_STYLE_SCHEME_CHOOSER (gtk_source_style_scheme_chooser_get_type ())
|
30
|
+
#define GTK_SOURCE_STYLE_SCHEME_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_SOURCE_TYPE_STYLE_SCHEME_CHOOSER, GtkSourceStyleSchemeChooser))
|
31
|
+
#define GTK_SOURCE_IS_STYLE_SCHEME_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_SOURCE_TYPE_STYLE_SCHEME_CHOOSER))
|
32
|
+
#define GTK_SOURCE_STYLE_SCHEME_CHOOSER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GTK_SOURCE_TYPE_STYLE_SCHEME_CHOOSER, GtkSourceStyleSchemeChooserInterface))
|
33
|
+
|
34
|
+
typedef struct _GtkSourceStyleSchemeChooser GtkSourceStyleSchemeChooser;
|
35
|
+
typedef struct _GtkSourceStyleSchemeChooserInterface GtkSourceStyleSchemeChooserInterface;
|
36
|
+
|
37
|
+
struct _GtkSourceStyleSchemeChooserInterface
|
38
|
+
{
|
39
|
+
GTypeInterface base_interface;
|
40
|
+
|
41
|
+
/* Methods */
|
42
|
+
GtkSourceStyleScheme * (* get_style_scheme) (GtkSourceStyleSchemeChooser *chooser);
|
43
|
+
|
44
|
+
void (* set_style_scheme) (GtkSourceStyleSchemeChooser *chooser,
|
45
|
+
GtkSourceStyleScheme *scheme);
|
46
|
+
|
47
|
+
/* Padding */
|
48
|
+
gpointer padding[12];
|
49
|
+
};
|
50
|
+
|
51
|
+
GType gtk_source_style_scheme_chooser_get_type (void) G_GNUC_CONST;
|
52
|
+
|
53
|
+
GtkSourceStyleScheme *gtk_source_style_scheme_chooser_get_style_scheme (GtkSourceStyleSchemeChooser *chooser);
|
54
|
+
|
55
|
+
void gtk_source_style_scheme_chooser_set_style_scheme (GtkSourceStyleSchemeChooser *chooser,
|
56
|
+
GtkSourceStyleScheme *scheme);
|
57
|
+
|
58
|
+
G_END_DECLS
|
59
|
+
|
60
|
+
#endif /* __GTK_SOURCE_STYLE_SCHEME_CHOOSER_H__ */
|
@@ -0,0 +1,56 @@
|
|
1
|
+
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*-
|
2
|
+
* gtksourcestyleschemechooserwidget.h
|
3
|
+
* This file is part of gtksourceview
|
4
|
+
*
|
5
|
+
* Copyright (C) 2014 - Christian Hergert
|
6
|
+
* 2014 - Ignacio Casal Quinteiro
|
7
|
+
*
|
8
|
+
* gtksourceview is free software; you can redistribute it and/or
|
9
|
+
* modify it under the terms of the GNU Lesser General Public
|
10
|
+
* License as published by the Free Software Foundation; either
|
11
|
+
* version 2.1 of the License, or (at your option) any later version.
|
12
|
+
*
|
13
|
+
* gtksourceview is distributed in the hope that it will be useful,
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
16
|
+
* Lesser General Public License for more details.
|
17
|
+
*
|
18
|
+
* You should have received a copy of the GNU Lesser General Public License
|
19
|
+
* along with gtksourceview. If not, see <http://www.gnu.org/licenses/>.
|
20
|
+
*/
|
21
|
+
|
22
|
+
#ifndef __GTK_SOURCE_STYLE_SCHEME_CHOOSER_BUTTON_H__
|
23
|
+
#define __GTK_SOURCE_STYLE_SCHEME_CHOOSER_BUTTON_H__
|
24
|
+
|
25
|
+
#include <gtk/gtk.h>
|
26
|
+
|
27
|
+
G_BEGIN_DECLS
|
28
|
+
|
29
|
+
#define GTK_SOURCE_TYPE_STYLE_SCHEME_CHOOSER_BUTTON (gtk_source_style_scheme_chooser_button_get_type())
|
30
|
+
#define GTK_SOURCE_STYLE_SCHEME_CHOOSER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_SOURCE_TYPE_STYLE_SCHEME_CHOOSER_BUTTON, GtkSourceStyleSchemeChooserButton))
|
31
|
+
#define GTK_SOURCE_STYLE_SCHEME_CHOOSER_BUTTON_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_SOURCE_TYPE_STYLE_SCHEME_CHOOSER_BUTTON, GtkSourceStyleSchemeChooserButton const))
|
32
|
+
#define GTK_SOURCE_STYLE_SCHEME_CHOOSER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_SOURCE_TYPE_STYLE_SCHEME_CHOOSER_BUTTON, GtkSourceStyleSchemeChooserButtonClass))
|
33
|
+
#define GTK_SOURCE_IS_STYLE_SCHEME_CHOOSER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_SOURCE_TYPE_STYLE_SCHEME_CHOOSER_BUTTON))
|
34
|
+
#define GTK_SOURCE_IS_STYLE_SCHEME_CHOOSER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_SOURCE_TYPE_STYLE_SCHEME_CHOOSER_BUTTON))
|
35
|
+
#define GTK_SOURCE_STYLE_SCHEME_CHOOSER_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_SOURCE_TYPE_STYLE_SCHEME_CHOOSER_BUTTON, GtkSourceStyleSchemeChooserButtonClass))
|
36
|
+
|
37
|
+
typedef struct _GtkSourceStyleSchemeChooserButton GtkSourceStyleSchemeChooserButton;
|
38
|
+
typedef struct _GtkSourceStyleSchemeChooserButtonClass GtkSourceStyleSchemeChooserButtonClass;
|
39
|
+
|
40
|
+
struct _GtkSourceStyleSchemeChooserButton
|
41
|
+
{
|
42
|
+
GtkButton parent;
|
43
|
+
};
|
44
|
+
|
45
|
+
struct _GtkSourceStyleSchemeChooserButtonClass
|
46
|
+
{
|
47
|
+
GtkButtonClass parent;
|
48
|
+
};
|
49
|
+
|
50
|
+
GType gtk_source_style_scheme_chooser_button_get_type (void);
|
51
|
+
|
52
|
+
GtkWidget *gtk_source_style_scheme_chooser_button_new (void);
|
53
|
+
|
54
|
+
G_END_DECLS
|
55
|
+
|
56
|
+
#endif /* __GTK_SOURCE_STYLE_SCHEME_CHOOSER_BUTTON_H__ */
|
@@ -0,0 +1,56 @@
|
|
1
|
+
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*-
|
2
|
+
* gtksourcestyleschemechooserwidget.h
|
3
|
+
* This file is part of gtksourceview
|
4
|
+
*
|
5
|
+
* Copyright (C) 2014 - Christian Hergert
|
6
|
+
* 2014 - Ignacio Casal Quinteiro
|
7
|
+
*
|
8
|
+
* gtksourceview is free software; you can redistribute it and/or
|
9
|
+
* modify it under the terms of the GNU Lesser General Public
|
10
|
+
* License as published by the Free Software Foundation; either
|
11
|
+
* version 2.1 of the License, or (at your option) any later version.
|
12
|
+
*
|
13
|
+
* gtksourceview is distributed in the hope that it will be useful,
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
16
|
+
* Lesser General Public License for more details.
|
17
|
+
*
|
18
|
+
* You should have received a copy of the GNU Lesser General Public License
|
19
|
+
* along with gtksourceview. If not, see <http://www.gnu.org/licenses/>.
|
20
|
+
*/
|
21
|
+
|
22
|
+
#ifndef GTK_SOURCE_STYLE_SCHEME_CHOOSER_WIDGET_H
|
23
|
+
#define GTK_SOURCE_STYLE_SCHEME_CHOOSER_WIDGET_H
|
24
|
+
|
25
|
+
#include <gtk/gtk.h>
|
26
|
+
|
27
|
+
G_BEGIN_DECLS
|
28
|
+
|
29
|
+
#define GTK_SOURCE_TYPE_STYLE_SCHEME_CHOOSER_WIDGET (gtk_source_style_scheme_chooser_widget_get_type())
|
30
|
+
#define GTK_SOURCE_STYLE_SCHEME_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_SOURCE_TYPE_STYLE_SCHEME_CHOOSER_WIDGET, GtkSourceStyleSchemeChooserWidget))
|
31
|
+
#define GTK_SOURCE_STYLE_SCHEME_CHOOSER_WIDGET_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_SOURCE_TYPE_STYLE_SCHEME_CHOOSER_WIDGET, GtkSourceStyleSchemeChooserWidget const))
|
32
|
+
#define GTK_SOURCE_STYLE_SCHEME_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_SOURCE_TYPE_STYLE_SCHEME_CHOOSER_WIDGET, GtkSourceStyleSchemeChooserWidgetClass))
|
33
|
+
#define GTK_SOURCE_IS_STYLE_SCHEME_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_SOURCE_TYPE_STYLE_SCHEME_CHOOSER_WIDGET))
|
34
|
+
#define GTK_SOURCE_IS_STYLE_SCHEME_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_SOURCE_TYPE_STYLE_SCHEME_CHOOSER_WIDGET))
|
35
|
+
#define GTK_SOURCE_STYLE_SCHEME_CHOOSER_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_SOURCE_TYPE_STYLE_SCHEME_CHOOSER_WIDGET, GtkSourceStyleSchemeChooserWidgetClass))
|
36
|
+
|
37
|
+
typedef struct _GtkSourceStyleSchemeChooserWidget GtkSourceStyleSchemeChooserWidget;
|
38
|
+
typedef struct _GtkSourceStyleSchemeChooserWidgetClass GtkSourceStyleSchemeChooserWidgetClass;
|
39
|
+
|
40
|
+
struct _GtkSourceStyleSchemeChooserWidget
|
41
|
+
{
|
42
|
+
GtkBin parent;
|
43
|
+
};
|
44
|
+
|
45
|
+
struct _GtkSourceStyleSchemeChooserWidgetClass
|
46
|
+
{
|
47
|
+
GtkBinClass parent;
|
48
|
+
};
|
49
|
+
|
50
|
+
GType gtk_source_style_scheme_chooser_widget_get_type (void);
|
51
|
+
|
52
|
+
GtkWidget *gtk_source_style_scheme_chooser_widget_new (void);
|
53
|
+
|
54
|
+
G_END_DECLS
|
55
|
+
|
56
|
+
#endif /* GTK_SOURCE_STYLE_SCHEME_CHOOSER_WIDGET_H */
|
@@ -96,6 +96,19 @@ typedef enum
|
|
96
96
|
GTK_SOURCE_COMPRESSION_TYPE_GZIP
|
97
97
|
} GtkSourceCompressionType;
|
98
98
|
|
99
|
+
/**
|
100
|
+
* GtkSourceBackgroundPatternType:
|
101
|
+
* @GTK_SOURCE_BACKGROUND_PATTERN_TYPE_NONE: no pattern
|
102
|
+
* @GTK_SOURCE_BACKGROUND_PATTERN_TYPE_GRID: grid pattern
|
103
|
+
*
|
104
|
+
* Since: 3.16
|
105
|
+
*/
|
106
|
+
typedef enum
|
107
|
+
{
|
108
|
+
GTK_SOURCE_BACKGROUND_PATTERN_TYPE_NONE,
|
109
|
+
GTK_SOURCE_BACKGROUND_PATTERN_TYPE_GRID
|
110
|
+
} GtkSourceBackgroundPatternType;
|
111
|
+
|
99
112
|
G_END_DECLS
|
100
113
|
|
101
114
|
#endif /* __GTK_SOURCE_TYPES_H__ */
|
@@ -66,6 +66,11 @@ G_BEGIN_DECLS
|
|
66
66
|
GType gtk_source_compression_type_get_type (void);
|
67
67
|
G_END_DECLS
|
68
68
|
|
69
|
+
G_BEGIN_DECLS
|
70
|
+
#define GTK_SOURCE_TYPE_BACKGROUND_PATTERN_TYPE gtk_source_background_pattern_type_get_type()
|
71
|
+
GType gtk_source_background_pattern_type_get_type (void);
|
72
|
+
G_END_DECLS
|
73
|
+
|
69
74
|
#include <gtksourceview/gtksourceview.h>
|
70
75
|
G_BEGIN_DECLS
|
71
76
|
#define GTK_SOURCE_TYPE_VIEW_GUTTER_POSITION gtk_source_view_gutter_position_get_type()
|