[gtksourceviewmm/devel: 2/26] Cleanup and regenerate docs and defs.



commit c760964166cce7852afc8b7c5519f6d0e01d514d
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Fri Dec 11 21:34:34 2009 +0100

    Cleanup and regenerate docs and defs.
    
    * gtksourceview/src/gtksourceview_others.defs: Delete it - current
    methods parser copes with methods written there.
    * gtksourceview/src/filelist.am:
    * gtksourceview/src/gtksourceview.defs: Remove obsolete
    gtksourceview_others.defs.
    * gtksourceview/src/gtksourceview_docs.xml:
    * gtksourceview/src/gtksourceview_enums.defs:
    * gtksourceview/src/gtksourceview_methods.defs:
    * gtksourceview/src/gtksourceview_signals.defs: Regenerated.

 gtksourceview/src/filelist.am                |    1 -
 gtksourceview/src/gtksourceview.defs         |    1 -
 gtksourceview/src/gtksourceview_docs.xml     | 4385 +++++++++++++++++---------
 gtksourceview/src/gtksourceview_enums.defs   |   41 +-
 gtksourceview/src/gtksourceview_methods.defs |  847 ++++--
 gtksourceview/src/gtksourceview_others.defs  |   35 -
 gtksourceview/src/gtksourceview_signals.defs | 1023 ++++++-
 7 files changed, 4532 insertions(+), 1801 deletions(-)
---
diff --git a/gtksourceview/src/filelist.am b/gtksourceview/src/filelist.am
index 1d749f3..dd6b134 100644
--- a/gtksourceview/src/filelist.am
+++ b/gtksourceview/src/filelist.am
@@ -2,7 +2,6 @@ files_defs =				\
 	gtksourceview.defs		\
 	gtksourceview_signals.defs	\
 	gtksourceview_methods.defs	\
-	gtksourceview_others.defs	\
 	gtksourceview_enums.defs	\
 	gtksourceview_docs.xml		\
 	gtksourceview_docs_override.xml
diff --git a/gtksourceview/src/gtksourceview.defs b/gtksourceview/src/gtksourceview.defs
index e6e4e7f..93f6132 100644
--- a/gtksourceview/src/gtksourceview.defs
+++ b/gtksourceview/src/gtksourceview.defs
@@ -1,5 +1,4 @@
 (include gtksourceview_methods.defs)
-(include gtksourceview_others.defs)
 (include gtksourceview_enums.defs)
 (include gtksourceview_signals.defs)
 
diff --git a/gtksourceview/src/gtksourceview_docs.xml b/gtksourceview/src/gtksourceview_docs.xml
index a8dd518..a856dfc 100644
--- a/gtksourceview/src/gtksourceview_docs.xml
+++ b/gtksourceview/src/gtksourceview_docs.xml
@@ -1,23 +1,41 @@
 <root>
-<function name="gtk_source_style_scheme_manager_get_scheme">
+<function name="gtk_source_print_compositor_set_top_margin">
 <description>
-Looks up style scheme by id.
+Sets the top margin used by @compositor.
 
+Since: 2.2
 
 </description>
 <parameters>
-<parameter name="manager">
-<parameter_description> a #GtkSourceStyleSchemeManager
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
 </parameter_description>
 </parameter>
-<parameter name="scheme_id">
-<parameter_description> style scheme id to find
+<parameter name="margin">
+<parameter_description> the new top margin in units of @unit
+</parameter_description>
+</parameter>
+<parameter name="unit">
+<parameter_description> the units for @margin
 </parameter_description>
 </parameter>
 </parameters>
-<return> a #GtkSourceStyleScheme object. Returned value is owned by
- manager and must not be unref&apos;ed.
-</return>
+<return></return>
+</function>
+
+<function name="segment_merge">
+<description>
+ ce: #GtkSourceContextEngine.
+ first: first segment.
+ second: second segment.
+
+Merges adjacent segments @first and @second given
+their contexts are equal.
+
+</description>
+<parameters>
+</parameters>
+<return></return>
 </function>
 
 <function name="get_line_info">
@@ -25,7 +43,7 @@ Looks up style scheme by id.
 @buffer: #GtkTextBuffer.
 @line_start: iterator pointing to the beginning of line.
 @line_start: iterator pointing to the beginning of next line or to the end
-of this line if it&apos;s the last line in @buffer.
+of this line if it's the last line in @buffer.
 @line: #LineInfo structure to be filled.
 
 Retrieves line text from the buffer, finds line terminator and fills
@@ -37,24 +55,42 @@ Retrieves line text from the buffer, finds line terminator and fills
 <return></return>
 </function>
 
-<function name="gtk_source_view_get_mark_category_priority">
+<function name="GtkSourceCompletion">
 <description>
-Gets the priority which is associated with the given @category.
+The ::activate-proposal signal is a keybinding signal which gets
+emitted when the user initiates a proposal activation.
+
+Applications should not connect to it, but may emit it with 
+#g_signal_emit_by_name if they need to control the proposal activation
+programmatically.
 
 
 </description>
 <parameters>
-<parameter name="view">
-<parameter_description> a #GtkSourceView.
+<parameter name="completion">
+<parameter_description> The #GtkSourceCompletion who emits the signal
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_mark_prev">
+<description>
+Returns: the previous #GtkSourceMark or %NULL
+
+</description>
+<parameters>
+<parameter name="mark">
+<parameter_description> a #GtkSourceMark
 </parameter_description>
 </parameter>
 <parameter name="category">
-<parameter_description> a mark category.
+<parameter_description> a string specifying the mark category or %NULL
 </parameter_description>
 </parameter>
 </parameters>
-<return> the priority or if @category
-exists but no priority was set, it defaults to 0.
+<return> the previous #GtkSourceMark or %NULL
 
 Since: 2.2
 </return>
@@ -91,12 +127,39 @@ Sets style scheme used by the buffer.
 <return></return>
 </function>
 
-<function name="container_context_starts_here">
+<function name="gtk_source_completion_utils_get_word_iter">
 <description>
-See child_starts_here().
+ source_buffer: The #GtkSourceBuffer
+ start_word: if != NULL then assign it the start position of the word
+ end_word: if != NULL then assing it the end position of the word
+
+
+</description>
+<parameters>
+</parameters>
+<return> the current word
+
+</return>
+</function>
+
+<function name="gtk_source_style_scheme_set_style">
+<description>
+Since: 2.0
 
 </description>
 <parameters>
+<parameter name="scheme">
+<parameter_description> a #GtkSourceStyleScheme.
+</parameter_description>
+</parameter>
+<parameter name="name">
+<parameter_description> style name.
+</parameter_description>
+</parameter>
+<parameter name="style">
+<parameter_description> style to set or %NULL.
+</parameter_description>
+</parameter>
 </parameters>
 <return></return>
 </function>
@@ -121,6 +184,23 @@ See gtk_source_style_scheme_manager_set_search_path() for details.
 <return></return>
 </function>
 
+<function name="gtk_source_completion_provider_get_name">
+<description>
+Get the name of the provider. This should be a translatable name for
+display to the user. For example: _(&quot;Document word completion provider&quot;).
+
+
+</description>
+<parameters>
+<parameter name="provider">
+<parameter_description> The #GtkSourceCompletionProvider
+</parameter_description>
+</parameter>
+</parameters>
+<return> The name of the provider.
+</return>
+</function>
+
 <function name="segment_ends_here">
 <description>
 @state: the segment.
@@ -128,7 +208,7 @@ See gtk_source_style_scheme_manager_set_search_path() for details.
 @pos: the position inside @line, bytes.
 
 Checks whether given segment ends at pos. Unlike
-child_starts_here() it doesn&apos;t modify tree, it merely
+child_starts_here() it doesn't modify tree, it merely
 calls regex_match() for the end regex.
 
 </description>
@@ -137,95 +217,143 @@ calls regex_match() for the end regex.
 <return></return>
 </function>
 
-<function name="gtk_source_buffer_new_with_language">
+<function name="gtk_source_completion_proposal_changed">
 <description>
-Creates a new source buffer using the highlighting patterns in
- language   This is equivalent to creating a new source buffer with
-a new tag table and then calling gtk_source_buffer_set_language().
+Emits the &quot;changed&quot; signal on @proposal. This should be called by
+implementations whenever the name, icon or info of the proposal has
+changed.
+
+</description>
+<parameters>
+<parameter name="proposal">
+<parameter_description> A #GtkSourceCompletionProposal
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_print_compositor_get_buffer">
+<description>
+Gets the #GtkSourceBuffer associated with the compositor. The returned
+object reference is owned by the compositor object and
+should not be unreferenced.
 
 
 </description>
 <parameters>
-<parameter name="language">
-<parameter_description> a #GtkSourceLanguage.
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
 </parameter_description>
 </parameter>
 </parameters>
-<return> a new source buffer which will highlight text
-according to the highlighting patterns in @language.
+<return> the #GtkSourceBuffer associated with the compositor.
+
+Since: 2.2
 </return>
 </function>
 
-<function name="gtk_source_iter_forward_search">
+<function name="gtk_source_mark_next">
 <description>
-Searches forward for @str. Any match is returned by setting 
- match_start to the first character of the match and @match_end to the 
-first character after the match. The search will not continue past
- limit  Note that a search is a linear or O(n) operation, so you
-may wish to use @limit to avoid locking up your UI on large
-buffers.
+Returns: the next #GtkSourceMark or %NULL
 
-If the #GTK_SOURCE_SEARCH_VISIBLE_ONLY flag is present, the match may
-have invisible text interspersed in @str. i.e. @str will be a
-possibly-noncontiguous subsequence of the matched range. similarly,
-if you specify #GTK_SOURCE_SEARCH_TEXT_ONLY, the match may have
-pixbufs or child widgets mixed inside the matched range. If these
-flags are not given, the match must be exact; the special 0xFFFC
-character in @str will match embedded pixbufs or child widgets.
-If you specify the #GTK_SOURCE_SEARCH_CASE_INSENSITIVE flag, the text will
-be matched regardless of what case it is in.
+</description>
+<parameters>
+<parameter name="mark">
+<parameter_description> a #GtkSourceMark
+</parameter_description>
+</parameter>
+<parameter name="category">
+<parameter_description> a string specifying the mark category or %NULL
+</parameter_description>
+</parameter>
+</parameters>
+<return> the next #GtkSourceMark or %NULL
 
-Same as gtk_text_iter_forward_search(), but supports case insensitive
-searching.
+Since: 2.2
+</return>
+</function>
+
+<function name="gtk_source_view_set_mark_category_icon_from_icon_name">
+<description>
+Sets the icon to be used for @category to the named theme item @name.
+If @name is #NULL, the icon is unset.
 
+Since: 2.8
 
 </description>
 <parameters>
-<parameter name="iter">
-<parameter_description> start of search.
+<parameter name="view">
+<parameter_description> a #GtkSourceView.
 </parameter_description>
 </parameter>
-<parameter name="str">
-<parameter_description> a search string.
+<parameter name="category">
+<parameter_description> a mark category.
 </parameter_description>
 </parameter>
-<parameter name="flags">
-<parameter_description> flags affecting how the search is done.
+<parameter name="name">
+<parameter_description> the themed icon name or #NULL.
 </parameter_description>
 </parameter>
-<parameter name="match_start">
-<parameter_description> return location for start of match, or %%NULL.
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_completion_item_new">
+<description>
+Create a new #GtkSourceCompletionItem with label @label, icon @icon and 
+extra information @info. Both @icon and @info can be %NULL in which case 
+there will be no icon shown and no extra information available.
+
+
+</description>
+<parameters>
+<parameter name="label">
+<parameter_description> The item label
 </parameter_description>
 </parameter>
-<parameter name="match_end">
-<parameter_description> return location for end of match, or %%NULL.
+<parameter name="text">
+<parameter_description> The item text
 </parameter_description>
 </parameter>
-<parameter name="limit">
-<parameter_description> bound for the search, or %%NULL for the end of the buffer.
+<parameter name="icon">
+<parameter_description> The item icon
+</parameter_description>
+</parameter>
+<parameter name="info">
+<parameter_description> The item extra information
 </parameter_description>
 </parameter>
 </parameters>
-<return> whether a match was found.
+<return> The new #GtkSourceCompletionItem.
+
 </return>
 </function>
 
-<function name="gtk_source_style_scheme_set_style">
+<function name="gtk_source_print_compositor_set_line_numbers_font_name">
 <description>
-Since: 2.0
+Sets the font for printing line numbers on the left margin.  If
+%NULL is supplied, the default font (i.e. the one being used for the
+text) will be used instead.  
+
+ font_name should be a
+string representation of a font description Pango can understand.
+(e.g. &quot;Monospace 10&quot;). See pango_font_description_from_string()
+for a description of the format of the string representation. 
+
+This function cannot be called anymore after the first call to the 
+gtk_source_print_compositor_paginate() function.    
+
+Since: 2.2
 
 </description>
 <parameters>
-<parameter name="scheme">
-<parameter_description> a #GtkSourceStyleScheme.
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
 </parameter_description>
 </parameter>
-<parameter name="name">
-<parameter_description> style name.
-</parameter_description>
-</parameter>
-<parameter name="style">
-<parameter_description> style to set or %NULL.
+<parameter name="font_name">
+<parameter_description> the name of the font for line numbers, or %NULL.
 </parameter_description>
 </parameter>
 </parameters>
@@ -260,7 +388,7 @@ Always safe to call.
 </parameter>
 </parameters>
 <return> value of property @name stored in the metadata of @language
-or %NULL if language doesn&apos;t contain that metadata property.
+or %NULL if language doesn't contain that metadata property.
 The returned string is owned by @language and should not be freed
 or modified.
 </return>
@@ -272,7 +400,7 @@ or modified.
 @context: the segment to destroy.
 
 Recursively frees given segment. It removes the segment
-from ce structure, but it doesn&apos;t update parent and
+from ce structure, but it doesn't update parent and
 siblings. segment_remove() is the function that takes
 care of everything.
 
@@ -282,45 +410,82 @@ care of everything.
 <return></return>
 </function>
 
-<function name="_gtk_source_style_scheme_get_default">
+<function name="gtk_source_print_compositor_set_body_font_name">
 <description>
+Sets the default font for the printed text. 
+
+ font_name should be a
+string representation of a font description Pango can understand.
+(e.g. &quot;Monospace 10&quot;). See pango_font_description_from_string()
+for a description of the format of the string representation. 
+
+This function cannot be called anymore after the first call to the 
+gtk_source_print_compositor_paginate() function.   
+
+Since: 2.2
 
 </description>
 <parameters>
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
+</parameter_description>
+</parameter>
+<parameter name="font_name">
+<parameter_description> the name of the default font for the body text.
+</parameter_description>
+</parameter>
 </parameters>
-<return> default style scheme to be used when user didn&apos;t set
-style scheme explicitly.
+<return></return>
+</function>
 
-Since: 2.0
+<function name="gtk_source_buffer_get_highlight_matching_brackets">
+<description>
+Determines whether bracket match highlighting is activated for the
+source buffer.
+
+
+</description>
+<parameters>
+<parameter name="buffer">
+<parameter_description> a #GtkSourceBuffer.
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the source buffer will highlight matching
+brackets.
 </return>
 </function>
 
-<function name="gtk_source_view_get_indent_width">
+<function name="gtk_source_completion_add_provider">
 <description>
-Return value: indent width.
+Add a new #GtkSourceCompletionProvider to the completion object. This will
+add a reference @provider, so make sure to unref your own copy when you
+no longer need it.
+
 
 </description>
 <parameters>
-<parameter name="view">
-<parameter_description> a #GtkSourceView.
+<parameter name="completion">
+<parameter_description> A #GtkSourceCompletion
+</parameter_description>
+</parameter>
+<parameter name="provider">
+<parameter_description> A #GtkSourceCompletionProvider
+</parameter_description>
+</parameter>
+<parameter name="error">
+<parameter_description> A #GError
 </parameter_description>
 </parameter>
 </parameters>
-<return> indent width.
+<return> %TRUE if @provider was successfully added, otherwise if @error
+is provided, it will be set with the error and %FALSE is returned.
 </return>
 </function>
 
-<function name="find_insertion_place_forward_">
+<function name="GtkSourceCompletionContext">
 <description>
- segment: (grand)parent segment the new one should be inserted into.
- offset: offset at which text is inserted.
- start: segment from which to start search (to avoid
-walking whole tree).
- parent: initialized with the parent of new segment.
- prev: initialized with the previous sibling of new segment.
- next: initialized with the next sibling of new segment.
-
-Auxiliary function used in find_insertion_place().
+The completion activation
 
 </description>
 <parameters>
@@ -328,6 +493,24 @@ Auxiliary function used in find_insertion_place().
 <return></return>
 </function>
 
+<function name="gtk_source_print_compositor_get_line_numbers_font_name">
+<description>
+Return value: a new string containing the name of the font used to print 
+
+</description>
+<parameters>
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
+</parameter_description>
+</parameter>
+</parameters>
+<return> a new string containing the name of the font used to print 
+line numbers on the left margin.
+
+Since: 2.2
+</return>
+</function>
+
 <function name="ancestor_context_ends_here">
 <description>
 @state: current context.
@@ -336,7 +519,7 @@ Auxiliary function used in find_insertion_place().
 
 Verifies if some ancestor context ends at the current position.
 This function only checks conetxts and does not modify the tree,
-it&apos;s used by ancestor_ends_here().
+it's used by ancestor_ends_here().
 
 
 </description>
@@ -346,6 +529,38 @@ it&apos;s used by ancestor_ends_here().
 </return>
 </function>
 
+<function name="gtk_source_view_set_highlight_current_line">
+<description>
+If @show is %TRUE the current line is highlighted.
+
+</description>
+<parameters>
+<parameter name="view">
+<parameter_description> a #GtkSourceView
+</parameter_description>
+</parameter>
+<parameter name="show">
+<parameter_description> whether to highlight the current line
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_completion_hide">
+<description>
+Hides the completion if it is active (visible).
+
+</description>
+<parameters>
+<parameter name="completion">
+<parameter_description> A #GtkSourceCompletion
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="gtk_source_undo_manager_merge_action">
 <description>
 This function tries to merge the undo action at the top of
@@ -364,85 +579,76 @@ typing, we can undo the whole word and not each letter by itself.
 </parameter_description>
 </parameter>
 </parameters>
-<return> %TRUE is merge was sucessful, %FALSE otherwise.
+<return> %TRUE is merge was sucessful, %FALSE otherwise.²
 </return>
 </function>
 
-<function name="gtk_source_view_get_mark_category_pixbuf">
+<function name="GtkSourceView">
 <description>
-Gets the pixbuf which is associated with the given mark @category.
-
+Emitted when a line mark has been activated (for instance when there 
+was a button press in the line marks gutter). You can use @iter to
+determine on which line the activation took place.
 
 </description>
 <parameters>
 <parameter name="view">
-<parameter_description> a #GtkSourceView.
+<parameter_description> the #GtkSourceView
 </parameter_description>
 </parameter>
-<parameter name="category">
-<parameter_description> a mark category.
+<parameter name="iter">
+<parameter_description> a #GtkTextIter
+</parameter_description>
+</parameter>
+<parameter name="event">
+<parameter_description> the #GdkEvent that activated the event
 </parameter_description>
 </parameter>
 </parameters>
-<return> the associated #GdkPixbuf, or %NULL if not found.
-
-Since: 2.2
-</return>
+<return></return>
 </function>
 
-<function name="g_match_info_next">
+<function name="sub_pattern_to_int">
 <description>
-Scans for the next match using the same parameters of the previous
-call to g_regex_match_full() or g_regex_match() that returned
- match_info 
-
-The match is done on the string passed to the match function, so you
-cannot free it before calling this function.
+ name: the string from lang file.
 
+Tries to convert @name to a number and assumes
+it's a name if that fails. Used for references in
+subpattern contexts (e.g. \%{1 start} or \%{blah start}).
 
 </description>
 <parameters>
-<parameter name="match_info">
-<parameter_description> a #GMatchInfo structure
-</parameter_description>
-</parameter>
-<parameter name="error">
-<parameter_description> location to store the error occuring, or NULL to ignore errors
-</parameter_description>
-</parameter>
 </parameters>
-<return> %TRUE is the string matched, %FALSE otherwise
-
-Since: 2.14
-</return>
+<return></return>
 </function>
 
-<function name="gtk_source_buffer_forward_iter_to_mark">
+<function name="gtk_source_print_compositor_set_header_font_name">
 <description>
-Moves @iter to the position of the next #GtkSourceMark of the given
- category  Returns #TRUE if @iter was moved. If @category is NULL, the
-next source mark can be of any category.
+Sets the font for printing the page header. If
+%NULL is supplied, the default font (i.e. the one being used for the
+text) will be used instead.  
+
+ font_name should be a
+string representation of a font description Pango can understand.
+(e.g. &quot;Monospace 10&quot;). See pango_font_description_from_string()
+for a description of the format of the string representation. 
 
+This function cannot be called anymore after the first call to the 
+gtk_source_print_compositor_paginate() function.    
+
+Since: 2.2
 
 </description>
 <parameters>
-<parameter name="buffer">
-<parameter_description> a #GtkSourceBuffer.
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
 </parameter_description>
 </parameter>
-<parameter name="iter">
-<parameter_description> an iterator.
-</parameter_description>
-</parameter>
-<parameter name="category">
-<parameter_description> category to search for or %NULL
+<parameter name="font_name">
+<parameter_description> the name of the font for header text, or %NULL.
 </parameter_description>
 </parameter>
 </parameters>
-<return> whether iter moved.
-
-Since: 2.2
-</return>
+<return></return>
 </function>
 
 <function name="gtk_source_style_scheme_manager_force_rescan">
@@ -481,29 +687,37 @@ Since: 2.0
 </return>
 </function>
 
-<function name="g_match_info_get_match_count">
+<function name="gtk_source_completion_utils_move_to_iter">
 <description>
-Retrieves the number of matched substrings (including substring 0, that
-is the whole matched text), so 1 is returned if the pattern has no
-substrings in it and 0 is returned if the match failed.
-
-If the last match was obtained using the DFA algorithm, that is using
-g_regex_match_all() or g_regex_match_all_full(), the retrieved
-count is not that of the number of capturing parentheses but that of
-the number of matched substrings.
-
 
 </description>
 <parameters>
-<parameter name="match_info">
-<parameter_description> a #GMatchInfo structure
+<parameter name="window">
+<parameter_description> the #GtkWindow to move
+</parameter_description>
+</parameter>
+<parameter name="view">
+<parameter_description> the view 
+</parameter_description>
+</parameter>
+<parameter name="iter">
+<parameter_description> the iter to move @window to
 </parameter_description>
 </parameter>
 </parameters>
-<return>  Number of matched substrings, or -1 if an error occurred
+<return></return>
+</function>
 
-Since: 2.14
-</return>
+<function name="line_info_destroy">
+<description>
+ line: #LineInfo.
+
+Destroys data allocated by get_line_info().
+
+</description>
+<parameters>
+</parameters>
+<return></return>
 </function>
 
 <function name="erase_segments">
@@ -515,7 +729,7 @@ Since: 2.14
 
 Erases all non-toplevel segments in the interval
 [ start, @end]. Its action on the tree is roughly
-equivalent to segment_erase_range_(ce-&amp;gt;priv-&amp;gt;root_segment, start, end)
+equivalent to segment_erase_range_(ce-&gt;priv-&gt;root_segment, start, end)
 (but that does not accept toplevel segment).
 
 </description>
