gtksourceview3 2.2.0-x86-mingw32 → 2.2.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/ext/gtksourceview3/extconf.rb +1 -2
- data/ext/gtksourceview3/rbgtksourcegutterrenderertext.c +1 -25
- data/ext/gtksourceview3/rbgtksourceview3conversions.h +7 -0
- data/ext/gtksourceview3/rbgtksourceview3private.h +0 -1
- data/lib/2.0/gtksourceview3.so +0 -0
- data/test/run-test.rb +17 -7
- data/test/test_mark_attributes.rb +1 -1
- data/test/test_source_gutter_renderer.rb +33 -0
- data/test/test_source_language_manager.rb +46 -0
- data/test/test_source_view.rb +34 -0
- data/vendor/local/bin/libgtksourceview-3.0-1.dll +0 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksource.h +4 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcebuffer.h +28 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceencoding.h +54 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcefile.h +115 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcefileloader.h +122 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcefilesaver.h +147 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcegutter.h +3 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcetypes.h +48 -2
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceundomanager.h +1 -3
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceview-typebuiltins.h +33 -0
- 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/ar/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/as/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/be/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/bg/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/bn_IN/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ca/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ca@valencia/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/en_GB/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/fa/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/ga/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/gu/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/hi/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/ja/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/kn/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/ml/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/mr/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/nl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/or/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/pa/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/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/ta/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/te/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/th/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/ug/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/uk/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/vi/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/locale/zh_HK/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 +2211 -330
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceBuffer.html +1682 -983
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletion.html +818 -573
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionContext.html +267 -189
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionInfo.html +209 -157
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionItem.html +247 -167
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionProposal.html +428 -295
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionProvider.html +558 -420
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionWords.html +217 -125
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceEncoding.html +366 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFile.html +563 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFileLoader.html +769 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFileSaver.html +962 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutter.html +341 -196
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRenderer.html +1211 -827
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRendererPixbuf.html +327 -206
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRendererText.html +156 -96
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceLanguage.html +431 -269
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceLanguageManager.html +300 -235
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceMark.html +203 -139
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceMarkAttributes.html +640 -452
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourcePrintCompositor.html +1444 -1114
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceSearchContext.html +794 -573
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceSearchSettings.html +421 -280
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyle.html +232 -99
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleScheme.html +283 -178
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleSchemeManager.html +326 -220
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceUndoManager.html +313 -194
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceView.html +1430 -924
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/annotation-glossary.html +33 -13
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-0.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-10.html +47 -47
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-12.html +39 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-14.html +299 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-4.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-deprecated.html +35 -15
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-full.html +742 -430
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch01.html +31 -19
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch02.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/gtksourceview-3.0-GtkSourceUtils.html +95 -81
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/gtksourceview-3.0.devhelp2 +519 -463
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/index.html +32 -18
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/index.sgml +326 -153
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/lang-reference.html +151 -57
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/lang-tutorial.html +14 -17
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/object-tree.html +42 -37
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/style-reference.html +39 -8
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/style.css +260 -105
- data/vendor/local/share/gtksourceview-3.0/language-specs/actionscript.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/ada.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/ansforth94.lang +729 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/asp.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/automake.lang +3 -2
- data/vendor/local/share/gtksourceview-3.0/language-specs/awk.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/bennugd.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/bluespec.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/boo.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/c.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/cg.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/changelog.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/chdr.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/cmake.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/cobol.lang +536 -345
- data/vendor/local/share/gtksourceview-3.0/language-specs/cpp.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/csharp.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/css.lang +6 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/cuda.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/d.lang +25 -3
- data/vendor/local/share/gtksourceview-3.0/language-specs/def.lang +8 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/desktop.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/diff.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/dosbatch.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/dot.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/dpatch.lang +2 -2
- data/vendor/local/share/gtksourceview-3.0/language-specs/dtd.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/eiffel.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/erlang.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/fcl.lang +1 -3
- data/vendor/local/share/gtksourceview-3.0/language-specs/forth.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/fortran.lang +85 -6
- data/vendor/local/share/gtksourceview-3.0/language-specs/fsharp.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/gdb-log.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/glsl.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/go.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/gtkrc.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/haskell-literate.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/haskell.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/html.lang +238 -137
- data/vendor/local/share/gtksourceview-3.0/language-specs/idl.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/ini.lang +2 -2
- data/vendor/local/share/gtksourceview-3.0/language-specs/j.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/java.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/javascript.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/json.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/latex.lang +389 -133
- data/vendor/local/share/gtksourceview-3.0/language-specs/lex.lang +209 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/libtool.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/llvm.lang +315 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/lua.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/m4.lang +4 -4
- data/vendor/local/share/gtksourceview-3.0/language-specs/makefile.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/mediawiki.lang +16 -12
- data/vendor/local/share/gtksourceview-3.0/language-specs/nemerle.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/netrexx.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/nsis.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/objc.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/objj.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/ocaml.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/ocl.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/ooc.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/opal.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/opencl.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/pascal.lang +12 -12
- data/vendor/local/share/gtksourceview-3.0/language-specs/perl.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/php.lang +15 -15
- data/vendor/local/share/gtksourceview-3.0/language-specs/pkgconfig.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/po.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/prolog.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/protobuf.lang +2 -4
- data/vendor/local/share/gtksourceview-3.0/language-specs/puppet.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/python.lang +62 -3
- data/vendor/local/share/gtksourceview-3.0/language-specs/python3.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/rpmspec.lang +3 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/rst.lang +142 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/ruby.lang +2 -2
- data/vendor/local/share/gtksourceview-3.0/language-specs/scala.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/scheme.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/sh.lang +2 -2
- data/vendor/local/share/gtksourceview-3.0/language-specs/sml.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/sparql.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/sql.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/sweave.lang +67 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/systemverilog.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/tcl.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/vala.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/vbnet.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/verilog.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/vhdl.lang +1 -1
- data/vendor/local/share/gtksourceview-3.0/language-specs/yacc.lang +2 -2
- data/vendor/local/share/gtksourceview-3.0/language-specs/yaml.lang +214 -0
- data/vendor/local/share/gtksourceview-3.0/styles/classic.xml +13 -2
- data/vendor/local/share/gtksourceview-3.0/styles/cobalt.xml +16 -5
- data/vendor/local/share/gtksourceview-3.0/styles/kate.xml +11 -3
- data/vendor/local/share/gtksourceview-3.0/styles/oblivion.xml +14 -4
- data/vendor/local/share/gtksourceview-3.0/styles/solarized-dark.xml +101 -0
- data/vendor/local/share/gtksourceview-3.0/styles/solarized-light.xml +101 -0
- data/vendor/local/share/gtksourceview-3.0/styles/styles.rng +3 -0
- data/vendor/local/share/gtksourceview-3.0/styles/tango.xml +14 -2
- data/vendor/local/share/license/gtksourceview/AUTHORS +1 -0
- data/vendor/local/share/license/gtksourceview/COPYING +415 -251
- metadata +31 -13
- data/lib/1.9/gtksourceview3.so +0 -0
- data/lib/2.1/gtksourceview3.so +0 -0
@@ -8,19 +8,16 @@
|
|
8
8
|
<link rel="up" href="ch01.html" title="API reference">
|
9
9
|
<link rel="prev" href="GtkSourcePrintCompositor.html" title="GtkSourcePrintCompositor">
|
10
10
|
<link rel="next" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.21.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="
|
16
|
-
<td width="100%" align="left">
|
17
|
-
<a href="#" class="shortcut">Top</a>
|
18
|
-
|
19
|
-
<a href="#GtkSourceSearchContext.
|
20
|
-
|
21
|
-
<a href="#GtkSourceSearchContext.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
22
|
-
|
|
23
|
-
<a href="#GtkSourceSearchContext.properties" class="shortcut">Properties</a>
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
|
16
|
+
<td width="100%" align="left" class="shortcuts">
|
17
|
+
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
|
18
|
+
<a href="#GtkSourceSearchContext.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
|
19
|
+
<a href="#GtkSourceSearchContext.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties"> <span class="dim">|</span>
|
20
|
+
<a href="#GtkSourceSearchContext.properties" class="shortcut">Properties</a></span>
|
24
21
|
</td>
|
25
22
|
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
26
23
|
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
@@ -32,864 +29,1088 @@
|
|
32
29
|
<div class="refnamediv"><table width="100%"><tr>
|
33
30
|
<td valign="top">
|
34
31
|
<h2><span class="refentrytitle"><a name="GtkSourceSearchContext.top_of_page"></a>GtkSourceSearchContext</span></h2>
|
35
|
-
<p>GtkSourceSearchContext —
|
32
|
+
<p>GtkSourceSearchContext — Search context</p>
|
36
33
|
</td>
|
37
|
-
<td valign="top" align="right"></td>
|
34
|
+
<td class="gallery_image" valign="top" align="right"></td>
|
38
35
|
</tr></table></div>
|
39
|
-
<div class="
|
40
|
-
<a name="GtkSourceSearchContext.
|
41
|
-
<
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
<
|
48
|
-
|
49
|
-
<a class="link" href="
|
50
|
-
|
51
|
-
<
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
<
|
57
|
-
|
58
|
-
|
59
|
-
<
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
<a
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
<
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
<
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
<
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
<a
|
109
|
-
|
110
|
-
</
|
36
|
+
<div class="refsect1">
|
37
|
+
<a name="GtkSourceSearchContext.functions"></a><h2>Functions</h2>
|
38
|
+
<div class="informaltable"><table width="100%" border="0">
|
39
|
+
<colgroup>
|
40
|
+
<col width="150px" class="functions_return">
|
41
|
+
<col class="functions_name">
|
42
|
+
</colgroup>
|
43
|
+
<tbody>
|
44
|
+
<tr>
|
45
|
+
<td class="function_type">
|
46
|
+
<a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="returnvalue">GtkSourceSearchContext</span></a> *
|
47
|
+
</td>
|
48
|
+
<td class="function_name">
|
49
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-new" title="gtk_source_search_context_new ()">gtk_source_search_context_new</a> <span class="c_punctuation">()</span>
|
50
|
+
</td>
|
51
|
+
</tr>
|
52
|
+
<tr>
|
53
|
+
<td class="function_type">
|
54
|
+
<a class="link" href="GtkSourceBuffer.html" title="GtkSourceBuffer"><span class="returnvalue">GtkSourceBuffer</span></a> *
|
55
|
+
</td>
|
56
|
+
<td class="function_name">
|
57
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-get-buffer" title="gtk_source_search_context_get_buffer ()">gtk_source_search_context_get_buffer</a> <span class="c_punctuation">()</span>
|
58
|
+
</td>
|
59
|
+
</tr>
|
60
|
+
<tr>
|
61
|
+
<td class="function_type">
|
62
|
+
<a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="returnvalue">GtkSourceSearchSettings</span></a> *
|
63
|
+
</td>
|
64
|
+
<td class="function_name">
|
65
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-get-settings" title="gtk_source_search_context_get_settings ()">gtk_source_search_context_get_settings</a> <span class="c_punctuation">()</span>
|
66
|
+
</td>
|
67
|
+
</tr>
|
68
|
+
<tr>
|
69
|
+
<td class="function_type">
|
70
|
+
<span class="returnvalue">void</span>
|
71
|
+
</td>
|
72
|
+
<td class="function_name">
|
73
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-set-settings" title="gtk_source_search_context_set_settings ()">gtk_source_search_context_set_settings</a> <span class="c_punctuation">()</span>
|
74
|
+
</td>
|
75
|
+
</tr>
|
76
|
+
<tr>
|
77
|
+
<td class="function_type">
|
78
|
+
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
79
|
+
</td>
|
80
|
+
<td class="function_name">
|
81
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-get-highlight" title="gtk_source_search_context_get_highlight ()">gtk_source_search_context_get_highlight</a> <span class="c_punctuation">()</span>
|
82
|
+
</td>
|
83
|
+
</tr>
|
84
|
+
<tr>
|
85
|
+
<td class="function_type">
|
86
|
+
<span class="returnvalue">void</span>
|
87
|
+
</td>
|
88
|
+
<td class="function_name">
|
89
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-set-highlight" title="gtk_source_search_context_set_highlight ()">gtk_source_search_context_set_highlight</a> <span class="c_punctuation">()</span>
|
90
|
+
</td>
|
91
|
+
</tr>
|
92
|
+
<tr>
|
93
|
+
<td class="function_type">
|
94
|
+
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
|
95
|
+
</td>
|
96
|
+
<td class="function_name">
|
97
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-get-occurrences-count" title="gtk_source_search_context_get_occurrences_count ()">gtk_source_search_context_get_occurrences_count</a> <span class="c_punctuation">()</span>
|
98
|
+
</td>
|
99
|
+
</tr>
|
100
|
+
<tr>
|
101
|
+
<td class="function_type">
|
102
|
+
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
|
103
|
+
</td>
|
104
|
+
<td class="function_name">
|
105
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-get-occurrence-position" title="gtk_source_search_context_get_occurrence_position ()">gtk_source_search_context_get_occurrence_position</a> <span class="c_punctuation">()</span>
|
106
|
+
</td>
|
107
|
+
</tr>
|
108
|
+
<tr>
|
109
|
+
<td class="function_type">
|
110
|
+
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
111
|
+
</td>
|
112
|
+
<td class="function_name">
|
113
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-forward" title="gtk_source_search_context_forward ()">gtk_source_search_context_forward</a> <span class="c_punctuation">()</span>
|
114
|
+
</td>
|
115
|
+
</tr>
|
116
|
+
<tr>
|
117
|
+
<td class="function_type">
|
118
|
+
<span class="returnvalue">void</span>
|
119
|
+
</td>
|
120
|
+
<td class="function_name">
|
121
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-forward-async" title="gtk_source_search_context_forward_async ()">gtk_source_search_context_forward_async</a> <span class="c_punctuation">()</span>
|
122
|
+
</td>
|
123
|
+
</tr>
|
124
|
+
<tr>
|
125
|
+
<td class="function_type">
|
126
|
+
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
127
|
+
</td>
|
128
|
+
<td class="function_name">
|
129
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-forward-finish" title="gtk_source_search_context_forward_finish ()">gtk_source_search_context_forward_finish</a> <span class="c_punctuation">()</span>
|
130
|
+
</td>
|
131
|
+
</tr>
|
132
|
+
<tr>
|
133
|
+
<td class="function_type">
|
134
|
+
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
135
|
+
</td>
|
136
|
+
<td class="function_name">
|
137
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-backward" title="gtk_source_search_context_backward ()">gtk_source_search_context_backward</a> <span class="c_punctuation">()</span>
|
138
|
+
</td>
|
139
|
+
</tr>
|
140
|
+
<tr>
|
141
|
+
<td class="function_type">
|
142
|
+
<span class="returnvalue">void</span>
|
143
|
+
</td>
|
144
|
+
<td class="function_name">
|
145
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-backward-async" title="gtk_source_search_context_backward_async ()">gtk_source_search_context_backward_async</a> <span class="c_punctuation">()</span>
|
146
|
+
</td>
|
147
|
+
</tr>
|
148
|
+
<tr>
|
149
|
+
<td class="function_type">
|
150
|
+
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
151
|
+
</td>
|
152
|
+
<td class="function_name">
|
153
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-backward-finish" title="gtk_source_search_context_backward_finish ()">gtk_source_search_context_backward_finish</a> <span class="c_punctuation">()</span>
|
154
|
+
</td>
|
155
|
+
</tr>
|
156
|
+
<tr>
|
157
|
+
<td class="function_type">
|
158
|
+
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
159
|
+
</td>
|
160
|
+
<td class="function_name">
|
161
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-replace" title="gtk_source_search_context_replace ()">gtk_source_search_context_replace</a> <span class="c_punctuation">()</span>
|
162
|
+
</td>
|
163
|
+
</tr>
|
164
|
+
<tr>
|
165
|
+
<td class="function_type">
|
166
|
+
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
167
|
+
</td>
|
168
|
+
<td class="function_name">
|
169
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-replace-all" title="gtk_source_search_context_replace_all ()">gtk_source_search_context_replace_all</a> <span class="c_punctuation">()</span>
|
170
|
+
</td>
|
171
|
+
</tr>
|
172
|
+
<tr>
|
173
|
+
<td class="function_type">
|
174
|
+
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> *
|
175
|
+
</td>
|
176
|
+
<td class="function_name">
|
177
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-get-regex-error" title="gtk_source_search_context_get_regex_error ()">gtk_source_search_context_get_regex_error</a> <span class="c_punctuation">()</span>
|
178
|
+
</td>
|
179
|
+
</tr>
|
180
|
+
</tbody>
|
181
|
+
</table></div>
|
182
|
+
</div>
|
183
|
+
<div class="refsect1">
|
184
|
+
<a name="GtkSourceSearchContext.properties"></a><h2>Properties</h2>
|
185
|
+
<div class="informaltable"><table border="0">
|
186
|
+
<colgroup>
|
187
|
+
<col width="150px" class="properties_type">
|
188
|
+
<col width="300px" class="properties_name">
|
189
|
+
<col width="200px" class="properties_flags">
|
190
|
+
</colgroup>
|
191
|
+
<tbody>
|
192
|
+
<tr>
|
193
|
+
<td class="property_type">
|
194
|
+
<a class="link" href="GtkSourceBuffer.html" title="GtkSourceBuffer"><span class="type">GtkSourceBuffer</span></a> *</td>
|
195
|
+
<td class="property_name"><a class="link" href="GtkSourceSearchContext.html#GtkSourceSearchContext--buffer" title="The “buffer” property">buffer</a></td>
|
196
|
+
<td class="property_flags">Read / Write / Construct Only</td>
|
197
|
+
</tr>
|
198
|
+
<tr>
|
199
|
+
<td class="property_type"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
|
200
|
+
<td class="property_name"><a class="link" href="GtkSourceSearchContext.html#GtkSourceSearchContext--highlight" title="The “highlight” property">highlight</a></td>
|
201
|
+
<td class="property_flags">Read / Write / Construct</td>
|
202
|
+
</tr>
|
203
|
+
<tr>
|
204
|
+
<td class="property_type"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
205
|
+
<td class="property_name"><a class="link" href="GtkSourceSearchContext.html#GtkSourceSearchContext--occurrences-count" title="The “occurrences-count” property">occurrences-count</a></td>
|
206
|
+
<td class="property_flags">Read</td>
|
207
|
+
</tr>
|
208
|
+
<tr>
|
209
|
+
<td class="property_type"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a></td>
|
210
|
+
<td class="property_name"><a class="link" href="GtkSourceSearchContext.html#GtkSourceSearchContext--regex-error" title="The “regex-error” property">regex-error</a></td>
|
211
|
+
<td class="property_flags">Read</td>
|
212
|
+
</tr>
|
213
|
+
<tr>
|
214
|
+
<td class="property_type">
|
215
|
+
<a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="type">GtkSourceSearchSettings</span></a> *</td>
|
216
|
+
<td class="property_name"><a class="link" href="GtkSourceSearchContext.html#GtkSourceSearchContext--settings" title="The “settings” property">settings</a></td>
|
217
|
+
<td class="property_flags">Read / Write / Construct</td>
|
218
|
+
</tr>
|
219
|
+
</tbody>
|
220
|
+
</table></div>
|
221
|
+
</div>
|
222
|
+
<div class="refsect1">
|
223
|
+
<a name="GtkSourceSearchContext.other"></a><h2>Types and Values</h2>
|
224
|
+
<div class="informaltable"><table width="100%" border="0">
|
225
|
+
<colgroup>
|
226
|
+
<col width="150px" class="name">
|
227
|
+
<col class="description">
|
228
|
+
</colgroup>
|
229
|
+
<tbody><tr>
|
230
|
+
<td class="datatype_keyword"> </td>
|
231
|
+
<td class="function_name"><a class="link" href="GtkSourceSearchContext.html#GtkSourceSearchContext-struct" title="GtkSourceSearchContext">GtkSourceSearchContext</a></td>
|
232
|
+
</tr></tbody>
|
233
|
+
</table></div>
|
111
234
|
</div>
|
112
235
|
<div class="refsect1">
|
113
236
|
<a name="GtkSourceSearchContext.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
114
|
-
<pre class="
|
115
|
-
|
116
|
-
+----GtkSourceSearchContext
|
237
|
+
<pre class="screen"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
|
238
|
+
<span class="lineart">╰──</span> GtkSourceSearchContext
|
117
239
|
</pre>
|
118
240
|
</div>
|
119
241
|
<div class="refsect1">
|
120
|
-
<a name="GtkSourceSearchContext.
|
121
|
-
<pre class="synopsis"
|
122
|
-
"<a class="link" href="GtkSourceSearchContext.html#GtkSourceSearchContext--buffer" title='The "buffer" property'>buffer</a>" <a class="link" href="GtkSourceBuffer.html" title="GtkSourceBuffer"><span class="type">GtkSourceBuffer</span></a>* : Read / Write / Construct Only
|
123
|
-
"<a class="link" href="GtkSourceSearchContext.html#GtkSourceSearchContext--highlight" title='The "highlight" property'>highlight</a>" <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write / Construct
|
124
|
-
"<a class="link" href="GtkSourceSearchContext.html#GtkSourceSearchContext--occurrences-count" title='The "occurrences-count" property'>occurrences-count</a>" <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read
|
125
|
-
"<a class="link" href="GtkSourceSearchContext.html#GtkSourceSearchContext--regex-error" title='The "regex-error" property'>regex-error</a>" <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> : Read
|
126
|
-
"<a class="link" href="GtkSourceSearchContext.html#GtkSourceSearchContext--settings" title='The "settings" property'>settings</a>" <a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="type">GtkSourceSearchSettings</span></a>* : Read / Write / Construct
|
242
|
+
<a name="GtkSourceSearchContext.includes"></a><h2>Includes</h2>
|
243
|
+
<pre class="synopsis">#include <gtksourceview/gtksource.h>
|
127
244
|
</pre>
|
128
245
|
</div>
|
129
246
|
<div class="refsect1">
|
130
247
|
<a name="GtkSourceSearchContext.description"></a><h2>Description</h2>
|
131
|
-
<p>
|
132
|
-
A <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a> is used for the search and replace in a
|
248
|
+
<p>A <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a> is used for the search and replace in a
|
133
249
|
<a class="link" href="GtkSourceBuffer.html" title="GtkSourceBuffer"><span class="type">GtkSourceBuffer</span></a>. The search settings are represented by a
|
134
|
-
<a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="type">GtkSourceSearchSettings</span></a> object
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
<
|
140
|
-
|
141
|
-
<
|
142
|
-
certain match, use <a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-get-occurrence-position" title="gtk_source_search_context_get_occurrence_position ()"><code class="function">gtk_source_search_context_get_occurrence_position()</code></a>.
|
143
|
-
</p>
|
144
|
-
<p>
|
145
|
-
The buffer is scanned asynchronously, so it doesn't block the user interface.
|
250
|
+
<a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="type">GtkSourceSearchSettings</span></a> object. There can be a many-to-many relationship
|
251
|
+
between buffers and search settings, with the search contexts in-between: a
|
252
|
+
search settings object can be shared between several search contexts; and a
|
253
|
+
buffer can contain several search contexts at the same time.</p>
|
254
|
+
<p>The total number of search occurrences can be retrieved with
|
255
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-get-occurrences-count" title="gtk_source_search_context_get_occurrences_count ()"><code class="function">gtk_source_search_context_get_occurrences_count()</code></a>. To know the position of a
|
256
|
+
certain match, use <a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-get-occurrence-position" title="gtk_source_search_context_get_occurrence_position ()"><code class="function">gtk_source_search_context_get_occurrence_position()</code></a>.</p>
|
257
|
+
<p>The buffer is scanned asynchronously, so it doesn't block the user interface.
|
146
258
|
For each search, the buffer is scanned at most once. After that, navigating
|
147
|
-
through the occurrences doesn't require to re-scan the buffer entirely
|
148
|
-
|
149
|
-
<
|
150
|
-
To search forward, use <a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-forward" title="gtk_source_search_context_forward ()"><code class="function">gtk_source_search_context_forward()</code></a> or
|
151
|
-
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-forward-async" title="gtk_source_search_context_forward_async ()"><code class="function">gtk_source_search_context_forward_async()</code></a> for the asynchronous version.
|
259
|
+
through the occurrences doesn't require to re-scan the buffer entirely.</p>
|
260
|
+
<p>To search forward, use <a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-forward" title="gtk_source_search_context_forward ()"><code class="function">gtk_source_search_context_forward()</code></a> or
|
261
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-forward-async" title="gtk_source_search_context_forward_async ()"><code class="function">gtk_source_search_context_forward_async()</code></a> for the asynchronous version.
|
152
262
|
The backward search is done similarly. To replace a search match, or all
|
153
|
-
matches, use <a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-replace" title="gtk_source_search_context_replace
|
154
|
-
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-replace-all" title="gtk_source_search_context_replace_all
|
155
|
-
|
156
|
-
<
|
157
|
-
The search occurrences are highlighted by default. To disable it, use
|
158
|
-
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-set-highlight" title="gtk_source_search_context_set_highlight ()"><code class="function">gtk_source_search_context_set_highlight()</code></a>. You can enable the search
|
263
|
+
matches, use <a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-replace" title="gtk_source_search_context_replace ()"><code class="function">gtk_source_search_context_replace()</code></a> and
|
264
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-replace-all" title="gtk_source_search_context_replace_all ()"><code class="function">gtk_source_search_context_replace_all()</code></a>.</p>
|
265
|
+
<p>The search occurrences are highlighted by default. To disable it, use
|
266
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-set-highlight" title="gtk_source_search_context_set_highlight ()"><code class="function">gtk_source_search_context_set_highlight()</code></a>. You can enable the search
|
159
267
|
highlighting for several <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>s attached to the
|
160
268
|
same buffer. But currently, the same highlighting style is applied.
|
161
|
-
Note that the <a class="link" href="GtkSourceSearchContext.html#GtkSourceSearchContext--highlight" title=
|
269
|
+
Note that the <a class="link" href="GtkSourceSearchContext.html#GtkSourceSearchContext--highlight" title="The “highlight” property"><span class="type">“highlight”</span></a> property is in the
|
162
270
|
<a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a> class, not <a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="type">GtkSourceSearchSettings</span></a>. The purpose is
|
163
|
-
to bind the appearance settings to only one buffer
|
164
|
-
<a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="type">GtkSourceSearchSettings</span></a> object can be bound to several buffers
|
165
|
-
|
166
|
-
|
167
|
-
|
271
|
+
to bind the appearance settings to only one buffer (a
|
272
|
+
<a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="type">GtkSourceSearchSettings</span></a> object can be bound indirectly to several buffers).</p>
|
273
|
+
<p>The concept of "current match" doesn't exist yet. A way to highlight
|
274
|
+
differently the current match is to select it.</p>
|
275
|
+
<p>A search occurrence's position doesn't depend on the cursor position or other
|
276
|
+
parameters. Take for instance the buffer "aaaa" with the search text "aa".
|
277
|
+
The two occurrences are at positions [0:2] and [2:4]. If you begin to search
|
278
|
+
at position 1, you will get the occurrence [2:4], not [1:3]. This is a
|
279
|
+
prerequisite for regular expression searches. The pattern ".*" matches the
|
280
|
+
entire line. If the cursor is at the middle of the line, you don't want the
|
281
|
+
rest of the line as the occurrence, you want an entire line. (As a side note,
|
282
|
+
regular expression searches can also match multiple lines.)</p>
|
283
|
+
<p>In the GtkSourceView source code, there is an example of how to use the
|
168
284
|
search and replace API: see the tests/test-search.c file. It is a mini
|
169
|
-
application for the search and replace, with a basic user interface
|
170
|
-
</p>
|
285
|
+
application for the search and replace, with a basic user interface.</p>
|
171
286
|
</div>
|
172
287
|
<div class="refsect1">
|
173
|
-
<a name="GtkSourceSearchContext.
|
174
|
-
<div class="refsect2">
|
175
|
-
<a name="GtkSourceSearchContext-struct"></a><h3>GtkSourceSearchContext</h3>
|
176
|
-
<pre class="programlisting">typedef struct _GtkSourceSearchContext GtkSourceSearchContext;</pre>
|
177
|
-
</div>
|
178
|
-
<hr>
|
288
|
+
<a name="GtkSourceSearchContext.functions_details"></a><h2>Functions</h2>
|
179
289
|
<div class="refsect2">
|
180
|
-
<a name="gtk-source-search-context-new"></a><h3>gtk_source_search_context_new
|
181
|
-
<pre class="programlisting"><a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="returnvalue">GtkSourceSearchContext</span></a>
|
182
|
-
|
183
|
-
<
|
184
|
-
Creates a new search context, associated with <em class="parameter"><code>buffer</code></em
|
185
|
-
|
290
|
+
<a name="gtk-source-search-context-new"></a><h3>gtk_source_search_context_new ()</h3>
|
291
|
+
<pre class="programlisting"><a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="returnvalue">GtkSourceSearchContext</span></a> *
|
292
|
+
gtk_source_search_context_new (<em class="parameter"><code><a class="link" href="GtkSourceBuffer.html" title="GtkSourceBuffer"><span class="type">GtkSourceBuffer</span></a> *buffer</code></em>,
|
293
|
+
<em class="parameter"><code><a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="type">GtkSourceSearchSettings</span></a> *settings</code></em>);</pre>
|
294
|
+
<p>Creates a new search context, associated with <em class="parameter"><code>buffer</code></em>
|
295
|
+
, and customized with
|
296
|
+
<em class="parameter"><code>settings</code></em>
|
297
|
+
. If <em class="parameter"><code>settings</code></em>
|
298
|
+
is <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, a new <a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="type">GtkSourceSearchSettings</span></a> object will
|
186
299
|
be created, that you can retrieve with
|
187
|
-
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-get-settings" title="gtk_source_search_context_get_settings
|
188
|
-
|
189
|
-
<
|
300
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-get-settings" title="gtk_source_search_context_get_settings ()"><code class="function">gtk_source_search_context_get_settings()</code></a>.</p>
|
301
|
+
<div class="refsect3">
|
302
|
+
<a name="id-1.2.23.9.2.5"></a><h4>Parameters</h4>
|
303
|
+
<div class="informaltable"><table width="100%" border="0">
|
190
304
|
<colgroup>
|
191
|
-
<col
|
192
|
-
<col>
|
305
|
+
<col width="150px" class="parameters_name">
|
306
|
+
<col class="parameters_description">
|
307
|
+
<col width="200px" class="parameters_annotations">
|
193
308
|
</colgroup>
|
194
309
|
<tbody>
|
195
310
|
<tr>
|
196
|
-
<td
|
197
|
-
<td>a <a class="link" href="GtkSourceBuffer.html" title="GtkSourceBuffer"><span class="type">GtkSourceBuffer</span></a>.</td>
|
198
|
-
</
|
199
|
-
<tr>
|
200
|
-
<td><p><span class="term"><em class="parameter"><code>settings</code></em> :</span></p></td>
|
201
|
-
<td>a <a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="type">GtkSourceSearchSettings</span></a>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
|
202
|
-
</td>
|
311
|
+
<td class="parameter_name"><p>buffer</p></td>
|
312
|
+
<td class="parameter_description"><p>a <a class="link" href="GtkSourceBuffer.html" title="GtkSourceBuffer"><span class="type">GtkSourceBuffer</span></a>.</p></td>
|
313
|
+
<td class="parameter_annotations"> </td>
|
203
314
|
</tr>
|
204
315
|
<tr>
|
205
|
-
<td
|
206
|
-
<td>a
|
316
|
+
<td class="parameter_name"><p>settings</p></td>
|
317
|
+
<td class="parameter_description"><p> a <a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="type">GtkSourceSearchSettings</span></a>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
318
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
207
319
|
</tr>
|
208
320
|
</tbody>
|
209
321
|
</table></div>
|
322
|
+
</div>
|
323
|
+
<div class="refsect3">
|
324
|
+
<a name="id-1.2.23.9.2.6"></a><h4>Returns</h4>
|
325
|
+
<p> a new search context.</p>
|
326
|
+
<p></p>
|
327
|
+
</div>
|
210
328
|
<p class="since">Since 3.10</p>
|
211
329
|
</div>
|
212
330
|
<hr>
|
213
331
|
<div class="refsect2">
|
214
|
-
<a name="gtk-source-search-context-get-buffer"></a><h3>gtk_source_search_context_get_buffer
|
215
|
-
<pre class="programlisting"><a class="link" href="GtkSourceBuffer.html" title="GtkSourceBuffer"><span class="returnvalue">GtkSourceBuffer</span></a>
|
216
|
-
|
217
|
-
<div class="
|
332
|
+
<a name="gtk-source-search-context-get-buffer"></a><h3>gtk_source_search_context_get_buffer ()</h3>
|
333
|
+
<pre class="programlisting"><a class="link" href="GtkSourceBuffer.html" title="GtkSourceBuffer"><span class="returnvalue">GtkSourceBuffer</span></a> *
|
334
|
+
gtk_source_search_context_get_buffer (<em class="parameter"><code><a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a> *search</code></em>);</pre>
|
335
|
+
<div class="refsect3">
|
336
|
+
<a name="id-1.2.23.9.3.4"></a><h4>Parameters</h4>
|
337
|
+
<div class="informaltable"><table width="100%" border="0">
|
218
338
|
<colgroup>
|
219
|
-
<col
|
220
|
-
<col>
|
339
|
+
<col width="150px" class="parameters_name">
|
340
|
+
<col class="parameters_description">
|
341
|
+
<col width="200px" class="parameters_annotations">
|
221
342
|
</colgroup>
|
222
|
-
<tbody>
|
223
|
-
<
|
224
|
-
<td><p
|
225
|
-
<td
|
226
|
-
</tr>
|
227
|
-
<tr>
|
228
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
229
|
-
<td>the associated buffer. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
|
230
|
-
</td>
|
231
|
-
</tr>
|
232
|
-
</tbody>
|
343
|
+
<tbody><tr>
|
344
|
+
<td class="parameter_name"><p>search</p></td>
|
345
|
+
<td class="parameter_description"><p>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</p></td>
|
346
|
+
<td class="parameter_annotations"> </td>
|
347
|
+
</tr></tbody>
|
233
348
|
</table></div>
|
349
|
+
</div>
|
350
|
+
<div class="refsect3">
|
351
|
+
<a name="id-1.2.23.9.3.5"></a><h4>Returns</h4>
|
352
|
+
<p> the associated buffer. </p>
|
353
|
+
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
354
|
+
</div>
|
234
355
|
<p class="since">Since 3.10</p>
|
235
356
|
</div>
|
236
357
|
<hr>
|
237
358
|
<div class="refsect2">
|
238
|
-
<a name="gtk-source-search-context-get-settings"></a><h3>gtk_source_search_context_get_settings
|
239
|
-
<pre class="programlisting"><a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="returnvalue">GtkSourceSearchSettings</span></a>
|
240
|
-
|
241
|
-
<
|
359
|
+
<a name="gtk-source-search-context-get-settings"></a><h3>gtk_source_search_context_get_settings ()</h3>
|
360
|
+
<pre class="programlisting"><a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="returnvalue">GtkSourceSearchSettings</span></a> *
|
361
|
+
gtk_source_search_context_get_settings
|
362
|
+
(<em class="parameter"><code><a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a> *search</code></em>);</pre>
|
363
|
+
<div class="refsect3">
|
364
|
+
<a name="id-1.2.23.9.4.4"></a><h4>Parameters</h4>
|
365
|
+
<div class="informaltable"><table width="100%" border="0">
|
242
366
|
<colgroup>
|
243
|
-
<col
|
244
|
-
<col>
|
367
|
+
<col width="150px" class="parameters_name">
|
368
|
+
<col class="parameters_description">
|
369
|
+
<col width="200px" class="parameters_annotations">
|
245
370
|
</colgroup>
|
246
|
-
<tbody>
|
247
|
-
<
|
248
|
-
<td><p
|
249
|
-
<td
|
250
|
-
</tr>
|
251
|
-
<tr>
|
252
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
253
|
-
<td>the search settings. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
|
254
|
-
</td>
|
255
|
-
</tr>
|
256
|
-
</tbody>
|
371
|
+
<tbody><tr>
|
372
|
+
<td class="parameter_name"><p>search</p></td>
|
373
|
+
<td class="parameter_description"><p>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</p></td>
|
374
|
+
<td class="parameter_annotations"> </td>
|
375
|
+
</tr></tbody>
|
257
376
|
</table></div>
|
377
|
+
</div>
|
378
|
+
<div class="refsect3">
|
379
|
+
<a name="id-1.2.23.9.4.5"></a><h4>Returns</h4>
|
380
|
+
<p> the search settings. </p>
|
381
|
+
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
382
|
+
</div>
|
258
383
|
<p class="since">Since 3.10</p>
|
259
384
|
</div>
|
260
385
|
<hr>
|
261
386
|
<div class="refsect2">
|
262
|
-
<a name="gtk-source-search-context-set-settings"></a><h3>gtk_source_search_context_set_settings
|
263
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
264
|
-
|
265
|
-
|
266
|
-
<
|
267
|
-
Associate a <a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="type">GtkSourceSearchSettings</span></a> with the search context. If <em class="parameter"><code>settings</code></em>
|
268
|
-
|
269
|
-
</p>
|
270
|
-
<p>
|
271
|
-
|
272
|
-
|
273
|
-
<
|
387
|
+
<a name="gtk-source-search-context-set-settings"></a><h3>gtk_source_search_context_set_settings ()</h3>
|
388
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
389
|
+
gtk_source_search_context_set_settings
|
390
|
+
(<em class="parameter"><code><a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a> *search</code></em>,
|
391
|
+
<em class="parameter"><code><a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="type">GtkSourceSearchSettings</span></a> *settings</code></em>);</pre>
|
392
|
+
<p>Associate a <a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="type">GtkSourceSearchSettings</span></a> with the search context. If <em class="parameter"><code>settings</code></em>
|
393
|
+
is
|
394
|
+
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, a new one will be created.</p>
|
395
|
+
<p>The search context holds a reference to <em class="parameter"><code>settings</code></em>
|
396
|
+
.</p>
|
397
|
+
<div class="refsect3">
|
398
|
+
<a name="id-1.2.23.9.5.6"></a><h4>Parameters</h4>
|
399
|
+
<div class="informaltable"><table width="100%" border="0">
|
274
400
|
<colgroup>
|
275
|
-
<col
|
276
|
-
<col>
|
401
|
+
<col width="150px" class="parameters_name">
|
402
|
+
<col class="parameters_description">
|
403
|
+
<col width="200px" class="parameters_annotations">
|
277
404
|
</colgroup>
|
278
405
|
<tbody>
|
279
406
|
<tr>
|
280
|
-
<td
|
281
|
-
<td>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</td>
|
407
|
+
<td class="parameter_name"><p>search</p></td>
|
408
|
+
<td class="parameter_description"><p>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</p></td>
|
409
|
+
<td class="parameter_annotations"> </td>
|
282
410
|
</tr>
|
283
411
|
<tr>
|
284
|
-
<td
|
285
|
-
<td>the new <a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="type">GtkSourceSearchSettings</span></a>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
|
286
|
-
</td>
|
412
|
+
<td class="parameter_name"><p>settings</p></td>
|
413
|
+
<td class="parameter_description"><p> the new <a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="type">GtkSourceSearchSettings</span></a>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
414
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
287
415
|
</tr>
|
288
416
|
</tbody>
|
289
417
|
</table></div>
|
418
|
+
</div>
|
290
419
|
<p class="since">Since 3.10</p>
|
291
420
|
</div>
|
292
421
|
<hr>
|
293
422
|
<div class="refsect2">
|
294
|
-
<a name="gtk-source-search-context-get-highlight"></a><h3>gtk_source_search_context_get_highlight
|
295
|
-
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
296
|
-
|
297
|
-
<
|
423
|
+
<a name="gtk-source-search-context-get-highlight"></a><h3>gtk_source_search_context_get_highlight ()</h3>
|
424
|
+
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
425
|
+
gtk_source_search_context_get_highlight
|
426
|
+
(<em class="parameter"><code><a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a> *search</code></em>);</pre>
|
427
|
+
<div class="refsect3">
|
428
|
+
<a name="id-1.2.23.9.6.4"></a><h4>Parameters</h4>
|
429
|
+
<div class="informaltable"><table width="100%" border="0">
|
298
430
|
<colgroup>
|
299
|
-
<col
|
300
|
-
<col>
|
431
|
+
<col width="150px" class="parameters_name">
|
432
|
+
<col class="parameters_description">
|
433
|
+
<col width="200px" class="parameters_annotations">
|
301
434
|
</colgroup>
|
302
|
-
<tbody>
|
303
|
-
<
|
304
|
-
<td><p
|
305
|
-
<td
|
306
|
-
</tr>
|
307
|
-
<tr>
|
308
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
309
|
-
<td>whether to highlight the search occurrences.</td>
|
310
|
-
</tr>
|
311
|
-
</tbody>
|
435
|
+
<tbody><tr>
|
436
|
+
<td class="parameter_name"><p>search</p></td>
|
437
|
+
<td class="parameter_description"><p>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</p></td>
|
438
|
+
<td class="parameter_annotations"> </td>
|
439
|
+
</tr></tbody>
|
312
440
|
</table></div>
|
441
|
+
</div>
|
442
|
+
<div class="refsect3">
|
443
|
+
<a name="id-1.2.23.9.6.5"></a><h4>Returns</h4>
|
444
|
+
<p> whether to highlight the search occurrences.</p>
|
445
|
+
<p></p>
|
446
|
+
</div>
|
313
447
|
<p class="since">Since 3.10</p>
|
314
448
|
</div>
|
315
449
|
<hr>
|
316
450
|
<div class="refsect2">
|
317
|
-
<a name="gtk-source-search-context-set-highlight"></a><h3>gtk_source_search_context_set_highlight
|
318
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
319
|
-
|
320
|
-
|
321
|
-
<
|
322
|
-
Enables or disables the search occurrences highlighting
|
323
|
-
|
324
|
-
<
|
451
|
+
<a name="gtk-source-search-context-set-highlight"></a><h3>gtk_source_search_context_set_highlight ()</h3>
|
452
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
453
|
+
gtk_source_search_context_set_highlight
|
454
|
+
(<em class="parameter"><code><a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a> *search</code></em>,
|
455
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> highlight</code></em>);</pre>
|
456
|
+
<p>Enables or disables the search occurrences highlighting.</p>
|
457
|
+
<div class="refsect3">
|
458
|
+
<a name="id-1.2.23.9.7.5"></a><h4>Parameters</h4>
|
459
|
+
<div class="informaltable"><table width="100%" border="0">
|
325
460
|
<colgroup>
|
326
|
-
<col
|
327
|
-
<col>
|
461
|
+
<col width="150px" class="parameters_name">
|
462
|
+
<col class="parameters_description">
|
463
|
+
<col width="200px" class="parameters_annotations">
|
328
464
|
</colgroup>
|
329
465
|
<tbody>
|
330
466
|
<tr>
|
331
|
-
<td
|
332
|
-
<td>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</td>
|
467
|
+
<td class="parameter_name"><p>search</p></td>
|
468
|
+
<td class="parameter_description"><p>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</p></td>
|
469
|
+
<td class="parameter_annotations"> </td>
|
333
470
|
</tr>
|
334
471
|
<tr>
|
335
|
-
<td
|
336
|
-
<td>the setting.</td>
|
472
|
+
<td class="parameter_name"><p>highlight</p></td>
|
473
|
+
<td class="parameter_description"><p>the setting.</p></td>
|
474
|
+
<td class="parameter_annotations"> </td>
|
337
475
|
</tr>
|
338
476
|
</tbody>
|
339
477
|
</table></div>
|
478
|
+
</div>
|
340
479
|
<p class="since">Since 3.10</p>
|
341
480
|
</div>
|
342
481
|
<hr>
|
343
482
|
<div class="refsect2">
|
344
|
-
<a name="gtk-source-search-context-get-occurrences-count"></a><h3>gtk_source_search_context_get_occurrences_count
|
345
|
-
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
|
346
|
-
|
347
|
-
<
|
348
|
-
Gets the total number of search occurrences. If the buffer is not already
|
483
|
+
<a name="gtk-source-search-context-get-occurrences-count"></a><h3>gtk_source_search_context_get_occurrences_count ()</h3>
|
484
|
+
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
|
485
|
+
gtk_source_search_context_get_occurrences_count
|
486
|
+
(<em class="parameter"><code><a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a> *search</code></em>);</pre>
|
487
|
+
<p>Gets the total number of search occurrences. If the buffer is not already
|
349
488
|
fully scanned, the total number of occurrences is unknown, and -1 is
|
350
|
-
returned
|
351
|
-
|
352
|
-
<
|
489
|
+
returned.</p>
|
490
|
+
<div class="refsect3">
|
491
|
+
<a name="id-1.2.23.9.8.5"></a><h4>Parameters</h4>
|
492
|
+
<div class="informaltable"><table width="100%" border="0">
|
353
493
|
<colgroup>
|
354
|
-
<col
|
355
|
-
<col>
|
494
|
+
<col width="150px" class="parameters_name">
|
495
|
+
<col class="parameters_description">
|
496
|
+
<col width="200px" class="parameters_annotations">
|
356
497
|
</colgroup>
|
357
|
-
<tbody>
|
358
|
-
<
|
359
|
-
<td><p
|
360
|
-
<td
|
361
|
-
</tr>
|
362
|
-
<tr>
|
363
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
364
|
-
<td>the total number of search occurrences, or -1 if unknown.</td>
|
365
|
-
</tr>
|
366
|
-
</tbody>
|
498
|
+
<tbody><tr>
|
499
|
+
<td class="parameter_name"><p>search</p></td>
|
500
|
+
<td class="parameter_description"><p>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</p></td>
|
501
|
+
<td class="parameter_annotations"> </td>
|
502
|
+
</tr></tbody>
|
367
503
|
</table></div>
|
504
|
+
</div>
|
505
|
+
<div class="refsect3">
|
506
|
+
<a name="id-1.2.23.9.8.6"></a><h4>Returns</h4>
|
507
|
+
<p> the total number of search occurrences, or -1 if unknown.</p>
|
508
|
+
<p></p>
|
509
|
+
</div>
|
368
510
|
<p class="since">Since 3.10</p>
|
369
511
|
</div>
|
370
512
|
<hr>
|
371
513
|
<div class="refsect2">
|
372
|
-
<a name="gtk-source-search-context-get-occurrence-position"></a><h3>gtk_source_search_context_get_occurrence_position
|
373
|
-
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
<
|
378
|
-
Gets the position of a search occurrence. If the buffer is not already fully
|
514
|
+
<a name="gtk-source-search-context-get-occurrence-position"></a><h3>gtk_source_search_context_get_occurrence_position ()</h3>
|
515
|
+
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
|
516
|
+
gtk_source_search_context_get_occurrence_position
|
517
|
+
(<em class="parameter"><code><a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a> *search</code></em>,
|
518
|
+
<em class="parameter"><code>const <a href="http://developer.gnome.org/gtk2/GtkTextIter.html"><span class="type">GtkTextIter</span></a> *match_start</code></em>,
|
519
|
+
<em class="parameter"><code>const <a href="http://developer.gnome.org/gtk2/GtkTextIter.html"><span class="type">GtkTextIter</span></a> *match_end</code></em>);</pre>
|
520
|
+
<p>Gets the position of a search occurrence. If the buffer is not already fully
|
379
521
|
scanned, the position may be unknown, and -1 is returned. If 0 is returned,
|
380
522
|
it means that this part of the buffer has already been scanned, and that
|
381
|
-
<em class="parameter"><code>match_start</code></em>
|
382
|
-
</
|
383
|
-
|
523
|
+
<em class="parameter"><code>match_start</code></em>
|
524
|
+
and <em class="parameter"><code>match_end</code></em>
|
525
|
+
don't delimit an occurrence.</p>
|
526
|
+
<div class="refsect3">
|
527
|
+
<a name="id-1.2.23.9.9.5"></a><h4>Parameters</h4>
|
528
|
+
<div class="informaltable"><table width="100%" border="0">
|
384
529
|
<colgroup>
|
385
|
-
<col
|
386
|
-
<col>
|
530
|
+
<col width="150px" class="parameters_name">
|
531
|
+
<col class="parameters_description">
|
532
|
+
<col width="200px" class="parameters_annotations">
|
387
533
|
</colgroup>
|
388
534
|
<tbody>
|
389
535
|
<tr>
|
390
|
-
<td
|
391
|
-
<td>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</td>
|
392
|
-
</
|
393
|
-
<tr>
|
394
|
-
<td><p><span class="term"><em class="parameter"><code>match_start</code></em> :</span></p></td>
|
395
|
-
<td>the start of the occurrence.</td>
|
536
|
+
<td class="parameter_name"><p>search</p></td>
|
537
|
+
<td class="parameter_description"><p>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</p></td>
|
538
|
+
<td class="parameter_annotations"> </td>
|
396
539
|
</tr>
|
397
540
|
<tr>
|
398
|
-
<td
|
399
|
-
<td>the
|
541
|
+
<td class="parameter_name"><p>match_start</p></td>
|
542
|
+
<td class="parameter_description"><p>the start of the occurrence.</p></td>
|
543
|
+
<td class="parameter_annotations"> </td>
|
400
544
|
</tr>
|
401
545
|
<tr>
|
402
|
-
<td
|
403
|
-
<td>the
|
404
|
-
|
405
|
-
an occurrence. Returns -1 if the position is not yet known.</td>
|
546
|
+
<td class="parameter_name"><p>match_end</p></td>
|
547
|
+
<td class="parameter_description"><p>the end of the occurrence.</p></td>
|
548
|
+
<td class="parameter_annotations"> </td>
|
406
549
|
</tr>
|
407
550
|
</tbody>
|
408
551
|
</table></div>
|
552
|
+
</div>
|
553
|
+
<div class="refsect3">
|
554
|
+
<a name="id-1.2.23.9.9.6"></a><h4>Returns</h4>
|
555
|
+
<p> the position of the search occurrence. The first occurrence has the
|
556
|
+
position 1 (not 0). Returns 0 if <em class="parameter"><code>match_start</code></em>
|
557
|
+
and <em class="parameter"><code>match_end</code></em>
|
558
|
+
don't delimit
|
559
|
+
an occurrence. Returns -1 if the position is not yet known.</p>
|
560
|
+
<p></p>
|
561
|
+
</div>
|
409
562
|
<p class="since">Since 3.10</p>
|
410
563
|
</div>
|
411
564
|
<hr>
|
412
565
|
<div class="refsect2">
|
413
|
-
<a name="gtk-source-search-context-forward"></a><h3>gtk_source_search_context_forward
|
414
|
-
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
<
|
419
|
-
Synchronous forward search. It is recommended to use the asynchronous
|
566
|
+
<a name="gtk-source-search-context-forward"></a><h3>gtk_source_search_context_forward ()</h3>
|
567
|
+
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
568
|
+
gtk_source_search_context_forward (<em class="parameter"><code><a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a> *search</code></em>,
|
569
|
+
<em class="parameter"><code>const <a href="http://developer.gnome.org/gtk2/GtkTextIter.html"><span class="type">GtkTextIter</span></a> *iter</code></em>,
|
570
|
+
<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkTextIter.html"><span class="type">GtkTextIter</span></a> *match_start</code></em>,
|
571
|
+
<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkTextIter.html"><span class="type">GtkTextIter</span></a> *match_end</code></em>);</pre>
|
572
|
+
<p>Synchronous forward search. It is recommended to use the asynchronous
|
420
573
|
functions instead, to not block the user interface. However, if you are sure
|
421
|
-
that the <em class="parameter"><code>buffer</code></em>
|
422
|
-
|
423
|
-
<div class="
|
574
|
+
that the <em class="parameter"><code>buffer</code></em>
|
575
|
+
is small, this function is more convenient to use.</p>
|
576
|
+
<div class="refsect3">
|
577
|
+
<a name="id-1.2.23.9.10.5"></a><h4>Parameters</h4>
|
578
|
+
<div class="informaltable"><table width="100%" border="0">
|
424
579
|
<colgroup>
|
425
|
-
<col
|
426
|
-
<col>
|
580
|
+
<col width="150px" class="parameters_name">
|
581
|
+
<col class="parameters_description">
|
582
|
+
<col width="200px" class="parameters_annotations">
|
427
583
|
</colgroup>
|
428
584
|
<tbody>
|
429
585
|
<tr>
|
430
|
-
<td
|
431
|
-
<td>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</td>
|
586
|
+
<td class="parameter_name"><p>search</p></td>
|
587
|
+
<td class="parameter_description"><p>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</p></td>
|
588
|
+
<td class="parameter_annotations"> </td>
|
432
589
|
</tr>
|
433
590
|
<tr>
|
434
|
-
<td
|
435
|
-
<td>start of search.</td>
|
591
|
+
<td class="parameter_name"><p>iter</p></td>
|
592
|
+
<td class="parameter_description"><p>start of search.</p></td>
|
593
|
+
<td class="parameter_annotations"> </td>
|
436
594
|
</tr>
|
437
595
|
<tr>
|
438
|
-
<td
|
439
|
-
<td>return location for start of match, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
|
440
|
-
</td>
|
596
|
+
<td class="parameter_name"><p>match_start</p></td>
|
597
|
+
<td class="parameter_description"><p> return location for start of match, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
598
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
441
599
|
</tr>
|
442
600
|
<tr>
|
443
|
-
<td
|
444
|
-
<td>return location for end of match, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
|
445
|
-
</td>
|
446
|
-
</tr>
|
447
|
-
<tr>
|
448
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
449
|
-
<td>whether a match was found.</td>
|
601
|
+
<td class="parameter_name"><p>match_end</p></td>
|
602
|
+
<td class="parameter_description"><p> return location for end of match, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
603
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
450
604
|
</tr>
|
451
605
|
</tbody>
|
452
606
|
</table></div>
|
607
|
+
</div>
|
608
|
+
<div class="refsect3">
|
609
|
+
<a name="id-1.2.23.9.10.6"></a><h4>Returns</h4>
|
610
|
+
<p> whether a match was found.</p>
|
611
|
+
<p></p>
|
612
|
+
</div>
|
453
613
|
<p class="since">Since 3.10</p>
|
454
614
|
</div>
|
455
615
|
<hr>
|
456
616
|
<div class="refsect2">
|
457
|
-
<a name="gtk-source-search-context-forward-async"></a><h3>gtk_source_search_context_forward_async
|
458
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
<
|
465
|
-
Asynchronous forward search. See the <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> documentation to know
|
466
|
-
how to use this function
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
ownership of <em class="parameter"><code>cancellable</code></em
|
472
|
-
|
473
|
-
<div class="
|
617
|
+
<a name="gtk-source-search-context-forward-async"></a><h3>gtk_source_search_context_forward_async ()</h3>
|
618
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
619
|
+
gtk_source_search_context_forward_async
|
620
|
+
(<em class="parameter"><code><a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a> *search</code></em>,
|
621
|
+
<em class="parameter"><code>const <a href="http://developer.gnome.org/gtk2/GtkTextIter.html"><span class="type">GtkTextIter</span></a> *iter</code></em>,
|
622
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
623
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
|
624
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
625
|
+
<p>Asynchronous forward search. See the <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> documentation to know
|
626
|
+
how to use this function.</p>
|
627
|
+
<p>If the operation is cancelled, the <em class="parameter"><code>callback</code></em>
|
628
|
+
will only be called if
|
629
|
+
<em class="parameter"><code>cancellable</code></em>
|
630
|
+
was not <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-forward-async" title="gtk_source_search_context_forward_async ()"><code class="function">gtk_source_search_context_forward_async()</code></a> takes
|
631
|
+
ownership of <em class="parameter"><code>cancellable</code></em>
|
632
|
+
, so you can unref it after calling this function.</p>
|
633
|
+
<div class="refsect3">
|
634
|
+
<a name="id-1.2.23.9.11.6"></a><h4>Parameters</h4>
|
635
|
+
<div class="informaltable"><table width="100%" border="0">
|
474
636
|
<colgroup>
|
475
|
-
<col
|
476
|
-
<col>
|
637
|
+
<col width="150px" class="parameters_name">
|
638
|
+
<col class="parameters_description">
|
639
|
+
<col width="200px" class="parameters_annotations">
|
477
640
|
</colgroup>
|
478
641
|
<tbody>
|
479
642
|
<tr>
|
480
|
-
<td
|
481
|
-
<td>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</td>
|
643
|
+
<td class="parameter_name"><p>search</p></td>
|
644
|
+
<td class="parameter_description"><p>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</p></td>
|
645
|
+
<td class="parameter_annotations"> </td>
|
482
646
|
</tr>
|
483
647
|
<tr>
|
484
|
-
<td
|
485
|
-
<td>start of search.</td>
|
648
|
+
<td class="parameter_name"><p>iter</p></td>
|
649
|
+
<td class="parameter_description"><p>start of search.</p></td>
|
650
|
+
<td class="parameter_annotations"> </td>
|
486
651
|
</tr>
|
487
652
|
<tr>
|
488
|
-
<td
|
489
|
-
<td>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
|
490
|
-
</td>
|
653
|
+
<td class="parameter_name"><p>cancellable</p></td>
|
654
|
+
<td class="parameter_description"><p> a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
655
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
491
656
|
</tr>
|
492
657
|
<tr>
|
493
|
-
<td
|
494
|
-
<td>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the operation is finished.</td>
|
658
|
+
<td class="parameter_name"><p>callback</p></td>
|
659
|
+
<td class="parameter_description"><p>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the operation is finished.</p></td>
|
660
|
+
<td class="parameter_annotations"> </td>
|
495
661
|
</tr>
|
496
662
|
<tr>
|
497
|
-
<td
|
498
|
-
<td>the data to pass to the <em class="parameter"><code>callback</code></em>
|
663
|
+
<td class="parameter_name"><p>user_data</p></td>
|
664
|
+
<td class="parameter_description"><p>the data to pass to the <em class="parameter"><code>callback</code></em>
|
665
|
+
function.</p></td>
|
666
|
+
<td class="parameter_annotations"> </td>
|
499
667
|
</tr>
|
500
668
|
</tbody>
|
501
669
|
</table></div>
|
670
|
+
</div>
|
502
671
|
<p class="since">Since 3.10</p>
|
503
672
|
</div>
|
504
673
|
<hr>
|
505
674
|
<div class="refsect2">
|
506
|
-
<a name="gtk-source-search-context-forward-finish"></a><h3>gtk_source_search_context_forward_finish
|
507
|
-
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
<
|
514
|
-
Finishes a forward search started with
|
515
|
-
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-forward-async" title="gtk_source_search_context_forward_async
|
516
|
-
|
517
|
-
<
|
675
|
+
<a name="gtk-source-search-context-forward-finish"></a><h3>gtk_source_search_context_forward_finish ()</h3>
|
676
|
+
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
677
|
+
gtk_source_search_context_forward_finish
|
678
|
+
(<em class="parameter"><code><a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a> *search</code></em>,
|
679
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
|
680
|
+
<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkTextIter.html"><span class="type">GtkTextIter</span></a> *match_start</code></em>,
|
681
|
+
<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkTextIter.html"><span class="type">GtkTextIter</span></a> *match_end</code></em>,
|
682
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
683
|
+
<p>Finishes a forward search started with
|
684
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-forward-async" title="gtk_source_search_context_forward_async ()"><code class="function">gtk_source_search_context_forward_async()</code></a>.</p>
|
685
|
+
<div class="refsect3">
|
686
|
+
<a name="id-1.2.23.9.12.5"></a><h4>Parameters</h4>
|
687
|
+
<div class="informaltable"><table width="100%" border="0">
|
518
688
|
<colgroup>
|
519
|
-
<col
|
520
|
-
<col>
|
689
|
+
<col width="150px" class="parameters_name">
|
690
|
+
<col class="parameters_description">
|
691
|
+
<col width="200px" class="parameters_annotations">
|
521
692
|
</colgroup>
|
522
693
|
<tbody>
|
523
694
|
<tr>
|
524
|
-
<td
|
525
|
-
<td>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</td>
|
695
|
+
<td class="parameter_name"><p>search</p></td>
|
696
|
+
<td class="parameter_description"><p>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</p></td>
|
697
|
+
<td class="parameter_annotations"> </td>
|
526
698
|
</tr>
|
527
699
|
<tr>
|
528
|
-
<td
|
529
|
-
<td>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a>.</td>
|
700
|
+
<td class="parameter_name"><p>result</p></td>
|
701
|
+
<td class="parameter_description"><p>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a>.</p></td>
|
702
|
+
<td class="parameter_annotations"> </td>
|
530
703
|
</tr>
|
531
704
|
<tr>
|
532
|
-
<td
|
533
|
-
<td>return location for start of match, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
|
534
|
-
</td>
|
535
|
-
</tr>
|
536
|
-
<tr>
|
537
|
-
<td><p><span class="term"><em class="parameter"><code>match_end</code></em> :</span></p></td>
|
538
|
-
<td>return location for end of match, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
|
539
|
-
</td>
|
705
|
+
<td class="parameter_name"><p>match_start</p></td>
|
706
|
+
<td class="parameter_description"><p> return location for start of match, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
707
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
540
708
|
</tr>
|
541
709
|
<tr>
|
542
|
-
<td
|
543
|
-
<td
|
710
|
+
<td class="parameter_name"><p>match_end</p></td>
|
711
|
+
<td class="parameter_description"><p> return location for end of match, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
712
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
544
713
|
</tr>
|
545
714
|
<tr>
|
546
|
-
<td
|
547
|
-
<td>
|
715
|
+
<td class="parameter_name"><p>error</p></td>
|
716
|
+
<td class="parameter_description"><p>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p></td>
|
717
|
+
<td class="parameter_annotations"> </td>
|
548
718
|
</tr>
|
549
719
|
</tbody>
|
550
720
|
</table></div>
|
721
|
+
</div>
|
722
|
+
<div class="refsect3">
|
723
|
+
<a name="id-1.2.23.9.12.6"></a><h4>Returns</h4>
|
724
|
+
<p> whether a match was found.</p>
|
725
|
+
<p></p>
|
726
|
+
</div>
|
551
727
|
<p class="since">Since 3.10</p>
|
552
728
|
</div>
|
553
729
|
<hr>
|
554
730
|
<div class="refsect2">
|
555
|
-
<a name="gtk-source-search-context-backward"></a><h3>gtk_source_search_context_backward
|
556
|
-
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
<
|
561
|
-
Synchronous backward search. It is recommended to use the asynchronous
|
731
|
+
<a name="gtk-source-search-context-backward"></a><h3>gtk_source_search_context_backward ()</h3>
|
732
|
+
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
733
|
+
gtk_source_search_context_backward (<em class="parameter"><code><a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a> *search</code></em>,
|
734
|
+
<em class="parameter"><code>const <a href="http://developer.gnome.org/gtk2/GtkTextIter.html"><span class="type">GtkTextIter</span></a> *iter</code></em>,
|
735
|
+
<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkTextIter.html"><span class="type">GtkTextIter</span></a> *match_start</code></em>,
|
736
|
+
<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkTextIter.html"><span class="type">GtkTextIter</span></a> *match_end</code></em>);</pre>
|
737
|
+
<p>Synchronous backward search. It is recommended to use the asynchronous
|
562
738
|
functions instead, to not block the user interface. However, if you are sure
|
563
|
-
that the <em class="parameter"><code>buffer</code></em>
|
564
|
-
|
565
|
-
<div class="
|
739
|
+
that the <em class="parameter"><code>buffer</code></em>
|
740
|
+
is small, this function is more convenient to use.</p>
|
741
|
+
<div class="refsect3">
|
742
|
+
<a name="id-1.2.23.9.13.5"></a><h4>Parameters</h4>
|
743
|
+
<div class="informaltable"><table width="100%" border="0">
|
566
744
|
<colgroup>
|
567
|
-
<col
|
568
|
-
<col>
|
745
|
+
<col width="150px" class="parameters_name">
|
746
|
+
<col class="parameters_description">
|
747
|
+
<col width="200px" class="parameters_annotations">
|
569
748
|
</colgroup>
|
570
749
|
<tbody>
|
571
750
|
<tr>
|
572
|
-
<td
|
573
|
-
<td>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</td>
|
751
|
+
<td class="parameter_name"><p>search</p></td>
|
752
|
+
<td class="parameter_description"><p>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</p></td>
|
753
|
+
<td class="parameter_annotations"> </td>
|
574
754
|
</tr>
|
575
755
|
<tr>
|
576
|
-
<td
|
577
|
-
<td>start of search.</td>
|
756
|
+
<td class="parameter_name"><p>iter</p></td>
|
757
|
+
<td class="parameter_description"><p>start of search.</p></td>
|
758
|
+
<td class="parameter_annotations"> </td>
|
578
759
|
</tr>
|
579
760
|
<tr>
|
580
|
-
<td
|
581
|
-
<td>return location for start of match, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
|
582
|
-
</td>
|
583
|
-
</tr>
|
584
|
-
<tr>
|
585
|
-
<td><p><span class="term"><em class="parameter"><code>match_end</code></em> :</span></p></td>
|
586
|
-
<td>return location for end of match, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
|
587
|
-
</td>
|
761
|
+
<td class="parameter_name"><p>match_start</p></td>
|
762
|
+
<td class="parameter_description"><p> return location for start of match, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
763
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
588
764
|
</tr>
|
589
765
|
<tr>
|
590
|
-
<td
|
591
|
-
<td>
|
766
|
+
<td class="parameter_name"><p>match_end</p></td>
|
767
|
+
<td class="parameter_description"><p> return location for end of match, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
768
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
592
769
|
</tr>
|
593
770
|
</tbody>
|
594
771
|
</table></div>
|
772
|
+
</div>
|
773
|
+
<div class="refsect3">
|
774
|
+
<a name="id-1.2.23.9.13.6"></a><h4>Returns</h4>
|
775
|
+
<p> whether a match was found.</p>
|
776
|
+
<p></p>
|
777
|
+
</div>
|
595
778
|
<p class="since">Since 3.10</p>
|
596
779
|
</div>
|
597
780
|
<hr>
|
598
781
|
<div class="refsect2">
|
599
|
-
<a name="gtk-source-search-context-backward-async"></a><h3>gtk_source_search_context_backward_async
|
600
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
<
|
607
|
-
Asynchronous backward search. See the <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> documentation to know
|
608
|
-
how to use this function
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
ownership of <em class="parameter"><code>cancellable</code></em
|
614
|
-
|
615
|
-
<div class="
|
782
|
+
<a name="gtk-source-search-context-backward-async"></a><h3>gtk_source_search_context_backward_async ()</h3>
|
783
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
784
|
+
gtk_source_search_context_backward_async
|
785
|
+
(<em class="parameter"><code><a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a> *search</code></em>,
|
786
|
+
<em class="parameter"><code>const <a href="http://developer.gnome.org/gtk2/GtkTextIter.html"><span class="type">GtkTextIter</span></a> *iter</code></em>,
|
787
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
788
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
|
789
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
790
|
+
<p>Asynchronous backward search. See the <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> documentation to know
|
791
|
+
how to use this function.</p>
|
792
|
+
<p>If the operation is cancelled, the <em class="parameter"><code>callback</code></em>
|
793
|
+
will only be called if
|
794
|
+
<em class="parameter"><code>cancellable</code></em>
|
795
|
+
was not <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-backward-async" title="gtk_source_search_context_backward_async ()"><code class="function">gtk_source_search_context_backward_async()</code></a> takes
|
796
|
+
ownership of <em class="parameter"><code>cancellable</code></em>
|
797
|
+
, so you can unref it after calling this function.</p>
|
798
|
+
<div class="refsect3">
|
799
|
+
<a name="id-1.2.23.9.14.6"></a><h4>Parameters</h4>
|
800
|
+
<div class="informaltable"><table width="100%" border="0">
|
616
801
|
<colgroup>
|
617
|
-
<col
|
618
|
-
<col>
|
802
|
+
<col width="150px" class="parameters_name">
|
803
|
+
<col class="parameters_description">
|
804
|
+
<col width="200px" class="parameters_annotations">
|
619
805
|
</colgroup>
|
620
806
|
<tbody>
|
621
807
|
<tr>
|
622
|
-
<td
|
623
|
-
<td>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</td>
|
808
|
+
<td class="parameter_name"><p>search</p></td>
|
809
|
+
<td class="parameter_description"><p>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</p></td>
|
810
|
+
<td class="parameter_annotations"> </td>
|
624
811
|
</tr>
|
625
812
|
<tr>
|
626
|
-
<td
|
627
|
-
<td>start of search.</td>
|
813
|
+
<td class="parameter_name"><p>iter</p></td>
|
814
|
+
<td class="parameter_description"><p>start of search.</p></td>
|
815
|
+
<td class="parameter_annotations"> </td>
|
628
816
|
</tr>
|
629
817
|
<tr>
|
630
|
-
<td
|
631
|
-
<td>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
|
632
|
-
</td>
|
818
|
+
<td class="parameter_name"><p>cancellable</p></td>
|
819
|
+
<td class="parameter_description"><p> a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
820
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
633
821
|
</tr>
|
634
822
|
<tr>
|
635
|
-
<td
|
636
|
-
<td>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the operation is finished.</td>
|
823
|
+
<td class="parameter_name"><p>callback</p></td>
|
824
|
+
<td class="parameter_description"><p>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the operation is finished.</p></td>
|
825
|
+
<td class="parameter_annotations"> </td>
|
637
826
|
</tr>
|
638
827
|
<tr>
|
639
|
-
<td
|
640
|
-
<td>the data to pass to the <em class="parameter"><code>callback</code></em>
|
828
|
+
<td class="parameter_name"><p>user_data</p></td>
|
829
|
+
<td class="parameter_description"><p>the data to pass to the <em class="parameter"><code>callback</code></em>
|
830
|
+
function.</p></td>
|
831
|
+
<td class="parameter_annotations"> </td>
|
641
832
|
</tr>
|
642
833
|
</tbody>
|
643
834
|
</table></div>
|
835
|
+
</div>
|
644
836
|
<p class="since">Since 3.10</p>
|
645
837
|
</div>
|
646
838
|
<hr>
|
647
839
|
<div class="refsect2">
|
648
|
-
<a name="gtk-source-search-context-backward-finish"></a><h3>gtk_source_search_context_backward_finish
|
649
|
-
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
<
|
656
|
-
Finishes a backward search started with
|
657
|
-
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-backward-async" title="gtk_source_search_context_backward_async
|
658
|
-
|
659
|
-
<
|
840
|
+
<a name="gtk-source-search-context-backward-finish"></a><h3>gtk_source_search_context_backward_finish ()</h3>
|
841
|
+
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
842
|
+
gtk_source_search_context_backward_finish
|
843
|
+
(<em class="parameter"><code><a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a> *search</code></em>,
|
844
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
|
845
|
+
<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkTextIter.html"><span class="type">GtkTextIter</span></a> *match_start</code></em>,
|
846
|
+
<em class="parameter"><code><a href="http://developer.gnome.org/gtk2/GtkTextIter.html"><span class="type">GtkTextIter</span></a> *match_end</code></em>,
|
847
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
848
|
+
<p>Finishes a backward search started with
|
849
|
+
<a class="link" href="GtkSourceSearchContext.html#gtk-source-search-context-backward-async" title="gtk_source_search_context_backward_async ()"><code class="function">gtk_source_search_context_backward_async()</code></a>.</p>
|
850
|
+
<div class="refsect3">
|
851
|
+
<a name="id-1.2.23.9.15.5"></a><h4>Parameters</h4>
|
852
|
+
<div class="informaltable"><table width="100%" border="0">
|
660
853
|
<colgroup>
|
661
|
-
<col
|
662
|
-
<col>
|
854
|
+
<col width="150px" class="parameters_name">
|
855
|
+
<col class="parameters_description">
|
856
|
+
<col width="200px" class="parameters_annotations">
|
663
857
|
</colgroup>
|
664
858
|
<tbody>
|
665
859
|
<tr>
|
666
|
-
<td
|
667
|
-
<td>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</td>
|
668
|
-
</
|
669
|
-
<tr>
|
670
|
-
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
|
671
|
-
<td>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a>.</td>
|
860
|
+
<td class="parameter_name"><p>search</p></td>
|
861
|
+
<td class="parameter_description"><p>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</p></td>
|
862
|
+
<td class="parameter_annotations"> </td>
|
672
863
|
</tr>
|
673
864
|
<tr>
|
674
|
-
<td
|
675
|
-
<td>
|
676
|
-
</td>
|
865
|
+
<td class="parameter_name"><p>result</p></td>
|
866
|
+
<td class="parameter_description"><p>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a>.</p></td>
|
867
|
+
<td class="parameter_annotations"> </td>
|
677
868
|
</tr>
|
678
869
|
<tr>
|
679
|
-
<td
|
680
|
-
<td>return location for
|
681
|
-
</td>
|
870
|
+
<td class="parameter_name"><p>match_start</p></td>
|
871
|
+
<td class="parameter_description"><p> return location for start of match, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
872
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
682
873
|
</tr>
|
683
874
|
<tr>
|
684
|
-
<td
|
685
|
-
<td
|
875
|
+
<td class="parameter_name"><p>match_end</p></td>
|
876
|
+
<td class="parameter_description"><p> return location for end of match, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
877
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
686
878
|
</tr>
|
687
879
|
<tr>
|
688
|
-
<td
|
689
|
-
<td>
|
880
|
+
<td class="parameter_name"><p>error</p></td>
|
881
|
+
<td class="parameter_description"><p>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p></td>
|
882
|
+
<td class="parameter_annotations"> </td>
|
690
883
|
</tr>
|
691
884
|
</tbody>
|
692
885
|
</table></div>
|
886
|
+
</div>
|
887
|
+
<div class="refsect3">
|
888
|
+
<a name="id-1.2.23.9.15.6"></a><h4>Returns</h4>
|
889
|
+
<p> whether a match was found.</p>
|
890
|
+
<p></p>
|
891
|
+
</div>
|
693
892
|
<p class="since">Since 3.10</p>
|
694
893
|
</div>
|
695
894
|
<hr>
|
696
895
|
<div class="refsect2">
|
697
|
-
<a name="gtk-source-search-context-replace"></a><h3>gtk_source_search_context_replace
|
698
|
-
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
<
|
705
|
-
Replaces a search match by another text. If <em class="parameter"><code>match_start</code></em>
|
706
|
-
|
707
|
-
|
708
|
-
<p>
|
709
|
-
For a regular expression replacement, you can check if <em class="parameter"><code>replace</code></em>
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
<
|
896
|
+
<a name="gtk-source-search-context-replace"></a><h3>gtk_source_search_context_replace ()</h3>
|
897
|
+
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
898
|
+
gtk_source_search_context_replace (<em class="parameter"><code><a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a> *search</code></em>,
|
899
|
+
<em class="parameter"><code>const <a href="http://developer.gnome.org/gtk2/GtkTextIter.html"><span class="type">GtkTextIter</span></a> *match_start</code></em>,
|
900
|
+
<em class="parameter"><code>const <a href="http://developer.gnome.org/gtk2/GtkTextIter.html"><span class="type">GtkTextIter</span></a> *match_end</code></em>,
|
901
|
+
<em class="parameter"><code>const <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *replace</code></em>,
|
902
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> replace_length</code></em>,
|
903
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
904
|
+
<p>Replaces a search match by another text. If <em class="parameter"><code>match_start</code></em>
|
905
|
+
and <em class="parameter"><code>match_end</code></em>
|
906
|
+
|
907
|
+
doesn't correspond to a search match, <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned.</p>
|
908
|
+
<p>For a regular expression replacement, you can check if <em class="parameter"><code>replace</code></em>
|
909
|
+
is valid by
|
910
|
+
calling <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html#g-regex-check-replacement"><code class="function">g_regex_check_replacement()</code></a>. The <em class="parameter"><code>replace</code></em>
|
911
|
+
text can contain
|
912
|
+
backreferences; read the <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html#g-regex-replace"><code class="function">g_regex_replace()</code></a> documentation for more details.</p>
|
913
|
+
<div class="refsect3">
|
914
|
+
<a name="id-1.2.23.9.16.6"></a><h4>Parameters</h4>
|
915
|
+
<div class="informaltable"><table width="100%" border="0">
|
714
916
|
<colgroup>
|
715
|
-
<col
|
716
|
-
<col>
|
917
|
+
<col width="150px" class="parameters_name">
|
918
|
+
<col class="parameters_description">
|
919
|
+
<col width="200px" class="parameters_annotations">
|
717
920
|
</colgroup>
|
718
921
|
<tbody>
|
719
922
|
<tr>
|
720
|
-
<td
|
721
|
-
<td>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</td>
|
923
|
+
<td class="parameter_name"><p>search</p></td>
|
924
|
+
<td class="parameter_description"><p>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</p></td>
|
925
|
+
<td class="parameter_annotations"> </td>
|
722
926
|
</tr>
|
723
927
|
<tr>
|
724
|
-
<td
|
725
|
-
<td>the start of the match to replace.</td>
|
928
|
+
<td class="parameter_name"><p>match_start</p></td>
|
929
|
+
<td class="parameter_description"><p>the start of the match to replace.</p></td>
|
930
|
+
<td class="parameter_annotations"> </td>
|
726
931
|
</tr>
|
727
932
|
<tr>
|
728
|
-
<td
|
729
|
-
<td>the end of the match to replace.</td>
|
933
|
+
<td class="parameter_name"><p>match_end</p></td>
|
934
|
+
<td class="parameter_description"><p>the end of the match to replace.</p></td>
|
935
|
+
<td class="parameter_annotations"> </td>
|
730
936
|
</tr>
|
731
937
|
<tr>
|
732
|
-
<td
|
733
|
-
<td>the replacement text.</td>
|
938
|
+
<td class="parameter_name"><p>replace</p></td>
|
939
|
+
<td class="parameter_description"><p>the replacement text.</p></td>
|
940
|
+
<td class="parameter_annotations"> </td>
|
734
941
|
</tr>
|
735
942
|
<tr>
|
736
|
-
<td
|
737
|
-
<td>the length of <em class="parameter"><code>replace</code></em>
|
943
|
+
<td class="parameter_name"><p>replace_length</p></td>
|
944
|
+
<td class="parameter_description"><p>the length of <em class="parameter"><code>replace</code></em>
|
945
|
+
in bytes, or -1.</p></td>
|
946
|
+
<td class="parameter_annotations"> </td>
|
738
947
|
</tr>
|
739
948
|
<tr>
|
740
|
-
<td
|
741
|
-
<td>location to a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore errors.</td>
|
742
|
-
</
|
743
|
-
<tr>
|
744
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
745
|
-
<td>whether the match has been replaced.</td>
|
949
|
+
<td class="parameter_name"><p>error</p></td>
|
950
|
+
<td class="parameter_description"><p>location to a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore errors.</p></td>
|
951
|
+
<td class="parameter_annotations"> </td>
|
746
952
|
</tr>
|
747
953
|
</tbody>
|
748
954
|
</table></div>
|
955
|
+
</div>
|
956
|
+
<div class="refsect3">
|
957
|
+
<a name="id-1.2.23.9.16.7"></a><h4>Returns</h4>
|
958
|
+
<p> whether the match has been replaced.</p>
|
959
|
+
<p></p>
|
960
|
+
</div>
|
749
961
|
<p class="since">Since 3.10</p>
|
750
962
|
</div>
|
751
963
|
<hr>
|
752
964
|
<div class="refsect2">
|
753
|
-
<a name="gtk-source-search-context-replace-all"></a><h3>gtk_source_search_context_replace_all
|
754
|
-
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
<p>
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
<
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
</
|
768
|
-
<div class="
|
965
|
+
<a name="gtk-source-search-context-replace-all"></a><h3>gtk_source_search_context_replace_all ()</h3>
|
966
|
+
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
967
|
+
gtk_source_search_context_replace_all (<em class="parameter"><code><a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a> *search</code></em>,
|
968
|
+
<em class="parameter"><code>const <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *replace</code></em>,
|
969
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> replace_length</code></em>,
|
970
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
971
|
+
<p>Replaces all search matches by another text. It is a synchronous function, so
|
972
|
+
it can block the user interface.</p>
|
973
|
+
<p>For a regular expression replacement, you can check if <em class="parameter"><code>replace</code></em>
|
974
|
+
is valid by
|
975
|
+
calling <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html#g-regex-check-replacement"><code class="function">g_regex_check_replacement()</code></a>. The <em class="parameter"><code>replace</code></em>
|
976
|
+
text can contain
|
977
|
+
backreferences; read the <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html#g-regex-replace"><code class="function">g_regex_replace()</code></a> documentation for more details.</p>
|
978
|
+
<div class="refsect3">
|
979
|
+
<a name="id-1.2.23.9.17.6"></a><h4>Parameters</h4>
|
980
|
+
<div class="informaltable"><table width="100%" border="0">
|
769
981
|
<colgroup>
|
770
|
-
<col
|
771
|
-
<col>
|
982
|
+
<col width="150px" class="parameters_name">
|
983
|
+
<col class="parameters_description">
|
984
|
+
<col width="200px" class="parameters_annotations">
|
772
985
|
</colgroup>
|
773
986
|
<tbody>
|
774
987
|
<tr>
|
775
|
-
<td
|
776
|
-
<td>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</td>
|
988
|
+
<td class="parameter_name"><p>search</p></td>
|
989
|
+
<td class="parameter_description"><p>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</p></td>
|
990
|
+
<td class="parameter_annotations"> </td>
|
777
991
|
</tr>
|
778
992
|
<tr>
|
779
|
-
<td
|
780
|
-
<td>the replacement text.</td>
|
993
|
+
<td class="parameter_name"><p>replace</p></td>
|
994
|
+
<td class="parameter_description"><p>the replacement text.</p></td>
|
995
|
+
<td class="parameter_annotations"> </td>
|
781
996
|
</tr>
|
782
997
|
<tr>
|
783
|
-
<td
|
784
|
-
<td>the length of <em class="parameter"><code>replace</code></em>
|
998
|
+
<td class="parameter_name"><p>replace_length</p></td>
|
999
|
+
<td class="parameter_description"><p>the length of <em class="parameter"><code>replace</code></em>
|
1000
|
+
in bytes, or -1.</p></td>
|
1001
|
+
<td class="parameter_annotations"> </td>
|
785
1002
|
</tr>
|
786
1003
|
<tr>
|
787
|
-
<td
|
788
|
-
<td>location to a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore errors.</td>
|
789
|
-
</
|
790
|
-
<tr>
|
791
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
792
|
-
<td>the number of replaced matches.</td>
|
1004
|
+
<td class="parameter_name"><p>error</p></td>
|
1005
|
+
<td class="parameter_description"><p>location to a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore errors.</p></td>
|
1006
|
+
<td class="parameter_annotations"> </td>
|
793
1007
|
</tr>
|
794
1008
|
</tbody>
|
795
1009
|
</table></div>
|
1010
|
+
</div>
|
1011
|
+
<div class="refsect3">
|
1012
|
+
<a name="id-1.2.23.9.17.7"></a><h4>Returns</h4>
|
1013
|
+
<p> the number of replaced matches.</p>
|
1014
|
+
<p></p>
|
1015
|
+
</div>
|
796
1016
|
<p class="since">Since 3.10</p>
|
797
1017
|
</div>
|
798
1018
|
<hr>
|
799
1019
|
<div class="refsect2">
|
800
|
-
<a name="gtk-source-search-context-get-regex-error"></a><h3>gtk_source_search_context_get_regex_error
|
801
|
-
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a>
|
802
|
-
|
803
|
-
<
|
804
|
-
Regular expression patterns must follow certain rules. If
|
805
|
-
<a class="link" href="GtkSourceSearchSettings.html#GtkSourceSearchSettings--search-text" title=
|
806
|
-
with this function. The error domain is <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html#G-REGEX-ERROR:CAPS"><span class="type">G_REGEX_ERROR</span></a
|
807
|
-
</p>
|
808
|
-
<
|
809
|
-
|
810
|
-
|
811
|
-
<div class="variablelist"><table border="0" class="variablelist">
|
1020
|
+
<a name="gtk-source-search-context-get-regex-error"></a><h3>gtk_source_search_context_get_regex_error ()</h3>
|
1021
|
+
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> *
|
1022
|
+
gtk_source_search_context_get_regex_error
|
1023
|
+
(<em class="parameter"><code><a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a> *search</code></em>);</pre>
|
1024
|
+
<p>Regular expression patterns must follow certain rules. If
|
1025
|
+
<a class="link" href="GtkSourceSearchSettings.html#GtkSourceSearchSettings--search-text" title="The “search-text” property"><span class="type">“search-text”</span></a> breaks a rule, the error can be retrieved
|
1026
|
+
with this function. The error domain is <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html#G-REGEX-ERROR:CAPS"><span class="type">G_REGEX_ERROR</span></a>.</p>
|
1027
|
+
<p>Free the return value with <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#g-error-free"><code class="function">g_error_free()</code></a>.</p>
|
1028
|
+
<div class="refsect3">
|
1029
|
+
<a name="id-1.2.23.9.18.6"></a><h4>Parameters</h4>
|
1030
|
+
<div class="informaltable"><table width="100%" border="0">
|
812
1031
|
<colgroup>
|
813
|
-
<col
|
814
|
-
<col>
|
1032
|
+
<col width="150px" class="parameters_name">
|
1033
|
+
<col class="parameters_description">
|
1034
|
+
<col width="200px" class="parameters_annotations">
|
815
1035
|
</colgroup>
|
816
|
-
<tbody>
|
817
|
-
<
|
818
|
-
<td><p
|
819
|
-
<td
|
820
|
-
</tr>
|
821
|
-
<tr>
|
822
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
823
|
-
<td>the <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the pattern is valid.</td>
|
824
|
-
</tr>
|
825
|
-
</tbody>
|
1036
|
+
<tbody><tr>
|
1037
|
+
<td class="parameter_name"><p>search</p></td>
|
1038
|
+
<td class="parameter_description"><p>a <a class="link" href="GtkSourceSearchContext.html" title="GtkSourceSearchContext"><span class="type">GtkSourceSearchContext</span></a>.</p></td>
|
1039
|
+
<td class="parameter_annotations"> </td>
|
1040
|
+
</tr></tbody>
|
826
1041
|
</table></div>
|
1042
|
+
</div>
|
1043
|
+
<div class="refsect3">
|
1044
|
+
<a name="id-1.2.23.9.18.7"></a><h4>Returns</h4>
|
1045
|
+
<p> the <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the pattern is valid. </p>
|
1046
|
+
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
|
1047
|
+
</div>
|
827
1048
|
<p class="since">Since 3.10</p>
|
828
1049
|
</div>
|
829
1050
|
</div>
|
830
1051
|
<div class="refsect1">
|
1052
|
+
<a name="GtkSourceSearchContext.other_details"></a><h2>Types and Values</h2>
|
1053
|
+
<div class="refsect2">
|
1054
|
+
<a name="GtkSourceSearchContext-struct"></a><h3>GtkSourceSearchContext</h3>
|
1055
|
+
<pre class="programlisting">typedef struct _GtkSourceSearchContext GtkSourceSearchContext;</pre>
|
1056
|
+
</div>
|
1057
|
+
</div>
|
1058
|
+
<div class="refsect1">
|
831
1059
|
<a name="GtkSourceSearchContext.property-details"></a><h2>Property Details</h2>
|
832
1060
|
<div class="refsect2">
|
833
|
-
<a name="GtkSourceSearchContext--buffer"></a><h3>The <code class="literal"
|
834
|
-
<pre class="programlisting">
|
835
|
-
<p>
|
836
|
-
|
837
|
-
</p>
|
1061
|
+
<a name="GtkSourceSearchContext--buffer"></a><h3>The <code class="literal">“buffer”</code> property</h3>
|
1062
|
+
<pre class="programlisting"> “buffer” <a class="link" href="GtkSourceBuffer.html" title="GtkSourceBuffer"><span class="type">GtkSourceBuffer</span></a> *</pre>
|
1063
|
+
<p>The <a class="link" href="GtkSourceBuffer.html" title="GtkSourceBuffer"><span class="type">GtkSourceBuffer</span></a> associated to the search context.</p>
|
1064
|
+
<p>Flags: Read / Write / Construct Only</p>
|
838
1065
|
<p class="since">Since 3.10</p>
|
839
1066
|
</div>
|
840
1067
|
<hr>
|
841
1068
|
<div class="refsect2">
|
842
|
-
<a name="GtkSourceSearchContext--highlight"></a><h3>The <code class="literal"
|
843
|
-
<pre class="programlisting">
|
844
|
-
<p>
|
845
|
-
|
846
|
-
</p>
|
1069
|
+
<a name="GtkSourceSearchContext--highlight"></a><h3>The <code class="literal">“highlight”</code> property</h3>
|
1070
|
+
<pre class="programlisting"> “highlight” <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
|
1071
|
+
<p>Highlight the search occurrences.</p>
|
1072
|
+
<p>Flags: Read / Write / Construct</p>
|
847
1073
|
<p>Default value: TRUE</p>
|
848
1074
|
<p class="since">Since 3.10</p>
|
849
1075
|
</div>
|
850
1076
|
<hr>
|
851
1077
|
<div class="refsect2">
|
852
|
-
<a name="GtkSourceSearchContext--occurrences-count"></a><h3>The <code class="literal"
|
853
|
-
<pre class="programlisting">
|
854
|
-
<p>
|
855
|
-
The total number of search occurrences. If the search is disabled,
|
1078
|
+
<a name="GtkSourceSearchContext--occurrences-count"></a><h3>The <code class="literal">“occurrences-count”</code> property</h3>
|
1079
|
+
<pre class="programlisting"> “occurrences-count” <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
1080
|
+
<p>The total number of search occurrences. If the search is disabled,
|
856
1081
|
the value is 0. If the buffer is not already fully scanned, the value
|
857
|
-
is -1
|
858
|
-
</p>
|
1082
|
+
is -1.</p>
|
1083
|
+
<p>Flags: Read</p>
|
859
1084
|
<p>Allowed values: >= -1</p>
|
860
1085
|
<p>Default value: 0</p>
|
861
1086
|
<p class="since">Since 3.10</p>
|
862
1087
|
</div>
|
863
1088
|
<hr>
|
864
1089
|
<div class="refsect2">
|
865
|
-
<a name="GtkSourceSearchContext--regex-error"></a><h3>The <code class="literal"
|
866
|
-
<pre class="programlisting">
|
867
|
-
<p>
|
868
|
-
If the
|
869
|
-
|
870
|
-
</p>
|
871
|
-
<p>
|
872
|
-
Free with <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#g-error-free"><code class="function">g_error_free()</code></a>.
|
873
|
-
</p>
|
1090
|
+
<a name="GtkSourceSearchContext--regex-error"></a><h3>The <code class="literal">“regex-error”</code> property</h3>
|
1091
|
+
<pre class="programlisting"> “regex-error” <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a></pre>
|
1092
|
+
<p>If the regex search pattern doesn't follow all the rules, this
|
1093
|
+
property will be set. If the pattern is valid, the value is <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
|
1094
|
+
<p>Free with <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#g-error-free"><code class="function">g_error_free()</code></a>.</p>
|
1095
|
+
<p>Flags: Read</p>
|
874
1096
|
<p class="since">Since 3.10</p>
|
875
1097
|
</div>
|
876
1098
|
<hr>
|
877
1099
|
<div class="refsect2">
|
878
|
-
<a name="GtkSourceSearchContext--settings"></a><h3>The <code class="literal"
|
879
|
-
<pre class="programlisting">
|
880
|
-
<p>
|
881
|
-
|
882
|
-
</p>
|
1100
|
+
<a name="GtkSourceSearchContext--settings"></a><h3>The <code class="literal">“settings”</code> property</h3>
|
1101
|
+
<pre class="programlisting"> “settings” <a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="type">GtkSourceSearchSettings</span></a> *</pre>
|
1102
|
+
<p>The <a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="type">GtkSourceSearchSettings</span></a> associated to the search context.</p>
|
1103
|
+
<p>Flags: Read / Write / Construct</p>
|
883
1104
|
<p class="since">Since 3.10</p>
|
884
1105
|
</div>
|
885
1106
|
</div>
|
886
1107
|
<div class="refsect1">
|
887
1108
|
<a name="GtkSourceSearchContext.see-also"></a><h2>See Also</h2>
|
888
|
-
<a class="link" href="GtkSourceBuffer.html" title="GtkSourceBuffer"><span class="type">GtkSourceBuffer</span></a>, <a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="type">GtkSourceSearchSettings</span></a>
|
1109
|
+
<p><a class="link" href="GtkSourceBuffer.html" title="GtkSourceBuffer"><span class="type">GtkSourceBuffer</span></a>, <a class="link" href="GtkSourceSearchSettings.html" title="GtkSourceSearchSettings"><span class="type">GtkSourceSearchSettings</span></a></p>
|
889
1110
|
</div>
|
890
1111
|
</div>
|
891
1112
|
<div class="footer">
|
892
1113
|
<hr>
|
893
|
-
Generated by GTK-Doc V1.
|
1114
|
+
Generated by GTK-Doc V1.21.1</div>
|
894
1115
|
</body>
|
895
1116
|
</html>
|