@@ -524,114 +738,78 @@ equivalent to segment_erase_range_(ce-&amp;gt;priv-&amp;gt;root_segment, start,
 <return></return>
 </function>
 
-<function name="gtk_source_buffer_get_language">
+<function name="gtk_source_language_get_style_name">
 <description>
-Return value: #GtkSourceLanguage associated with the buffer, or %NULL.
+Returns: the name of the style with ID @style_id defined by this @language or
 
 </description>
 <parameters>
-<parameter name="buffer">
-<parameter_description> a #GtkSourceBuffer.
+<parameter name="language">
+<parameter_description> a #GtkSourceLanguage
+</parameter_description>
+</parameter>
+<parameter name="style_id">
+<parameter_description> a style ID
 </parameter_description>
 </parameter>
 </parameters>
-<return> #GtkSourceLanguage associated with the buffer, or %NULL.
+<return> the name of the style with ID @style_id defined by this @language or
+%NULL if the style has no name or there is no style with ID @style_id defined
+by this @language. The returned string is owned by the @language and must
+not be modified.
 </return>
 </function>
 
-<function name="g_match_info_fetch_named_pos">
+<function name="get_invalid_line">
 <description>
-Retrieves the position of the capturing parentheses named @name.
-
-If @name is a valid sub pattern name but it didn&apos;t match anything (e.g.
-sub pattern &quot;X&quot;, matching &quot;b&quot; against &quot;(?P&amp;lt;X&amp;gt;a)?b&quot;) then @start_pos and
- end_pos are set to -1 and %TRUE is returned.
+ ce: a #GtkSourceContextEngine.
 
 
 </description>
 <parameters>
-<parameter name="match_info">
-<parameter_description> #GMatchInfo structure
-</parameter_description>
-</parameter>
-<parameter name="name">
-<parameter_description> name of the subexpression
-</parameter_description>
-</parameter>
-<parameter name="start_pos">
-<parameter_description> pointer to location where to store the start position
-</parameter_description>
-</parameter>
-<parameter name="end_pos">
-<parameter_description> pointer to location where to store the end position
-</parameter_description>
-</parameter>
 </parameters>
-<return> %TRUE if the position was fetched, %FALSE otherwise. If the
-position cannot be fetched, @start_pos and @end_pos are left
-unchanged.
-
-Since: 2.14
+<return> first invalid line, or -1.
 </return>
 </function>
 
-<function name="gtk_source_language_get_style_name">
+<function name="simple_segment_split_">
 <description>
-Returns: the name of the style with ID @style_id defined by this @language or
+ ce: the engine.
+ segment: segment to split.
+ offset: offset at which text insertion occurred.
+
+Creates a new invalid segment and inserts it in the middle
+of the given one. Called from insert_range() to mark inserted
+text.
+
 
 </description>
 <parameters>
-<parameter name="language">
-<parameter_description> a #GtkSourceLanguage
-</parameter_description>
-</parameter>
-<parameter name="style_id">
-<parameter_description> a style ID
-</parameter_description>
-</parameter>
 </parameters>
-<return> the name of the style with ID @style_id defined by this @language or
-%NULL if the style has no name or there is no style with ID @style_id defined
-by this @language. The returned string is owned by the @language and must
-not be modified.
+<return> new invalid segment.
 </return>
 </function>
 
-<function name="g_match_info_fetch">
+<function name="gtk_source_view_get_mark_category_priority">
 <description>
-Retrieves the text matching the @match_num&amp;lt;!-- --&amp;gt;&apos;th capturing parentheses.
-0 is the full text of the match, 1 is the first paren set, 2 the second,
-and so on.
-
-If @match_num is a valid sub pattern but it didn&apos;t match anything (e.g.
-sub pattern 1, matching &quot;b&quot; against &quot;(a)?b&quot;) then an empty string is
-returned.
-
-If the match was obtained using the DFA algorithm, that is using
-g_regex_match_all() or g_regex_match_all_full(), the retrieved
-string is not that of a set of parentheses but that of a matched
-substring. Substrings are matched in reverse order of length, so 0 is
-the longest match.
-
-The string is fetched from the string passed to the match function,
-so you cannot call this function after freeing the string.
+Gets the priority which is associated with the given @category.
 
 
 </description>
 <parameters>
-<parameter name="match_info">
-<parameter_description> #GMatchInfo structure
+<parameter name="view">
+<parameter_description> a #GtkSourceView.
 </parameter_description>
 </parameter>
-<parameter name="match_num">
-<parameter_description> number of the sub expression
+<parameter name="category">
+<parameter_description> a mark category.
 </parameter_description>
 </parameter>
 </parameters>
-<return> The matched substring, or %NULL if an error occurred.
-You have to free the string yourself
+<return> the priority or if @category
+exists but no priority was set, it defaults to 0.
 
-Since: 2.14
+Since: 2.2
 </return>
 </function>
 
@@ -648,6 +826,23 @@ manager then use gtk_source_style_scheme_manager_get_default() instead.
 </return>
 </function>
 
+<function name="gtk_source_print_compositor_get_tab_width">
+<description>
+Return value: width of tab.
+
+</description>
+<parameters>
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
+</parameter_description>
+</parameter>
+</parameters>
+<return> width of tab.
+
+Since: 2.2
+</return>
+</function>
+
 <function name="gtk_source_buffer_end_not_undoable_action">
 <description>
 Marks the end of a not undoable action on the buffer.  When the
@@ -665,49 +860,40 @@ is re-enabled.
 <return></return>
 </function>
 
-<function name="g_match_info_get_string">
+<function name="gtk_source_completion_info_get_widget">
 <description>
-Returns: the string searched with @match_info
+Get the current content widget.
+
 
 </description>
 <parameters>
-<parameter name="match_info">
-<parameter_description> a #GMatchInfo
+<parameter name="info">
+<parameter_description> A #GtkSourceCompletionInfo
 </parameter_description>
 </parameter>
 </parameters>
-<return> the string searched with @match_info
+<return> The current content widget.
 
-Since: 2.14
 </return>
 </function>
 
-<function name="gtk_source_buffer_backward_iter_to_mark">
+<function name="gtk_source_completion_move_window">
 <description>
-Moves @iter to the position of the previous #GtkSourceMark of the given
-category. Returns #TRUE if @iter was moved. If @category is NULL, the
-previous source mark can be of any category.
+Move the completion window to a specific iter.
 
 
 </description>
 <parameters>
-<parameter name="buffer">
-<parameter_description> a #GtkSourceBuffer.
+<parameter name="completion">
+<parameter_description> A #GtkSourceCompletion
 </parameter_description>
 </parameter>
 <parameter name="iter">
-<parameter_description> an iterator.
-</parameter_description>
-</parameter>
-<parameter name="category">
-<parameter_description> category to search for or %NULL
+<parameter_description> A #GtkTextIter
 </parameter_description>
 </parameter>
 </parameters>
-<return> whether iter moved.
-
-Since: 2.2
-</return>
+<return></return>
 </function>
 
 <function name="find_single_byte_escape">
@@ -724,12 +910,68 @@ to crash if used for highlighting.
 <return></return>
 </function>
 
+<function name="gtk_source_print_compositor_get_right_margin">
+<description>
+Gets the right margin in units of @unit.
+
+
+</description>
+<parameters>
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
+</parameter_description>
+</parameter>
+<parameter name="unit">
+<parameter_description> the unit for the return value.
+</parameter_description>
+</parameter>
+</parameters>
+<return> the right margin
+
+Since: 2.2
+</return>
+</function>
+
+<function name="gtk_source_completion_provider_get_activation">
+<description>
+Get with what kind of activation the provider should be activated.
+
+
+</description>
+<parameters>
+<parameter name="provider">
+<parameter_description> A #GtkSourceCompletionProvider
+</parameter_description>
+</parameter>
+</parameters>
+<return> a combination of #GtkSourceCompletionActivation.
+
+</return>
+</function>
+
+<function name="gtk_source_completion_get_info_window">
+<description>
+The info widget is the window where the completion displays optional extra
+information of the proposal.
+
+
+</description>
+<parameters>
+<parameter name="completion">
+<parameter_description> A #GtkSourceCompletion
+</parameter_description>
+</parameter>
+</parameters>
+<return> The #GtkSourceCompletionInfo window.
+</return>
+</function>
+
 <function name="segment_tree_zero_len">
 <description>
 @ce: #GtkSoucreContextEngine.
 
 Erases syntax tree and sets root segment length to zero.
-It&apos;s a shortcut for case when all the text is deleted from
+It's a shortcut for case when all the text is deleted from
 the buffer.
 
 </description>
@@ -738,6 +980,24 @@ the buffer.
 <return></return>
 </function>
 
+<function name="gtk_source_print_compositor_get_footer_font_name">
+<description>
+Return value: a new string containing the name of the font used to print 
+
+</description>
+<parameters>
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
+</parameter_description>
+</parameter>
+</parameters>
+<return> a new string containing the name of the font used to print 
+the page footer.
+
+Since: 2.2
+</return>
+</function>
+
 <function name="gtk_source_buffer_begin_not_undoable_action">
 <description>
 Marks the beginning of a not undoable action on the buffer,
@@ -765,7 +1025,7 @@ gtk_source_buffer_end_not_undoable_action() blocks.
 @end_at: end offset of the subpattern.
 @sp_def: the subppatern definition.
 
-Creates new subpattern and adds it to the segment&apos;s
+Creates new subpattern and adds it to the segment's
 subpatterns list.
 
 
@@ -776,39 +1036,36 @@ subpatterns list.
 </return>
 </function>
 
-<function name="GtkSourceBuffer">
+<function name="gtk_source_print_compositor_get_highlight_syntax">
 <description>
-The ::source_mark_updated signal is emitted each time 
-a mark is added to, moved or removed from the @buffer.
+Determines whether the printed text will be highlighted according to the
+buffer rules.  Note that highlighting will happen
+only if the buffer to print has highlighting activated.
+
 
 </description>
 <parameters>
-<parameter name="buffer">
-<parameter_description> the buffer that received the signal
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
 </parameter_description>
 </parameter>
 </parameters>
-<return></return>
+<return> %TRUE if the printed output will be highlighted.
+
+Since: 2.2
+</return>
 </function>
 
-<function name="insert_range">
+<function name="get_invalid_segment">
 <description>
 @ce: a #GtkSourceContextEngine.
- offset: the start of new segment.
- length: the length of the segment.
 
-Updates segment tree after insertion: it updates tree
-offsets as appropriate, and inserts a new invalid segment
-or extends existing invalid segment as @offset, so
-after the call segment [ offset, @offset + @length) is marked
-invalid in the tree.
-It may be safely called with length == 0 at any moment
-to invalidate some offset (and it&apos;s used here and there).
 
 </description>
 <parameters>
 </parameters>
-<return></return>
+<return> first invalid segment, or %NULL.
+</return>
 </function>
 
 <function name="create_segment">
@@ -849,10 +1106,58 @@ buffer edits.
 </return>
 </function>
 
-<function name="gtk_source_view_get_right_margin_position">
+<function name="gtk_source_print_compositor_set_footer_format">
 <description>
-Gets the position of the right margin in the given @view.
+Sets strftime like header format strings, to be printed on the
+left, center and right of the bottom of each page. The strings may
+include strftime(3) codes which will be expanded at print time.
+All strftime() codes are accepted, with the addition of %N for the
+page number and %Q for the page count.
+
+ separator specifies if a solid line should be drawn to separate
+the footer from the document text.
+
+If %NULL is given for any of the three arguments, that particular
+string will not be printed.
+
+For the footer to be printed, in
+addition to specifying format strings, you need to enable footer
+printing with gtk_source_print_compositor_set_print_footer().
+
+This function cannot be called anymore after the first call to the 
+gtk_source_print_compositor_paginate() function.    
+
+Since: 2.2
+
+</description>
+<parameters>
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
+</parameter_description>
+</parameter>
+<parameter name="separator">
+<parameter_description> %TRUE if you want a separator line to be printed.
+</parameter_description>
+</parameter>
+<parameter name="left">
+<parameter_description> a format string to print on the left of the footer.
+</parameter_description>
+</parameter>
+<parameter name="center">
+<parameter_description> a format string to print on the center of the footer.
+</parameter_description>
+</parameter>
+<parameter name="right">
+<parameter_description> a format string to print on the right of the footer.
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
 
+<function name="gtk_source_view_get_show_line_numbers">
+<description>
+Return value: %TRUE if the line numbers are displayed.
 
 </description>
 <parameters>
@@ -861,33 +1166,21 @@ Gets the position of the right margin in the given @view.
 </parameter_description>
 </parameter>
 </parameters>
-<return> the position of the right margin.
+<return> %TRUE if the line numbers are displayed.
 </return>
 </function>
 
-<function name="gtk_source_buffer_remove_marks">
+<function name="gtk_source_gutter_queue_draw">
 <description>
-Remove all marks of @category between @start and @end from the buffer.
-If @category is NULL, all marks in the range will be removed.
+Invalidates the drawable area of the gutter. You can use this to force a
+redraw of the gutter if something has changed and needs to be redrawn.
 
-Since: 2.2
+Since: 2.8
 
 </description>
 <parameters>
-<parameter name="buffer">
-<parameter_description> a #GtkSourceBuffer.
-</parameter_description>
-</parameter>
-<parameter name="start">
-<parameter_description> a #GtkTextIter
-</parameter_description>
-</parameter>
-<parameter name="end">
-<parameter_description> a #GtkTextIter
-</parameter_description>
-</parameter>
-<parameter name="category">
-<parameter_description> category to search for or NULL
+<parameter name="gutter">
+<parameter_description> a #GtkSourceGutter
 </parameter_description>
 </parameter>
 </parameters>
@@ -911,48 +1204,100 @@ Since: 2.0
 </return>
 </function>
 
-<function name="g_regex_split">
+<function name="gtk_source_completion_provider_populate">
 <description>
-Breaks the string on the pattern, and returns an array of the tokens.
-If the pattern contains capturing parentheses, then the text for each
-of the substrings will also be returned. If the pattern does not match
-anywhere in the string, then the whole string is returned as the first
-token.
+Populate @context with proposals from @provider
 
-As a special case, the result of splitting the empty string &quot;&quot; is an
-empty vector, not a vector containing a single string. The reason for
-this special case is that being able to represent a empty vector is
-typically more useful than consistent handling of empty elements. If
-you do need to represent empty elements, you&apos;ll need to check for the
-empty string before calling this function.
 
-A pattern that can match empty strings splits @string into separate
-characters wherever it matches the empty string between characters.
-For example splitting &quot;ab c&quot; using as a separator &quot;\s*&quot;, you will get
-&quot;a&quot;, &quot;b&quot; and &quot;c&quot;.
+</description>
+<parameters>
+<parameter name="provider">
+<parameter_description> The #GtkSourceCompletionProvider
+</parameter_description>
+</parameter>
+<parameter name="context">
+<parameter_description> The #GtkSourceCompletionContext
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
 
+<function name="gtk_source_view_get_gutter">
+<description>
+Returns: the #GtkSourceGutter.
 
 </description>
 <parameters>
-<parameter name="regex">
-<parameter_description> a #GRegex structure
+<parameter name="view">
+<parameter_description> a #GtkSourceView
 </parameter_description>
 </parameter>
-<parameter name="string">
-<parameter_description> the string to split with the pattern
+<parameter name="window_type">
+<parameter_description> the gutter window type
+</parameter_description>
+</parameter>
+</parameters>
+<return> the #GtkSourceGutter.
+</return>
+</function>
+
+<function name="gtk_source_completion_provider_get_info_widget">
+<description>
+Get a customized info widget to show extra information of a proposal.
+This allows for customized widgets on a proposal basis, although in general
+providers will have the same custom widget for all their proposals and
+ proposal can be ignored. The implementation of this function is optional. 
+If implemented, #gtk_source_completion_provider_update_info MUST also be
+implemented. If not implemented, the default 
+#gtk_source_completion_proposal_get_info will be used to display extra
+information about a #GtkSourceCompletionProposal.
+
+
+</description>
+<parameters>
+<parameter name="provider">
+<parameter_description> The #GtkSourceCompletionProvider
 </parameter_description>
 </parameter>
-<parameter name="match_options">
-<parameter_description> match time option flags
+<parameter name="proposal">
+<parameter_description> The currently selected #GtkSourceCompletionProposal
 </parameter_description>
 </parameter>
 </parameters>
-<return> a %NULL-terminated gchar ** array. Free it using g_strfreev()
-
-Since: 2.14
+<return> a custom #GtkWidget to show extra information about @proposal.
 </return>
 </function>
 
+<function name="gtk_source_print_compositor_set_print_header">
+<description>
+Sets whether you want to print a header in each page.  The 
+header consists of three pieces of text and an optional line
+separator, configurable with
+gtk_source_print_compositor_set_header_format().
+
+Note that by default the header format is unspecified, and if it's
+empty it will not be printed, regardless of this setting.
+
+This function cannot be called anymore after the first call to the 
+gtk_source_print_compositor_paginate() function.    
+
+Since: 2.2
+
+</description>
+<parameters>
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
+</parameter_description>
+</parameter>
+<parameter name="print">
+<parameter_description> %TRUE if you want the header to be printed.
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="gtk_source_context_engine_text_inserted">
 <description>
 @ce: a #GtkSourceContextEngine.
@@ -967,45 +1312,102 @@ Called from GtkTextBuffer::insert_text.
 <return></return>
 </function>
 
-<function name="_gtk_source_language_get_language_manager">
+<function name="gtk_source_print_compositor_get_print_footer">
 <description>
+Determines if a footer is set to be printed for each page.  A
+footer will be printed if this function returns %TRUE
+&lt;emphasis&gt;and&lt;/emphasis&gt; some format strings have been specified
+with gtk_source_print_compositor_set_footer_format().
+
 
 </description>
 <parameters>
-<parameter name="language">
-<parameter_description> a #GtkSourceLanguage.
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
 </parameter_description>
 </parameter>
 </parameters>
-<return> #GtkSourceLanguageManager for @language.
+<return> %TRUE if the footer is set to be printed.
+
+Since: 2.2
 </return>
 </function>
 
-<function name="_gtk_source_context_data_unref">
+<function name="gtk_source_completion_proposal_equal">
 <description>
- ctx_data: #GtkSourceContextData.
+Get whether two proposal objects are the same.  This is used to (together 
+with #gtk_source_completion_proposal_hash) to match proposals in the 
+completion model. By default, it uses direct equality (#g_direct_equal).
 
-Decreases reference count in ctx_data. When reference count
-drops to zero, ctx_data is freed, and ctx_data-&amp;gt;lang-&amp;gt;priv-&amp;gt;ctx_data
-is unset.
 
 </description>
 <parameters>
+<parameter name="proposal">
+<parameter_description> A #GtkSourceCompletionProposal
+</parameter_description>
+</parameter>
+<parameter name="other">
+<parameter_description> A #GtkSourceCompletionProposal
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if @proposal and @object are the same proposal
+
+</return>
+</function>
+
+<function name="gtk_source_print_compositor_draw_page">
+<description>
+Draw page @page_nr for printing on the the Cairo context encapsuled in @context.
+
+This method has been designed to be called in the handler of the #GtkPrintOperation::draw_page signal
+as shown in the following example:
+
+&lt;informalexample&gt;&lt;programlisting&gt;
+// Signal handler for the GtkPrintOperation::draw_page signal
+
+static void
+draw_page (GtkPrintOperation *operation,
+GtkPrintContext   *context,
+gint               page_nr,
+gpointer           user_data)
+{
+GtkSourcePrintCompositor *compositor;
+
+compositor = GTK_SOURCE_PRINT_COMPOSITOR (user_data);
+
+gtk_source_print_compositor_draw_page (compositor, 
+context,
+page_nr);
+}
+&lt;/programlisting&gt;&lt;/informalexample&gt;
+
+</description>
+<parameters>
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
+</parameter_description>
+</parameter>
+<parameter name="context">
+<parameter_description> the #GtkPrintContext encapsulating the context information that is required when 
+drawing the page for printing.
+</parameter_description>
+</parameter>
+<parameter name="page_nr">
+<parameter_description> the number of the page to print.
+</parameter_description>
+</parameter>
 </parameters>
 <return></return>
 </function>
 
-<function name="ensure_highlighted">
+<function name="_gtk_source_context_data_unref">
 <description>
- ce: a #GtkSourceContextEngine.
- start: the beginning of the region to highlight.
- end: the end of the region to highlight.
+ ctx_data: #GtkSourceContextData.
 
-Updates text tags in reanalyzed parts of given area.
-It applies tags according to whatever is in the syntax
-tree currently, so highlighting may not be correct
-(gtk_source_context_engine_update_highlight is the method
-that actually ensures correct highlighting).
+Decreases reference count in ctx_data. When reference count
+drops to zero, ctx_data is freed, and ctx_data-&gt;lang-&gt;priv-&gt;ctx_data
+is unset.
 
 </description>
 <parameters>
@@ -1013,9 +1415,9 @@ that actually ensures correct highlighting).
 <return></return>
 </function>
 
-<function name="gtk_source_language_get_section">
+<function name="gtk_source_language_get_id">
 <description>
-Returns: the section of @language.
+Returns: the ID of @language.
 
 </description>
 <parameters>
@@ -1024,51 +1426,67 @@ Returns: the section of @language.
 </parameter_description>
 </parameter>
 </parameters>
-<return> the section of @language.
+<return> the ID of @language.
 The returned string is owned by @language and should not be freed
 or modified.
 </return>
 </function>
 
-<function name="gtk_source_buffer_create_mark">
+<function name="gtk_source_print_compositor_set_wrap_mode">
 <description>
-Creates a source mark in the @buffer of category @category.  A source mark is
-a #GtkTextMark but organised into categories. Depending on the category
-a pixbuf can be specified that will be displayed along the line of the mark.
-
-Like a #GtkTextMark, a #GtkSourceMark can be anonymous if the
-passed @name is %NULL.  Also, the buffer owns the marks so you
-shouldn&apos;t unreference it.
+Sets the line wrapping mode for the printed text.
 
-Marks always have left gravity and are moved to the beginning of
-the line when the user deletes the line they were in.
-
-Typical uses for a source mark are bookmarks, breakpoints, current
-executing instruction indication in a source file, etc..
+This function cannot be called anymore after the first call to the 
+gtk_source_print_compositor_paginate() function.  
 
+Since: 2.2
 
 </description>
 <parameters>
-<parameter name="buffer">
-<parameter_description> a #GtkSourceBuffer.
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
 </parameter_description>
 </parameter>
-<parameter name="name">
-<parameter_description> the name of the mark, or %NULL.
+<parameter name="wrap_mode">
+<parameter_description> a #GtkWrapMode.
 </parameter_description>
 </parameter>
-<parameter name="category">
-<parameter_description> a string defining the mark category.
+</parameters>
+<return></return>
+</function>
+
+<function name="GtkSourceCompletionInfo">
+<description>
+This signal is emited before any &quot;show&quot; management. You can connect
+to this signal if you want to change some properties or position
+before to so the real &quot;show&quot;.
+
+</description>
+<parameters>
+<parameter name="info">
+<parameter_description> The #GscInf who emits the signal
 </parameter_description>
 </parameter>
-<parameter name="where">
-<parameter_description> location to place the mark.
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_buffer_new_with_language">
+<description>
+Creates a new source buffer using the highlighting patterns in
+ language   This is equivalent to creating a new source buffer with
+a new tag table and then calling gtk_source_buffer_set_language().
+
+
+</description>
+<parameters>
+<parameter name="language">
+<parameter_description> a #GtkSourceLanguage.
 </parameter_description>
 </parameter>
 </parameters>
-<return> a new #GtkSourceMark, owned by the buffer.
-
-Since: 2.2
+<return> a new source buffer which will highlight text
+according to the highlighting patterns in @language.
 </return>
 </function>
 
@@ -1091,13 +1509,13 @@ to check whether a call to this function will have any effect.
 <description>
 Forces buffer to analyze and highlight the given area synchronously.
 
-&amp;lt;note&amp;gt;
-&amp;lt;para&amp;gt;
+&lt;note&gt;
+&lt;para&gt;
 This is a potentially slow operation and should be used only
 when you need to make sure that some text not currently
 visible is highlighted, for instance before printing.
-&amp;lt;/para&amp;gt;
-&amp;lt;/note&amp;gt;
+&lt;/para&gt;
+&lt;/note&gt;
 
 </description>
 <parameters>
@@ -1117,18 +1535,20 @@ visible is highlighted, for instance before printing.
 <return></return>
 </function>
 
-<function name="gtk_source_context_engine_attach_buffer">
+<function name="fix_offset_delete_one_">
 <description>
- ce: #GtkSourceContextEngine.
- buffer: buffer.
+ offset: segment.
+ start: start of deleted text.
+ length: length of deleted text.
 
-Detaches engine from previous buffer, and attaches to @buffer if
-it&apos;s not %NULL.
 
 </description>
 <parameters>
 </parameters>
-<return></return>
+<return> new offset depending on location of @offset
+relative to deleted text.
+Called only from fix_offsets_delete_().
+</return>
 </function>
 
 <function name="gtk_source_buffer_set_highlight_syntax">
@@ -1137,7 +1557,7 @@ Controls whether syntax is highlighted in the buffer. If @highlight
 is %TRUE, the text will be highlighted according to the syntax
 patterns specified in the language set with
 gtk_source_buffer_set_language(). If @highlight is %FALSE, syntax highlighting
-is disabled and all the GtkTextTag objects that have been added by the 
+is disabled and all the GtkTextTag objects that have been added by the
 syntax highlighting engine are removed from the buffer.
 
 </description>
@@ -1154,6 +1574,48 @@ syntax highlighting engine are removed from the buffer.
 <return></return>
 </function>
 
+<function name="gtk_source_print_compositor_new">
+<description>
+Creates a new print compositor that can be used to print @buffer.
+
+
+</description>
+<parameters>
+<parameter name="buffer">
+<parameter_description> the #GtkSourceBuffer to print
+</parameter_description>
+</parameter>
+</parameters>
+<return> a new print compositor object.
+
+Since: 2.2
+</return>
+</function>
+
+<function name="gtk_source_print_compositor_set_bottom_margin">
+<description>
+Sets the bottom margin used by @compositor.
+
+Since: 2.2
+
+</description>
+<parameters>
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
+</parameter_description>
+</parameter>
+<parameter name="margin">
+<parameter_description> the new bottom margin in units of @unit
+</parameter_description>
+</parameter>
+<parameter name="unit">
+<parameter_description> the units for @margin
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="gtk_source_view_get_show_line_marks">
 <description>
 Return value: %TRUE if the line marks are displayed.
@@ -1171,39 +1633,48 @@ Since: 2.2
 </return>
 </function>
 
-<function name="g_regex_ref">
+<function name="gtk_source_buffer_backward_iter_to_source_mark">
 <description>
-Increases reference count of @regex by 1.
+Moves @iter to the position of the previous #GtkSourceMark of the given
+category. Returns #TRUE if @iter was moved. If @category is NULL, the
+previous source mark can be of any category.
 
 
 </description>
 <parameters>
-<parameter name="regex">
-<parameter_description> a #GRegex
+<parameter name="buffer">
+<parameter_description> a #GtkSourceBuffer.
+</parameter_description>
+</parameter>
+<parameter name="iter">
+<parameter_description> an iterator.
+</parameter_description>
+</parameter>
+<parameter name="category">
+<parameter_description> category to search for or %NULL
 </parameter_description>
 </parameter>
 </parameters>
-<return> @regex
+<return> whether iter moved.
 
-Since: 2.14
+Since: 2.2
 </return>
 </function>
 
-<function name="invalidate_region">
+<function name="gtk_source_completion_context_get_activation">
 <description>
- ce: a #GtkSourceContextEngine.
- offset: the start of invalidated area.
- length: the length of the area.
+Get the context activation
 
-Adds the area to the invalid region and queues highlighting.
- length may be negative which means deletion; positive
-means insertion; 0 means &quot;something happened here&quot;, it&apos;s
-treated as zero-length insertion.
 
 </description>
 <parameters>
+<parameter name="context">
+<parameter_description> A #GtkSourceCompletionContext
+</parameter_description>
+</parameter>
 </parameters>
-<return></return>
+<return> The context activation
+</return>
 </function>
 
 <function name="apply_match">
@@ -1230,6 +1701,46 @@ sub patterns.
 </return>
 </function>
 
+<function name="segment_cmp">
+<description>
+ s1: first segment.
+ s2: second segment.
+
+Compares segments by their offset, used to sort list of invalid segments.
+
+
+</description>
+<parameters>
+</parameters>
+<return> an integer like strcmp() does.
+</return>
+</function>
+
+<function name="gtk_source_buffer_get_source_marks_at_iter">
+<description>
+Returns: a newly allocated #GSList.
+
+</description>
+<parameters>
+<parameter name="buffer">
+<parameter_description> a #GtkSourceBuffer.
+</parameter_description>
+</parameter>
+<parameter name="iter">
+<parameter_description> an iterator.
+</parameter_description>
+</parameter>
+<parameter name="category">
+<parameter_description> category to search for or %NULL
+</parameter_description>
+</parameter>
+</parameters>
+<return> a newly allocated #GSList.
+
+Since: 2.2
+</return>
+</function>
+
 <function name="gtk_source_language_get_name">
 <description>
 Returns: the name of @language.
@@ -1247,78 +1758,39 @@ or modified.
 </return>
 </function>
 
-<function name="g_regex_replace_eval">
+<function name="_gtk_source_language_manager_get_rng_file">
 <description>
-Replaces occurances of the pattern in regex with the output of @eval
-for that occurance.
-
-Setting @start_position differs from just passing over a shortened string
-and  setting #G_REGEX_MATCH_NOTBOL in the case of a pattern that begins
-with any kind of lookbehind assertion, such as &quot;\b&quot;.
-
+Returns: path to RNG file. It belongs to %lm and must not be freed or modified.
 
 </description>
 <parameters>
-<parameter name="regex">
-<parameter_description> a #GRegex structure from g_regex_new()
-</parameter_description>
-</parameter>
-<parameter name="string">
-<parameter_description> string to perform matches against
-</parameter_description>
-</parameter>
-<parameter name="string_len">
-<parameter_description> the length of @string, or -1 if @string is nul-terminated
-</parameter_description>
-</parameter>
-<parameter name="start_position">
-<parameter_description> starting index of the string to match
-</parameter_description>
-</parameter>
-<parameter name="match_options">
-<parameter_description> options for the match
-</parameter_description>
-</parameter>
-<parameter name="eval">
-<parameter_description> a function to call for each match
-</parameter_description>
-</parameter>
-<parameter name="user_data">
-<parameter_description> user data to pass to the function
-</parameter_description>
-</parameter>
-<parameter name="error">
-<parameter_description> location to store the error occuring, or %NULL to ignore errors
+<parameter name="lm">
+<parameter_description> a #GtkSourceLanguageManager.
 </parameter_description>
 </parameter>
 </parameters>
-<return> a newly allocated string containing the replacements
-
-Since: 2.14
+<return> path to RNG file. It belongs to %lm and must not be freed or modified.
 </return>
 </function>
 
-<function name="simple_segment_split_">
+<function name="gtk_source_view_get_tab_width">
 <description>
- ce: the engine.
- segment: segment to split.
- offset: offset at which text insertion occurred.
-
-Creates a new invalid segment and inserts it in the middle
-of the given one. Called from insert_range() to mark inserted
-text.
-
+Return value: width of tab.
 
 </description>
 <parameters>
+<parameter name="view">
+<parameter_description> a #GtkSourceView.
+</parameter_description>
+</parameter>
 </parameters>
-<return> new invalid segment.
+<return> width of tab.
 </return>
 </function>
 
 <function name="gtk_source_view_get_smart_home_end">
 <description>
-Return value: a #GtkSourceSmartHomeEndType
+Return value: a #GtkSourceSmartHomeEndTypeend value.
 
 </description>
 <parameters>
@@ -1327,7 +1799,7 @@ Return value: a #GtkSourceSmartHomeEndType
 </parameter_description>
 </parameter>
 </parameters>
-<return> a #GtkSourceSmartHomeEndType
+<return> a #GtkSourceSmartHomeEndTypeend value.
 </return>
 </function>
 
@@ -1360,32 +1832,7 @@ Determines whether a source buffer can undo the last action.
 </parameter_description>
 </parameter>
 </parameters>
-<return> %TRUE if it&apos;s possible to undo the last action.
-</return>
-</function>
-
-<function name="g_match_info_expand_references">
-<description>
-Returns: the expanded string, or %NULL if an error occurred
-
-</description>
-<parameters>
-<parameter name="match_info">
-<parameter_description> a #GMatchInfo or %NULL
-</parameter_description>
-</parameter>
-<parameter name="string_to_expand">
-<parameter_description> the string to expand
-</parameter_description>
-</parameter>
-<parameter name="error">
-<parameter_description> location to store the error occuring, or %NULL to ignore errors
-</parameter_description>
-</parameter>
-</parameters>
-<return> the expanded string, or %NULL if an error occurred
-
-Since: 2.14
+<return> %TRUE if it's possible to undo the last action.
 </return>
 </function>
 
@@ -1410,25 +1857,86 @@ gtk_text_buffer_end_user_action(), or sequences of similar edits
 <return></return>
 </function>
 
-<function name="gtk_source_view_set_auto_indent">
+<function name="gtk_source_completion_info_set_widget">
 <description>
-If %TRUE auto indentation of text is enabled.
+Sets the content widget of the info window. If @widget does not fit within
+the size requirements of the window, a #GtkScrolledWindow will automatically
+be created and added to the window.
 
 
 </description>
 <parameters>
-<parameter name="view">
-<parameter_description> a #GtkSourceView.
+<parameter name="info">
+<parameter_description> A #GtkSourceCompletionInfo
 </parameter_description>
 </parameter>
-<parameter name="enable">
-<parameter_description> whether to enable auto indentation.
+<parameter name="widget">
+<parameter_description> A #GtkWidget
 </parameter_description>
 </parameter>
 </parameters>
 <return></return>
 </function>
 
+<function name="gtk_source_language_manager_guess_language">
+<description>
+Picks a #GtkSourceLanguage for given file name and content type,
+according to the information in lang files. Either @filename or
+ content_type may be %NULL. This function can be used as follows:
+
+&lt;informalexample&gt;&lt;programlisting&gt;
+GtkSourceLanguage *lang;
+lang = gtk_source_language_manager_guess_language (filename, NULL);
+gtk_source_buffer_set_language (buffer, lang);
+&lt;/programlisting&gt;&lt;/informalexample&gt;
+
+or
+
+&lt;informalexample&gt;&lt;programlisting&gt;
+GtkSourceLanguage *lang = NULL;
+gboolean result_uncertain;
+gchar *content_type;
+
+content_type = g_content_type_guess (filename, NULL, 0, &amp;result_uncertain);
+if (result_uncertain)
+{
+g_free (content_type);
+content_type = NULL;
+}
+
+lang = gtk_source_language_manager_guess_language (manager, filename, content_type);
+gtk_source_buffer_set_language (buffer, lang);
+
+g_free (content_type);
+&lt;/programlisting&gt;&lt;/informalexample&gt;
+
+etc. Use gtk_source_language_get_mime_types() and gtk_source_language_get_globs()
+if you need full control over file -&gt; language mapping.
+
+
+</description>
+<parameters>
+<parameter name="lm">
+<parameter_description> a #GtkSourceLanguageManager.
+</parameter_description>
+</parameter>
+<parameter name="filename">
+<parameter_description> a filename in Glib filename encoding, or %NULL.
+</parameter_description>
+</parameter>
+<parameter name="content_type">
+<parameter_description> a content type (as in GIO API), or %NULL.
+</parameter_description>
+</parameter>
+</parameters>
+<return> a #GtkSourceLanguage, or %NULL if there is no suitable language
+for given @filename and/or @content_type. Return value is owned by @lm
+and should not be freed.
+
+Since: 2.4
+</return>
+</function>
+
 <function name="_gtk_source_style_scheme_get_parent_id">
 <description>
 
@@ -1445,6 +1953,20 @@ Since: 2.0
 </return>
 </function>
 
+<function name="context_is_pure_container">
+<description>
+ def: context definition.
+
+Checks whether context is a container with no start regex.
+References to such contexts are implicitly translated to
+wildcard references (context_id:*).
+
+</description>
+<parameters>
+</parameters>
+<return></return>
+</function>
+
 <function name="gtk_source_mark_get_category">
 <description>
 Returns: the category of the #GtkSourceMark
@@ -1462,22 +1984,42 @@ Since: 2.2
 </return>
 </function>
 
-<function name="GtkSourceView">
+<function name="gtk_source_completion_provider_get_start_iter">
 <description>
-Set the behavior of the HOME and END keys.
+Get the #GtkTextIter at which the completion for @proposal starts. When
+implemented, the completion can use this information to position the
+completion window accordingly when a proposal is selected in the completion
+window.
 
-Since: 2.0
 
 </description>
 <parameters>
+<parameter name="provider">
+<parameter_description> A #GtkSourceCompletionProvider
+</parameter_description>
+</parameter>
+<parameter name="proposal">
+<parameter_description> A #GtkSourceCompletionProposal
+</parameter_description>
+</parameter>
+<parameter name="context">
+<parameter_description> A #GtkSourceCompletionContext
+</parameter_description>
+</parameter>
+<parameter name="iter">
+<parameter_description> A #GtkTextIter
+</parameter_description>
+</parameter>
 </parameters>
-<return></return>
+<return> %TRUE if @iter was set for @proposal, %FALSE otherwise
+
+</return>
 </function>
 
 <function name="_gtk_source_style_scheme_set_parent">
 <description>
 Sets @parent_scheme as parent scheme for @scheme, @scheme will
-look for styles in @parent_scheme if it doesn&apos;t have style set
+look for styles in @parent_scheme if it doesn't have style set
 for given name.
 
 Since: 2.0
@@ -1501,7 +2043,7 @@ Since: 2.0
 @ce: the engine.
 @offset: the offset.
 
-Finds invalid segment adjacent to offset (i.e. such that start &amp;lt;= offset &amp;lt;= end),
+Finds invalid segment adjacent to offset (i.e. such that start &lt;= offset &lt;= end),
 if any.
 
 
@@ -1512,11 +2054,37 @@ if any.
 </return>
 </function>
 
+<function name="gtk_source_print_compositor_set_right_margin">
+<description>
+Sets the right margin used by @compositor.
+
+Since: 2.2
+
+</description>
+<parameters>
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
+</parameter_description>
+</parameter>
+<parameter name="margin">
+<parameter_description> the new right margin in units of @unit
+</parameter_description>
+</parameter>
+<parameter name="unit">
+<parameter_description> the units for @margin
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="gtk_source_view_set_mark_category_pixbuf">
 <description>
 Associates a given @pixbuf with a given mark @category.
 If @pixbuf is #NULL, the pixbuf is unset.
 
+Deprecated: Use #gtk_source_view_set_mark_category_icon_from_pixbuf instead
+
 Since: 2.2
 
 </description>
@@ -1537,6 +2105,24 @@ Since: 2.2
 <return></return>
 </function>
 
+<function name="gtk_source_style_scheme_get_authors">
+<description>
+
+</description>
+<parameters>
+<parameter name="scheme">
+<parameter_description> a #GtkSourceStyleScheme.
+</parameter_description>
+</parameter>
+</parameters>
+<return> a %NULL-terminated array containing the @scheme authors or
+%NULL if no author is specified by the style
+scheme.
+
+Since: 2.0
+</return>
+</function>
+
 <function name="gtk_source_view_set_show_right_margin">
 <description>
 If %TRUE a right margin is displayed
@@ -1569,70 +2155,46 @@ gtk_source_language_manager_get_default() instead.
 </return>
 </function>
 
-<function name="gtk_source_view_style_set">
+<function name="gtk_source_view_set_show_line_numbers">
 <description>
+If %TRUE line numbers will be displayed beside the text.
 
 
 </description>
 <parameters>
-<parameter name="widget">
+<parameter name="view">
 <parameter_description> a #GtkSourceView.
 </parameter_description>
 </parameter>
-<parameter name="previous_style">
-<parameter_description>
+<parameter name="show">
+<parameter_description> whether line numbers should be displayed.
 </parameter_description>
 </parameter>
 </parameters>
 <return></return>
 </function>
 
-<function name="g_regex_new">
+<function name="gtk_source_print_compositor_set_tab_width">
 <description>
-Compiles the regular expression to an internal form, and does the initial
-setup of the #GRegex structure.  
+Sets the width of tabulation in characters for printed text. 
 
+This function cannot be called anymore after the first call to the 
+gtk_source_print_compositor_paginate() function.
+
+Since: 2.2
 
 </description>
 <parameters>
-<parameter name="pattern">
-<parameter_description> the regular expression
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
 </parameter_description>
 </parameter>
-<parameter name="compile_options">
-<parameter_description> compile options for the regular expression
-</parameter_description>
-</parameter>
-<parameter name="match_options">
-<parameter_description> match options for the regular expression
-</parameter_description>
-</parameter>
-<parameter name="error">
-<parameter_description> return location for a #GError
+<parameter name="width">
+<parameter_description> width of tab in characters.
 </parameter_description>
 </parameter>
 </parameters>
-<return> a #GRegex structure. Call g_regex_unref() when you are done
-with it.
-
-Since: 2.14
-</return>
-</function>
-
-<function name="fix_offset_delete_one_">
-<description>
- offset: segment.
- start: start of deleted text.
- length: length of deleted text.
-
-
-</description>
-<parameters>
-</parameters>
-<return> new offset depending on location of @offset
-relative to deleted text.
-Called only from fix_offsets_delete_().
-</return>
+<return></return>
 </function>
 
 <function name="find_insertion_place_backward_">
@@ -1653,30 +2215,27 @@ Auxiliary function used in find_insertion_place().
 <return></return>
 </function>
 
-<function name="g_regex_escape_string">
+<function name="gtk_source_print_compositor_new_from_view">
 <description>
-Escapes the special characters used for regular expressions in @string,
-for instance &quot;a.b*c&quot; becomes &quot;a\.b\*c&quot;. This function is useful to
-dynamically generate regular expressions.
-
- string can contain nul characters that are replaced with &quot;\0&quot;, in this
-case remember to specify the correct length of @string in @length.
+Creates a new print compositor that can be used to print the buffer
+associated with @view.
+This constructor sets some configuration properties to make the 
+printed output match @view as much as possible.  The properties set are
+#GtkSourcePrintCompositor:tab-width, #GtkSourcePrintCompositor:highlight-syntax, 
+#GtkSourcePrintCompositor:wrap-mode, #GtkSourcePrintCompositor:body-font-name and
+#GtkSourcePrintCompositor:print-line-numbers.
 
 
 </description>
 <parameters>
-<parameter name="string">
-<parameter_description> the string to escape
-</parameter_description>
-</parameter>
-<parameter name="length">
-<parameter_description> the length of @string, or -1 if @string is nul-terminated
+<parameter name="view">
+<parameter_description> a #GtkSourceView to get configuration from.
 </parameter_description>
 </parameter>
 </parameters>
-<return> a newly-allocated escaped string
+<return> a new print compositor object.
 
-Since: 2.14
+Since: 2.2
 </return>
 </function>
 
@@ -1689,7 +2248,7 @@ Since: 2.14
 @end_at: end offset in the buffer, characters.
 @is_start: is_start flag.
 
-Creates a new segment structure. It doesn&apos;t take care about
+Creates a new segment structure. It doesn't take care about
 parent or siblings, create_segment() is the function to
 create new segments in the tree.
 
@@ -1709,53 +2268,121 @@ Returns: a #GtkSourceStyleSchemeManager. Return value is owned
 <parameters>
 </parameters>
 <return> a #GtkSourceStyleSchemeManager. Return value is owned
-by GtkSourceView library and must not be unref&apos;ed.
+by GtkSourceView library and must not be unref'ed.
 </return>
 </function>
 
-<function name="gtk_source_language_manager_set_search_path">
+<function name="gtk_source_view_set_mark_category_tooltip_func">
 <description>
-Sets the list of directories where the @lm looks for
-language files.
-If @dirs is %NULL, the search path is reset to default.
+Set a #GtkSourceViewMarkTooltipFunc used to set tooltip on marks from the
+given mark @category.
+If you also specified a function with
+gtk_source_view_set_mark_category_tooltip_markup_func()  the markup 
+variant takes precedence.
 
-&amp;lt;note&amp;gt;
-&amp;lt;para&amp;gt;
-At the moment this function can be called only before the
-language files are loaded for the first time. In practice
-to set a custom search path for a #GtkSourceLanguageManager,
-you have to call this function right after creating it.
-&amp;lt;/para&amp;gt;
-&amp;lt;/note&amp;gt;
+&lt;informalexample&gt;&lt;programlisting&gt;&lt;![CDATA[
+static gchar *
+tooltip_func (GtkSourceMark *mark,
+gpointer       user_data)
+{
+gchar *text;
+
+text = get_tooltip_for_mark (mark, user_data);
+
+return text;
+}
+
+...
+
+GtkSourceView *view;
+
+gtk_source_view_set_mark_category_tooltip_func (view, &quot;other-mark&quot;,
+tooltip_func,
+NULL, NULL);
+]]&gt;&lt;/programlisting&gt;&lt;/informalexample&gt;
+
+Since: 2.8
 
 </description>
 <parameters>
-<parameter name="lm">
-<parameter_description> a #GtkSourceLanguageManager.
+<parameter name="view">
+<parameter_description> a #GtkSourceView.
 </parameter_description>
 </parameter>
-<parameter name="dirs">
-<parameter_description> a %NULL-terminated array of strings or %NULL.
+<parameter name="category">
+<parameter_description> a mark category.
+</parameter_description>
+</parameter>
+<parameter name="func">
+<parameter_description> a #GtkSourceViewMarkTooltipFunc or %NULL.
+</parameter_description>
+</parameter>
+<parameter name="user_data">
+<parameter_description> user data which will be passed to @func.
+</parameter_description>
+</parameter>
+<parameter name="user_data_notify">
+<parameter_description>a function to free the memory allocated for @user_data 
+or %NULL if you do not want to supply such a function.
 </parameter_description>
 </parameter>
 </parameters>
 <return></return>
 </function>
 
-<function name="gtk_source_view_set_insert_spaces_instead_of_tabs">
+<function name="gtk_source_completion_get_view">
 <description>
-If %TRUE any tabulator character inserted is replaced by a group
-of space characters.
+The #GtkSourceView associated with @completion.
 
 
 </description>
 <parameters>
-<parameter name="view">
-<parameter_description> a #GtkSourceView.
+<parameter name="completion">
+<parameter_description> A #GtkSourceCompletion
 </parameter_description>
 </parameter>
-<parameter name="enable">
-<parameter_description> whether to insert spaces instead of tabs.
+</parameters>
+<return> The #GtkSourceView associated with @completion.
+</return>
+</function>
+
+<function name="_gtk_source_language_get_language_manager">
+<description>
+
+</description>
+<parameters>
+<parameter name="language">
+<parameter_description> a #GtkSourceLanguage.
+</parameter_description>
+</parameter>
+</parameters>
+<return> #GtkSourceLanguageManager for @language.
+</return>
+</function>
+
+<function name="gtk_source_language_manager_set_search_path">
+<description>
+Sets the list of directories where the @lm looks for
+language files.
+If @dirs is %NULL, the search path is reset to default.
+
+&lt;note&gt;
+&lt;para&gt;
+At the moment this function can be called only before the
+language files are loaded for the first time. In practice
+to set a custom search path for a #GtkSourceLanguageManager,
+you have to call this function right after creating it.
+&lt;/para&gt;
+&lt;/note&gt;
+
+</description>
+<parameters>
+<parameter name="lm">
+<parameter_description> a #GtkSourceLanguageManager.
+</parameter_description>
+</parameter>
+<parameter name="dirs">
+<parameter_description> a %NULL-terminated array of strings or %NULL.
 </parameter_description>
 </parameter>
 </parameters>
@@ -1795,7 +2422,10 @@ gtk_source_buffer_create_mark().
 <parameters>
 <parameter name="name">
 <parameter_description> Name of the #GtkSourceMark, can be NULL when not using a name
- category is used to classify marks according to common characteristics
+</parameter_description>
+</parameter>
+<parameter name="category">
+<parameter_description> is used to classify marks according to common characteristics
 (e.g. all the marks representing a bookmark could belong to the &quot;bookmark&quot; 
 category, or all the marks representing a compilation error could belong to 
 &quot;error&quot; category).
@@ -1824,23 +2454,31 @@ Since: 2.0
 </return>
 </function>
 
-<function name="gtk_source_view_set_show_line_numbers">
+<function name="gtk_source_completion_provider_activate_proposal">
 <description>
-If %TRUE line numbers will be displayed beside the text.
+Activate @proposal at @iter. When this functions returns %FALSE, the default
+activation of @proposal will take place which replaces the word at @iter
+with the label of @proposal.
 
 
 </description>
 <parameters>
-<parameter name="view">
-<parameter_description> a #GtkSourceView.
+<parameter name="provider">
+<parameter_description> A #GtkSourceCompletionProvider
 </parameter_description>
 </parameter>
-<parameter name="show">
-<parameter_description> whether line numbers should be displayed.
+<parameter name="proposal">
+<parameter_description> A #GtkSourceCompletionProposal
+</parameter_description>
+</parameter>
+<parameter name="iter">
+<parameter_description> A #GtkTextIter
 </parameter_description>
 </parameter>
 </parameters>
-<return></return>
+<return> %TRUE to indicate that the proposal activation has been handled,
+%FALSE otherwise.
+</return>
 </function>
 
 <function name="gtk_source_view_set_mark_category_priority">
@@ -1880,7 +2518,7 @@ Since: 2.2
 
 Finds siblings of a new segment to be created at interval
 (start_at, end_at). It uses hint to avoid walking whole
-parent-&amp;gt;children list.
+parent-&gt;children list.
 
 </description>
 <parameters>
@@ -1888,119 +2526,63 @@ parent-&amp;gt;children list.
 <return></return>
 </function>
 
-<function name="g_regex_check_replacement">
+<function name="update_syntax">
 <description>
-Checks whether @replacement is a valid replacement string (see g_regex_replace()),
-i.e. that all escape sequences in it are valid.
-
-If @has_references is not %NULL then @replacement is checked for
-pattern references. For instance, replacement text &apos;foo\n&apos;
-does not contain references and may be evaluated without information
-about actual match, but &apos;\0\1&apos; (whole match followed by first subpattern)
-requires valid #GMatchInfo object.
+ ce: #GtkSourceContextEngine.
+ end: desired end of region to analyze or %NULL.
+ time: maximal amount of time in milliseconds allowed to spend here
+or 0 for 'unlimited'.
 
+Updates syntax tree. If @end is not %NULL, then it analyzes
+(reanalyzes invalid areas in) region from start of buffer
+to @end. Otherwise, it analyzes batch of text starting at
+first invalid line.
+In order to avoid blocking ui it uses a timer and stops
+when time elapsed is greater than @time, so analyzed region is
+not necessarily what's requested (unless @time is 0).
 
 </description>
 <parameters>
-<parameter name="replacement">
-<parameter_description> the replacement string
-</parameter_description>
-</parameter>
-<parameter name="has_references">
-<parameter_description> location to store information about
-references in @replacement or %NULL
-</parameter_description>
-</parameter>
-<parameter name="error">
-<parameter_description> location to store error
-</parameter_description>
-</parameter>
 </parameters>
-<return> whether @replacement is a valid replacement string
-
-Since: 2.14
-</return>
+<return></return>
 </function>
 
-<function name="g_regex_match">
+<function name="gtk_source_completion_context_get_iter">
 <description>
-Scans for a match in string for the pattern in @regex. The @match_options
-are combined with the match options specified when the @regex structure
-was created, letting you have more flexibility in reusing #GRegex
-structures.
-
-A #GMatchInfo structure, used to get information on the match, is stored
-in @match_info if not %NULL. Note that if @match_info is not %NULL then
-it is created even if the function returns %FALSE, i.e. you must free it
-regardless if regular expression actually matched.
-
-To retrieve all the non-overlapping matches of the pattern in string you
-can use g_match_info_next().
-
-&amp;lt;informalexample&amp;gt;&amp;lt;programlisting&amp;gt;
-static void
-print_uppercase_words (const gchar *string)
-{
-/&amp;ast; Print all uppercase-only words. &amp;ast;/
-GRegex *regex;
-GMatchInfo *match_info;
-&amp;nbsp;
-regex = g_regex_new (&quot;[A-Z]+&quot;, 0, 0, NULL);
-g_regex_match (regex, string, 0, &amp;match_info);
-while (g_match_info_matches (match_info))
-{
-gchar *word = g_match_info_fetch (match_info, 0);
-g_print (&quot;Found: %s\n&quot;, word);
-g_free (word);
-g_match_info_next (match_info, NULL);
-}
-g_match_info_free (match_info);
-g_regex_unref (regex);
-}
-&amp;lt;/programlisting&amp;gt;&amp;lt;/informalexample&amp;gt;
+Get the iter at which the completion was invoked. Providers can use this
+to determine how and if to match proposals.
 
 
 </description>
 <parameters>
-<parameter name="regex">
-<parameter_description> a #GRegex structure from g_regex_new()
-</parameter_description>
-</parameter>
-<parameter name="string">
-<parameter_description> the string to scan for matches
+<parameter name="context">
+<parameter_description> A #GtkSourceCompletionContext
 </parameter_description>
 </parameter>
-<parameter name="match_options">
-<parameter_description> match options
-</parameter_description>
-</parameter>
-<parameter name="match_info">
-<parameter_description> pointer to location where to store the #GMatchInfo, or
-%NULL if you do not need it
+<parameter name="iter">
+<parameter_description> A #GtkTextIter
 </parameter_description>
 </parameter>
 </parameters>
-<return> %TRUE is the string matched, %FALSE otherwise
-
-Since: 2.14
-</return>
+<return></return>
 </function>
 
-<function name="gtk_source_language_get_id">
+<function name="ensure_highlighted">
 <description>
-Returns: the ID of @language.
+ ce: a #GtkSourceContextEngine.
+ start: the beginning of the region to highlight.
+ end: the end of the region to highlight.
+
+Updates text tags in reanalyzed parts of given area.
+It applies tags according to whatever is in the syntax
+tree currently, so highlighting may not be correct
+(gtk_source_context_engine_update_highlight is the method
+that actually ensures correct highlighting).
 
 </description>
 <parameters>
-<parameter name="language">
-<parameter_description> a #GtkSourceLanguage.
-</parameter_description>
-</parameter>
 </parameters>
-<return> the ID of @language.
-The returned string is owned by @language and should not be freed
-or modified.
-</return>
+<return></return>
 </function>
 
 <function name="can_apply_match">
@@ -2012,7 +2594,7 @@ or modified.
 @where: kind of sub patterns to apply.
 
 See apply_match(), this function is a helper function
-called from where, it doesn&apos;t modify syntax tree.
+called from where, it doesn't modify syntax tree.
 
 
 </description>
@@ -2022,109 +2604,170 @@ called from where, it doesn&apos;t modify syntax tree.
 </return>
 </function>
 
-<function name="g_regex_replace_literal">
+<function name="gtk_source_view_get_draw_spaces">
 <description>
-Replaces all occurances of the pattern in @regex with the
-replacement text. @replacement is replaced literally, to
-include backreferences use g_regex_replace().
-
-Setting @start_position differs from just passing over a shortened string
-and  setting #G_REGEX_MATCH_NOTBOL in the case of a pattern that begins
-with any kind of lookbehind assertion, such as &quot;\b&quot;.
-
+Returns: the #GtkSourceDrawSpacesFlags, 0 if no spaces should be drawn.
 
 </description>
 <parameters>
-<parameter name="regex">
-<parameter_description> a #GRegex structure
-</parameter_description>
-</parameter>
-<parameter name="string">
-<parameter_description> the string to perform matches against
-</parameter_description>
-</parameter>
-<parameter name="string_len">
-<parameter_description> the length of @string, or -1 if @string is nul-terminated
-</parameter_description>
-</parameter>
-<parameter name="start_position">
-<parameter_description> starting index of the string to match
-</parameter_description>
-</parameter>
-<parameter name="replacement">
-<parameter_description> text to replace each match with
+<parameter name="view">
+<parameter_description> a #GtkSourceView
 </parameter_description>
 </parameter>
-<parameter name="match_options">
-<parameter_description> options for the match
+</parameters>
+<return> the #GtkSourceDrawSpacesFlags, 0 if no spaces should be drawn.
+</return>
+</function>
+
+<function name="gtk_source_print_compositor_paginate">
+<description>
+Paginate the document associated with the @compositor.
+
+In order to support non-blocking pagination, document is paginated in small chunks.
+Each time gtk_source_print_compositor_paginate() is invoked, a chunk of the document 
+is paginated. To paginate the entire document, gtk_source_print_compositor_paginate() 
+must be invoked multiple times.
+It returns %TRUE if the document has been completely paginated, otherwise it returns %FALSE.
+
+This method has been designed to be invoked in the handler of the #GtkPrintOperation::paginate signal,
+as shown in the following example:
+
+&lt;informalexample&gt;&lt;programlisting&gt;
+// Signal handler for the GtkPrintOperation::paginate signal
+
+static gboolean
+paginate (GtkPrintOperation *operation,
+GtkPrintContext   *context,
+gpointer           user_data)
+{
+GtkSourcePrintCompositor *compositor;
+
+compositor = GTK_SOURCE_PRINT_COMPOSITOR (user_data);
+
+if (gtk_source_print_compositor_paginate (compositor, context))
+{
+gint n_pages;
+
+n_pages = gtk_source_print_compositor_get_n_pages (compositor);
+gtk_print_operation_set_n_pages (operation, n_pages);
+
+return TRUE;
+}
+
+return FALSE;
+}
+&lt;/programlisting&gt;&lt;/informalexample&gt;
+
+If you don't need to do pagination in chunks, you can simply do it all in the 
+#GtkPrintOperation::begin-print handler, and set the number of pages from there, like
+in the following example:
+
+&lt;informalexample&gt;&lt;programlisting&gt;
+// Signal handler for the GtkPrintOperation::begin-print signal
+
+static void
+begin_print (GtkPrintOperation *operation,
+GtkPrintContext   *context,
+gpointer           user_data)
+{
+GtkSourcePrintCompositor *compositor;
+gint n_pages;
+
+compositor = GTK_SOURCE_PRINT_COMPOSITOR (user_data);
+
+while (!gtk_source_print_compositor_paginate (compositor, context));
+
+n_pages = gtk_source_print_compositor_get_n_pages (compositor);
+gtk_print_operation_set_n_pages (operation, n_pages);
+}
+&lt;/programlisting&gt;&lt;/informalexample&gt;
+
+
+</description>
+<parameters>
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
 </parameter_description>
 </parameter>
-<parameter name="error">
-<parameter_description> location to store the error occuring, or %NULL to ignore errors
+<parameter name="context">
+<parameter_description> the #GtkPrintContext whose parameters (e.g. paper size, print margins, etc.) 
+are used by the the @compositor to paginate the document.
 </parameter_description>
 </parameter>
 </parameters>
-<return> a newly allocated string containing the replacements
+<return> %TRUE if the document has been completely paginated, %FALSE otherwise.
 
-Since: 2.14
+Since: 2.2
 </return>
 </function>
 
-<function name="gtk_source_style_scheme_get_authors">
+<function name="gtk_source_print_compositor_get_pagination_progress">
 <description>
+Return value: a fraction from 0.0 to 1.0 inclusive
 
 </description>
 <parameters>
-<parameter name="scheme">
-<parameter_description> a #GtkSourceStyleScheme.
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
 </parameter_description>
 </parameter>
 </parameters>
-<return> a %NULL-terminated array containing the @scheme authors or
-%NULL if no author is specified by the style
-scheme.
+<return> a fraction from 0.0 to 1.0 inclusive
 
-Since: 2.0
+Since: 2.2
 </return>
 </function>
 
-<function name="gtk_source_view_get_tab_width">
+<function name="gtk_source_language_get_section">
 <description>
-Return value: width of tab.
+Returns: the section of @language.
 
 </description>
 <parameters>
-<parameter name="view">
-<parameter_description> a #GtkSourceView.
+<parameter name="language">
+<parameter_description> a #GtkSourceLanguage.
 </parameter_description>
 </parameter>
 </parameters>
-<return> width of tab.
+<return> the section of @language.
+The returned string is owned by @language and should not be freed
+or modified.
 </return>
 </function>
 
-<function name="g_regex_get_capture_count">
+<function name="gtk_source_view_set_smart_home_end">
 <description>
-Returns: the number of capturing subpatterns.
+Set the desired movement of the cursor when HOME and END keys
+are pressed.
 
 </description>
 <parameters>
-<parameter name="regex">
-<parameter_description> a #GRegex
+<parameter name="view">
+<parameter_description> a #GtkSourceView.
+</parameter_description>
+</parameter>
+<parameter name="smart_he">
+<parameter_description> the desired behavior among #GtkSourceSmartHomeEndType.
 </parameter_description>
 </parameter>
 </parameters>
-<return> the number of capturing subpatterns.
-
-Since: 2.14
-</return>
+<return></return>
 </function>
 
-<function name="update_tree">
+<function name="segment_erase_range_">
 <description>
- ce: a #GtkSourceContextEngine.
+ ce: #GtkSourceContextEngine.
+ segment: the segment.
+ start: start offset of range to erase, characters.
+ end: end offset of range to erase, characters.
 
-Modifies syntax tree according to data in invalid_region.
+Recurisvely removes segments from [ start, @end] interval
+starting from @segment. If @segment belongs to the range,
+or it's a zero-length segment at @end offset, and it's not
+the toplevel segment, then it's removed from the tree.
+If @segment intersects with the range (unless it's the toplevel
+segment), then its ends are adjusted appropriately, and it's
+split into two if it completely contains the range.
 
 </description>
 <parameters>
@@ -2132,6 +2775,24 @@ Modifies syntax tree according to data in invalid_region.
 <return></return>
 </function>
 
+<function name="gtk_source_print_compositor_get_header_font_name">
+<description>
+Return value: a new string containing the name of the font used to print 
+
+</description>
+<parameters>
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
+</parameter_description>
+</parameter>
+</parameters>
+<return> a new string containing the name of the font used to print 
+the page header.
+
+Since: 2.2
+</return>
+</function>
+
 <function name="gtk_source_view_set_right_margin_position">
 <description>
 Sets the position of the right margin in the given @view.
@@ -2143,14 +2804,35 @@ Sets the position of the right margin in the given @view.
 </parameter_description>
 </parameter>
 <parameter name="pos">
-<parameter_description> the position of the margin to set.
+<parameter_description> the width in characters where to position the right margin.
 </parameter_description>
 </parameter>
-<parameter name="pos">
-<parameter_description> the width in characters where to position the right margin.
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_view_get_indent_width">
+<description>
+Return value: indent width.
+
+</description>
+<parameters>
+<parameter name="view">
+<parameter_description> a #GtkSourceView.
 </parameter_description>
 </parameter>
 </parameters>
+<return> indent width.
+</return>
+</function>
+
+<function name="GtkSourceStyleScheme">
+<description>
+Style scheme filename or NULL.
+
+</description>
+<parameters>
+</parameters>
 <return></return>
 </function>
 
@@ -2170,6 +2852,47 @@ The array is owned by the @manager and must not be modified.
 </return>
 </function>
 
+<function name="GtkSourceCompletionProposal">
+<description>
+Emitted when the proposal has changed. The completion popup
+will react to this by updating the shown information.
+
+
+</description>
+<parameters>
+<parameter name="proposal">
+<parameter_description> The #GtkSourceCompletionProposal
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_completion_show">
+<description>
+Starts a new completion with the specified #GtkSourceCompletionContext and
+a list of potential candidate providers for completion.
+
+
+</description>
+<parameters>
+<parameter name="completion">
+<parameter_description> A #GtkSourceCompletion
+</parameter_description>
+</parameter>
+<parameter name="providers">
+<parameter_description> A list of #GtkSourceCompletionProvider or %NULL
+</parameter_description>
+</parameter>
+<parameter name="context">
+<parameter_description> The #GtkSourceCompletionContext with which to start the completion
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if it was possible to the show completion window.
+</return>
+</function>
+
 <function name="sub_pattern_free">
 <description>
 @sp: subppatern.
@@ -2195,79 +2918,86 @@ from the tree when it drops to zero.
 <return></return>
 </function>
 
-<function name="gtk_source_view_get_insert_spaces_instead_of_tabs">
+<function name="gtk_source_completion_proposal_get_icon">
 <description>
-Return value: %TRUE if spaces are inserted instead of tabs.
+Gets the icon of @proposal.
+
 
 </description>
 <parameters>
-<parameter name="view">
-<parameter_description> a #GtkSourceView.
+<parameter name="proposal">
+<parameter_description> A #GtkSourceCompletionProposal
 </parameter_description>
 </parameter>
 </parameters>
-<return> %TRUE if spaces are inserted instead of tabs.
+<return> The icon of @proposal.
 </return>
 </function>
 
-<function name="gtk_source_buffer_get_highlight_syntax">
+<function name="gtk_source_print_compositor_get_print_line_numbers">
 <description>
-Determines whether syntax highlighting is activated in the source
-buffer.
-
+Return value: the interval of printed line numbers.
 
 </description>
 <parameters>
-<parameter name="buffer">
-<parameter_description> a #GtkSourceBuffer.
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
 </parameter_description>
 </parameter>
 </parameters>
-<return> %TRUE if syntax highlighting is enabled, %FALSE otherwise.
+<return> the interval of printed line numbers.
+
+Since: 2.2
 </return>
 </function>
 
-<function name="g_match_info_fetch_pos">
+<function name="gtk_source_completion_get_providers">
 <description>
-Retrieves the position of the @match_num&amp;lt;!-- --&amp;gt;&apos;th capturing parentheses.
-0 is the full text of the match, 1 is the first paren set, 2 the second,
-and so on.
-
-If @match_num is a valid sub pattern but it didn&apos;t match anything (e.g.
-sub pattern 1, matching &quot;b&quot; against &quot;(a)?b&quot;) then @start_pos and @end_pos
-are set to -1 and %TRUE is returned.
-
-If the match was obtained using the DFA algorithm, that is using
-g_regex_match_all() or g_regex_match_all_full(), the retrieved
-position is not that of a set of parentheses but that of a matched
-substring. Substrings are matched in reverse order of length, so 0 is
-the longest match.
+Get list of providers registered on @completion. The returned list is owned
+by the completion and should not be freed.
 
 
 </description>
 <parameters>
-<parameter name="match_info">
-<parameter_description> #GMatchInfo structure
-</parameter_description>
-</parameter>
-<parameter name="match_num">
-<parameter_description> number of the sub expression
+<parameter name="completion">
+<parameter_description> The #GtkSourceCompletion
 </parameter_description>
 </parameter>
-<parameter name="start_pos">
-<parameter_description> pointer to location where to store the start position
+</parameters>
+<return> list of #GtkSourceCompletionProvider
+</return>
+</function>
+
+<function name="gtk_source_view_get_right_margin_position">
+<description>
+Gets the position of the right margin in the given @view.
+
+
+</description>
+<parameters>
+<parameter name="view">
+<parameter_description> a #GtkSourceView.
 </parameter_description>
 </parameter>
-<parameter name="end_pos">
-<parameter_description> pointer to location where to store the end position
+</parameters>
+<return> the position of the right margin.
+</return>
+</function>
+
+<function name="gtk_source_style_scheme_get_filename">
+<description>
+
+</description>
+<parameters>
+<parameter name="scheme">
+<parameter_description> a #GtkSourceStyleScheme.
 </parameter_description>
 </parameter>
 </parameters>
-<return> %TRUE if the position was fetched, %FALSE otherwise. If the
-position cannot be fetched, @start_pos and @end_pos are left
-unchanged.
+<return> @scheme file name if the scheme was created parsing a
+style scheme file or NULL in the other cases.
 
-Since: 2.14
+Since: 2.0
 </return>
 </function>
 
@@ -2287,6 +3017,33 @@ Creates a new source buffer.
 </return>
 </function>
 
+<function name="gtk_source_view_get_mark_category_background">
+<description>
+Gets the background color associated with given @category.
+
+
+</description>
+<parameters>
+<parameter name="view">
+<parameter_description> a #GtkSourceView.
+</parameter_description>
+</parameter>
+<parameter name="category">
+<parameter_description> a mark category.
+</parameter_description>
+</parameter>
+<parameter name="dest">
+<parameter_description> destination #GdkColor structure to fill in.
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if background color for @category was set
+and @dest is set to a valid color, or %FALSE otherwise.
+
+Since: 2.4
+</return>
+</function>
+
 <function name="context_thaw">
 <description>
 @context: the context.
@@ -2300,6 +3057,19 @@ if it was incremented by context_freeze().
 <return></return>
 </function>
 
+<function name="_gtk_source_style_scheme_get_default">
+<description>
+
+</description>
+<parameters>
+</parameters>
+<return> default style scheme to be used when user didn't set
+style scheme explicitly.
+
+Since: 2.0
+</return>
+</function>
+
 <function name="gtk_source_style_copy">
 <description>
 Creates a copy of @style, that is a new #GtkSourceStyle instance which
@@ -2319,24 +3089,57 @@ Since: 2.0
 </return>
 </function>
 
-<function name="gtk_source_mark_next">
+<function name="gtk_source_iter_forward_search">
 <description>
-Returns: the next #GtkSourceMark or %NULL
+Searches forward for @str. Any match is returned by setting
+ match_start to the first character of the match and @match_end to the
+first character after the match. The search will not continue past
+ limit  Note that a search is a linear or O(n) operation, so you
+may wish to use @limit to avoid locking up your UI on large
+buffers.
+
+If the #GTK_SOURCE_SEARCH_VISIBLE_ONLY flag is present, the match may
+have invisible text interspersed in @str. i.e. @str will be a
+possibly-noncontiguous subsequence of the matched range. similarly,
+if you specify #GTK_SOURCE_SEARCH_TEXT_ONLY, the match may have
+pixbufs or child widgets mixed inside the matched range. If these
+flags are not given, the match must be exact; the special 0xFFFC
+character in @str will match embedded pixbufs or child widgets.
+If you specify the #GTK_SOURCE_SEARCH_CASE_INSENSITIVE flag, the text will
+be matched regardless of what case it is in.
+
+Same as gtk_text_iter_forward_search(), but supports case insensitive
+searching.
+
 
 </description>
 <parameters>
-<parameter name="mark">
-<parameter_description> a #GtkSourceMark
+<parameter name="iter">
+<parameter_description> start of search.
 </parameter_description>
 </parameter>
-<parameter name="category">
-<parameter_description> a string specifying the mark category or %NULL
+<parameter name="str">
+<parameter_description> a search string.
+</parameter_description>
+</parameter>
+<parameter name="flags">
+<parameter_description> flags affecting how the search is done.
+</parameter_description>
+</parameter>
+<parameter name="match_start">
+<parameter_description> return location for start of match, or %NULL.
+</parameter_description>
+</parameter>
+<parameter name="match_end">
+<parameter_description> return location for end of match, or %NULL.
+</parameter_description>
+</parameter>
+<parameter name="limit">
+<parameter_description> bound for the search, or %NULL for the end of the buffer.
 </parameter_description>
 </parameter>
 </parameters>
-<return> the next #GtkSourceMark or %NULL
-
-Since: 2.2
+<return> whether a match was found.
 </return>
 </function>
 
@@ -2356,131 +3159,168 @@ Since: 2.2
 </parameters>
 <return> style which corresponds to @style_id in the @scheme,
 or %NULL when no style with this name found. It is owned by @scheme
-and may not be unref&apos;ed.
+and may not be unref'ed.
 
 Since: 2.0
 </return>
 </function>
 
-<function name="refresh_range">
+<function name="gtk_source_language_manager_get_language_ids">
 <description>
- ce: a #GtkSourceContextEngine.
- start: the beginning of updated area.
- end: the end of updated area.
- modify_refresh_region: whether updated area should be added to
-refresh_region.
-
-Marks the area as updated - notifies view about it, and adds it to
-refresh_region if @modify_refresh_region is %TRUE (update_syntax may
-process huge area though actually updated is couple of lines, so in
-that case update_syntax() takes care of refresh_region, and this
-function only notifies the view).
+Returns: a %NULL-terminated array of string containing the ids of the
 
 </description>
 <parameters>
+<parameter name="lm">
+<parameter_description> a #GtkSourceLanguageManager
+</parameter_description>
+</parameter>
 </parameters>
-<return></return>
+<return> a %NULL-terminated array of string containing the ids of the
+available languages or %NULL if no language is available. The array
+is owned by @lm and must not be modified.
+</return>
 </function>
 
-<function name="g_regex_match_all_full">
+<function name="gtk_source_buffer_get_language">
 <description>
-Using the standard algorithm for regular expression matching only the
-longest match in the string is retrieved, it is not possibile to obtain
-all the available matches. For instance matching
-&quot;&amp;lt;a&amp;gt; &amp;lt;b&amp;gt; &amp;lt;c&amp;gt;&quot; against the pattern &quot;&amp;lt;.*&amp;gt;&quot; you get
-&quot;&amp;lt;a&amp;gt; &amp;lt;b&amp;gt; &amp;lt;c&amp;gt;&quot;.
-
-This function uses a different algorithm (called DFA, i.e. deterministic
-finite automaton), so it can retrieve all the possible matches, all
-starting at the same point in the string. For instance matching
-&quot;&amp;lt;a&amp;gt; &amp;lt;b&amp;gt; &amp;lt;c&amp;gt;&quot; against the pattern &quot;&amp;lt;.*&amp;gt;&quot; you
-would obtain three matches: &quot;&amp;lt;a&amp;gt; &amp;lt;b&amp;gt; &amp;lt;c&amp;gt;&quot;,
-&quot;&amp;lt;a&amp;gt; &amp;lt;b&amp;gt;&quot; and &quot;&amp;lt;a&amp;gt;&quot;.
+Return value: #GtkSourceLanguage associated with the buffer, or %NULL.
 
-The number of matched strings is retrieved using
-g_match_info_get_match_count().
-To obtain the matched strings and their position you can use,
-respectively, g_match_info_fetch() and g_match_info_fetch_pos(). Note that
-the strings are returned in reverse order of length; that is, the longest
-matching string is given first.
+</description>
+<parameters>
+<parameter name="buffer">
+<parameter_description> a #GtkSourceBuffer.
+</parameter_description>
+</parameter>
+</parameters>
+<return> #GtkSourceLanguage associated with the buffer, or %NULL.
+</return>
+</function>
 
-Note that the DFA algorithm is slower than the standard one and it is not
-able to capture substrings, so backreferences do not work.
+<function name="SECTION">
+<description>
+TODO
 
-Setting @start_position differs from just passing over a shortened string
-and  setting #G_REGEX_MATCH_NOTBOL in the case of a pattern that begins
-with any kind of lookbehind assertion, such as &quot;\b&quot;.
+</description>
+<parameters>
+<parameter name="title">
+<parameter_description> GtkSourceCompletion
+</parameter_description>
+</parameter>
+<parameter name="short_description">
+<parameter_description> Main Completion Object
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
 
-A #GMatchInfo structure, used to get information on the match, is stored
-in @match_info if not %NULL. Note that if @match_info is not %NULL then
-it is created even if the function returns %FALSE, i.e. you must free it
-regardless if regular expression actually matched.
+<function name="gtk_source_view_set_mark_category_icon_from_pixbuf">
+<description>
+Sets the icon to be used for @category to @pixbuf.
+If @pixbuf is #NULL, the icon is unset.
 
+Since: 2.8
 
 </description>
 <parameters>
-<parameter name="regex">
-<parameter_description> a #GRegex structure from g_regex_new()
-</parameter_description>
-</parameter>
-<parameter name="string">
-<parameter_description> the string to scan for matches
+<parameter name="view">
+<parameter_description> a #GtkSourceView.
 </parameter_description>
 </parameter>
-<parameter name="string_len">
-<parameter_description> the length of @string, or -1 if @string is nul-terminated
+<parameter name="category">
+<parameter_description> a mark category.
 </parameter_description>
 </parameter>
-<parameter name="start_position">
-<parameter_description> starting index of the string to match
+<parameter name="pixbuf">
+<parameter_description> a #GdkPixbuf or #NULL.
 </parameter_description>
 </parameter>
-<parameter name="match_options">
-<parameter_description> match options
+</parameters>
+<return></return>
+</function>
+
+<function name="destroy_tags_hash">
+<description>
+ ce: #GtkSourceContextEngine.
+
+Destroys syntax tags cache.
+
+</description>
+<parameters>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_buffer_forward_iter_to_source_mark">
+<description>
+Moves @iter to the position of the next #GtkSourceMark of the given
+ category  Returns #TRUE if @iter was moved. If @category is NULL, the
+next source mark can be of any category.
+
+
+</description>
+<parameters>
+<parameter name="buffer">
+<parameter_description> a #GtkSourceBuffer.
 </parameter_description>
 </parameter>
-<parameter name="match_info">
-<parameter_description> pointer to location where to store the #GMatchInfo, or
-%NULL if you do not need it
+<parameter name="iter">
+<parameter_description> an iterator.
 </parameter_description>
 </parameter>
-<parameter name="error">
-<parameter_description> location to store the error occuring, or %NULL to ignore errors
+<parameter name="category">
+<parameter_description> category to search for or %NULL
 </parameter_description>
 </parameter>
 </parameters>
-<return> %TRUE is the string matched, %FALSE otherwise
+<return> whether iter moved.
 
-Since: 2.14
+Since: 2.2
 </return>
 </function>
 
-<function name="destroy_tags_hash">
+<function name="gsc_utils_view_replace_current_word">
 <description>
- ce: #GtkSourceContextEngine.
+Replaces the current word in the #GtkSourceBuffer with the new word
 
-Destroys syntax tags cache.
 
 </description>
 <parameters>
+<parameter name="source_buffer">
+<parameter_description> The #GtkSourceBuffer
+</parameter_description>
+</parameter>
+<parameter name="text">
+<parameter_description> The text to be inserted instead of the current word
+</parameter_description>
+</parameter>
 </parameters>
 <return></return>
 </function>
 
-<function name="gtk_source_view_get_indent_on_tab">
+<function name="GtkSourceCompletionItem">
 <description>
-Return value: %TRUE if the selection is indented when tab is pressed.
+Optional extra information to be shown for this proposal.
+
+</description>
+<parameters>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_view_get_highlight_current_line">
+<description>
+Return value: %TRUE if the current line is highlighted.
 
 </description>
 <parameters>
 <parameter name="view">
-<parameter_description> a #GtkSourceView.
+<parameter_description> a #GtkSourceView
 </parameter_description>
 </parameter>
 </parameters>
-<return> %TRUE if the selection is indented when tab is pressed.
-
-Since: 1.8
+<return> %TRUE if the current line is highlighted.
 </return>
 </function>
 
@@ -2500,6 +3340,26 @@ Updates hint if new state is different from @state.
 </return>
 </function>
 
+<function name="refresh_range">
+<description>
+ ce: a #GtkSourceContextEngine.
+ start: the beginning of updated area.
+ end: the end of updated area.
+ modify_refresh_region: whether updated area should be added to
+refresh_region.
+
+Marks the area as updated - notifies view about it, and adds it to
+refresh_region if @modify_refresh_region is %TRUE (update_syntax may
+process huge area though actually updated is couple of lines, so in
+that case update_syntax() takes care of refresh_region, and this
+function only notifies the view).
+
+</description>
+<parameters>
+</parameters>
+<return></return>
+</function>
+
 <function name="GtkSourceMark">
 <description>
 The category of the #GtkSourceMark, classified the mark and control
@@ -2528,19 +3388,21 @@ Determines whether a source buffer can redo the last action
 </return>
 </function>
 
-<function name="segment_cmp">
+<function name="gtk_source_completion_utils_get_pos_at_cursor">
 <description>
- s1: first segment.
- s2: second segment.
-
-Compares segments by their offset, used to sort list of invalid segments.
-
 
 </description>
 <parameters>
+<parameter name="window">
+<parameter_description> the #GtkWindow to move
+</parameter_description>
+</parameter>
+<parameter name="view">
+<parameter_description> the view 
+</parameter_description>
+</parameter>
 </parameters>
-<return> an integer like strcmp() does.
-</return>
+<return></return>
 </function>
 
 <function name="gtk_source_view_set_indent_on_tab">
@@ -2565,36 +3427,53 @@ Since: 1.8
 <return></return>
 </function>
 
-<function name="update_syntax">
+<function name="gtk_source_completion_provider_get_icon">
 <description>
- ce: #GtkSourceContextEngine.
- end: desired end of region to analyze or %NULL.
- time: maximal amount of time in milliseconds allowed to spend here
-or 0 for &apos;unlimited&apos;.
+Get the icon of the provider.
 
-Updates syntax tree. If @end is not %NULL, then it analyzes
-(reanalyzes invalid areas in) region from start of buffer
-to @end. Otherwise, it analyzes batch of text starting at
-first invalid line.
-In order to avoid blocking ui it uses a timer and stops
-when time elapsed is greater than @time, so analyzed region is
-not necessarily what&apos;s requested (unless @time is 0).
 
 </description>
 <parameters>
+<parameter name="provider">
+<parameter_description> The #GtkSourceCompletionProvider
+</parameter_description>
+</parameter>
 </parameters>
-<return></return>
+<return> The icon to be used for the provider, or %NULL if the provider does
+not have a special icon.
+</return>
 </function>
 
-<function name="gtk_source_language_manager_get_default">
+<function name="gsc_utils_char_is_separator">
 <description>
-Returns: a #GtkSourceLanguageManager. Return value is owned
+A separator is a character like (, an space etc. An _ is not a separator
+
 
 </description>
 <parameters>
+<parameter name="ch">
+<parameter_description> The character to check
+</parameter_description>
+</parameter>
 </parameters>
-<return> a #GtkSourceLanguageManager. Return value is owned
-by GtkSourceView library and must not be unref&apos;ed.
+<return>TRUE if the ch is a separator
+</return>
+</function>
+
+<function name="analyze_line">
+<description>
+ ce: #GtkSourceContextEngine.
+ state: the state at the beginning of line.
+ line: the line.
+ hint: a child of @state around start of line, to make it faster.
+
+Finds contexts at the line and updates the syntax tree on it.
+
+
+</description>
+<parameters>
+</parameters>
+<return> starting state at the next line.
 </return>
 </function>
 
@@ -2662,6 +3541,76 @@ Since: 2.0
 </return>
 </function>
 
+<function name="gtk_source_completion_remove_provider">
+<description>
+Remove @provider from the completion.
+
+
+</description>
+<parameters>
+<parameter name="completion">
+<parameter_description> A #GtkSourceCompletion
+</parameter_description>
+</parameter>
+<parameter name="provider">
+<parameter_description> A #GtkSourceCompletionProvider
+</parameter_description>
+</parameter>
+<parameter name="error">
+<parameter_description> A #GError
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if @provider was successfully removed, otherwise if @error
+is provided, it will be set with the error and %FALSE is returned.
+</return>
+</function>
+
+<function name="gtk_source_context_engine_attach_buffer">
+<description>
+ ce: #GtkSourceContextEngine.
+ buffer: buffer.
+
+Detaches engine from previous buffer, and attaches to @buffer if
+it's not %NULL.
+
+</description>
+<parameters>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_completion_item_new_with_markup">
+<description>
+Create a new #GtkSourceCompletionItem with markup label @markup, icon 
+ icon and extra information @info. Both @icon and @info can be %NULL in 
+which case there will be no icon shown and no extra information available.
+
+
+</description>
+<parameters>
+<parameter name="markup">
+<parameter_description> The item markup label
+</parameter_description>
+</parameter>
+<parameter name="text">
+<parameter_description> The item text
+</parameter_description>
+</parameter>
+<parameter name="icon">
+<parameter_description> The item icon
+</parameter_description>
+</parameter>
+<parameter name="info">
+<parameter_description> The item extra information
+</parameter_description>
+</parameter>
+</parameters>
+<return> The new #GtkSourceCompletionItem.
+
+</return>
+</function>
+
 <function name="gtk_source_style_scheme_manager_append_search_path">
 <description>
 Appends @path to the list of directories where the @manager looks for
@@ -2701,8 +3650,8 @@ Return value: %TRUE if auto indentation is enabled.
 <description>
 @lang: #GtkSourceLanguage.
 
-Creates new context definition set. It does not set lang-&amp;gt;priv-&amp;gt;ctx_data,
-that&apos;s lang business.
+Creates new context definition set. It does not set lang-&gt;priv-&gt;ctx_data,
+that's lang business.
 
 </description>
 <parameters>
@@ -2710,38 +3659,89 @@ that&apos;s lang business.
 <return></return>
 </function>
 
-<function name="gtk_source_view_get_highlight_current_line">
+<function name="gtk_source_completion_proposal_hash">
 <description>
-Return value: %TRUE if the current line is highlighted.
+Get the hash value of @proposal. This is used to (together with
+#gtk_source_completion_proposal_equal) to match proposals in the completion
+model. By default, it uses a direct hash (#g_direct_hash).
+
 
 </description>
 <parameters>
-<parameter name="view">
-<parameter_description> a #GtkSourceView
+<parameter name="proposal">
+<parameter_description> A #GtkSourceCompletionProposal
 </parameter_description>
 </parameter>
 </parameters>
-<return> %TRUE if the current line is highlighted.
+<return> The hash value of @proposal
+
 </return>
 </function>
 
-<function name="gtk_source_view_new_with_buffer">
+<function name="gtk_source_view_get_mark_category_pixbuf">
 <description>
-Creates a new #GtkSourceView widget displaying the buffer
- buffer  One buffer can be shared among many widgets.
+Gets the pixbuf which is associated with the given mark @category.
 
 
 </description>
 <parameters>
-<parameter name="buffer">
-<parameter_description> a #GtkSourceBuffer.
+<parameter name="view">
+<parameter_description> a #GtkSourceView.
+</parameter_description>
+</parameter>
+<parameter name="category">
+<parameter_description> a mark category.
 </parameter_description>
 </parameter>
 </parameters>
-<return> a new #GtkTextView.
+<return> the associated #GdkPixbuf, or %NULL if not found.
+
+Since: 2.2
 </return>
 </function>
 
+<function name="invalidate_region">
+<description>
+ ce: a #GtkSourceContextEngine.
+ offset: the start of invalidated area.
+ length: the length of the area.
+
+Adds the area to the invalid region and queues highlighting.
+ length may be negative which means deletion; positive
+means insertion; 0 means &quot;something happened here&quot;, it's
+treated as zero-length insertion.
+
+</description>
+<parameters>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_view_set_mark_category_icon_from_stock">
+<description>
+Sets the icon to be used for @category to the stock item @stock_id.
+If @stock_id is #NULL, the icon is unset.
+
+Since: 2.8
+
+</description>
+<parameters>
+<parameter name="view">
+<parameter_description> a #GtkSourceView.
+</parameter_description>
+</parameter>
+<parameter name="category">
+<parameter_description> a mark category.
+</parameter_description>
+</parameter>
+<parameter name="stock_id">
+<parameter_description> the stock id or #NULL.
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="gtk_source_iter_backward_search">
 <description>
 Same as gtk_text_iter_backward_search(), but supports case insensitive
@@ -2763,15 +3763,15 @@ searching.
 </parameter_description>
 </parameter>
 <parameter name="match_start">
-<parameter_description> return location for start of match, or %%NULL.
+<parameter_description> return location for start of match, or %NULL.
 </parameter_description>
 </parameter>
 <parameter name="match_end">
-<parameter_description> return location for end of match, or %%NULL.
+<parameter_description> return location for end of match, or %NULL.
 </parameter_description>
 </parameter>
 <parameter name="limit">
-<parameter_description> location of last possible @match_start, or %%NULL for start of buffer.
+<parameter_description> location of last possible @match_start, or %NULL for start of buffer.
 </parameter_description>
 </parameter>
 </parameters>
@@ -2779,36 +3779,123 @@ searching.
 </return>
 </function>
 
-<function name="segment_add_subpattern">
+<function name="gtk_source_print_compositor_set_left_margin">
 <description>
- state: the segment.
- sp: subpattern.
+Sets the left margin used by @compositor.
 
-Prepends subpattern to subpatterns list in the segment.
+Since: 2.2
 
 </description>
 <parameters>
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
+</parameter_description>
+</parameter>
+<parameter name="margin">
+<parameter_description> the new left margin in units of @unit
+</parameter_description>
+</parameter>
+<parameter name="unit">
+<parameter_description> the units for @margin
+</parameter_description>
+</parameter>
 </parameters>
 <return></return>
 </function>
 
-<function name="g_match_info_get_regex">
+<function name="gtk_source_view_get_completion">
+<description>
+Gets the #GtkSourceCompletion associated with @view.
+
+
+</description>
+<parameters>
+<parameter name="view">
+<parameter_description> a #GtkSourceView
+</parameter_description>
+</parameter>
+</parameters>
+<return> the #GtkSourceCompletion associated with @view.
+</return>
+</function>
+
+<function name="gtk_source_gutter_get_window">
+<description>
+Get the #GdkWindow of the gutter. The window will only be available when the
+gutter has at least one, non-zero width, cell renderer packed.
+
+
+</description>
+<parameters>
+<parameter name="gutter">
+<parameter_description> a #GtkSourceGutter
+</parameter_description>
+</parameter>
+</parameters>
+<return> the #GdkWindow of the gutter, or %NULL if the gutter has no window.
+
+Since: 2.8
+</return>
+</function>
+
+<function name="gtk_source_print_compositor_get_body_font_name">
 <description>
-Returns: #GRegex object used in @match_info
+Return value: a new string containing the name of the font used to print the 
 
 </description>
 <parameters>
-<parameter name="match_info">
-<parameter_description> a #GMatchInfo
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
 </parameter_description>
 </parameter>
 </parameters>
-<return> #GRegex object used in @match_info
+<return> a new string containing the name of the font used to print the 
+text body.
 
-Since: 2.14
+Since: 2.2
+</return>
+</function>
+
+<function name="all_analyzed">
+<description>
+ ce: a #GtkSourceContextEngine.
+
+
+</description>
+<parameters>
+</parameters>
+<return> whether everything is analyzed (but it doesn't care about the tags).
 </return>
 </function>
 
+<function name="find_insertion_place_forward_">
+<description>
+ segment: (grand)parent segment the new one should be inserted into.
+ offset: offset at which text is inserted.
+ start: segment from which to start search (to avoid
+walking whole tree).
+ parent: initialized with the parent of new segment.
+ prev: initialized with the previous sibling of new segment.
+ next: initialized with the next sibling of new segment.
+
+Auxiliary function used in find_insertion_place().
+
+</description>
+<parameters>
+</parameters>
+<return></return>
+</function>
+
+<function name="container_context_starts_here">
+<description>
+See child_starts_here().
+
+</description>
+<parameters>
+</parameters>
+<return></return>
+</function>
+
 <function name="gtk_source_view_get_show_right_margin">
 <description>
 Return value: %TRUE if the right margin is shown.
@@ -2838,22 +3925,26 @@ Sets current style scheme, updates tag styles and everything.
 <return></return>
 </function>
 
-<function name="gtk_source_mark_prev">
+<function name="gtk_source_buffer_get_source_marks_at_line">
 <description>
-Returns: the previous #GtkSourceMark or %NULL
+Returns: a newly allocated #GSList.
 
 </description>
 <parameters>
-<parameter name="mark">
-<parameter_description> a #GtkSourceMark
+<parameter name="buffer">
+<parameter_description> a #GtkSourceBuffer.
+</parameter_description>
+</parameter>
+<parameter name="line">
+<parameter_description> a line number.
 </parameter_description>
 </parameter>
 <parameter name="category">
-<parameter_description> a string specifying the mark category or %NULL
+<parameter_description> category to search for or %NULL
 </parameter_description>
 </parameter>
 </parameters>
-<return> the previous #GtkSourceMark or %NULL
+<return> a newly allocated #GSList.
 
 Since: 2.2
 </return>
@@ -2874,20 +3965,29 @@ it affects only text tags.
 <return></return>
 </function>
 
-<function name="apply_sub_patterns">
+<function name="GtkSourceGutter">
 <description>
- contextstate: a #Context.
- line_starts_at: beginning offset of the line.
- line: the line to analyze.
- line_pos: the position inside @line.
- line_length: the length of @line.
- regex: regex that matched.
- where: kind of sub patterns to apply.
-
-Applies sub patterns of kind @where to the matched text.
+Emitted when a tooltip is requested for a specific cell. Signal
+handlers can return %TRUE to notify the tooltip has been handled.
 
 </description>
 <parameters>
+<parameter name="gutter">
+<parameter_description> the #GtkSourceGutter
+</parameter_description>
+</parameter>
+<parameter name="renderer">
+<parameter_description> the #GtkCellRenderer which was activated
+</parameter_description>
+</parameter>
+<parameter name="iter">
+<parameter_description> the #GtkTextIter at which the cell was activated
+</parameter_description>
+</parameter>
+<parameter name="tooltip">
+<parameter_description> the #GtkTooltip
+</parameter_description>
+</parameter>
 </parameters>
 <return></return>
 </function>
@@ -2915,26 +4015,29 @@ function.
 <return></return>
 </function>
 
-<function name="gtk_source_style_scheme_get_filename">
+<function name="gtk_source_print_compositor_get_wrap_mode">
 <description>
+Gets the line wrapping mode for the printed text.
+
 
 </description>
 <parameters>
-<parameter name="scheme">
-<parameter_description> a #GtkSourceStyleScheme.
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
 </parameter_description>
 </parameter>
 </parameters>
-<return> @scheme file name if the scheme was created parsing a
-style scheme file or NULL in the other cases.
+<return> the line wrap mode.
 
-Since: 2.0
+Since: 2.2
 </return>
 </function>
 
-<function name="gtk_source_buffer_get_marks_at_line">
+<function name="gtk_source_view_new_with_buffer">
 <description>
-Returns: a newly allocated #GSList.
+Creates a new #GtkSourceView widget displaying the buffer
+ buffer  One buffer can be shared among many widgets.
+
 
 </description>
 <parameters>
@@ -2942,18 +4045,8 @@ Returns: a newly allocated #GSList.
 <parameter_description> a #GtkSourceBuffer.
 </parameter_description>
 </parameter>
-<parameter name="line">
-<parameter_description> a line number.
-</parameter_description>
-</parameter>
-<parameter name="category">
-<parameter_description> category to search for or %NULL
-</parameter_description>
-</parameter>
 </parameters>
-<return> a newly allocated #GSList.
-
-Since: 2.2
+<return> a new #GtkTextView.
 </return>
 </function>
 
@@ -2983,103 +4076,162 @@ Asks the buffer to analyze and highlight given area.
 <return></return>
 </function>
 
-<function name="g_regex_unref">
+<function name="gtk_source_completion_proposal_get_text">
 <description>
-Decreases reference count of @regex by 1. When reference count drops
-to zero, it frees all the memory associated with the regex structure.
+Gets the text of @proposal. The text that is inserted into
+the text buffer when the proposal is activated by the default activation.
+You are free to implement a custom activation handler in the provider and
+not implement this function.
 
-Since: 2.14
 
 </description>
 <parameters>
-<parameter name="regex">
-<parameter_description> a #GRegex
+<parameter name="proposal">
+<parameter_description> A #GtkSourceCompletionProposal
 </parameter_description>
 </parameter>
 </parameters>
-<return></return>
+<return> The text of @proposal.
+</return>
 </function>
 
-<function name="get_invalid_segment">
+<function name="gtk_source_completion_item_new_from_stock">
 <description>
- ce: a #GtkSourceContextEngine.
+Creates a new #GtkSourceCompletionItem from a stock item. If @label is %NULL, 
+the stock label will be used.
 
 
 </description>
 <parameters>
+<parameter name="label">
+<parameter_description> The item label
+</parameter_description>
+</parameter>
+<parameter name="text">
+<parameter_description> The item text
+</parameter_description>
+</parameter>
+<parameter name="stock">
+<parameter_description> The stock icon
+</parameter_description>
+</parameter>
+<parameter name="info">
+<parameter_description> The item extra information
+</parameter_description>
+</parameter>
 </parameters>
-<return> first invalid segment, or %NULL.
+<return> the newly constructed #GtkSourceCompletionItem.
+
 </return>
 </function>
 
-<function name="gtk_source_view_get_show_line_numbers">
+<function name="insert_range">
 <description>
-Return value: %TRUE if the line numbers are displayed.
+ ce: a #GtkSourceContextEngine.
+ offset: the start of new segment.
+ length: the length of the segment.
+
+Updates segment tree after insertion: it updates tree
+offsets as appropriate, and inserts a new invalid segment
+or extends existing invalid segment as @offset, so
+after the call segment [ offset, @offset + @length) is marked
+invalid in the tree.
+It may be safely called with length == 0 at any moment
+to invalidate some offset (and it's used here and there).
 
 </description>
 <parameters>
-<parameter name="view">
-<parameter_description> a #GtkSourceView.
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_completion_provider_update_info">
+<description>
+Update extra information shown in @info for @proposal. This should be
+implemented if your provider sets a custom info widget for @proposal.
+This function MUST be implemented when 
+#gtk_source_completion_provider_get_info_widget is implemented.
+
+</description>
+<parameters>
+<parameter name="provider">
+<parameter_description> A #GtkSourceCompletionProvider
+</parameter_description>
+</parameter>
+<parameter name="proposal">
+<parameter_description> A #GtkSourceCompletionProposal
+</parameter_description>
+</parameter>
+<parameter name="info">
+<parameter_description> A #GtkSourceCompletionInfo
 </parameter_description>
 </parameter>
 </parameters>
-<return> %TRUE if the line numbers are displayed.
-</return>
+<return></return>
 </function>
 
-<function name="_gtk_source_language_manager_get_rng_file">
+<function name="gtk_source_gutter_set_cell_data_func">
 <description>
-Returns: path to RNG file. It belongs to %lm and must not be freed or modified.
+Sets the #GtkSourceGutterDataFunc to use for @renderer. This function is
+used to setup the cell renderer properties for rendering the current cell.
+
+Since: 2.8
 
 </description>
 <parameters>
-<parameter name="lm">
-<parameter_description> a #GtkSourceLanguageManager.
+<parameter name="gutter">
+<parameter_description> a #GtkSourceGutter
+</parameter_description>
+</parameter>
+<parameter name="renderer">
+<parameter_description> a #GtkCellRenderer
+</parameter_description>
+</parameter>
+<parameter name="func">
+<parameter_description> the #GtkSourceGutterDataFunc to use
+</parameter_description>
+</parameter>
+<parameter name="func_data">
+<parameter_description> the user data for @func
+</parameter_description>
+</parameter>
+<parameter name="destroy">
+<parameter_description> the destroy notification for @func_data
 </parameter_description>
 </parameter>
 </parameters>
-<return> path to RNG file. It belongs to %lm and must not be freed or modified.
-</return>
+<return></return>
 </function>
 
-<function name="g_match_info_is_partial_match">
+<function name="gtk_source_gutter_reorder">
 <description>
-Usually if the string passed to g_regex_match*() matches as far as
-it goes, but is too short to match the entire pattern, %FALSE is
-returned. There are circumstances where it might be helpful to
-distinguish this case from other cases in which there is no match.
-
-Consider, for example, an application where a human is required to
-type in data for a field with specific formatting requirements. An
-example might be a date in the form ddmmmyy, defined by the pattern
-&quot;^\d?\d(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\d\d$&quot;.
-If the application sees the userâ??s keystrokes one by one, and can
-check that what has been typed so far is potentially valid, it is
-able to raise an error as soon as a mistake is made.
+Reorders @renderer in @gutter to new @position.
 
-GRegex supports the concept of partial matching by means of the
-#G_REGEX_MATCH_PARTIAL flag. When this is set the return code for
-g_regex_match() or g_regex_match_full() is, as usual, %TRUE
-for a complete match, %FALSE otherwise. But, when this functions
-Returns: %TRUE if the match was partial, %FALSE otherwise
+Since: 2.8
 
 </description>
 <parameters>
-<parameter name="match_info">
-<parameter_description> a #GMatchInfo structure
+<parameter name="gutter">
+<parameter_description> a #GtkSourceGutter
+</parameter_description>
+</parameter>
+<parameter name="renderer">
+<parameter_description> a #GtkCellRenderer
+</parameter_description>
+</parameter>
+<parameter name="position">
+<parameter_description> the new renderer position
 </parameter_description>
 </parameter>
 </parameters>
-<return> %TRUE if the match was partial, %FALSE otherwise
-
-Since: 2.14
-</return>
+<return></return>
 </function>
 
-<function name="gtk_source_view_set_smart_home_end">
+<function name="gtk_source_view_set_insert_spaces_instead_of_tabs">
 <description>
-Set the desired movement of the cursor when HOME and END keys
-are pressed.
+If %TRUE any tabulator character inserted is replaced by a group
+of space characters.
+
 
 </description>
 <parameters>
@@ -3087,20 +4239,67 @@ are pressed.
 <parameter_description> a #GtkSourceView.
 </parameter_description>
 </parameter>
-<parameter name="smart_he">
-<parameter_description> the desired behavior among #GtkSourceSmartHomeEndType
+<parameter name="enable">
+<parameter_description> whether to insert spaces instead of tabs.
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_print_compositor_set_footer_font_name">
+<description>
+Sets the font for printing the page footer. If
+%NULL is supplied, the default font (i.e. the one being used for the
+text) will be used instead.  
+
+ font_name should be a
+string representation of a font description Pango can understand.
+(e.g. &quot;Monospace 10&quot;). See pango_font_description_from_string()
+for a description of the format of the string representation. 
+
+This function cannot be called anymore after the first call to the 
+gtk_source_print_compositor_paginate() function.    
+
+Since: 2.2
+
+</description>
+<parameters>
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
+</parameter_description>
+</parameter>
+<parameter name="font_name">
+<parameter_description> the name of the font for the footer text, or %NULL.
 </parameter_description>
 </parameter>
 </parameters>
 <return></return>
 </function>
 
+<function name="gtk_source_view_get_indent_on_tab">
+<description>
+Return value: %TRUE if the selection is indented when tab is pressed.
+
+</description>
+<parameters>
+<parameter name="view">
+<parameter_description> a #GtkSourceView.
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the selection is indented when tab is pressed.
+
+Since: 1.8
+</return>
+</function>
+
 <function name="gtk_source_buffer_set_language">
 <description>
-Associate a #GtkSourceLanguage with the source buffer. If @language is 
+Associate a #GtkSourceLanguage with the source buffer. If @language is
 not-%NULL and syntax highlighting is enabled (see gtk_source_buffer_set_highlight_syntax()),
 the syntax patterns defined in @language will be used to highlight the text
-contained in the buffer. If @language is %NULL, the text contained in the 
+contained in the buffer. If @language is %NULL, the text contained in the
 buffer is not highlighted.
 
 The buffer holds a reference to @language.
@@ -3134,39 +4333,16 @@ a segment is marked invalid.
 <return></return>
 </function>
 
-<function name="g_match_info_fetch_all">
+<function name="update_tree">
 <description>
-Bundles up pointers to each of the matching substrings from a match
-and stores them in an array of gchar pointers. The first element in
-the returned array is the match number 0, i.e. the entire matched
-text.
-
-If a sub pattern didn&apos;t match anything (e.g. sub pattern 1, matching
-&quot;b&quot; against &quot;(a)?b&quot;) then an empty string is inserted.
-
-If the last match was obtained using the DFA algorithm, that is using
-g_regex_match_all() or g_regex_match_all_full(), the retrieved
-strings are not that matched by sets of parentheses but that of the
-matched substring. Substrings are matched in reverse order of length,
-so the first one is the longest match.
-
-The strings are fetched from the string passed to the match function,
-so you cannot call this function after freeing the string.
+ ce: a #GtkSourceContextEngine.
 
+Modifies syntax tree according to data in invalid_region.
 
 </description>
 <parameters>
-<parameter name="match_info">
-<parameter_description> a #GMatchInfo structure
-</parameter_description>
-</parameter>
 </parameters>
-<return> a %NULL-terminated array of gchar * pointers. It must be freed
-using g_strfreev(). If the previous match failed %NULL is
-returned.
-
-Since: 2.14
-</return>
+<return></return>
 </function>
 
 <function name="find_insertion_place">
@@ -3192,6 +4368,23 @@ There is no return value, it always succeeds (or crashes).
 <return></return>
 </function>
 
+<function name="gtk_source_completion_context_get_view">
+<description>
+Get the #GtkSourceView to which the context applies
+
+
+</description>
+<parameters>
+<parameter name="context">
+<parameter_description> A #GtkSourceCompletionContext
+</parameter_description>
+</parameter>
+</parameters>
+<return> A #GtkSourceView
+
+</return>
+</function>
+
 <function name="child_starts_here">
 <description>
 @ce: the engine.
@@ -3242,114 +4435,20 @@ is %FALSE, then it queues idle worker.
 <return></return>
 </function>
 
-<function name="g_regex_match_full">
+<function name="gtk_source_completion_new">
 <description>
-Scans for a match in string for the pattern in @regex. The @match_options
-are combined with the match options specified when the @regex structure
-was created, letting you have more flexibility in reusing #GRegex
-structures.
-
-Setting @start_position differs from just passing over a shortened string
-and  setting #G_REGEX_MATCH_NOTBOL in the case of a pattern that begins
-with any kind of lookbehind assertion, such as &quot;\b&quot;.
-
-A #GMatchInfo structure, used to get information on the match, is stored
-in @match_info if not %NULL. Note that if @match_info is not %NULL then
-it is created even if the function returns %FALSE, i.e. you must free it
-regardless if regular expression actually matched.
-
- string is not copied and is used in #GMatchInfo internally. If you use
-any #GMatchInfo method (except g_match_info_free()) after freeing or
-modifying @string then the behaviour is undefined.
-
-To retrieve all the non-overlapping matches of the pattern in string you
-can use g_match_info_next().
-
-&amp;lt;informalexample&amp;gt;&amp;lt;programlisting&amp;gt;
-static void
-print_uppercase_words (const gchar *string)
-{
-/&amp;ast; Print all uppercase-only words. &amp;ast;/
-GRegex *regex;
-GMatchInfo *match_info;
-GError *error = NULL;
-&amp;nbsp;
-regex = g_regex_new (&quot;[A-Z]+&quot;, 0, 0, NULL);
-g_regex_match_full (regex, string, -1, 0, 0, &amp;match_info, &amp;error);
-while (g_match_info_matches (match_info))
-{
-gchar *word = g_match_info_fetch (match_info, 0);
-g_print (&quot;Found: %s\n&quot;, word);
-g_free (word);
-g_match_info_next (match_info, &amp;error);
-}
-g_match_info_free (match_info);
-g_regex_unref (regex);
-if (error != NULL)
-{
-g_printerr (&quot;Error while matching: %s\n&quot;, error-&amp;gt;message);
-g_error_free (error);
-}
-}
-&amp;lt;/programlisting&amp;gt;&amp;lt;/informalexample&amp;gt;
-
-
-</description>
-<parameters>
-<parameter name="regex">
-<parameter_description> a #GRegex structure from g_regex_new()
-</parameter_description>
-</parameter>
-<parameter name="string">
-<parameter_description> the string to scan for matches
-</parameter_description>
-</parameter>
-<parameter name="string_len">
-<parameter_description> the length of @string, or -1 if @string is nul-terminated
-</parameter_description>
-</parameter>
-<parameter name="start_position">
-<parameter_description> starting index of the string to match
-</parameter_description>
-</parameter>
-<parameter name="match_options">
-<parameter_description> match options
-</parameter_description>
-</parameter>
-<parameter name="match_info">
-<parameter_description> pointer to location where to store the #GMatchInfo, or
-%NULL if you do not need it
-</parameter_description>
-</parameter>
-<parameter name="error">
-<parameter_description> location to store the error occuring, or %NULL to ignore errors
-</parameter_description>
-</parameter>
-</parameters>
-<return> %TRUE is the string matched, %FALSE otherwise
+Create a new #GtkSourceCompletion associated with @view.
 
-Since: 2.14
-</return>
-</function>
-
-<function name="gtk_source_view_set_indent_width">
-<description>
-Sets the number of spaces to use for each step of indent.
-If @width is -1, the value of the GtkSourceView::tab-width property
-will be used.
 
 </description>
 <parameters>
 <parameter name="view">
-<parameter_description> a #GtkSourceView.
-</parameter_description>
-</parameter>
-<parameter name="width">
-<parameter_description> indent width in characters.
+<parameter_description> A #GtkSourceView
 </parameter_description>
 </parameter>
 </parameters>
-<return></return>
+<return> The new #GtkSourceCompletion.
+</return>
 </function>
 
 <function name="delete_range_">
@@ -3360,7 +4459,7 @@ will be used.
 
 Updates segment tree after deletion: removes segments at deleted
 interval, updates tree offsets, etc.
-It&apos;s called only from update_tree().
+It's called only from update_tree().
 
 </description>
 <parameters>
@@ -3368,35 +4467,69 @@ It&apos;s called only from update_tree().
 <return></return>
 </function>
 
-<function name="analyze_line">
+<function name="gtk_source_language_manager_get_default">
 <description>
- ce: #GtkSourceContextEngine.
- state: the state at the beginning of line.
- line: the line.
- hint: a child of @state around start of line, to make it faster.
+Returns: a #GtkSourceLanguageManager. Return value is owned
 
-Finds contexts at the line and updates the syntax tree on it.
+</description>
+<parameters>
+</parameters>
+<return> a #GtkSourceLanguageManager. Return value is owned
+by GtkSourceView library and must not be unref'ed.
+</return>
+</function>
+
+<function name="gtk_source_print_compositor_set_highlight_syntax">
+<description>
+Sets whether the printed text will be highlighted according to the
+buffer rules.  Both color and font style are applied.
+
+This function cannot be called anymore after the first call to the 
+gtk_source_print_compositor_paginate() function.   
 
+Since: 2.2
 
 </description>
 <parameters>
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
+</parameter_description>
+</parameter>
+<parameter name="highlight">
+<parameter_description> whether syntax should be highlighted.
+</parameter_description>
+</parameter>
 </parameters>
-<return> starting state at the next line.
-</return>
+<return></return>
 </function>
 
-<function name="gtk_source_view_set_highlight_current_line">
+<function name="gtk_source_view_set_mark_category_tooltip_markup_func">
 <description>
-If @show is %TRUE the current line is highlighted.
+See gtk_source_view_set_mark_category_tooltip_func() for more information.
+
+Since: 2.8
 
 </description>
 <parameters>
 <parameter name="view">
-<parameter_description> a #GtkSourceView
+<parameter_description> a #GtkSourceView.
 </parameter_description>
 </parameter>
-<parameter name="show">
-<parameter_description> whether to highlight the current line
+<parameter name="category">
+<parameter_description> a mark category.
+</parameter_description>
+</parameter>
+<parameter name="markup_func">
+<parameter_description> a #GtkSourceViewMarkTooltipFunc or %NULL.
+</parameter_description>
+</parameter>
+<parameter name="user_data">
+<parameter_description> user data which will be passed to @func.
+</parameter_description>
+</parameter>
+<parameter name="user_data_notify">
+<parameter_description>a function to free the memory allocated for @user_data 
+or %NULL if you do not want to supply such a function.
 </parameter_description>
 </parameter>
 </parameters>
@@ -3416,43 +4549,91 @@ Updates end offset in the segment and its ancestors.
 <return></return>
 </function>
 
-<function name="gtk_source_iter_find_matching_bracket">
+<function name="gtk_source_buffer_remove_source_marks">
 <description>
-Tries to match the bracket character currently at @iter with its
-opening/closing counterpart, and if found moves @iter to the position
-where it was found.
-
- iter must be a #GtkTextIter belonging to a #GtkSourceBuffer.
+Remove all marks of @category between @start and @end from the buffer.
+If @category is NULL, all marks in the range will be removed.
 
+Since: 2.2
 
 </description>
 <parameters>
-<parameter name="iter">
-<parameter_description> a #GtkTextIter.
+<parameter name="buffer">
+<parameter_description> a #GtkSourceBuffer.
+</parameter_description>
+</parameter>
+<parameter name="start">
+<parameter_description> a #GtkTextIter
+</parameter_description>
+</parameter>
+<parameter name="end">
+<parameter_description> a #GtkTextIter
+</parameter_description>
+</parameter>
+<parameter name="category">
+<parameter_description> category to search for or NULL
 </parameter_description>
 </parameter>
 </parameters>
-<return> %TRUE if the matching bracket was found and the @iter
-iter moved.
-</return>
+<return></return>
 </function>
 
-<function name="g_match_info_free">
+<function name="gtk_source_view_set_indent_width">
 <description>
-Frees all the memory associated with the #GMatchInfo structure.
-
-Since: 2.14
+Sets the number of spaces to use for each step of indent.
+If @width is -1, the value of the GtkSourceView::tab-width property
+will be used.
 
 </description>
 <parameters>
-<parameter name="match_info">
-<parameter_description> a #GMatchInfo
+<parameter name="view">
+<parameter_description> a #GtkSourceView.
+</parameter_description>
+</parameter>
+<parameter name="width">
+<parameter_description> indent width in characters.
 </parameter_description>
 </parameter>
 </parameters>
 <return></return>
 </function>
 
+<function name="create_reg_all">
+<description>
+ context: context.
+ definition: context definition.
+
+Creates regular expression for all possible transitions: it
+combines terminating regex, terminating regexes of parent
+contexts if those can terminate this one, and start regexes
+of child contexts.
+
+It takes as an argument actual context or a context definition. In
+case when context end depends on start (\%{foo start} references),
+it must use the context, definition is not enough. If there are no
+those references, then the reg_all is created right in the definition
+when no contexts exist yet. This is why this function has its funny
+arguments.
+
+
+</description>
+<parameters>
+</parameters>
+<return> resulting regex or %NULL when pcre failed to compile the regex.
+</return>
+</function>
+
+<function name="gtk_source_completion_info_new">
+<description>
+
+</description>
+<parameters>
+</parameters>
+<return> The new GtkSourceCompletionInfo.
+
+</return>
+</function>
+
 <function name="highlight_region">
 <description>
 @ce: a #GtkSourceContextEngine.
@@ -3507,195 +4688,230 @@ only from update_syntax().
 <return></return>
 </function>
 
-<function name="gtk_source_buffer_get_marks_at_iter">
+<function name="gtk_source_print_compositor_get_top_margin">
 <description>
-Returns: a newly allocated #GSList.
+Gets the top margin in units of @unit.
+
 
 </description>
 <parameters>
-<parameter name="buffer">
-<parameter_description> a #GtkSourceBuffer.
-</parameter_description>
-</parameter>
-<parameter name="iter">
-<parameter_description> an iterator.
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
 </parameter_description>
 </parameter>
-<parameter name="category">
-<parameter_description> category to search for or %NULL
+<parameter name="unit">
+<parameter_description> the unit for the return value.
 </parameter_description>
 </parameter>
 </parameters>
-<return> a newly allocated #GSList.
+<return> the top margin.
 
 Since: 2.2
 </return>
 </function>
 
-<function name="gtk_source_buffer_get_highlight_matching_brackets">
+<function name="gtk_source_print_compositor_get_left_margin">
 <description>
-Determines whether bracket match highlighting is activated for the
-source buffer.
+Gets the left margin in units of @unit.
 
 
 </description>
 <parameters>
-<parameter name="buffer">
-<parameter_description> a #GtkSourceBuffer.
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
+</parameter_description>
+</parameter>
+<parameter name="unit">
+<parameter_description> the unit for the return value.
 </parameter_description>
 </parameter>
 </parameters>
-<return> %TRUE if the source buffer will highlight matching
-brackets.
+<return> the left margin
+
+Since: 2.2
 </return>
 </function>
 
-<function name="line_info_destroy">
+<function name="gtk_source_gutter_insert">
 <description>
- line: #LineInfo.
+Inserts @renderer into @gutter at @position.
 
-Destroys data allocated by get_line_info().
+Since: 2.8
 
 </description>
 <parameters>
+<parameter name="gutter">
+<parameter_description> a #GtkSourceGutter
+</parameter_description>
+</parameter>
+<parameter name="renderer">
+<parameter_description> a #GtkCellRenderer
+</parameter_description>
+</parameter>
+<parameter name="position">
+<parameter_description> the renderers position
+</parameter_description>
+</parameter>
 </parameters>
 <return></return>
 </function>
 
-<function name="g_regex_replace">
+<function name="gtk_source_gutter_set_cell_size_func">
 <description>
-Replaces all occurances of the pattern in @regex with the
-replacement text. Backreferences of the form &apos;\number&apos; or &apos;\g&amp;lt;number&amp;gt;&apos;
-in the replacement text are interpolated by the number-th captured
-subexpression of the match, &apos;\g&amp;lt;name&amp;gt;&apos; refers to the captured subexpression
-with the given name. &apos;\0&apos; refers to the complete match, but &apos;\0&apos; followed
-by a number is the octal representation of a character. To include a
-literal &apos;\&apos; in the replacement, write &apos;\\&apos;.
-There are also escapes that changes the case of the following text:
-
-&amp;lt;variablelist&amp;gt;
-&amp;lt;varlistentry&amp;gt;&amp;lt;term&amp;gt;\l&amp;lt;/term&amp;gt;
-&amp;lt;listitem&amp;gt;
-&amp;lt;para&amp;gt;Convert to lower case the next character&amp;lt;/para&amp;gt;
-&amp;lt;/listitem&amp;gt;
-&amp;lt;/varlistentry&amp;gt;
-&amp;lt;varlistentry&amp;gt;&amp;lt;term&amp;gt;\u&amp;lt;/term&amp;gt;
-&amp;lt;listitem&amp;gt;
-&amp;lt;para&amp;gt;Convert to upper case the next character&amp;lt;/para&amp;gt;
-&amp;lt;/listitem&amp;gt;
-&amp;lt;/varlistentry&amp;gt;
-&amp;lt;varlistentry&amp;gt;&amp;lt;term&amp;gt;\L&amp;lt;/term&amp;gt;
-&amp;lt;listitem&amp;gt;
-&amp;lt;para&amp;gt;Convert to lower case till \E&amp;lt;/para&amp;gt;
-&amp;lt;/listitem&amp;gt;
-&amp;lt;/varlistentry&amp;gt;
-&amp;lt;varlistentry&amp;gt;&amp;lt;term&amp;gt;\U&amp;lt;/term&amp;gt;
-&amp;lt;listitem&amp;gt;
-&amp;lt;para&amp;gt;Convert to upper case till \E&amp;lt;/para&amp;gt;
-&amp;lt;/listitem&amp;gt;
-&amp;lt;/varlistentry&amp;gt;
-&amp;lt;varlistentry&amp;gt;&amp;lt;term&amp;gt;\E&amp;lt;/term&amp;gt;
-&amp;lt;listitem&amp;gt;
-&amp;lt;para&amp;gt;End case modification&amp;lt;/para&amp;gt;
-&amp;lt;/listitem&amp;gt;
-&amp;lt;/varlistentry&amp;gt;
-&amp;lt;/variablelist&amp;gt;
-
-If you do not need to use backreferences use g_regex_replace_literal().
-
-The @replacement string must be UTF-8 encoded even if #G_REGEX_RAW was
-passed to g_regex_new(). If you want to use not UTF-8 encoded stings
-you can use g_regex_replace_literal().
-
-Setting @start_position differs from just passing over a shortened string
-and  setting #G_REGEX_MATCH_NOTBOL in the case of a pattern that begins
-with any kind of lookbehind assertion, such as &quot;\b&quot;.
+Sets the #GtkSourceGutterSizeFunc to use for @renderer. This function is
+used to setup the cell renderer properties for measuring the maximum size
+of the cell.
 
+Since: 2.8
 
 </description>
 <parameters>
-<parameter name="regex">
-<parameter_description> a #GRegex structure
+<parameter name="gutter">
+<parameter_description> a #GtkSourceGutter
 </parameter_description>
 </parameter>
-<parameter name="string">
-<parameter_description> the string to perform matches against
+<parameter name="renderer">
+<parameter_description> a #GtkCellRenderer
 </parameter_description>
 </parameter>
-<parameter name="string_len">
-<parameter_description> the length of @string, or -1 if @string is nul-terminated
+<parameter name="func">
+<parameter_description> the #GtkSourceGutterSizeFunc to use
 </parameter_description>
 </parameter>
-<parameter name="start_position">
-<parameter_description> starting index of the string to match
+<parameter name="func_data">
+<parameter_description> the user data for @func
 </parameter_description>
 </parameter>
-<parameter name="replacement">
-<parameter_description> text to replace each match with
+<parameter name="destroy">
+<parameter_description> the destroy notification for @func_data
 </parameter_description>
 </parameter>
-<parameter name="match_options">
-<parameter_description> options for the match
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_completion_create_context">
+<description>
+Create a new #GtkSourceCompletionContext for @completion. The position at
+which the completion using the new context will consider completion can
+be provider by @position. If @position is %NULL, the current cursor
+position will be used.
+
+
+</description>
+<parameters>
+<parameter name="completion">
+<parameter_description> A #GtkSourceCompletion
 </parameter_description>
 </parameter>
-<parameter name="error">
-<parameter_description> location to store the error occuring, or %NULL to ignore errors
+<parameter name="position">
+<parameter_description> A #GtkTextIter
 </parameter_description>
 </parameter>
 </parameters>
-<return> a newly allocated string containing the replacements
+<return> a new #GtkSourceCompletionContext. The reference being returned
+is a 'floating' reference, so if you invoke #gtk_source_completion_show
+with this context you don't need to unref it.
 
-Since: 2.14
 </return>
 </function>
 
-<function name="g_regex_get_string_number">
+<function name="gtk_source_print_compositor_set_header_format">
 <description>
-Retrieves the number of the subexpression named @name.
+Sets strftime like header format strings, to be printed on the
+left, center and right of the top of each page.  The strings may
+include strftime(3) codes which will be expanded at print time.
+All strftime() codes are accepted, with the addition of %N for the
+page number and %Q for the page count.
+
+ separator specifies if a solid line should be drawn to separate
+the header from the document text.
+
+If %NULL is given for any of the three arguments, that particular
+string will not be printed.
 
+For the header to be printed, in
+addition to specifying format strings, you need to enable header
+printing with gtk_source_print_compositor_set_print_header().
+
+This function cannot be called anymore after the first call to the 
+gtk_source_print_compositor_paginate() function.    
+
+Since: 2.2
 
 </description>
 <parameters>
-<parameter name="regex">
-<parameter_description> #GRegex structure
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
 </parameter_description>
 </parameter>
-<parameter name="name">
-<parameter_description> name of the subexpression
+<parameter name="separator">
+<parameter_description> %TRUE if you want a separator line to be printed.
+</parameter_description>
+</parameter>
+<parameter name="left">
+<parameter_description> a format string to print on the left of the header.
+</parameter_description>
+</parameter>
+<parameter name="center">
+<parameter_description> a format string to print on the center of the header.
+</parameter_description>
+</parameter>
+<parameter name="right">
+<parameter_description> a format string to print on the right of the header.
 </parameter_description>
 </parameter>
 </parameters>
-<return> The number of the subexpression or -1 if @name does not exists
-
-Since: 2.14
-</return>
+<return></return>
 </function>
 
-<function name="g_match_info_matches">
+<function name="gtk_source_gutter_remove">
 <description>
+Removes @renderer from @gutter.
+
+Since: 2.8
 
 </description>
 <parameters>
-<parameter name="match_info">
-<parameter_description> a #GMatchInfo structure
+<parameter name="gutter">
+<parameter_description> a #GtkSourceGutter
+</parameter_description>
+</parameter>
+<parameter name="renderer">
+<parameter_description> a #GtkCellRenderer
 </parameter_description>
 </parameter>
 </parameters>
-<return> %TRUE if the previous match operation succeeded, %FALSE
-otherwise
+<return></return>
+</function>
+
+<function name="gtk_source_completion_provider_match">
+<description>
+Get whether the provider match the context of completion detailed in
+ context 
+
 
-Since: 2.14
+</description>
+<parameters>
+<parameter name="provider">
+<parameter_description> The #GtkSourceCompletionProvider
+</parameter_description>
+</parameter>
+<parameter name="context">
+<parameter_description> The #GtkSourceCompletionContext
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if @provider matches the completion context, %FALSE otherwise
 </return>
 </function>
 
-<function name="segment_merge">
+<function name="GtkSourcePrintCompositor">
 <description>
- ce: #GtkSourceContextEngine.
- first: first segment.
- second: second segment.
+The number of pages in the document or &lt;code&gt;-1&lt;/code&gt; if the 
+document has not been completely paginated.
 
-Merges adjacent segments @first and @second given
-their contexts are equal.
+Since: 2.2
 
 </description>
 <parameters>
@@ -3736,6 +4952,24 @@ segments never become valid).
 <return></return>
 </function>
 
+<function name="gtk_source_completion_proposal_get_markup">
+<description>
+Gets the label of @proposal with markup. The label is shown in the list of 
+proposals and may contain markup. This will be used instead of
+#gtk_source_completion_proposal_get_label if implemented.
+
+
+</description>
+<parameters>
+<parameter name="proposal">
+<parameter_description> A #GtkSourceCompletionProposal
+</parameter_description>
+</parameter>
+</parameters>
+<return> The label of @proposal with markup.
+</return>
+</function>
+
 <function name="install_idle_worker">
 <description>
 @ce: #GtkSourceContextEngine.
@@ -3749,6 +4983,42 @@ Always safe to call.
 <return></return>
 </function>
 
+<function name="gtk_source_completion_info_set_sizing">
+<description>
+Set sizing information for the info window. If @shrink_width or
+ shrink_height is %TRUE, the info window will try to resize to fit the
+window contents, with a maximum size given by @width and @height. Setting
+ width or @height to -1 removes the maximum size of respectively the width
+and height of the window.
+
+
+</description>
+<parameters>
+<parameter name="info">
+<parameter_description> A #GtkSourceCompletionInfo
+</parameter_description>
+</parameter>
+<parameter name="width">
+<parameter_description> The maximum/requested width of the window (-1 to default)
+</parameter_description>
+</parameter>
+<parameter name="height">
+<parameter_description> The maximum/requested height of the window (-1 to default)
+</parameter_description>
+</parameter>
+<parameter name="shrink_width">
+<parameter_description> Whether to shrink the width of the window to fit its contents
+</parameter_description>
+</parameter>
+<parameter name="shrink_height">
+<parameter_description> Whether to shrink the height of the window to fit its
+contents
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="fix_offsets_delete_">
 <description>
 @segment: segment.
@@ -3765,13 +5035,13 @@ only from delete_range_().
 <return></return>
 </function>
 
-<function name="sub_pattern_to_int">
+<function name="disable_highlighting">
 <description>
- name: the string from lang file.
+ ce: #GtkSourceContextEngine.
 
-Tries to convert @name to a number and assumes
-it&apos;s a name if that fails. Used for references in
-subpattern contexts (e.g. \%{1 start} or \%{blah start}).
+Dsiables highlighting in case of errors (currently if highlighting
+a single line took too long, so that highlighting doesn't freeze
+text editor).
 
 </description>
 <parameters>
@@ -3779,87 +5049,100 @@ subpattern contexts (e.g. \%{1 start} or \%{blah start}).
 <return></return>
 </function>
 
-<function name="g_regex_match_simple">
+<function name="gtk_source_completion_proposal_get_info">
 <description>
-Scans for a match in @string for @pattern.
+Gets extra information associated to the proposal. This information will be
+used to present the user with extra, detailed information about the
+selected proposal.
 
-This function is equivalent to g_regex_match() but it does not
-require to compile the pattern with g_regex_new(), avoiding some
-lines of code when you need just to do a match without extracting
-substrings, capture counts, and so on.
 
-If this function is to be called on the same @pattern more than
-once, it&apos;s more efficient to compile the pattern once with
-g_regex_new() and then use g_regex_match().
+</description>
+<parameters>
+<parameter name="proposal">
+<parameter_description> A #GtkSourceCompletionProposal
+</parameter_description>
+</parameter>
+</parameters>
+<return> The extra information of @proposal or %NULL if no extra information
+is associated to @proposal.
+</return>
+</function>
 
+<function name="gtk_source_view_set_mark_category_background">
+<description>
+Sets given background @color for mark @category.
+If @color is #NULL, the background color is unset.
+
+Since: 2.4
 
 </description>
 <parameters>
-<parameter name="pattern">
-<parameter_description> the regular expression
+<parameter name="view">
+<parameter_description> a #GtkSourceView.
 </parameter_description>
 </parameter>
-<parameter name="string">
-<parameter_description> the string to scan for matches
+<parameter name="category">
+<parameter_description> a mark category.
 </parameter_description>
 </parameter>
-<parameter name="compile_options">
-<parameter_description> compile options for the regular expression
+<parameter name="color">
+<parameter_description> background color or %NULL to unset it.
 </parameter_description>
 </parameter>
-<parameter name="match_options">
-<parameter_description> match options
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_style_scheme_manager_get_scheme">
+<description>
+Looks up style scheme by id.
+
+
+</description>
+<parameters>
+<parameter name="manager">
+<parameter_description> a #GtkSourceStyleSchemeManager
+</parameter_description>
+</parameter>
+<parameter name="scheme_id">
+<parameter_description> style scheme id to find
 </parameter_description>
 </parameter>
 </parameters>
-<return> %TRUE is the string matched, %FALSE otherwise
-
-Since: 2.14
+<return> a #GtkSourceStyleScheme object. Returned value is owned by
+ manager and must not be unref'ed.
 </return>
 </function>
 
-<function name="g_regex_match_all">
+<function name="gtk_source_completion_info_move_to_iter">
 <description>
-Using the standard algorithm for regular expression matching only the
-longest match in the string is retrieved. This function uses a
-different algorithm so it can retrieve all the possible matches.
-For more documentation see g_regex_match_all_full().
-
-A #GMatchInfo structure, used to get information on the match, is stored
-in @match_info if not %NULL. Note that if @match_info is not %NULL then
-it is created even if the function returns %FALSE, i.e. you must free it
-regardless if regular expression actually matched.
+Moves the #GtkSourceCompletionInfo to @iter. If @iter is %NULL @info is 
+moved to the cursor position. Moving will respect the #GdkGravity setting
+of the info window and will ensure the line at @iter is not occluded by
+the window.
 
 
 </description>
 <parameters>
-<parameter name="regex">
-<parameter_description> a #GRegex structure from g_regex_new()
+<parameter name="info">
+<parameter_description> A #GtkSourceCompletionInfo
 </parameter_description>
 </parameter>
-<parameter name="string">
-<parameter_description> the string to scan for matches
-</parameter_description>
-</parameter>
-<parameter name="match_options">
-<parameter_description> match options
+<parameter name="view">
+<parameter_description> A #GtkTextView on which the info window should be positioned
 </parameter_description>
 </parameter>
-<parameter name="match_info">
-<parameter_description> pointer to location where to store the #GMatchInfo, or
-%NULL if you do not need it
+<parameter name="iter">
+<parameter_description> A #GtkTextIter
 </parameter_description>
 </parameter>
 </parameters>
-<return> %TRUE is the string matched, %FALSE otherwise
-
-Since: 2.14
-</return>
+<return></return>
 </function>
 
 <function name="_gtk_source_style_apply">
 <description>
-Applies text styles set in @style if it&apos;s not %NULL, or
+Applies text styles set in @style if it's not %NULL, or
 unsets style fields in @tag set with _gtk_source_style_apply()
 if @style is %NULL. Note that it does not touch fields which
 are not set in @style. To reset everything use @style == %NULL.
@@ -3880,12 +5163,47 @@ Since: 2.0
 <return></return>
 </function>
 
-<function name="GtkSourceStyleScheme">
+<function name="gtk_source_print_compositor_get_n_pages">
 <description>
-Style scheme filename or NULL.
+Return value: the number of pages in the document or &lt;code&gt;-1&lt;/code&gt; if the 
 
 </description>
 <parameters>
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
+</parameter_description>
+</parameter>
+</parameters>
+<return> the number of pages in the document or &lt;code&gt;-1&lt;/code&gt; if the 
+document has not been completely paginated.
+
+Since: 2.2
+</return>
+</function>
+
+<function name="gtk_source_print_compositor_set_print_line_numbers">
+<description>
+Sets the interval for printed line numbers.  If @interval is 0 no
+numbers will be printed.  If greater than 0, a number will be
+printed every @interval lines (i.e. 1 will print all line numbers).
+
+Maximum accepted value for @interval is 100.
+
+This function cannot be called anymore after the first call to the 
+gtk_source_print_compositor_paginate() function.   
+
+Since: 2.2
+
+</description>
+<parameters>
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
+</parameter_description>
+</parameter>
+<parameter name="interval">
+<parameter_description> interval for printed line numbers.
+</parameter_description>
+</parameter>
 </parameters>
 <return></return>
 </function>
@@ -3907,6 +5225,51 @@ defined.  The returned array must be freed with g_strfreev().
 </return>
 </function>
 
+<function name="gtk_source_view_get_insert_spaces_instead_of_tabs">
+<description>
+Return value: %TRUE if spaces are inserted instead of tabs.
+
+</description>
+<parameters>
+<parameter name="view">
+<parameter_description> a #GtkSourceView.
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if spaces are inserted instead of tabs.
+</return>
+</function>
+
+<function name="gtk_source_completion_context_add_proposals">
+<description>
+Providers can use this function to add proposals to the completion. They
+can do so asynchronously by means of the @finished argument. Providers must
+ensure that they always call this function with @finished set to %TRUE
+once each population (even if no proposals need to be added).
+
+
+</description>
+<parameters>
+<parameter name="context">
+<parameter_description> A #GtkSourceCompletionContext
+</parameter_description>
+</parameter>
+<parameter name="provider">
+<parameter_description> A #GtkSourceCompletionProvider
+</parameter_description>
+</parameter>
+<parameter name="proposals">
+<parameter_description> The list of proposals to add
+</parameter_description>
+</parameter>
+<parameter name="finished">
+<parameter_description> Whether the provider is finished adding proposals
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="gtk_source_language_get_mime_types">
 <description>
 Returns: a newly-allocated %NULL terminated array containing
@@ -3964,47 +5327,20 @@ be freed.
 </return>
 </function>
 
-<function name="gtk_source_language_manager_guess_language">
-<description>
-Picks a #GtkSourceLanguage for given file name and content type, according to the information in lang files. Either filename or content_type may be empty. This function can be used as follows: 
-
-</description>
-<parameters>
-<parameter name="lm">
-<parameter_description> a #GtkSourceLanguageManager.
-</parameter_description>
-</parameter>
-<parameter name="filename">
-<parameter_description> a filename in Glib filename encoding, or NULL. 
-</parameter_description>
-</parameter>
-<parameter name="content_type">
-<parameter_description> a content type (as in GIO API), or NULL. 
-</parameter_description>
-</parameter>
-</parameters>
-<return>
-a #GtkSourceLanguage, or %NULL if there is no suitable language for given @filename and/or @content_type.
-Return value is owned by @lm and should not be freed. 
-</return>
-</function>
-
-<function name="g_regex_get_pattern">
+<function name="gtk_source_buffer_get_highlight_syntax">
 <description>
-Gets the pattern string associated with @regex, i.e. a copy of 
-the string passed to g_regex_new().
+Determines whether syntax highlighting is activated in the source
+buffer.
 
 
 </description>
 <parameters>
-<parameter name="regex">
-<parameter_description> a #GRegex structure
+<parameter name="buffer">
+<parameter_description> a #GtkSourceBuffer.
 </parameter_description>
 </parameter>
 </parameters>
-<return> the pattern of @regex
-
-Since: 2.14
+<return> %TRUE if syntax highlighting is enabled, %FALSE otherwise.
 </return>
 </function>
 
@@ -4024,40 +5360,31 @@ gtk_source_buffer_set_style_scheme(), or %NULL.
 </return>
 </function>
 
-<function name="g_regex_get_max_backref">
+<function name="gtk_source_print_compositor_set_print_footer">
 <description>
-Returns: the number of the highest back reference.
+Sets whether you want to print a footer in each page.  The 
+footer consists of three pieces of text and an optional line
+separator, configurable with
+gtk_source_print_compositor_set_footer_format().
 
-</description>
-<parameters>
-<parameter name="regex">
-<parameter_description> a #GRegex
-</parameter_description>
-</parameter>
-</parameters>
-<return> the number of the highest back reference.
-
-Since: 2.14
-</return>
-</function>
+Note that by default the footer format is unspecified, and if it's
+empty it will not be printed, regardless of this setting.
 
-<function name="segment_erase_range_">
-<description>
- ce: #GtkSourceContextEngine.
- segment: the segment.
- start: start offset of range to erase, characters.
- end: end offset of range to erase, characters.
+This function cannot be called anymore after the first call to the 
+gtk_source_print_compositor_paginate() function.    
 
-Recurisvely removes segments from [ start, @end] interval
-starting from @segment. If @segment belongs to the range,
-or it&apos;s a zero-length segment at @end offset, and it&apos;s not
-the toplevel segment, then it&apos;s removed from the tree.
-If @segment intersects with the range (unless it&apos;s the toplevel
-segment), then its ends are adjusted appropriately, and it&apos;s
-split into two if it completely contains the range.
+Since: 2.2
 
 </description>
 <parameters>
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
+</parameter_description>
+</parameter>
+<parameter name="print">
+<parameter_description> %TRUE if you want the footer to be printed.
+</parameter_description>
+</parameter>
 </parameters>
 <return></return>
 </function>
@@ -4086,15 +5413,18 @@ contexts. Called from _gtk_source_context_data_finish_parse.
 <return></return>
 </function>
 
-<function name="_gtksourceview_dgettext">
+<function name="gtk_source_completion_utils_get_word">
 <description>
-Try to translate string from given domain. It returns
-duplicated string which must be freed with g_free().
 
 </description>
 <parameters>
+<parameter name="source_buffer">
+<parameter_description> The #GtkSourceBuffer
+</parameter_description>
+</parameter>
 </parameters>
-<return></return>
+<return> the current word
+</return>
 </function>
 
 <function name="fix_offsets_insert_">
@@ -4134,44 +5464,64 @@ Returns: a #Regex.
 </return>
 </function>
 
-<function name="gtk_source_language_manager_get_language_ids">
+<function name="gtk_source_print_compositor_get_print_header">
 <description>
-Returns: a %NULL-terminated array of string containing the ids of the
+Determines if a header is set to be printed for each page.  A
+header will be printed if this function returns %TRUE
+&lt;emphasis&gt;and&lt;/emphasis&gt; some format strings have been specified
+with gtk_source_print_compositor_set_header_format().
+
 
 </description>
 <parameters>
-<parameter name="lm">
-<parameter_description> a #GtkSourceLanguageManager
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
 </parameter_description>
 </parameter>
 </parameters>
-<return> a %NULL-terminated array of string containing the ids of the
-available languages or %NULL if no language is available. The array
-is owned by @lm and must not be modified.
+<return> %TRUE if the header is set to be printed.
+
+Since: 2.2
 </return>
 </function>
 
-<function name="all_analyzed">
+<function name="_gtksourceview_dgettext">
 <description>
- ce: a #GtkSourceContextEngine.
+Try to translate string from given domain. It returns
+duplicated string which must be freed with g_free().
 
+</description>
+<parameters>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_style_scheme_manager_set_search_path">
+<description>
+Sets the list of directories where the @manager looks for
+style scheme files.
+If @dirs is %NULL, the search path is reset to default.
 
 </description>
 <parameters>
+<parameter name="manager">
+<parameter_description> a #GtkSourceStyleSchemeManager.
+</parameter_description>
+</parameter>
+<parameter name="path">
+<parameter_description> a %NULL-terminated array of strings or %NULL.
+</parameter_description>
+</parameter>
 </parameters>
-<return> whether everything is analyzed (but it doesn&apos;t care about the tags).
-</return>
+<return></return>
 </function>
 
-<function name="segment_remove">
+<function name="segment_add_subpattern">
 <description>
- ce: #GtkSoucreContextEngine.
- segment: segment to remove.
+ state: the segment.
+ sp: subpattern.
 
-Removes the segment from syntax tree and frees it.
-It correctly updates parent&apos;s children list, not
-like segment_destroy() where caller has to take care
-of tree integrity.
+Prepends subpattern to subpatterns list in the segment.
 
 </description>
 <parameters>
@@ -4179,31 +5529,18 @@ of tree integrity.
 <return></return>
 </function>
 
-<function name="gtk_source_buffer_set_max_undo_levels">
+<function name="segment_remove">
 <description>
-Sets the number of undo levels for user actions the buffer will
-track.  If the number of user actions exceeds the limit set by this
-function, older actions will be discarded.
-
-If @max_undo_levels is -1, no limit is set.
+ ce: #GtkSoucreContextEngine.
+ segment: segment to remove.
 
-A new action is started whenever the function
-gtk_text_buffer_begin_user_action() is called.  In general, this
-happens whenever the user presses any key which modifies the
-buffer, but the undo manager will try to merge similar consecutive
-actions, such as multiple character insertions into one action.
-But, inserting a newline does start a new action.
+Removes the segment from syntax tree and frees it.
+It correctly updates parent's children list, not
+like segment_destroy() where caller has to take care
+of tree integrity.
 
 </description>
 <parameters>
-<parameter name="buffer">
-<parameter_description> a #GtkSourceBuffer.
-</parameter_description>
-</parameter>
-<parameter name="max_undo_levels">
-<parameter_description> the desired maximum number of undo levels.
-</parameter_description>
-</parameter>
 </parameters>
 <return></return>
 </function>
@@ -4228,20 +5565,38 @@ Since: 2.0
 <return></return>
 </function>
 
-<function name="gtk_source_style_scheme_manager_set_search_path">
+<function name="apply_sub_patterns">
 <description>
-Sets the list of directories where the @manager looks for
-style scheme files.
-If @dirs is %NULL, the search path is reset to default.
+ contextstate: a #Context.
+ line_starts_at: beginning offset of the line.
+ line: the line to analyze.
+ line_pos: the position inside @line.
+ line_length: the length of @line.
+ regex: regex that matched.
+ where: kind of sub patterns to apply.
+
+Applies sub patterns of kind @where to the matched text.
 
 </description>
 <parameters>
-<parameter name="manager">
-<parameter_description> a #GtkSourceStyleSchemeManager.
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_view_set_draw_spaces">
+<description>
+Set if and how the spaces should be visualized. Specifying @flags as 0 will
+disable display of spaces.
+
+</description>
+<parameters>
+<parameter name="view">
+<parameter_description> a #GtkSourceView.
 </parameter_description>
 </parameter>
-<parameter name="path">
-<parameter_description> a %NULL-terminated array of strings or %NULL.
+<parameter name="flags">
+<parameter_description> #GtkSourceDrawSpacesFlags specifing how white spaces should
+be displayed
 </parameter_description>
 </parameter>
 </parameters>
@@ -4262,59 +5617,33 @@ Called from GtkTextBuffer::delete_range.
 <return></return>
 </function>
 
-<function name="g_regex_split_simple">
+<function name="gtk_source_buffer_set_max_undo_levels">
 <description>
-Breaks the string on the pattern, and returns an array of the tokens.
-If the pattern contains capturing parentheses, then the text for each
-of the substrings will also be returned. If the pattern does not match
-anywhere in the string, then the whole string is returned as the first
-token.
-
-This function is equivalent to g_regex_split() but it does not
-require to compile the pattern with g_regex_new(), avoiding some
-lines of code when you need just to do a split without extracting
-substrings, capture counts, and so on.
-
-If this function is to be called on the same @pattern more than
-once, it&apos;s more efficient to compile the pattern once with
-g_regex_new() and then use g_regex_split().
-
-As a special case, the result of splitting the empty string &quot;&quot; is an
-empty vector, not a vector containing a single string. The reason for
-this special case is that being able to represent a empty vector is
-typically more useful than consistent handling of empty elements. If
-you do need to represent empty elements, you&apos;ll need to check for the
-empty string before calling this function.
+Sets the number of undo levels for user actions the buffer will
+track.  If the number of user actions exceeds the limit set by this
+function, older actions will be discarded.
 
-A pattern that can match empty strings splits @string into separate
-characters wherever it matches the empty string between characters.
-For example splitting &quot;ab c&quot; using as a separator &quot;\s*&quot;, you will get
-&quot;a&quot;, &quot;b&quot; and &quot;c&quot;.
+If @max_undo_levels is -1, no limit is set.
 
+A new action is started whenever the function
+gtk_text_buffer_begin_user_action() is called.  In general, this
+happens whenever the user presses any key which modifies the
+buffer, but the undo manager will try to merge similar consecutive
+actions, such as multiple character insertions into one action.
+But, inserting a newline does start a new action.
 
 </description>
 <parameters>
-<parameter name="pattern">
-<parameter_description> the regular expression
-</parameter_description>
-</parameter>
-<parameter name="string">
-<parameter_description> the string to scan for matches
-</parameter_description>
-</parameter>
-<parameter name="compile_options">
-<parameter_description> compile options for the regular expression
+<parameter name="buffer">
+<parameter_description> a #GtkSourceBuffer.
 </parameter_description>
 </parameter>
-<parameter name="match_options">
-<parameter_description> match options
+<parameter name="max_undo_levels">
+<parameter_description> the desired maximum number of undo levels.
 </parameter_description>
 </parameter>
 </parameters>
-<return> a %NULL-terminated gchar ** array. Free it using g_strfreev()
-
-Since: 2.14
-</return>
+<return></return>
 </function>
 
 <function name="gtk_source_view_set_show_line_marks">
@@ -4337,28 +5666,24 @@ Since: 2.2
 <return></return>
 </function>
 
-<function name="create_reg_all">
+<function name="gtk_source_iter_find_matching_bracket">
 <description>
- context: context.
- definition: context definition.
-
-Creates regular expression for all possible transitions: it
-combines terminating regex, terminating regexes of parent
-contexts if those can terminate this one, and start regexes
-of child contexts.
+Tries to match the bracket character currently at @iter with its
+opening/closing counterpart, and if found moves @iter to the position
+where it was found.
 
-It takes as an argument actual context or a context definition. In
-case when context end depends on start (\%{foo start} references),
-it must use the context, definition is not enough. If there are no
-those references, then the reg_all is created right in the definition
-when no contexts exist yet. This is why this function has its funny
-arguments.
+ iter must be a #GtkTextIter belonging to a #GtkSourceBuffer.
 
 
 </description>
 <parameters>
+<parameter name="iter">
+<parameter_description> a #GtkTextIter.
+</parameter_description>
+</parameter>
 </parameters>
-<return> resulting regex or %NULL when pcre failed to compile the regex.
+<return> %TRUE if the matching bracket was found and the @iter
+iter moved.
 </return>
 </function>
 
@@ -4379,101 +5704,82 @@ The returned array must be freed with g_strfreev().
 </return>
 </function>
 
-<function name="get_invalid_line">
+<function name="GtkSourceBuffer">
 <description>
- ce: a #GtkSourceContextEngine.
-
+The ::source_mark_updated signal is emitted each time
+a mark is added to, moved or removed from the @buffer.
 
 </description>
 <parameters>
+<parameter name="buffer">
+<parameter_description> the buffer that received the signal
+</parameter_description>
+</parameter>
 </parameters>
-<return> first invalid line, or -1.
-</return>
+<return></return>
 </function>
 
-<function name="get_color_by_name">
+<function name="gtk_source_print_compositor_get_bottom_margin">
 <description>
+Gets the bottom margin in units of @unit.
+
 
 </description>
 <parameters>
-<parameter name="scheme">
-<parameter_description> a #GtkSourceStyleScheme.
+<parameter name="compositor">
+<parameter_description> a #GtkSourcePrintCompositor.
 </parameter_description>
 </parameter>
-<parameter name="name">
-<parameter_description> color name to find.
+<parameter name="unit">
+<parameter_description> the unit for the return value.
 </parameter_description>
 </parameter>
 </parameters>
-<return> color which corresponds to @name in the @scheme.
-Returned value is actual color string suitable for gdk_color_parse().
-It may be @name or part of @name so copy it or something, if you need
-it to stay around.
+<return> the bottom margin.
 
-Since: 2.0
+Since: 2.2
 </return>
 </function>
 
-<function name="g_regex_split_full">
+<function name="gtk_source_buffer_create_source_mark">
 <description>
-Breaks the string on the pattern, and returns an array of the tokens.
-If the pattern contains capturing parentheses, then the text for each
-of the substrings will also be returned. If the pattern does not match
-anywhere in the string, then the whole string is returned as the first
-token.
+Creates a source mark in the @buffer of category @category.  A source mark is
+a #GtkTextMark but organised into categories. Depending on the category
+a pixbuf can be specified that will be displayed along the line of the mark.
 
-As a special case, the result of splitting the empty string &quot;&quot; is an
-empty vector, not a vector containing a single string. The reason for
-this special case is that being able to represent a empty vector is
-typically more useful than consistent handling of empty elements. If
-you do need to represent empty elements, you&apos;ll need to check for the
-empty string before calling this function.
+Like a #GtkTextMark, a #GtkSourceMark can be anonymous if the
+passed @name is %NULL.  Also, the buffer owns the marks so you
+shouldn't unreference it.
 
-A pattern that can match empty strings splits @string into separate
-characters wherever it matches the empty string between characters.
-For example splitting &quot;ab c&quot; using as a separator &quot;\s*&quot;, you will get
-&quot;a&quot;, &quot;b&quot; and &quot;c&quot;.
+Marks always have left gravity and are moved to the beginning of
+the line when the user deletes the line they were in.
 
-Setting @start_position differs from just passing over a shortened string
-and  setting #G_REGEX_MATCH_NOTBOL in the case of a pattern that begins
-with any kind of lookbehind assertion, such as &quot;\b&quot;.
+Typical uses for a source mark are bookmarks, breakpoints, current
+executing instruction indication in a source file, etc..
 
 
 </description>
 <parameters>
-<parameter name="regex">
-<parameter_description> a #GRegex structure
-</parameter_description>
-</parameter>
-<parameter name="string">
-<parameter_description> the string to split with the pattern
-</parameter_description>
-</parameter>
-<parameter name="string_len">
-<parameter_description> the length of @string, or -1 if @string is nul-terminated
-</parameter_description>
-</parameter>
-<parameter name="start_position">
-<parameter_description> starting index of the string to match
+<parameter name="buffer">
+<parameter_description> a #GtkSourceBuffer.
 </parameter_description>
 </parameter>
-<parameter name="match_options">
-<parameter_description> match time option flags
+<parameter name="name">
+<parameter_description> the name of the mark, or %NULL.
 </parameter_description>
 </parameter>
-<parameter name="max_tokens">
-<parameter_description> the maximum number of tokens to split @string into. If this
-is less than 1, the string is split completely
+<parameter name="category">
+<parameter_description> a string defining the mark category.
 </parameter_description>
 </parameter>
-<parameter name="error">
-<parameter_description> return location for a #GError
+<parameter name="where">
+<parameter_description> location to place the mark.
 </parameter_description>
 </parameter>
 </parameters>
-<return> a %NULL-terminated gchar ** array. Free it using g_strfreev()
+<return> a new #GtkSourceMark, owned by the buffer.
 
-Since: 2.14
+Since: 2.2
 </return>
 </function>
 
@@ -4497,6 +5803,25 @@ If the contexts starts or ends here @new_state and @line_pos are updated.
 </return>
 </function>
 
+<function name="gtk_source_view_set_auto_indent">
+<description>
+If %TRUE auto indentation of text is enabled.
+
+
+</description>
+<parameters>
+<parameter name="view">
+<parameter_description> a #GtkSourceView.
+</parameter_description>
+</parameter>
+<parameter name="enable">
+<parameter_description> whether to enable auto indentation.
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
 <function name="gtk_source_view_new">
 <description>
 Creates a new #GtkSourceView. An empty default buffer will be
@@ -4522,7 +5847,7 @@ use cross-references between contexts, e.g. context A may include
 context B, and context B in turn include context A. Hence during
 parsing it just records referenced context id, and then it needs to
 check the references and replace them with actual context definitions
-(which in turn may be overridden using &amp;lt;override&amp;gt; or &amp;lt;replace&amp;gt; tags).
+(which in turn may be overridden using &lt;override&gt; or &lt;replace&gt; tags).
 May be called any number of times, must be called after parsing is
 done.
 
@@ -4535,18 +5860,22 @@ references.
 </return>
 </function>
 
-<function name="context_is_pure_container">
+<function name="gtk_source_completion_proposal_get_label">
 <description>
- def: context definition.
+Gets the label of @proposal. The label is shown in the list of proposals as
+plain text. If you need any markup (such as bold or italic text), you have
+to implement #gtk_source_completion_proposal_get_markup.
 
-Checks whether context is a container with no start regex.
-References to such contexts are implicitly translated to
-wildcard references (context_id:*).
 
 </description>
 <parameters>
+<parameter name="proposal">
+<parameter_description> A #GtkSourceCompletionProposal
+</parameter_description>
+</parameter>
 </parameters>
-<return></return>
+<return> The label of @proposal.
+</return>
 </function>
 
 <function name="gtk_source_language_get_hidden">
@@ -4564,34 +5893,4 @@ Returns: TRUE if the language should be hidden, FALSE otherwise.
 </return>
 </function>
 
-<function name="g_match_info_fetch_named">
-<description>
-Retrieves the text matching the capturing parentheses named @name.
-
-If @name is a valid sub pattern name but it didn&apos;t match anything (e.g.
-sub pattern &quot;X&quot;, matching &quot;b&quot; against &quot;(?P&amp;lt;X&amp;gt;a)?b&quot;) then an empty
-string is returned.
-
-The string is fetched from the string passed to the match function,
-so you cannot call this function after freeing the string.
-
-
-</description>
-<parameters>
-<parameter name="match_info">
-<parameter_description> #GMatchInfo structure
-</parameter_description>
-</parameter>
-<parameter name="name">
-<parameter_description> name of the subexpression
-</parameter_description>
-</parameter>
-</parameters>
-<return> The matched substring, or %NULL if an error occurred.
-You have to free the string yourself
-
-Since: 2.14
-</return>
-</function>
-
 </root>
diff --git a/gtksourceview/src/gtksourceview_enums.defs b/gtksourceview/src/gtksourceview_enums.defs
index c4e0a7f..4b4e938 100644
--- a/gtksourceview/src/gtksourceview_enums.defs
+++ b/gtksourceview/src/gtksourceview_enums.defs
@@ -1,4 +1,27 @@
-;; From /opt/gnome2/include/gtksourceview-2.0/gtksourceview/gtksourceiter.h
+;; From gtksourcecompletioncontext.h
+
+(define-flags-extended SourceCompletionActivation
+  (in-module "Gtk")
+  (c-name "GtkSourceCompletionActivation")
+  (values
+    '("none" "GTK_SOURCE_COMPLETION_ACTIVATION_NONE" "0")
+    '("interactive" "GTK_SOURCE_COMPLETION_ACTIVATION_INTERACTIVE" "1 << 0")
+    '("user-requested" "GTK_SOURCE_COMPLETION_ACTIVATION_USER_REQUESTED" "1 << 1")
+  )
+)
+
+;; From gtksourcecompletion.h
+
+(define-enum-extended SourceCompletionError
+  (in-module "Gtk")
+  (c-name "GtkSourceCompletionError")
+  (values
+    '("already-bound" "GTK_SOURCE_COMPLETION_ERROR_ALREADY_BOUND" "0")
+    '("not-bound" "GTK_SOURCE_COMPLETION_ERROR_NOT_BOUND" "1")
+  )
+)
+
+;; From gtksourceiter.h
 
 (define-flags-extended SourceSearchFlags
   (in-module "Gtk")
@@ -10,7 +33,16 @@
   )
 )
 
-;; From /opt/gnome2/include/gtksourceview-2.0/gtksourceview/gtksourceview.h
+;; From gtksourceview.h
+
+(define-enum-extended SourceViewGutterPosition
+  (in-module "Gtk")
+  (c-name "GtkSourceViewGutterPosition")
+  (values
+    '("lines" "GTK_SOURCE_VIEW_GUTTER_POSITION_LINES" "-30")
+    '("marks" "GTK_SOURCE_VIEW_GUTTER_POSITION_MARKS" "-20")
+  )
+)
 
 (define-enum-extended SourceSmartHomeEndType
   (in-module "Gtk")
@@ -31,7 +63,10 @@
     '("tab" "GTK_SOURCE_DRAW_SPACES_TAB" "1 << 1")
     '("newline" "GTK_SOURCE_DRAW_SPACES_NEWLINE" "1 << 2")
     '("nbsp" "GTK_SOURCE_DRAW_SPACES_NBSP" "1 << 3")
-    '("all" "GTK_SOURCE_DRAW_SPACES_ALL" "SOURCE_DRAW_SPACES_SPACE | SOURCE_DRAW_SPACES_TAB | SOURCE_DRAW_SPACES_NEWLINE | SOURCE_DRAW_SPACES_NBSP")
+    '("leading" "GTK_SOURCE_DRAW_SPACES_LEADING" "1 << 4")
+    '("text" "GTK_SOURCE_DRAW_SPACES_TEXT" "1 << 5")
+    '("trailing" "GTK_SOURCE_DRAW_SPACES_TRAILING" "1 << 6")
+    '("all" "GTK_SOURCE_DRAW_SPACES_ALL" "127")
   )
 )
 
diff --git a/gtksourceview/src/gtksourceview_methods.defs b/gtksourceview/src/gtksourceview_methods.defs
index 7f75c4f..82820b1 100644
--- a/gtksourceview/src/gtksourceview_methods.defs
+++ b/gtksourceview/src/gtksourceview_methods.defs
@@ -7,18 +7,51 @@
   (gtype-id "GTK_TYPE_SOURCE_BUFFER")
 )
 
-(define-object SourceEngine
+(define-object SourceCompletionContext
+  (in-module "Gtk")
+  (parent "GInitiallyUnowned")
+  (c-name "GtkSourceCompletionContext")
+  (gtype-id "GTK_TYPE_SOURCE_COMPLETION_CONTEXT")
+)
+
+(define-object SourceCompletionInfo
+  (in-module "Gtk")
+  (parent "GtkWindow")
+  (c-name "GtkSourceCompletionInfo")
+  (gtype-id "GTK_TYPE_SOURCE_COMPLETION_INFO")
+)
+
+(define-object SourceCompletionItem
   (in-module "Gtk")
   (parent "GObject")
-  (c-name "GtkSourceEngine")
-  (gtype-id "GTK_TYPE_SOURCE_ENGINE")
+  (c-name "GtkSourceCompletionItem")
+  (gtype-id "GTK_TYPE_SOURCE_COMPLETION_ITEM")
+)
+
+(define-object SourceCompletionProposal
+  (in-module "Gtk")
+  (c-name "GtkSourceCompletionProposal")
+  (gtype-id "GTK_TYPE_SOURCE_COMPLETION_PROPOSAL")
 )
 
-(define-object SourceContextEngine
+(define-object SourceCompletionProvider
   (in-module "Gtk")
-  (parent "GtkSourceEngine")
-  (c-name "GtkSourceContextEngine")
-  (gtype-id "GTK_TYPE_SOURCE_CONTEXT_ENGINE")
+  (c-name "GtkSourceCompletionProvider")
+  (gtype-id "GTK_TYPE_SOURCE_COMPLETION_PROVIDER")
+)
+
+(define-object SourceCompletionWords
+  (in-module "Gtk")
+  (parent "GObject")
+  (c-name "GtkSourceCompletionWords")
+  (gtype-id "GTK_TYPE_SOURCE_COMPLETION_WORDS")
+)
+
+(define-object SourceGutter
+  (in-module "Gtk")
+  (parent "GObject")
+  (c-name "GtkSourceGutter")
+  (gtype-id "GTK_TYPE_SOURCE_GUTTER")
 )
 
 (define-object SourceLanguage
@@ -63,13 +96,6 @@
   (gtype-id "GTK_TYPE_SOURCE_STYLE_SCHEME_MANAGER")
 )
 
-(define-object SourceUndoManager
-  (in-module "Gtk")
-  (parent "GObject")
-  (c-name "GtkSourceUndoManager")
-  (gtype-id "GTK_TYPE_SOURCE_UNDO_MANAGER")
-)
-
 (define-object SourceView
   (in-module "Gtk")
   (parent "GtkTextView")
@@ -79,28 +105,24 @@
 
 ;; Enumerations and flags ...
 
-(define-flags SourceContextFlags
+(define-flags SourceCompletionActivation
   (in-module "Gtk")
-  (c-name "GtkSourceContextFlags")
-  (gtype-id "GTK_TYPE_SOURCE_CONTEXT_FLAGS")
+  (c-name "GtkSourceCompletionActivation")
+  (gtype-id "GTK_TYPE_SOURCE_COMPLETION_ACTIVATION")
   (values
-    '("extend-parent" "GTK_SOURCE_CONTEXT_EXTEND_PARENT")
-    '("end-parent" "GTK_SOURCE_CONTEXT_END_PARENT")
-    '("end-at-line-end" "GTK_SOURCE_CONTEXT_END_AT_LINE_END")
-    '("first-line-only" "GTK_SOURCE_CONTEXT_FIRST_LINE_ONLY")
-    '("once-only" "GTK_SOURCE_CONTEXT_ONCE_ONLY")
-    '("style-inside" "GTK_SOURCE_CONTEXT_STYLE_INSIDE")
+    '("none" "GTK_SOURCE_COMPLETION_ACTIVATION_NONE")
+    '("interactive" "GTK_SOURCE_COMPLETION_ACTIVATION_INTERACTIVE")
+    '("user-requested" "GTK_SOURCE_COMPLETION_ACTIVATION_USER_REQUESTED")
   )
 )
 
-(define-flags SourceContextRefOptions
+(define-enum SourceCompletionError
   (in-module "Gtk")
-  (c-name "GtkSourceContextRefOptions")
-  (gtype-id "GTK_TYPE_SOURCE_CONTEXT_REF_OPTIONS")
+  (c-name "GtkSourceCompletionError")
+  (gtype-id "GTK_TYPE_SOURCE_COMPLETION_ERROR")
   (values
-    '("ignore-style" "GTK_SOURCE_CONTEXT_IGNORE_STYLE")
-    '("override-style" "GTK_SOURCE_CONTEXT_OVERRIDE_STYLE")
-    '("ref-original" "GTK_SOURCE_CONTEXT_REF_ORIGINAL")
+    '("already-bound" "GTK_SOURCE_COMPLETION_ERROR_ALREADY_BOUND")
+    '("not-bound" "GTK_SOURCE_COMPLETION_ERROR_NOT_BOUND")
   )
 )
 
@@ -115,6 +137,16 @@
   )
 )
 
+(define-enum SourceViewGutterPosition
+  (in-module "Gtk")
+  (c-name "GtkSourceViewGutterPosition")
+  (gtype-id "GTK_TYPE_SOURCE_VIEW_GUTTER_POSITION")
+  (values
+    '("lines" "GTK_SOURCE_VIEW_GUTTER_POSITION_LINES")
+    '("marks" "GTK_SOURCE_VIEW_GUTTER_POSITION_MARKS")
+  )
+)
+
 (define-enum SourceSmartHomeEndType
   (in-module "Gtk")
   (c-name "GtkSourceSmartHomeEndType")
@@ -136,10 +168,14 @@
     '("tab" "GTK_SOURCE_DRAW_SPACES_TAB")
     '("newline" "GTK_SOURCE_DRAW_SPACES_NEWLINE")
     '("nbsp" "GTK_SOURCE_DRAW_SPACES_NBSP")
+    '("leading" "GTK_SOURCE_DRAW_SPACES_LEADING")
+    '("text" "GTK_SOURCE_DRAW_SPACES_TEXT")
+    '("trailing" "GTK_SOURCE_DRAW_SPACES_TRAILING")
     '("all" "GTK_SOURCE_DRAW_SPACES_ALL")
   )
 )
 
+
 ;; From gtksourcebuffer.h
 
 (define-function gtk_source_buffer_get_type
@@ -349,11 +385,438 @@
 
 
 
-;; From gtksourcecontextengine.h
+;; From gtksourcecompletioncontext.h
+
+(define-function gtk_source_completion_context_get_type
+  (c-name "gtk_source_completion_context_get_type")
+  (return-type "GType")
+)
+
+(define-method add_proposals
+  (of-object "GtkSourceCompletionContext")
+  (c-name "gtk_source_completion_context_add_proposals")
+  (return-type "none")
+  (parameters
+    '("struct-_GtkSourceCompletionProvider*" "provider")
+    '("GList*" "proposals")
+    '("gboolean" "finished")
+  )
+)
+
+(define-method get_iter
+  (of-object "GtkSourceCompletionContext")
+  (c-name "gtk_source_completion_context_get_iter")
+  (return-type "none")
+  (parameters
+    '("GtkTextIter*" "iter")
+  )
+)
+
+(define-method get_activation
+  (of-object "GtkSourceCompletionContext")
+  (c-name "gtk_source_completion_context_get_activation")
+  (return-type "GtkSourceCompletionActivation")
+)
+
+
+
+;; From gtksourcecompletion.h
+
+(define-function gtk_source_completion_get_type
+  (c-name "gtk_source_completion_get_type")
+  (return-type "GType")
+)
+
+(define-function gtk_source_completion_error_quark
+  (c-name "gtk_source_completion_error_quark")
+  (return-type "GQuark")
+)
+
+(define-method add_provider
+  (of-object "GtkSourceCompletion")
+  (c-name "gtk_source_completion_add_provider")
+  (return-type "gboolean")
+  (parameters
+    '("GtkSourceCompletionProvider*" "provider")
+    '("GError**" "error")
+  )
+)
+
+(define-method remove_provider
+  (of-object "GtkSourceCompletion")
+  (c-name "gtk_source_completion_remove_provider")
+  (return-type "gboolean")
+  (parameters
+    '("GtkSourceCompletionProvider*" "provider")
+    '("GError**" "error")
+  )
+)
+
+(define-method get_providers
+  (of-object "GtkSourceCompletion")
+  (c-name "gtk_source_completion_get_providers")
+  (return-type "GList*")
+)
+
+(define-method show
+  (of-object "GtkSourceCompletion")
+  (c-name "gtk_source_completion_show")
+  (return-type "gboolean")
+  (parameters
+    '("GList*" "providers")
+    '("GtkSourceCompletionContext*" "context")
+  )
+)
+
+(define-method hide
+  (of-object "GtkSourceCompletion")
+  (c-name "gtk_source_completion_hide")
+  (return-type "none")
+)
+
+(define-method get_info_window
+  (of-object "GtkSourceCompletion")
+  (c-name "gtk_source_completion_get_info_window")
+  (return-type "GtkSourceCompletionInfo*")
+)
+
+(define-method create_context
+  (of-object "GtkSourceCompletion")
+  (c-name "gtk_source_completion_create_context")
+  (return-type "GtkSourceCompletionContext*")
+  (parameters
+    '("GtkTextIter*" "position")
+  )
+)
+
+(define-method move_window
+  (of-object "GtkSourceCompletion")
+  (c-name "gtk_source_completion_move_window")
+  (return-type "none")
+  (parameters
+    '("GtkTextIter*" "iter")
+  )
+)
+
+
+
+;; From gtksourcecompletioninfo.h
+
+(define-function gtk_source_completion_info_get_type
+  (c-name "gtk_source_completion_info_get_type")
+  (return-type "GType")
+)
+
+(define-function gtk_source_completion_info_new
+  (c-name "gtk_source_completion_info_new")
+  (is-constructor-of "GtkSourceCompletionInfo")
+  (return-type "GtkSourceCompletionInfo*")
+)
+
+(define-method move_to_iter
+  (of-object "GtkSourceCompletionInfo")
+  (c-name "gtk_source_completion_info_move_to_iter")
+  (return-type "none")
+  (parameters
+    '("GtkTextView*" "view")
+    '("GtkTextIter*" "iter")
+  )
+)
+
+(define-method set_sizing
+  (of-object "GtkSourceCompletionInfo")
+  (c-name "gtk_source_completion_info_set_sizing")
+  (return-type "none")
+  (parameters
+    '("gint" "width")
+    '("gint" "height")
+    '("gboolean" "shrink_width")
+    '("gboolean" "shrink_height")
+  )
+)
+
+(define-method set_widget
+  (of-object "GtkSourceCompletionInfo")
+  (c-name "gtk_source_completion_info_set_widget")
+  (return-type "none")
+  (parameters
+    '("GtkWidget*" "widget")
+  )
+)
+
+(define-method get_widget
+  (of-object "GtkSourceCompletionInfo")
+  (c-name "gtk_source_completion_info_get_widget")
+  (return-type "GtkWidget*")
+)
+
+(define-method process_resize
+  (of-object "GtkSourceCompletionInfo")
+  (c-name "gtk_source_completion_info_process_resize")
+  (return-type "none")
+)
+
+
+
+;; From gtksourcecompletionitem.h
+
+(define-function gtk_source_completion_item_get_type
+  (c-name "gtk_source_completion_item_get_type")
+  (return-type "GType")
+)
+
+(define-function gtk_source_completion_item_new
+  (c-name "gtk_source_completion_item_new")
+  (is-constructor-of "GtkSourceCompletionItem")
+  (return-type "GtkSourceCompletionItem*")
+  (parameters
+    '("const-gchar*" "label")
+    '("const-gchar*" "text")
+    '("GdkPixbuf*" "icon")
+    '("const-gchar*" "info")
+  )
+)
+
+(define-function gtk_source_completion_item_new_with_markup
+  (c-name "gtk_source_completion_item_new_with_markup")
+  (return-type "GtkSourceCompletionItem*")
+  (parameters
+    '("const-gchar*" "markup")
+    '("const-gchar*" "text")
+    '("GdkPixbuf*" "icon")
+    '("const-gchar*" "info")
+  )
+)
+
+(define-function gtk_source_completion_item_new_from_stock
+  (c-name "gtk_source_completion_item_new_from_stock")
+  (return-type "GtkSourceCompletionItem*")
+  (parameters
+    '("const-gchar*" "label")
+    '("const-gchar*" "text")
+    '("const-gchar*" "stock")
+    '("const-gchar*" "info")
+  )
+)
+
+
+
+;; From gtksourcecompletionproposal.h
+
+(define-function gtk_source_completion_proposal_get_type
+  (c-name "gtk_source_completion_proposal_get_type")
+  (return-type "GType")
+)
+
+(define-method get_label
+  (of-object "GtkSourceCompletionProposal")
+  (c-name "gtk_source_completion_proposal_get_label")
+  (return-type "const-gchar*")
+)
+
+(define-method get_markup
+  (of-object "GtkSourceCompletionProposal")
+  (c-name "gtk_source_completion_proposal_get_markup")
+  (return-type "const-gchar*")
+)
+
+(define-method get_text
+  (of-object "GtkSourceCompletionProposal")
+  (c-name "gtk_source_completion_proposal_get_text")
+  (return-type "const-gchar*")
+)
+
+(define-method get_icon
+  (of-object "GtkSourceCompletionProposal")
+  (c-name "gtk_source_completion_proposal_get_icon")
+  (return-type "GdkPixbuf*")
+)
+
+(define-method get_info
+  (of-object "GtkSourceCompletionProposal")
+  (c-name "gtk_source_completion_proposal_get_info")
+  (return-type "const-gchar*")
+)
+
+(define-method changed
+  (of-object "GtkSourceCompletionProposal")
+  (c-name "gtk_source_completion_proposal_changed")
+  (return-type "none")
+)
+
+(define-method hash
+  (of-object "GtkSourceCompletionProposal")
+  (c-name "gtk_source_completion_proposal_hash")
+  (return-type "guint")
+)
+
+(define-method equal
+  (of-object "GtkSourceCompletionProposal")
+  (c-name "gtk_source_completion_proposal_equal")
+  (return-type "gboolean")
+  (parameters
+    '("GtkSourceCompletionProposal*" "other")
+  )
+)
+
+
+
+;; From gtksourcecompletionprovider.h
+
+(define-function gtk_source_completion_provider_get_type
+  (c-name "gtk_source_completion_provider_get_type")
+  (return-type "GType")
+)
+
+(define-method get_name
+  (of-object "GtkSourceCompletionProvider")
+  (c-name "gtk_source_completion_provider_get_name")
+  (return-type "const-gchar*")
+)
+
+(define-method get_icon
+  (of-object "GtkSourceCompletionProvider")
+  (c-name "gtk_source_completion_provider_get_icon")
+  (return-type "GdkPixbuf*")
+)
+
+(define-method populate
+  (of-object "GtkSourceCompletionProvider")
+  (c-name "gtk_source_completion_provider_populate")
+  (return-type "none")
+  (parameters
+    '("GtkSourceCompletionContext*" "context")
+  )
+)
+
+(define-method get_activation
+  (of-object "GtkSourceCompletionProvider")
+  (c-name "gtk_source_completion_provider_get_activation")
+  (return-type "GtkSourceCompletionActivation")
+)
+
+(define-method match
+  (of-object "GtkSourceCompletionProvider")
+  (c-name "gtk_source_completion_provider_match")
+  (return-type "gboolean")
+  (parameters
+    '("GtkSourceCompletionContext*" "context")
+  )
+)
+
+(define-method get_info_widget
+  (of-object "GtkSourceCompletionProvider")
+  (c-name "gtk_source_completion_provider_get_info_widget")
+  (return-type "GtkWidget*")
+  (parameters
+    '("GtkSourceCompletionProposal*" "proposal")
+  )
+)
+
+(define-method update_info
+  (of-object "GtkSourceCompletionProvider")
+  (c-name "gtk_source_completion_provider_update_info")
+  (return-type "none")
+  (parameters
+    '("GtkSourceCompletionProposal*" "proposal")
+    '("GtkSourceCompletionInfo*" "info")
+  )
+)
+
+(define-method get_start_iter
+  (of-object "GtkSourceCompletionProvider")
+  (c-name "gtk_source_completion_provider_get_start_iter")
+  (return-type "gboolean")
+  (parameters
+    '("GtkSourceCompletionContext*" "context")
+    '("GtkSourceCompletionProposal*" "proposal")
+    '("GtkTextIter*" "iter")
+  )
+)
+
+(define-method activate_proposal
+  (of-object "GtkSourceCompletionProvider")
+  (c-name "gtk_source_completion_provider_activate_proposal")
+  (return-type "gboolean")
+  (parameters
+    '("GtkSourceCompletionProposal*" "proposal")
+    '("GtkTextIter*" "iter")
+  )
+)
+
+
+
+;; From gtksourcegutter.h
 
+(define-function gtk_source_gutter_get_type
+  (c-name "gtk_source_gutter_get_type")
+  (return-type "GType")
+)
 
+(define-method get_window
+  (of-object "GtkSourceGutter")
+  (c-name "gtk_source_gutter_get_window")
+  (return-type "GdkWindow*")
+)
 
-;; From gtksourceengine.h
+(define-method insert
+  (of-object "GtkSourceGutter")
+  (c-name "gtk_source_gutter_insert")
+  (return-type "none")
+  (parameters
+    '("GtkCellRenderer*" "renderer")
+    '("gint" "position")
+  )
+)
+
+(define-method reorder
+  (of-object "GtkSourceGutter")
+  (c-name "gtk_source_gutter_reorder")
+  (return-type "none")
+  (parameters
+    '("GtkCellRenderer*" "renderer")
+    '("gint" "position")
+  )
+)
+
+(define-method remove
+  (of-object "GtkSourceGutter")
+  (c-name "gtk_source_gutter_remove")
+  (return-type "none")
+  (parameters
+    '("GtkCellRenderer*" "renderer")
+  )
+)
+
+(define-method set_cell_data_func
+  (of-object "GtkSourceGutter")
+  (c-name "gtk_source_gutter_set_cell_data_func")
+  (return-type "none")
+  (parameters
+    '("GtkCellRenderer*" "renderer")
+    '("GtkSourceGutterDataFunc" "func")
+    '("gpointer" "func_data")
+    '("GDestroyNotify" "destroy")
+  )
+)
+
+(define-method set_cell_size_func
+  (of-object "GtkSourceGutter")
+  (c-name "gtk_source_gutter_set_cell_size_func")
+  (return-type "none")
+  (parameters
+    '("GtkCellRenderer*" "renderer")
+    '("GtkSourceGutterSizeFunc" "func")
+    '("gpointer" "func_data")
+    '("GDestroyNotify" "destroy")
+  )
+)
+
+(define-method queue_draw
+  (of-object "GtkSourceGutter")
+  (c-name "gtk_source_gutter_queue_draw")
+  (return-type "none")
+)
 
 
 
@@ -448,9 +911,9 @@
 (define-method get_style_name
   (of-object "GtkSourceLanguage")
   (c-name "gtk_source_language_get_style_name")
-  (return-type "const-char*")
+  (return-type "const-gchar*")
   (parameters
-    '("const-char*" "style_id")
+    '("const-gchar*" "style_id")
   )
 )
 
@@ -474,6 +937,12 @@
   (return-type "GtkSourceLanguageManager*")
 )
 
+(define-method get_search_path
+  (of-object "GtkSourceLanguageManager")
+  (c-name "gtk_source_language_manager_get_search_path")
+  (return-type "const-gchar**")
+)
+
 (define-method set_search_path
   (of-object "GtkSourceLanguageManager")
   (c-name "gtk_source_language_manager_set_search_path")
@@ -483,6 +952,12 @@
   )
 )
 
+(define-method get_language_ids
+  (of-object "GtkSourceLanguageManager")
+  (c-name "gtk_source_language_manager_get_language_ids")
+  (return-type "const-gchar**")
+)
+
 (define-method get_language
   (of-object "GtkSourceLanguageManager")
   (c-name "gtk_source_language_manager_get_language")
@@ -503,9 +978,6 @@
 )
 
 
-;; From gtksourcelanguage-private.h
-
-
 
 ;; From gtksourcemark.h
 
@@ -878,10 +1350,6 @@
 
 
 
-;; From gtksourcestyle-private.h
-
-
-
 ;; From gtksourcestylescheme.h
 
 (define-function gtk_source_style_scheme_get_type
@@ -907,6 +1375,12 @@
   (return-type "const-gchar*")
 )
 
+(define-method get_authors
+  (of-object "GtkSourceStyleScheme")
+  (c-name "gtk_source_style_scheme_get_authors")
+  (return-type "const-gchar**")
+)
+
 (define-method get_filename
   (of-object "GtkSourceStyleScheme")
   (c-name "gtk_source_style_scheme_get_filename")
@@ -969,12 +1443,24 @@
   )
 )
 
+(define-method get_search_path
+  (of-object "GtkSourceStyleSchemeManager")
+  (c-name "gtk_source_style_scheme_manager_get_search_path")
+  (return-type "const-gchar**")
+)
+
 (define-method force_rescan
   (of-object "GtkSourceStyleSchemeManager")
   (c-name "gtk_source_style_scheme_manager_force_rescan")
   (return-type "none")
 )
 
+(define-method get_scheme_ids
+  (of-object "GtkSourceStyleSchemeManager")
+  (c-name "gtk_source_style_scheme_manager_get_scheme_ids")
+  (return-type "const-gchar**")
+)
+
 (define-method get_scheme
   (of-object "GtkSourceStyleSchemeManager")
   (c-name "gtk_source_style_scheme_manager_get_scheme")
@@ -986,75 +1472,6 @@
 
 
 
-;; From gtksourceundomanager.h
-
-(define-function gtk_source_undo_manager_get_type
-  (c-name "gtk_source_undo_manager_get_type")
-  (return-type "GType")
-)
-
-(define-function gtk_source_undo_manager_new
-  (c-name "gtk_source_undo_manager_new")
-  (is-constructor-of "GtkSourceUndoManager")
-  (return-type "GtkSourceUndoManager*")
-  (parameters
-    '("GtkTextBuffer*" "buffer")
-  )
-)
-
-(define-method can_undo
-  (of-object "GtkSourceUndoManager")
-  (c-name "gtk_source_undo_manager_can_undo")
-  (return-type "gboolean")
-)
-
-(define-method can_redo
-  (of-object "GtkSourceUndoManager")
-  (c-name "gtk_source_undo_manager_can_redo")
-  (return-type "gboolean")
-)
-
-(define-method undo
-  (of-object "GtkSourceUndoManager")
-  (c-name "gtk_source_undo_manager_undo")
-  (return-type "none")
-)
-
-(define-method redo
-  (of-object "GtkSourceUndoManager")
-  (c-name "gtk_source_undo_manager_redo")
-  (return-type "none")
-)
-
-(define-method begin_not_undoable_action
-  (of-object "GtkSourceUndoManager")
-  (c-name "gtk_source_undo_manager_begin_not_undoable_action")
-  (return-type "none")
-)
-
-(define-method end_not_undoable_action
-  (of-object "GtkSourceUndoManager")
-  (c-name "gtk_source_undo_manager_end_not_undoable_action")
-  (return-type "none")
-)
-
-(define-method get_max_undo_levels
-  (of-object "GtkSourceUndoManager")
-  (c-name "gtk_source_undo_manager_get_max_undo_levels")
-  (return-type "gint")
-)
-
-(define-method set_max_undo_levels
-  (of-object "GtkSourceUndoManager")
-  (c-name "gtk_source_undo_manager_set_max_undo_levels")
-  (return-type "none")
-  (parameters
-    '("gint" "undo_levels")
-  )
-)
-
-
-
 ;; From gtksourceview.h
 
 (define-function gtk_source_view_get_type
@@ -1236,6 +1653,36 @@
   )
 )
 
+(define-method set_mark_category_icon_from_pixbuf
+  (of-object "GtkSourceView")
+  (c-name "gtk_source_view_set_mark_category_icon_from_pixbuf")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "category")
+    '("GdkPixbuf*" "pixbuf")
+  )
+)
+
+(define-method set_mark_category_icon_from_stock
+  (of-object "GtkSourceView")
+  (c-name "gtk_source_view_set_mark_category_icon_from_stock")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "category")
+    '("const-gchar*" "stock_id")
+  )
+)
+
+(define-method set_mark_category_icon_from_icon_name
+  (of-object "GtkSourceView")
+  (c-name "gtk_source_view_set_mark_category_icon_from_icon_name")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "category")
+    '("const-gchar*" "name")
+  )
+)
+
 (define-method get_mark_category_pixbuf
   (of-object "GtkSourceView")
   (c-name "gtk_source_view_get_mark_category_pixbuf")
@@ -1245,6 +1692,50 @@
   )
 )
 
+(define-method set_mark_category_background
+  (of-object "GtkSourceView")
+  (c-name "gtk_source_view_set_mark_category_background")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "category")
+    '("const-GdkColor*" "color")
+  )
+)
+
+(define-method get_mark_category_background
+  (of-object "GtkSourceView")
+  (c-name "gtk_source_view_get_mark_category_background")
+  (return-type "gboolean")
+  (parameters
+    '("const-gchar*" "category")
+    '("GdkColor*" "dest")
+  )
+)
+
+(define-method set_mark_category_tooltip_func
+  (of-object "GtkSourceView")
+  (c-name "gtk_source_view_set_mark_category_tooltip_func")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "category")
+    '("GtkSourceViewMarkTooltipFunc" "func")
+    '("gpointer" "user_data")
+    '("GDestroyNotify" "user_data_notify")
+  )
+)
+
+(define-method set_mark_category_tooltip_markup_func
+  (of-object "GtkSourceView")
+  (c-name "gtk_source_view_set_mark_category_tooltip_markup_func")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "category")
+    '("GtkSourceViewMarkTooltipFunc" "markup_func")
+    '("gpointer" "user_data")
+    '("GDestroyNotify" "user_data_notify")
+  )
+)
+
 (define-method set_mark_category_priority
   (of-object "GtkSourceView")
   (c-name "gtk_source_view_set_mark_category_priority")
@@ -1294,12 +1785,20 @@
   (return-type "GtkSourceDrawSpacesFlags")
 )
 
+(define-method get_completion
+  (of-object "GtkSourceView")
+  (c-name "gtk_source_view_get_completion")
+  (return-type "GtkSourceCompletion*")
+)
 
-;; From gtksourceview-i18n.h
-
-
-
-;; From gtksourceview-marshal.h
+(define-method get_gutter
+  (of-object "GtkSourceView")
+  (c-name "gtk_source_view_get_gutter")
+  (return-type "GtkSourceGutter*")
+  (parameters
+    '("GtkTextWindowType" "window_type")
+  )
+)
 
 
 
@@ -1312,123 +1811,39 @@
 
 
 
-;; From gtksourceview-utils.h
-
-
-
-;; From gtktextregion.h
-
-(define-function gtk_text_region_new
-  (c-name "gtk_text_region_new")
-  (is-constructor-of "GtkTextRegion")
-  (return-type "GtkTextRegion*")
-  (parameters
-    '("GtkTextBuffer*" "buffer")
-  )
-)
-
-(define-method destroy
-  (of-object "GtkTextRegion")
-  (c-name "gtk_text_region_destroy")
-  (return-type "none")
-  (parameters
-    '("gboolean" "delete_marks")
-  )
-)
-
-(define-method get_buffer
-  (of-object "GtkTextRegion")
-  (c-name "gtk_text_region_get_buffer")
-  (return-type "GtkTextBuffer*")
-)
-
-(define-method add
-  (of-object "GtkTextRegion")
-  (c-name "gtk_text_region_add")
-  (return-type "none")
-  (parameters
-    '("const-GtkTextIter*" "_start")
-    '("const-GtkTextIter*" "_end")
-  )
-)
-
-(define-method subtract
-  (of-object "GtkTextRegion")
-  (c-name "gtk_text_region_subtract")
-  (return-type "none")
-  (parameters
-    '("const-GtkTextIter*" "_start")
-    '("const-GtkTextIter*" "_end")
-  )
-)
-
-(define-method subregions
-  (of-object "GtkTextRegion")
-  (c-name "gtk_text_region_subregions")
-  (return-type "gint")
-)
+;; From gtksourcecompletionwords.h
 
-(define-method nth_subregion
-  (of-object "GtkTextRegion")
-  (c-name "gtk_text_region_nth_subregion")
-  (return-type "gboolean")
-  (parameters
-    '("guint" "subregion")
-    '("GtkTextIter*" "start")
-    '("GtkTextIter*" "end")
-  )
+(define-function gtk_source_completion_words_get_type
+  (c-name "gtk_source_completion_words_get_type")
+  (return-type "GType")
 )
 
-(define-method intersect
-  (of-object "GtkTextRegion")
-  (c-name "gtk_text_region_intersect")
-  (return-type "GtkTextRegion*")
+(define-function gtk_source_completion_words_new
+  (c-name "gtk_source_completion_words_new")
+  (is-constructor-of "GtkSourceCompletionWords")
+  (return-type "GtkSourceCompletionWords*")
   (parameters
-    '("const-GtkTextIter*" "_start")
-    '("const-GtkTextIter*" "_end")
+    '("const-gchar*" "name")
+    '("GdkPixbuf*" "icon")
   )
 )
 
-(define-method get_iterator
-  (of-object "GtkTextRegion")
-  (c-name "gtk_text_region_get_iterator")
+(define-method register
+  (of-object "GtkSourceCompletionWords")
+  (c-name "gtk_source_completion_words_register")
   (return-type "none")
   (parameters
-    '("GtkTextRegionIterator*" "iter")
-    '("guint" "start")
+    '("GtkTextBuffer*" "buffer")
   )
 )
 
-(define-method is_end
-  (of-object "GtkTextRegionIterator")
-  (c-name "gtk_text_region_iterator_is_end")
-  (return-type "gboolean")
-)
-
-(define-method next
-  (of-object "GtkTextRegionIterator")
-  (c-name "gtk_text_region_iterator_next")
-  (return-type "gboolean")
-)
-
-(define-method get_subregion
-  (of-object "GtkTextRegionIterator")
-  (c-name "gtk_text_region_iterator_get_subregion")
+(define-method unregister
+  (of-object "GtkSourceCompletionWords")
+  (c-name "gtk_source_completion_words_unregister")
   (return-type "none")
   (parameters
-    '("GtkTextIter*" "start")
-    '("GtkTextIter*" "end")
+    '("GtkTextBuffer*" "buffer")
   )
 )
 
-(define-method debug_print
-  (of-object "GtkTextRegion")
-  (c-name "gtk_text_region_debug_print")
-  (return-type "none")
-)
-
-
-
-;; From stamp-gtksourceview-typebuiltins.h
-
 
diff --git a/gtksourceview/src/gtksourceview_signals.defs b/gtksourceview/src/gtksourceview_signals.defs
index 1bd31a8..09081c8 100644
--- a/gtksourceview/src/gtksourceview_signals.defs
+++ b/gtksourceview/src/gtksourceview_signals.defs
@@ -15,7 +15,7 @@
   (return-type "void")
   (when "last")
   (parameters
-    '("GtkSourceMark*" "p0")
+    '("GtkTextMark*" "p0")
   )
 )
 
@@ -423,6 +423,22 @@
   (when "last")
 )
 
+(define-signal show-completion
+  (of-object "GtkSourceView")
+  (return-type "void")
+  (when "last")
+)
+
+(define-signal line-mark-activated
+  (of-object "GtkSourceView")
+  (return-type "void")
+  (when "last")
+  (parameters
+    '("GtkTextIter*" "p0")
+    '("gpointer" "p1")
+  )
+)
+
 (define-property user-data
   (of-object "GtkSourceView")
   (prop-type "GParamPointer")
@@ -621,6 +637,24 @@
   (construct-only #f)
 )
 
+(define-property window
+  (of-object "GtkSourceView")
+  (prop-type "GParamObject")
+  (docs "The widget's window if it is realized")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
+(define-property double-buffered
+  (of-object "GtkSourceView")
+  (prop-type "GParamBoolean")
+  (docs "Whether or not the widget is double buffered")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
 (define-property border-width
   (of-object "GtkSourceView")
   (prop-type "GParamUInt")
@@ -774,6 +808,24 @@
   (construct-only #f)
 )
 
+(define-property im-module
+  (of-object "GtkSourceView")
+  (prop-type "GParamString")
+  (docs "Which IM module should be used")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property completion
+  (of-object "GtkSourceView")
+  (prop-type "GParamObject")
+  (docs "The completion object associated with the view")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
 (define-property show-line-numbers
   (of-object "GtkSourceView")
   (prop-type "GParamBoolean")
@@ -882,5 +934,972 @@
   (construct-only #f)
 )
 
-;; From GtkSourceSearchFlags
+;; From GtkSourceCompletion
+
+(define-signal show
+  (of-object "GtkSourceCompletion")
+  (return-type "void")
+  (when "last")
+)
+
+(define-signal hide
+  (of-object "GtkSourceCompletion")
+  (return-type "void")
+  (when "last")
+)
+
+(define-signal populate-context
+  (of-object "GtkSourceCompletion")
+  (return-type "void")
+  (when "last")
+  (parameters
+    '("GtkSourceCompletionContext*" "p0")
+  )
+)
+
+(define-signal move-cursor
+  (of-object "GtkSourceCompletion")
+  (return-type "void")
+  (when "last")
+  (parameters
+    '("GtkScrollStep" "p0")
+    '("gint" "p1")
+  )
+)
+
+(define-signal move-page
+  (of-object "GtkSourceCompletion")
+  (return-type "void")
+  (when "last")
+  (parameters
+    '("GtkScrollStep" "p0")
+    '("gint" "p1")
+  )
+)
+
+(define-signal activate-proposal
+  (of-object "GtkSourceCompletion")
+  (return-type "void")
+  (when "last")
+)
+
+(define-property user-data
+  (of-object "GtkSourceCompletion")
+  (prop-type "GParamPointer")
+  (docs "Anonymous User Data Pointer")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property view
+  (of-object "GtkSourceCompletion")
+  (prop-type "GParamObject")
+  (docs "The GtkSourceView bound to the completion")
+  (readable #t)
+  (writable #t)
+  (construct-only #t)
+)
+
+(define-property remember-info-visibility
+  (of-object "GtkSourceCompletion")
+  (prop-type "GParamBoolean")
+  (docs "Remember the last info window visibility state")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property select-on-show
+  (of-object "GtkSourceCompletion")
+  (prop-type "GParamBoolean")
+  (docs "Select first proposal when completion is shown")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property show-headers
+  (of-object "GtkSourceCompletion")
+  (prop-type "GParamBoolean")
+  (docs "Show provider headers when proposals from multiple providers are available")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property accelerators
+  (of-object "GtkSourceCompletion")
+  (prop-type "GParamUInt")
+  (docs "Number of proposal accelerators to show")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property auto-complete-delay
+  (of-object "GtkSourceCompletion")
+  (prop-type "GParamUInt")
+  (docs "Completion popup delay for interactive completion")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property provider-page-size
+  (of-object "GtkSourceCompletion")
+  (prop-type "GParamUInt")
+  (docs "Provider scrolling page size")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property proposal-page-size
+  (of-object "GtkSourceCompletion")
+  (prop-type "GParamUInt")
+  (docs "Proposal scrolling page size")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+;; From GtkSourceCompletionContext
+
+(define-signal cancelled
+  (of-object "GtkSourceCompletionContext")
+  (return-type "void")
+  (when "last")
+)
+
+(define-property completion
+  (of-object "GtkSourceCompletionContext")
+  (prop-type "GParamObject")
+  (docs "The completion object to which the context belongs")
+  (readable #t)
+  (writable #t)
+  (construct-only #t)
+)
+
+(define-property view
+  (of-object "GtkSourceCompletionContext")
+  (prop-type "GParamObject")
+  (docs "The GtkSourceView")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
+(define-property iter
+  (of-object "GtkSourceCompletionContext")
+  (prop-type "GParamPointer")
+  (docs "The GtkTextIter at which the completion was invoked")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property activation
+  (of-object "GtkSourceCompletionContext")
+  (prop-type "GParamFlags")
+  (docs "The type of activation")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+;; From GtkSourceCompletionInfo
+
+(define-signal before-show
+  (of-object "GtkSourceCompletionInfo")
+  (return-type "void")
+  (when "last")
+)
+
+(define-property user-data
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamPointer")
+  (docs "Anonymous User Data Pointer")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property name
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamString")
+  (docs "The name of the widget")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property parent
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamObject")
+  (docs "The parent widget of this widget. Must be a Container widget")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property width-request
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamInt")
+  (docs "Override for width request of the widget, or -1 if natural request should be used")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property height-request
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamInt")
+  (docs "Override for height request of the widget, or -1 if natural request should be used")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property visible
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether the widget is visible")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property sensitive
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether the widget responds to input")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property app-paintable
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether the application will paint directly on the widget")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property can-focus
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether the widget can accept the input focus")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property has-focus
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether the widget has the input focus")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property is-focus
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether the widget is the focus widget within the toplevel")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property can-default
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether the widget can be the default widget")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property has-default
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether the widget is the default widget")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property receives-default
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "If TRUE, the widget will receive the default action when it is focused")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property composite-child
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether the widget is part of a composite widget")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
+(define-property style
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamObject")
+  (docs "The style of the widget, which contains information about how it will look (colors etc)")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property events
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamFlags")
+  (docs "The event mask that decides what kind of GdkEvents this widget gets")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property extension-events
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamEnum")
+  (docs "The mask that decides what kind of extension events this widget gets")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property no-show-all
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether gtk_widget_show_all() should not affect this widget")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property has-tooltip
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether this widget has a tooltip")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property tooltip-markup
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamString")
+  (docs "The contents of the tooltip for this widget")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property tooltip-text
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamString")
+  (docs "The contents of the tooltip for this widget")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property window
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamObject")
+  (docs "The widget's window if it is realized")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
+(define-property double-buffered
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether or not the widget is double buffered")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property border-width
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamUInt")
+  (docs "The width of the empty border outside the containers children")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property resize-mode
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamEnum")
+  (docs "Specify how resize events are handled")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property child
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamObject")
+  (docs "Can be used to add a new child to the container")
+  (readable #f)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property type
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamEnum")
+  (docs "The type of the window")
+  (readable #t)
+  (writable #t)
+  (construct-only #t)
+)
+
+(define-property title
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamString")
+  (docs "The title of the window")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property role
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamString")
+  (docs "Unique identifier for the window to be used when restoring a session")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property allow-shrink
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "If TRUE, the window has no mimimum size. Setting this to TRUE is 99% of the time a bad idea")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property allow-grow
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "If TRUE, users can expand the window beyond its minimum size")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property resizable
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "If TRUE, users can resize the window")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property modal
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "If TRUE, the window is modal (other windows are not usable while this one is up)")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property window-position
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamEnum")
+  (docs "The initial position of the window")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property default-width
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamInt")
+  (docs "The default width of the window, used when initially showing the window")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property default-height
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamInt")
+  (docs "The default height of the window, used when initially showing the window")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property destroy-with-parent
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "If this window should be destroyed when the parent is destroyed")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property icon
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamObject")
+  (docs "Icon for this window")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property icon-name
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamString")
+  (docs "Name of the themed icon for this window")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property screen
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamObject")
+  (docs "The screen where this window will be displayed")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property type-hint
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamEnum")
+  (docs "Hint to help the desktop environment understand what kind of window this is and how to treat it.")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property skip-taskbar-hint
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "TRUE if the window should not be in the task bar.")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property skip-pager-hint
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "TRUE if the window should not be in the pager.")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property urgency-hint
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "TRUE if the window should be brought to the user's attention.")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property accept-focus
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "TRUE if the window should receive the input focus.")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property focus-on-map
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "TRUE if the window should receive the input focus when mapped.")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property decorated
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether the window should be decorated by the window manager")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property deletable
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether the window frame should have a close button")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property gravity
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamEnum")
+  (docs "The window gravity of the window")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property transient-for
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamObject")
+  (docs "The transient parent of the dialog")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property opacity
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamDouble")
+  (docs "The opacity of the window, from 0 to 1")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property is-active
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether the toplevel is the current active window")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
+(define-property has-toplevel-focus
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether the input focus is within this GtkWindow")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
+(define-property startup-id
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamString")
+  (docs "Unique startup identifier for the window used by startup-notification")
+  (readable #f)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property max-width
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamInt")
+  (docs "The maximum allowed width")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property max-height
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamInt")
+  (docs "The maximum allowed height")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property shrink-width
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether the window should shrink width to fit the contents")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property shrink-height
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether the window should shrink height to fit the contents")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+;; From GtkSourceCompletionItem
+
+(define-property label
+  (of-object "GtkSourceCompletionItem")
+  (prop-type "GParamString")
+  (docs "Label to be shown for this item")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property markup
+  (of-object "GtkSourceCompletionItem")
+  (prop-type "GParamString")
+  (docs "Markup to be shown for this item")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property text
+  (of-object "GtkSourceCompletionItem")
+  (prop-type "GParamString")
+  (docs "Item text")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property icon
+  (of-object "GtkSourceCompletionItem")
+  (prop-type "GParamObject")
+  (docs "Icon to be shown for this item")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property info
+  (of-object "GtkSourceCompletionItem")
+  (prop-type "GParamString")
+  (docs "Info to be shown for this item")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+;; From GtkSourceCompletionProposal
+
+(define-signal changed
+  (of-object "GtkSourceCompletionProposal")
+  (return-type "void")
+  (when "last")
+)
+
+;; From GtkSourceCompletionProvider
+
+;; From GtkSourceGutter
+
+(define-signal cell-activated
+  (of-object "GtkSourceGutter")
+  (return-type "void")
+  (when "last")
+  (parameters
+    '("GtkCellRenderer*" "p0")
+    '("GtkTextIter*" "p1")
+    '("gpointer" "p2")
+  )
+)
+
+(define-signal query-tooltip
+  (of-object "GtkSourceGutter")
+  (return-type "gboolean")
+  (when "last")
+  (parameters
+    '("GtkCellRenderer*" "p0")
+    '("GtkTextIter*" "p1")
+    '("GtkTooltip*" "p2")
+  )
+)
+
+(define-property view
+  (of-object "GtkSourceGutter")
+  (prop-type "GParamObject")
+  (docs "The gutters' GtkSourceView")
+  (readable #t)
+  (writable #t)
+  (construct-only #t)
+)
+
+(define-property window-type
+  (of-object "GtkSourceGutter")
+  (prop-type "GParamEnum")
+  (docs "The gutters text window type")
+  (readable #t)
+  (writable #t)
+  (construct-only #t)
+)
+
+;; From GtkSourcePrintCompositor
+
+(define-property buffer
+  (of-object "GtkSourcePrintCompositor")
+  (prop-type "GParamObject")
+  (docs "The GtkSourceBuffer object to print")
+  (readable #t)
+  (writable #t)
+  (construct-only #t)
+)
+
+(define-property tab-width
+  (of-object "GtkSourcePrintCompositor")
+  (prop-type "GParamUInt")
+  (docs "Width of a tab character expressed in spaces")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property wrap-mode
+  (of-object "GtkSourcePrintCompositor")
+  (prop-type "GParamEnum")
+  (docs "Whether to wrap lines never, at word boundaries, or at character boundaries.")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property highlight-syntax
+  (of-object "GtkSourcePrintCompositor")
+  (prop-type "GParamBoolean")
+  (docs "Whether to print the document with highlighted syntax")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property print-line-numbers
+  (of-object "GtkSourcePrintCompositor")
+  (prop-type "GParamUInt")
+  (docs "Interval of printed line numbers (0 means no numbers)")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property print-header
+  (of-object "GtkSourcePrintCompositor")
+  (prop-type "GParamBoolean")
+  (docs "Whether to print a header in each page")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property print-footer
+  (of-object "GtkSourcePrintCompositor")
+  (prop-type "GParamBoolean")
+  (docs "Whether to print a footer in each page")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property body-font-name
+  (of-object "GtkSourcePrintCompositor")
+  (prop-type "GParamString")
+  (docs "Name of the font to use for the text body (e.g. 'Monospace 10')")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property line-numbers-font-name
+  (of-object "GtkSourcePrintCompositor")
+  (prop-type "GParamString")
+  (docs "Name of the font to use for the line numbers (e.g. 'Monospace 10')")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property header-font-name
+  (of-object "GtkSourcePrintCompositor")
+  (prop-type "GParamString")
+  (docs "Name of the font to use for the page header (e.g. 'Monospace 10')")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property footer-font-name
+  (of-object "GtkSourcePrintCompositor")
+  (prop-type "GParamString")
+  (docs "Name of the font to use for the page footer (e.g. 'Monospace 10')")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property n-pages
+  (of-object "GtkSourcePrintCompositor")
+  (prop-type "GParamInt")
+  (docs "The number of pages in the document (-1 means the document has not been completely paginated).")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
+;; From GtkSourceCompletionWords
+
+(define-property name
+  (of-object "GtkSourceCompletionWords")
+  (prop-type "GParamString")
+  (docs "The provider name")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property icon
+  (of-object "GtkSourceCompletionWords")
+  (prop-type "GParamObject")
+  (docs "The provider icon")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property proposals-batch-size
+  (of-object "GtkSourceCompletionWords")
+  (prop-type "GParamUInt")
+  (docs "Number of proposals added in one batch")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property scan-batch-size
+  (of-object "GtkSourceCompletionWords")
+  (prop-type "GParamUInt")
+  (docs "Number of lines scanned in one batch")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property minimum-word-size
+  (of-object "GtkSourceCompletionWords")
+  (prop-type "GParamUInt")
+  (docs "The minimum word size to complete")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]