[gtksourceviewmm] Regenerate some files.
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceviewmm] Regenerate some files.
- Date: Tue, 30 Nov 2010 18:17:04 +0000 (UTC)
commit d8f0fef84e8d33f80aaccfec1ef95759ba244aa2
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Tue Nov 30 19:15:41 2010 +0100
Regenerate some files.
* codegen/extradefs/generate_extra_defs_gtksourceview.cc: Added four new
types.
* gtksourceview/src/gtksourceview_docs.xml:
* gtksourceview/src/gtksourceview_enums.defs:
* gtksourceview/src/gtksourceview_methods.defs:
* gtksourceview/src/gtksourceview_signals.defs: Regenerated.
* gtksourceview/src/gtksourceview_vfuncs.defs: Wrote some vfuncs.
.../extradefs/generate_extra_defs_gtksourceview.cc | 44 +-
gtksourceview/src/gtksourceview_docs.xml | 1090 +++++++++++++-------
gtksourceview/src/gtksourceview_enums.defs | 40 +
gtksourceview/src/gtksourceview_methods.defs | 728 +++++++++++--
gtksourceview/src/gtksourceview_signals.defs | 528 ++++++++++-
gtksourceview/src/gtksourceview_vfuncs.defs | 32 +
6 files changed, 1954 insertions(+), 508 deletions(-)
---
diff --git a/codegen/extradefs/generate_extra_defs_gtksourceview.cc b/codegen/extradefs/generate_extra_defs_gtksourceview.cc
index db39d9c..878eb42 100644
--- a/codegen/extradefs/generate_extra_defs_gtksourceview.cc
+++ b/codegen/extradefs/generate_extra_defs_gtksourceview.cc
@@ -28,9 +28,13 @@
#include <gtksourceview/gtksourcecompletionproposal.h>
#include <gtksourceview/gtksourcecompletionprovider.h>
#include <gtksourceview/gtksourcegutter.h>
+#include <gtksourceview/gtksourcegutterrenderer.h>
+#include <gtksourceview/gtksourcegutterrendererpixbuf.h>
+#include <gtksourceview/gtksourcegutterrenderertext.h>
#include <gtksourceview/gtksourcelanguage.h>
#include <gtksourceview/gtksourcelanguagemanager.h>
#include <gtksourceview/gtksourcemark.h>
+#include <gtksourceview/gtksourcemarkcategory.h>
#include <gtksourceview/gtksourceprintcompositor.h>
#include <gtksourceview/gtksourcestyle.h>
#include <gtksourceview/gtksourcestylescheme.h>
@@ -45,24 +49,28 @@ int main (int argc, char *argv[])
{
gtk_init(&argc, &argv);
- std::cout << get_defs ( GTK_TYPE_SOURCE_BUFFER )
- << get_defs ( GTK_TYPE_SOURCE_COMPLETION )
- << get_defs ( GTK_TYPE_SOURCE_COMPLETION_CONTEXT )
- << get_defs ( GTK_TYPE_SOURCE_COMPLETION_INFO )
- << get_defs ( GTK_TYPE_SOURCE_COMPLETION_ITEM )
- << get_defs ( GTK_TYPE_SOURCE_COMPLETION_PROPOSAL )
- << get_defs ( GTK_TYPE_SOURCE_COMPLETION_PROVIDER )
- << get_defs ( GTK_TYPE_SOURCE_GUTTER )
- << get_defs ( GTK_TYPE_SOURCE_LANGUAGE )
- << get_defs ( GTK_TYPE_SOURCE_LANGUAGE_MANAGER )
- << get_defs ( GTK_TYPE_SOURCE_MARK )
- << get_defs ( GTK_TYPE_SOURCE_PRINT_COMPOSITOR )
- << get_defs ( GTK_TYPE_SOURCE_STYLE )
- << get_defs ( GTK_TYPE_SOURCE_STYLE_SCHEME )
- << get_defs ( GTK_TYPE_SOURCE_STYLE_SCHEME_MANAGER )
- << get_defs ( GTK_TYPE_SOURCE_UNDO_MANAGER )
- << get_defs ( GTK_TYPE_SOURCE_VIEW )
+ std::cout << get_defs (GTK_TYPE_SOURCE_BUFFER)
+ << get_defs (GTK_TYPE_SOURCE_COMPLETION)
+ << get_defs (GTK_TYPE_SOURCE_COMPLETION_CONTEXT)
+ << get_defs (GTK_TYPE_SOURCE_COMPLETION_INFO)
+ << get_defs (GTK_TYPE_SOURCE_COMPLETION_ITEM)
+ << get_defs (GTK_TYPE_SOURCE_COMPLETION_PROPOSAL)
+ << get_defs (GTK_TYPE_SOURCE_COMPLETION_PROVIDER)
+ << get_defs (GTK_TYPE_SOURCE_GUTTER)
+ << get_defs (GTK_TYPE_SOURCE_GUTTER_RENDERER)
+ << get_defs (GTK_TYPE_SOURCE_GUTTER_RENDERER_PIXBUF)
+ << get_defs (GTK_TYPE_SOURCE_GUTTER_RENDERER_TEXT)
+ << get_defs (GTK_TYPE_SOURCE_LANGUAGE)
+ << get_defs (GTK_TYPE_SOURCE_LANGUAGE_MANAGER)
+ << get_defs (GTK_TYPE_SOURCE_MARK)
+ << get_defs (GTK_TYPE_SOURCE_MARK_CATEGORY)
+ << get_defs (GTK_TYPE_SOURCE_PRINT_COMPOSITOR)
+ << get_defs (GTK_TYPE_SOURCE_STYLE)
+ << get_defs (GTK_TYPE_SOURCE_STYLE_SCHEME)
+ << get_defs (GTK_TYPE_SOURCE_STYLE_SCHEME_MANAGER)
+ << get_defs (GTK_TYPE_SOURCE_UNDO_MANAGER)
+ << get_defs (GTK_TYPE_SOURCE_VIEW)
- << get_defs ( GTK_TYPE_SOURCE_COMPLETION_WORDS );
+ << get_defs (GTK_TYPE_SOURCE_COMPLETION_WORDS);
return 0;
}
diff --git a/gtksourceview/src/gtksourceview_docs.xml b/gtksourceview/src/gtksourceview_docs.xml
index 375ac83..dec81f5 100644
--- a/gtksourceview/src/gtksourceview_docs.xml
+++ b/gtksourceview/src/gtksourceview_docs.xml
@@ -98,30 +98,60 @@ or modified.
</return>
</function>
-<function name="gtk_source_view_set_mark_category_priority">
+<function name="segment_destroy">
<description>
-Set the @priority for the given mark @category. When there are
-multiple marks on the same line, marks of categories with
-higher priorities will be drawn on top.
-
-Since: 2.2
+Recursively frees given segment. It removes the segment
+from ce structure, but it doesn't update parent and
+siblings. segment_remove() is the function that takes
+care of everything.
</description>
<parameters>
-<parameter name="view">
-<parameter_description> a #GtkSourceView.
+<parameter name="ce">
+<parameter_description> the engine.
</parameter_description>
</parameter>
-<parameter name="category">
-<parameter_description> a mark category.
+<parameter name="context">
+<parameter_description> the segment to destroy.
</parameter_description>
</parameter>
-<parameter name="priority">
-<parameter_description> the priority for the category
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_gutter_renderer_get_window_type">
+<description>
+Get the #GtkTextWindowType associated with the gutter renderer.
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer
</parameter_description>
</parameter>
</parameters>
-<return></return>
+<return> a #GtkTextWindowType
+
+</return>
+</function>
+
+<function name="gtk_source_gutter_renderer_get_alignment_mode">
+<description>
+Get the alignment mode. The alignment mode describes the manner in which the
+renderer is aligned (see :xalign and :yalign).
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer
+</parameter_description>
+</parameter>
+</parameters>
+<return> a #GtkSourceGutterRendererAlignmentMode
+
+</return>
</function>
<function name="gtk_source_undo_manager_undo">
@@ -206,19 +236,17 @@ Since: 2.2
<return></return>
</function>
-<function name="idle_worker">
+<function name="gtk_source_style_scheme_manager_new">
<description>
-Analyzes a batch in idle. Stops when
-whole buffer is analyzed.
+Creates a new style manager. If you do not need more than one style
+manager then use gtk_source_style_scheme_manager_get_default() instead.
+
</description>
<parameters>
-<parameter name="ce">
-<parameter_description> #GtkSourceContextEngine.
-</parameter_description>
-</parameter>
</parameters>
-<return></return>
+<return> a new #GtkSourceStyleSchemeManager.
+</return>
</function>
<function name="gtk_source_buffer_end_not_undoable_action">
@@ -299,6 +327,26 @@ Populate @context with proposals from @provider.
<return></return>
</function>
+<function name="gtk_source_gutter_renderer_get_background">
+<description>
+Set the background color of the renderer. If @color is set to %NULL, the
+renderer will not have a background color.
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer
+</parameter_description>
+</parameter>
+<parameter name="color">
+<parameter_description> a #GdkColor or %NULL
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_source_print_compositor_set_print_header">
<description>
Sets whether you want to print a header in each page. The
@@ -392,39 +440,6 @@ it's not %NULL.
<return></return>
</function>
-<function name="gtk_source_view_set_mark_category_tooltip_markup_func">
-<description>
-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>
-</parameter>
-<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>
-<return></return>
-</function>
-
<function name="gtk_source_print_compositor_get_header_font_name">
<description>
Returns the name of the font used to print the page header.
@@ -547,27 +562,6 @@ category, or all the marks representing a compilation error could belong to
</return>
</function>
-<function name="segment_destroy">
-<description>
-Recursively frees given segment. It removes the segment
-from ce structure, but it doesn't update parent and
-siblings. segment_remove() is the function that takes
-care of everything.
-
-</description>
-<parameters>
-<parameter name="ce">
-<parameter_description> the engine.
-</parameter_description>
-</parameter>
-<parameter name="context">
-<parameter_description> the segment to destroy.
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
<function name="find_segment_position">
<description>
Finds siblings of a new segment to be created at interval
@@ -636,6 +630,37 @@ Modifies syntax tree according to data in invalid_region.
<return></return>
</function>
+<function name="gtk_source_gutter_renderer_query_activatable">
+<description>
+Get whether the renderer is activatable at the location in @event. This is
+called from #GtkSourceGutter to determine whether a renderer is activatable
+using the mouse pointer.
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer
+</parameter_description>
+</parameter>
+<parameter name="iter">
+<parameter_description> a #GtkTextIter at the start of the line to be activated
+</parameter_description>
+</parameter>
+<parameter name="area">
+<parameter_description> a #GdkRectangle of the cell area to be activated
+</parameter_description>
+</parameter>
+<parameter name="event">
+<parameter_description> the event that triggered the query
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the renderer can be activated, %FALSE otherwise
+
+</return>
+</function>
+
<function name="gtk_source_buffer_new">
<description>
Creates a new source buffer.
@@ -716,6 +741,23 @@ Destroys syntax tags cache.
<return></return>
</function>
+<function name="gtk_source_gutter_renderer_pixbuf_get_gicon">
+<description>
+Get the gicon of the renderer
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRendererPixbuf
+</parameter_description>
+</parameter>
+</parameters>
+<return> a #GIcon
+
+</return>
+</function>
+
<function name="get_segment_at_offset">
<description>
Finds the deepest segment "at @offset".
@@ -1245,7 +1287,7 @@ equivalent to segment_erase_range_(ce->priv->root_segment, start, end)
<function name="gtk_source_completion_info_move_to_iter">
<description>
-Moves the #GtkSourceCompletionInfo to @iter. If @iter is %NULL @info is
+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.
@@ -1348,6 +1390,26 @@ Use g_strfreev() to free the array if it is no longer needed.
</return>
</function>
+<function name="gtk_source_gutter_renderer_set_alignment_mode">
+<description>
+Set the alignment mode. The alignment mode describes the manner in which the
+renderer is aligned (see :xalign and :yalign).
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer
+</parameter_description>
+</parameter>
+<parameter name="mode">
+<parameter_description> a #GtkSourceGutterRendererAlignmentMode
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_source_print_compositor_set_print_footer">
<description>
Sets whether you want to print a footer in each page. The
@@ -1513,6 +1575,31 @@ must be freed with g_free().
</return>
</function>
+<function name="gtk_source_gutter_renderer_set_padding">
+<description>
+Set the padding of the gutter renderer. Both @xpad and @ypad can be
+-1, which means the values will not be changed (this allows changing only
+one of the values).
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer
+</parameter_description>
+</parameter>
+<parameter name="xpad">
+<parameter_description> the x-padding
+</parameter_description>
+</parameter>
+<parameter name="ypad">
+<parameter_description> the y-padding
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_source_completion_utils_get_word_iter">
<description>
@@ -1967,6 +2054,43 @@ See child_starts_here().
<return></return>
</function>
+<function name="gtk_source_gutter_renderer_set_size">
+<description>
+Sets the size of the renderer. A value of -1 specifies that the size
+is to be determined dynamically.
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer
+</parameter_description>
+</parameter>
+<parameter name="size">
+<parameter_description> the size
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_gutter_renderer_get_view">
+<description>
+Get the view associated to the gutter renderer
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer
+</parameter_description>
+</parameter>
+</parameters>
+<return> a #GtkTextView
+
+</return>
+</function>
+
<function name="gtk_source_view_get_smart_home_end">
<description>
Returns a #GtkSourceSmartHomeEndType end value specifying
@@ -2148,64 +2272,6 @@ Since: 2.2
</return>
</function>
-<function name="gtk_source_view_set_mark_category_tooltip_func">
-<description>
-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.
-
-<informalexample><programlisting><![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, "other-mark",
-tooltip_func,
-NULL, NULL);
-]]></programlisting></informalexample>
-
-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="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_completion_get_view">
<description>
The #GtkSourceView associated with @completion.
@@ -2413,31 +2479,41 @@ Gets the icon of @proposal.
</return>
</function>
-<function name="gtk_source_view_get_mark_category_background">
+<function name="gtk_source_gutter_renderer_begin">
<description>
-Gets the background color associated with given @category.
+Called when drawing a region begins. The region to be drawn is indicated
+by @start and @end. The purpose is to allow the implementation to precompute
+some state before the ::draw method is called for each cell.
-Since: 2.4
</description>
<parameters>
-<parameter name="view">
-<parameter_description> a #GtkSourceView.
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer
</parameter_description>
</parameter>
-<parameter name="category">
-<parameter_description> a mark category.
+<parameter name="cr">
+<parameter_description> a #cairo_t
+</parameter_description>
+</parameter>
+<parameter name="background_area">
+<parameter_description> a #GdkRectangle
+</parameter_description>
+</parameter>
+<parameter name="cell_area">
+<parameter_description> a #GdkRectangle
+</parameter_description>
+</parameter>
+<parameter name="start">
+<parameter_description> a #GtkTextIter
</parameter_description>
</parameter>
-<parameter name="dest">
-<parameter_description> destination #GdkColor structure to fill in.
+<parameter name="end">
+<parameter_description> a #GtkTextIter
</parameter_description>
</parameter>
</parameters>
-<return> %TRUE if background color for @category was set
-and @dest is set to a valid color, or %FALSE otherwise.
-
-</return>
+<return></return>
</function>
<function name="gtk_source_completion_provider_get_name">
@@ -2589,31 +2665,6 @@ model. By default, it uses a direct hash (#g_direct_hash).
</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_mark_prev">
<description>
Returns the previous #GtkSourceMark in the buffer or %NULL if the mark
@@ -2745,39 +2796,6 @@ the stock label will be used.
</return>
</function>
-<function name="gtk_source_gutter_set_cell_data_func">
-<description>
-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="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></return>
-</function>
-
<function name="add_invalid">
<description>
Inserts segment into the list of invalid segments.
@@ -2839,53 +2857,32 @@ before lower priorities. The default priority is 0.
</return>
</function>
-<function name="gtk_source_buffer_set_undo_manager">
+<function name="gtk_source_gutter_renderer_text_new">
<description>
-Set the buffer undo manager. If @manager is %NULL the default undo manager
-will be set.
+Create a new #GtkSourceGutterRendererText.
+
</description>
<parameters>
-<parameter name="buffer">
-<parameter_description> a #GtkSourceBuffer.
-</parameter_description>
-</parameter>
-<parameter name="manager">
-<parameter_description> A #GtkSourceUndoManager or %NULL.
-</parameter_description>
-</parameter>
</parameters>
-<return></return>
+<return> A #GtkSourceGutterRenderer
+
+</return>
</function>
-<function name="gtk_source_gutter_set_cell_size_func">
+<function name="gtk_source_buffer_set_undo_manager">
<description>
-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
+Set the buffer undo manager. If @manager is %NULL the default undo manager
+will be set.
</description>
<parameters>
-<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 #GtkSourceGutterSizeFunc to use.
-</parameter_description>
-</parameter>
-<parameter name="func_data">
-<parameter_description> the user data for @func.
+<parameter name="buffer">
+<parameter_description> a #GtkSourceBuffer.
</parameter_description>
</parameter>
-<parameter name="destroy">
-<parameter_description> the destroy notification for @func_data.
+<parameter name="manager">
+<parameter_description> A #GtkSourceUndoManager or %NULL.
</parameter_description>
</parameter>
</parameters>
@@ -2991,6 +2988,43 @@ subpattern contexts (e.g. \%{1 start} or \%{blah start}).
<return></return>
</function>
+<function name="gtk_source_gutter_insertv">
+<description>
+Create and insert a new gutter renderer in the gutter. This function is
+mostly useful for bindings. Applications should normally use
+#gtk_source_gutter_renderer_insert
+
+Since: 3.0
+
+
+</description>
+<parameters>
+<parameter name="gutter">
+<parameter_description> a #GtkSourceGutter.
+</parameter_description>
+</parameter>
+<parameter name="gtype">
+<parameter_description> the type of the gutter renderer (must inherit from #GtkSourceGutterRenderer).
+</parameter_description>
+</parameter>
+<parameter name="position">
+<parameter_description> the renderer position.
+</parameter_description>
+</parameter>
+<parameter name="num_parameters">
+<parameter_description> the number of parameters.
+</parameter_description>
+</parameter>
+<parameter name="parameters">
+<parameter_description> the parameters.
+</parameter_description>
+</parameter>
+</parameters>
+<return> a #GtkSourceGutterRenderer
+
+</return>
+</function>
+
<function name="gtk_source_language_manager_get_language">
<description>
Gets the #GtkSourceLanguage identified by the given @id in the language
@@ -3276,17 +3310,19 @@ wildcard references (context_id:*).
<return></return>
</function>
-<function name="gtk_source_style_scheme_manager_new">
+<function name="idle_worker">
<description>
-Creates a new style manager. If you do not need more than one style
-manager then use gtk_source_style_scheme_manager_get_default() instead.
-
+Analyzes a batch in idle. Stops when
+whole buffer is analyzed.
</description>
<parameters>
+<parameter name="ce">
+<parameter_description> #GtkSourceContextEngine.
+</parameter_description>
+</parameter>
</parameters>
-<return> a new #GtkSourceStyleSchemeManager.
-</return>
+<return></return>
</function>
<function name="gtk_source_completion_proposal_changed">
@@ -3355,6 +3391,38 @@ Since: 2.2
<return></return>
</function>
+<function name="gtk_source_gutter_renderer_end">
+<description>
+Called when drawing a region of lines has ended.
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_gutter_renderer_get_size">
+<description>
+Get the size of the renderer.
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer
+</parameter_description>
+</parameter>
+</parameters>
+<return> the size of the renderer.
+
+</return>
+</function>
+
<function name="gtk_source_print_compositor_get_tab_width">
<description>
Returns the width of tabulation in characters for printed text.
@@ -3391,6 +3459,29 @@ Since: 2.2
</return>
</function>
+<function name="gtk_source_gutter_renderer_get_padding">
+<description>
+Get the x-padding and y-padding of the gutter renderer.
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer
+</parameter_description>
+</parameter>
+<parameter name="xpad">
+<parameter_description> return location for the x-padding (can be %NULL)
+</parameter_description>
+</parameter>
+<parameter name="ypad">
+<parameter_description> return location for the y-padding (can be %NULL)
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_source_print_compositor_get_footer_font_name">
<description>
Returns the name of the font used to print the page footer.
@@ -3460,6 +3551,45 @@ Since: 2.2
</return>
</function>
+<function name="gtk_source_gutter_renderer_query_tooltip">
+<description>
+Emits the ::query-tooltip signal. This function is called from
+#GtkSourceGutter. Implementations can override the default signal handler
+or can connect to the signal externally.
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer.
+</parameter_description>
+</parameter>
+<parameter name="iter">
+<parameter_description> a #GtkTextIter.
+</parameter_description>
+</parameter>
+<parameter name="area">
+<parameter_description> a #GdkRectangle.
+</parameter_description>
+</parameter>
+<parameter name="x">
+<parameter_description> The x position of the tooltip.
+</parameter_description>
+</parameter>
+<parameter name="y">
+<parameter_description> The y position of the tooltip.
+</parameter_description>
+</parameter>
+<parameter name="tooltip">
+<parameter_description> a #GtkTooltip.
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the tooltip has been set, %FALSE otherwise
+
+</return>
+</function>
+
<function name="gtk_source_context_engine_text_inserted">
<description>
Called from GtkTextBuffer::insert_text.
@@ -3605,6 +3735,23 @@ be created and added to the window.
<return></return>
</function>
+<function name="gtk_source_mark_category_get_gicon">
+<description>
+Get the #GIcon associated with the mark category.
+
+
+</description>
+<parameters>
+<parameter name="category">
+<parameter_description> a #GtkSourceMarkCategory
+</parameter_description>
+</parameter>
+</parameters>
+<return> A #GIcon
+
+</return>
+</function>
+
<function name="gtk_source_completion_provider_get_start_iter">
<description>
Get the #GtkTextIter at which the completion for @proposal starts. When
@@ -3836,6 +3983,23 @@ The array is owned by the @manager and must not be modified.
</return>
</function>
+<function name="gtk_source_gutter_renderer_get_visible">
+<description>
+Get whether the gutter renderer is visible.
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the renderer is visible, %FALSE otherwise
+
+</return>
+</function>
+
<function name="context_unref">
<description>
Decreases reference count and removes @context
@@ -4112,6 +4276,35 @@ If @show is %TRUE the current line is highlighted.
<return></return>
</function>
+<function name="gtk_source_view_get_show_right_margin">
+<description>
+Returns whether a right margin is displayed.
+
+
+</description>
+<parameters>
+<parameter name="view">
+<parameter_description> a #GtkSourceView.
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the right margin is shown.
+</return>
+</function>
+
+<function name="gtk_source_gutter_renderer_pixbuf_new">
+<description>
+Create a new #GtkSourceGutterRendererPixbuf.
+
+
+</description>
+<parameters>
+</parameters>
+<return> A #GtkSourceGutterRenderer
+
+</return>
+</function>
+
<function name="enable_highlight">
<description>
Whether to highlight (i.e. apply tags) analyzed area.
@@ -4271,7 +4464,8 @@ interactive completion again.
<description>
Inserts @renderer into @gutter at @position.
-Since: 2.8
+Since: 3.0
+
</description>
<parameters>
@@ -4279,8 +4473,8 @@ Since: 2.8
<parameter_description> a #GtkSourceGutter.
</parameter_description>
</parameter>
-<parameter name="renderer">
-<parameter_description> a #GtkCellRenderer.
+<parameter name="gtype">
+<parameter_description> the type of the gutter renderer (must inherit from #GtkSourceGutterRenderer).
</parameter_description>
</parameter>
<parameter name="position">
@@ -4288,7 +4482,8 @@ Since: 2.8
</parameter_description>
</parameter>
</parameters>
-<return></return>
+<return> a #GtkSourceGutterRenderer
+</return>
</function>
<function name="gtk_source_completion_create_context">
@@ -4471,25 +4666,6 @@ should be displayed for this @view.
</return>
</function>
-<function name="gtk_source_buffer_get_style_scheme">
-<description>
-Returns the #GtkSourceStyleScheme associated with the buffer,
-see gtk_source_buffer_set_style_scheme().
-The returned object should not be unreferenced by the user.
-
-
-</description>
-<parameters>
-<parameter name="buffer">
-<parameter_description> a #GtkSourceBuffer.
-</parameter_description>
-</parameter>
-</parameters>
-<return> the #GtkSourceStyleScheme associated
-with the buffer, or %NULL.
-</return>
-</function>
-
<function name="gtk_source_completion_utils_get_word">
<description>
@@ -4580,31 +4756,6 @@ of this line if it's the last line in @buffer.
<return></return>
</function>
-<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="view">
-<parameter_description> a #GtkSourceView.
-</parameter_description>
-</parameter>
-<parameter name="category">
-<parameter_description> a mark category.
-</parameter_description>
-</parameter>
-<parameter name="pixbuf">
-<parameter_description> a #GdkPixbuf, or %NULL.
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
<function name="gtk_source_buffer_set_style_scheme">
<description>
Sets style scheme used by the buffer. If @scheme is %NULL no
@@ -4811,54 +4962,6 @@ associated with @completion.
</return>
</function>
-<function name="gtk_source_view_get_mark_category_priority">
-<description>
-Gets the priority which is associated with the given @category.
-
-Since: 2.2
-
-</description>
-<parameters>
-<parameter name="view">
-<parameter_description> a #GtkSourceView.
-</parameter_description>
-</parameter>
-<parameter name="category">
-<parameter_description> a mark category.
-</parameter_description>
-</parameter>
-</parameters>
-<return> the priority or if @category
-exists but no priority was set, it defaults to 0.
-
-</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="view">
-<parameter_description> a #GtkSourceView.
-</parameter_description>
-</parameter>
-<parameter name="category">
-<parameter_description> a mark category.
-</parameter_description>
-</parameter>
-<parameter name="color">
-<parameter_description> background color or %NULL to unset it.
-</parameter_description>
-</parameter>
-</parameters>
-<return></return>
-</function>
-
<function name="find_single_byte_escape">
<description>
Checks whether pattern contains \C escape sequence,
@@ -4973,6 +5076,39 @@ Creates a new segment and inserts it into the tree.
</return>
</function>
+<function name="gtk_source_gutter_insert_valist">
+<description>
+Create and insert a new gutter renderer in the gutter. This function is
+mostly useful for bindings. Applications should normally use
+#gtk_source_gutter_renderer_insert
+
+Since: 3.0
+
+
+</description>
+<parameters>
+<parameter name="gutter">
+<parameter_description> a #GtkSourceGutter.
+</parameter_description>
+</parameter>
+<parameter name="gtype">
+<parameter_description> the type of the gutter renderer (must inherit from #GtkSourceGutterRenderer).
+</parameter_description>
+</parameter>
+<parameter name="position">
+<parameter_description> the renderer position.
+</parameter_description>
+</parameter>
+<parameter name="ap">
+<parameter_description> the parameters.
+</parameter_description>
+</parameter>
+</parameters>
+<return> a #GtkSourceGutterRenderer
+
+</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.
@@ -5036,6 +5172,36 @@ or modified.
</return>
</function>
+<function name="gtk_source_gutter_renderer_query_data">
+<description>
+Emit the ::query-data signal. This function is called to query for data
+just before rendering a cell. This is called from the #GtkSourceGutter.
+Implementations can override the default signal handler or can connect
+a signal handler externally to the ::query-data signal.
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer.
+</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="state">
+<parameter_description> a #GtkSourceGutterRendererState.
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_source_buffer_set_highlight_syntax">
<description>
Controls whether syntax is highlighted in the buffer. If @highlight
@@ -5228,6 +5394,29 @@ style scheme is available. The array is owned by the @manager and must not be mo
</return>
</function>
+<function name="gtk_source_gutter_renderer_get_alignment">
+<description>
+Get the x-alignment and y-alignment of the gutter renderer.
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer
+</parameter_description>
+</parameter>
+<parameter name="xalign">
+<parameter_description> return location for the x-alignment (can be %NULL)
+</parameter_description>
+</parameter>
+<parameter name="yalign">
+<parameter_description> return location for the y-alignment (can be %NULL)
+</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,
@@ -5316,6 +5505,52 @@ is owned by GtkSourceView library and must not be unref'ed.
</return>
</function>
+<function name="gtk_source_gutter_renderer_draw">
+<description>
+Main renderering method. Implementations should implement this method to
+draw onto the cairo context. The @background_area indicates total area of
+the cell (without padding or margin) to be drawn. The @cell_area indicates
+the area where content can be drawn (text, images, etc).
+
+The @state argument indicates the current state of the renderer and should
+be taken into account to properly draw the different possible states
+(cursor, prelit, selected) if appropriate.
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer
+</parameter_description>
+</parameter>
+<parameter name="cr">
+<parameter_description> the cairo render context
+</parameter_description>
+</parameter>
+<parameter name="background_area">
+<parameter_description> a #GdkRectangle indicating the total area to be drawn
+</parameter_description>
+</parameter>
+<parameter name="cell_area">
+<parameter_description> a #GdkRectangle indicating the area to draw content
+</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="state">
+<parameter_description> a #GtkSourceGutterRendererState
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_source_undo_manager_default_merge_action">
<description>
This function tries to merge the undo action at the top of
@@ -5562,6 +5797,29 @@ list of #GtkSourceCompletionProvider.
</return>
</function>
+<function name="gtk_source_view_get_mark_category">
+<description>
+Get the source mark category object for @category. A
+#GtkSourceMarkCategory is automatically created for the given category
+if it does not exist yet.
+
+
+</description>
+<parameters>
+<parameter name="view">
+<parameter_description> a #GtkSourceView
+</parameter_description>
+</parameter>
+<parameter name="category">
+<parameter_description> the category
+</parameter_description>
+</parameter>
+</parameters>
+<return> the #GtkSourceMarkCategory object
+
+</return>
+</function>
+
<function name="gtk_source_view_set_smart_home_end">
<description>
Set the desired movement of the cursor when HOME and END keys
@@ -5865,7 +6123,7 @@ Since: 2.8
</description>
<parameters>
<parameter name="gutter">
-<parameter_description> a #GtkSourceGutter.
+<parameter_description> a #GtkSourceGutterRenderer.
</parameter_description>
</parameter>
<parameter name="renderer">
@@ -5904,6 +6162,23 @@ The buffer holds a reference to @language.
<return></return>
</function>
+<function name="gtk_source_gutter_renderer_pixbuf_get_pixbuf">
+<description>
+Get the pixbuf of the renderer.
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRendererPixbuf
+</parameter_description>
+</parameter>
+</parameters>
+<return> a #GdkPixbuf
+
+</return>
+</function>
+
<function name="child_starts_here">
<description>
Verifies if a context of the type in @curr_definition starts at
@@ -5942,6 +6217,51 @@ Verifies if a context of the type in @curr_definition starts at
</return>
</function>
+<function name="gtk_source_gutter_renderer_activate">
+<description>
+Emits the ::activate signal of the renderer. This is called from
+#GtkSourceGutter and should never have to be called manually.
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer
+</parameter_description>
+</parameter>
+<parameter name="iter">
+<parameter_description> a #GtkTextIter at the start of the line where the renderer is activated
+</parameter_description>
+</parameter>
+<parameter name="area">
+<parameter_description> a #GdkRectangle of the cell area where the renderer is activated
+</parameter_description>
+</parameter>
+<parameter name="event">
+<parameter_description> the event that triggered the activation
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_gutter_renderer_queue_draw">
+<description>
+Emits the ::queue-draw signal of the renderer. Call this from an
+implementation to inform that the renderer has changed such that it needs
+to redraw.
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="analyze_line">
<description>
Finds contexts at the line and updates the syntax tree on it.
@@ -5994,22 +6314,6 @@ Since: 2.2
<return></return>
</function>
-<function name="gtk_source_view_get_show_right_margin">
-<description>
-Returns whether a right margin is displayed.
-
-
-</description>
-<parameters>
-<parameter name="view">
-<parameter_description> a #GtkSourceView.
-</parameter_description>
-</parameter>
-</parameters>
-<return> %TRUE if the right margin is shown.
-</return>
-</function>
-
<function name="gtk_source_print_compositor_get_top_margin">
<description>
Gets the top margin in units of @unit.
@@ -6032,29 +6336,23 @@ Since: 2.2
</return>
</function>
-<function name="gtk_source_view_set_mark_category_icon_from_icon_name">
+<function name="gtk_source_buffer_get_style_scheme">
<description>
-Sets the icon to be used for @category to the named theme item @name.
-If @name is %NULL, the icon is unset.
+Returns the #GtkSourceStyleScheme associated with the buffer,
+see gtk_source_buffer_set_style_scheme().
+The returned object should not be unreferenced by the user.
-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="name">
-<parameter_description> the themed icon name, or %NULL.
+<parameter name="buffer">
+<parameter_description> a #GtkSourceBuffer.
</parameter_description>
</parameter>
</parameters>
-<return></return>
+<return> the #GtkSourceStyleScheme associated
+with the buffer, or %NULL.
+</return>
</function>
<function name="resolve_reference">
@@ -6081,7 +6379,32 @@ Since: 2.8
</parameter_description>
</parameter>
<parameter name="renderer">
-<parameter_description> a #GtkCellRenderer.
+<parameter_description> a #GtkSourceGutterRenderer.
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_gutter_renderer_set_alignment">
+<description>
+Set the alignment of the gutter renderer. Both @xalign and @yalign can be
+-1, which means the values will not be changed (this allows changing only
+one of the values).
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer
+</parameter_description>
+</parameter>
+<parameter name="xalign">
+<parameter_description> the x-alignment
+</parameter_description>
+</parameter>
+<parameter name="yalign">
+<parameter_description> the y-alignment
</parameter_description>
</parameter>
</parameters>
@@ -6148,6 +6471,25 @@ Since: 2.2
<return></return>
</function>
+<function name="gtk_source_gutter_renderer_set_visible">
+<description>
+Set whether the gutter renderer is visible.
+
+
+</description>
+<parameters>
+<parameter name="renderer">
+<parameter_description> a #GtkSourceGutterRenderer
+</parameter_description>
+</parameter>
+<parameter name="visible">
+<parameter_description> the visibility
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_source_completion_context_add_proposals">
<description>
Providers can use this function to add proposals to the completion. They
diff --git a/gtksourceview/src/gtksourceview_enums.defs b/gtksourceview/src/gtksourceview_enums.defs
index 4998b41..a4a90f6 100644
--- a/gtksourceview/src/gtksourceview_enums.defs
+++ b/gtksourceview/src/gtksourceview_enums.defs
@@ -58,6 +58,46 @@
)
)
+;; From gtksourcegutterrenderer.h
+
+;; Original typedef:
+;; typedef enum
+;; {
+;; GTK_SOURCE_GUTTER_RENDERER_STATE_NORMAL = 0,
+;; GTK_SOURCE_GUTTER_RENDERER_STATE_CURSOR = 1 << 0,
+;; GTK_SOURCE_GUTTER_RENDERER_STATE_PRELIT = 1 << 1,
+;; GTK_SOURCE_GUTTER_RENDERER_STATE_SELECTED = 1 << 2
+;; } GtkSourceGutterRendererState;
+
+(define-flags-extended SourceGutterRendererState
+ (in-module "Gtk")
+ (c-name "GtkSourceGutterRendererState")
+ (values
+ '("normal" "GTK_SOURCE_GUTTER_RENDERER_STATE_NORMAL" "0x0")
+ '("cursor" "GTK_SOURCE_GUTTER_RENDERER_STATE_CURSOR" "1 << 0")
+ '("prelit" "GTK_SOURCE_GUTTER_RENDERER_STATE_PRELIT" "1 << 1")
+ '("selected" "GTK_SOURCE_GUTTER_RENDERER_STATE_SELECTED" "1 << 2")
+ )
+)
+
+;; Original typedef:
+;; typedef enum
+;; {
+;; GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_CELL,
+;; GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_FIRST,
+;; GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_LAST
+;; } GtkSourceGutterRendererAlignmentMode;
+
+(define-enum-extended SourceGutterRendererAlignmentMode
+ (in-module "Gtk")
+ (c-name "GtkSourceGutterRendererAlignmentMode")
+ (values
+ '("cell" "GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_CELL" "0")
+ '("first" "GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_FIRST" "1")
+ '("last" "GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_LAST" "2")
+ )
+)
+
;; From gtksourceview.h
;; Original typedef:
diff --git a/gtksourceview/src/gtksourceview_methods.defs b/gtksourceview/src/gtksourceview_methods.defs
index c84f3e6..681ed9c 100644
--- a/gtksourceview/src/gtksourceview_methods.defs
+++ b/gtksourceview/src/gtksourceview_methods.defs
@@ -61,6 +61,27 @@
(gtype-id "GTK_TYPE_SOURCE_GUTTER")
)
+(define-object SourceGutterRenderer
+ (in-module "Gtk")
+ (parent "GInitiallyUnowned")
+ (c-name "GtkSourceGutterRenderer")
+ (gtype-id "GTK_TYPE_SOURCE_GUTTER_RENDERER")
+)
+
+(define-object SourceGutterRendererPixbuf
+ (in-module "Gtk")
+ (parent "GtkSourceGutterRenderer")
+ (c-name "GtkSourceGutterRendererPixbuf")
+ (gtype-id "GTK_TYPE_SOURCE_GUTTER_RENDERER_PIXBUF")
+)
+
+(define-object SourceGutterRendererText
+ (in-module "Gtk")
+ (parent "GtkSourceGutterRenderer")
+ (c-name "GtkSourceGutterRendererText")
+ (gtype-id "GTK_TYPE_SOURCE_GUTTER_RENDERER_TEXT")
+)
+
(define-object SourceLanguage
(in-module "Gtk")
(parent "GObject")
@@ -82,6 +103,13 @@
(gtype-id "GTK_TYPE_SOURCE_MARK")
)
+(define-object SourceMarkCategory
+ (in-module "Gtk")
+ (parent "GObject")
+ (c-name "GtkSourceMarkCategory")
+ (gtype-id "GTK_TYPE_SOURCE_MARK_CATEGORY")
+)
+
(define-object SourcePrintCompositor
(in-module "Gtk")
(parent "GObject")
@@ -151,6 +179,29 @@
)
)
+(define-flags SourceGutterRendererState
+ (in-module "Gtk")
+ (c-name "GtkSourceGutterRendererState")
+ (gtype-id "GTK_TYPE_SOURCE_GUTTER_RENDERER_STATE")
+ (values
+ '("normal" "GTK_SOURCE_GUTTER_RENDERER_STATE_NORMAL")
+ '("cursor" "GTK_SOURCE_GUTTER_RENDERER_STATE_CURSOR")
+ '("prelit" "GTK_SOURCE_GUTTER_RENDERER_STATE_PRELIT")
+ '("selected" "GTK_SOURCE_GUTTER_RENDERER_STATE_SELECTED")
+ )
+)
+
+(define-enum SourceGutterRendererAlignmentMode
+ (in-module "Gtk")
+ (c-name "GtkSourceGutterRendererAlignmentMode")
+ (gtype-id "GTK_TYPE_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE")
+ (values
+ '("cell" "GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_CELL")
+ '("first" "GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_FIRST")
+ '("last" "GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_LAST")
+ )
+)
+
(define-enum SourceViewGutterPosition
(in-module "Gtk")
(c-name "GtkSourceViewGutterPosition")
@@ -854,10 +905,34 @@
(define-method insert
(of-object "GtkSourceGutter")
(c-name "gtk_source_gutter_insert")
- (return-type "none")
+ (return-type "GtkSourceGutterRenderer*")
+ (parameters
+ '("GType" "gtype")
+ '("gint" "position")
+ )
+ (varargs #t)
+)
+
+(define-method insert_valist
+ (of-object "GtkSourceGutter")
+ (c-name "gtk_source_gutter_insert_valist")
+ (return-type "GtkSourceGutterRenderer*")
+ (parameters
+ '("GType" "gtype")
+ '("gint" "position")
+ '("va_list" "ap")
+ )
+)
+
+(define-method insertv
+ (of-object "GtkSourceGutter")
+ (c-name "gtk_source_gutter_insertv")
+ (return-type "GtkSourceGutterRenderer*")
(parameters
- '("GtkCellRenderer*" "renderer")
+ '("GType" "gtype")
'("gint" "position")
+ '("guint" "num_parameters")
+ '("GParameter*" "parameters")
)
)
@@ -866,7 +941,7 @@
(c-name "gtk_source_gutter_reorder")
(return-type "none")
(parameters
- '("GtkCellRenderer*" "renderer")
+ '("GtkSourceGutterRenderer*" "renderer")
'("gint" "position")
)
)
@@ -876,38 +951,405 @@
(c-name "gtk_source_gutter_remove")
(return-type "none")
(parameters
- '("GtkCellRenderer*" "renderer")
+ '("GtkSourceGutterRenderer*" "renderer")
)
)
-(define-method set_cell_data_func
+(define-method queue_draw
+ (of-object "GtkSourceGutter")
+ (c-name "gtk_source_gutter_queue_draw")
+ (return-type "none")
+)
+
+(define-method set_padding
(of-object "GtkSourceGutter")
- (c-name "gtk_source_gutter_set_cell_data_func")
+ (c-name "gtk_source_gutter_set_padding")
(return-type "none")
(parameters
- '("GtkCellRenderer*" "renderer")
- '("GtkSourceGutterDataFunc" "func")
- '("gpointer" "func_data")
- '("GDestroyNotify" "destroy")
+ '("gint" "xpad")
+ '("gint" "ypad")
)
)
-(define-method set_cell_size_func
+(define-method get_padding
(of-object "GtkSourceGutter")
- (c-name "gtk_source_gutter_set_cell_size_func")
+ (c-name "gtk_source_gutter_get_padding")
+ (return-type "none")
+ (parameters
+ '("gint*" "xpad")
+ '("gint*" "ypad")
+ )
+)
+
+
+
+;; From gtksourcegutterrenderer.h
+
+(define-function gtk_source_gutter_renderer_get_type
+ (c-name "gtk_source_gutter_renderer_get_type")
+ (return-type "GType")
+)
+
+(define-method begin
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_begin")
+ (return-type "none")
+ (parameters
+ '("cairo_t*" "cr")
+ '("const-GdkRectangle*" "background_area")
+ '("const-GdkRectangle*" "cell_area")
+ '("GtkTextIter*" "start")
+ '("GtkTextIter*" "end")
+ )
+)
+
+(define-method draw
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_draw")
+ (return-type "none")
+ (parameters
+ '("cairo_t*" "cr")
+ '("const-GdkRectangle*" "background_area")
+ '("const-GdkRectangle*" "cell_area")
+ '("GtkTextIter*" "start")
+ '("GtkTextIter*" "end")
+ '("GtkSourceGutterRendererState" "state")
+ )
+)
+
+(define-method end
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_end")
+ (return-type "none")
+)
+
+(define-method get_size
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_get_size")
+ (return-type "gint")
+)
+
+(define-method set_size
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_set_size")
+ (return-type "none")
+ (parameters
+ '("gint" "size")
+ )
+)
+
+(define-method set_visible
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_set_visible")
+ (return-type "none")
+ (parameters
+ '("gboolean" "visible")
+ )
+)
+
+(define-method get_visible
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_get_visible")
+ (return-type "gboolean")
+)
+
+(define-method get_padding
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_get_padding")
+ (return-type "none")
+ (parameters
+ '("gint*" "xpad")
+ '("gint*" "ypad")
+ )
+)
+
+(define-method set_padding
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_set_padding")
+ (return-type "none")
+ (parameters
+ '("gint" "xpad")
+ '("gint" "ypad")
+ )
+)
+
+(define-method get_alignment
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_get_alignment")
+ (return-type "none")
+ (parameters
+ '("gfloat*" "xalign")
+ '("gfloat*" "yalign")
+ )
+)
+
+(define-method set_alignment
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_set_alignment")
+ (return-type "none")
+ (parameters
+ '("gfloat" "xalign")
+ '("gfloat" "yalign")
+ )
+)
+
+(define-method set_alignment_mode
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_set_alignment_mode")
+ (return-type "none")
+ (parameters
+ '("GtkSourceGutterRendererAlignmentMode" "mode")
+ )
+)
+
+(define-method get_window_type
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_get_window_type")
+ (return-type "GtkTextWindowType")
+)
+
+(define-method get_view
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_get_view")
+ (return-type "GtkTextView*")
+)
+
+(define-method get_alignment_mode
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_get_alignment_mode")
+ (return-type "GtkSourceGutterRendererAlignmentMode")
+)
+
+(define-method get_background
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_get_background")
+ (return-type "gboolean")
+ (parameters
+ '("GdkColor*" "color")
+ )
+)
+
+(define-method set_background
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_set_background")
+ (return-type "none")
+ (parameters
+ '("const-GdkColor*" "color")
+ )
+)
+
+(define-method activate
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_activate")
(return-type "none")
(parameters
- '("GtkCellRenderer*" "renderer")
- '("GtkSourceGutterSizeFunc" "func")
- '("gpointer" "func_data")
- '("GDestroyNotify" "destroy")
+ '("GtkTextIter*" "iter")
+ '("const-GdkRectangle*" "area")
+ '("GdkEvent*" "event")
+ )
+)
+
+(define-method query_activatable
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_query_activatable")
+ (return-type "gboolean")
+ (parameters
+ '("GtkTextIter*" "iter")
+ '("const-GdkRectangle*" "area")
+ '("GdkEvent*" "event")
)
)
(define-method queue_draw
- (of-object "GtkSourceGutter")
- (c-name "gtk_source_gutter_queue_draw")
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_queue_draw")
+ (return-type "none")
+)
+
+(define-method query_tooltip
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_query_tooltip")
+ (return-type "gboolean")
+ (parameters
+ '("GtkTextIter*" "iter")
+ '("const-GdkRectangle*" "area")
+ '("gint" "x")
+ '("gint" "y")
+ '("GtkTooltip*" "tooltip")
+ )
+)
+
+(define-method query_data
+ (of-object "GtkSourceGutterRenderer")
+ (c-name "gtk_source_gutter_renderer_query_data")
+ (return-type "none")
+ (parameters
+ '("GtkTextIter*" "start")
+ '("GtkTextIter*" "end")
+ '("GtkSourceGutterRendererState" "state")
+ )
+)
+
+
+
+;; From gtksourcegutterrendererpixbuf.h
+
+(define-function gtk_source_gutter_renderer_pixbuf_get_type
+ (c-name "gtk_source_gutter_renderer_pixbuf_get_type")
+ (return-type "GType")
+)
+
+(define-function gtk_source_gutter_renderer_pixbuf_new
+ (c-name "gtk_source_gutter_renderer_pixbuf_new")
+ (is-constructor-of "GtkSourceGutterRendererPixbuf")
+ (return-type "GtkSourceGutterRenderer*")
+)
+
+(define-method set_pixbuf
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (c-name "gtk_source_gutter_renderer_pixbuf_set_pixbuf")
+ (return-type "none")
+ (parameters
+ '("GdkPixbuf*" "pixbuf")
+ )
+)
+
+(define-method get_pixbuf
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (c-name "gtk_source_gutter_renderer_pixbuf_get_pixbuf")
+ (return-type "GdkPixbuf*")
+)
+
+(define-method set_stock_id
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (c-name "gtk_source_gutter_renderer_pixbuf_set_stock_id")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "stock_id")
+ )
+)
+
+(define-method get_stock_id
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (c-name "gtk_source_gutter_renderer_pixbuf_get_stock_id")
+ (return-type "const-gchar*")
+)
+
+(define-method set_icon_size
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (c-name "gtk_source_gutter_renderer_pixbuf_set_icon_size")
+ (return-type "none")
+ (parameters
+ '("GtkIconSize" "size")
+ )
+)
+
+(define-method get_icon_size
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (c-name "gtk_source_gutter_renderer_pixbuf_get_icon_size")
+ (return-type "GtkIconSize")
+)
+
+(define-method set_stock_detail
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (c-name "gtk_source_gutter_renderer_pixbuf_set_stock_detail")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "stock_detail")
+ )
+)
+
+(define-method get_stock_detail
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (c-name "gtk_source_gutter_renderer_pixbuf_get_stock_detail")
+ (return-type "const-gchar*")
+)
+
+(define-method set_gicon
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (c-name "gtk_source_gutter_renderer_pixbuf_set_gicon")
+ (return-type "none")
+ (parameters
+ '("GIcon*" "icon")
+ )
+)
+
+(define-method get_gicon
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (c-name "gtk_source_gutter_renderer_pixbuf_get_gicon")
+ (return-type "GIcon*")
+)
+
+(define-method set_icon_name
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (c-name "gtk_source_gutter_renderer_pixbuf_set_icon_name")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "icon_name")
+ )
+)
+
+(define-method get_icon_name
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (c-name "gtk_source_gutter_renderer_pixbuf_get_icon_name")
+ (return-type "const-gchar*")
+)
+
+
+
+;; From gtksourcegutterrenderertext.h
+
+(define-function gtk_source_gutter_renderer_text_get_type
+ (c-name "gtk_source_gutter_renderer_text_get_type")
+ (return-type "GType")
+)
+
+(define-function gtk_source_gutter_renderer_text_new
+ (c-name "gtk_source_gutter_renderer_text_new")
+ (is-constructor-of "GtkSourceGutterRendererText")
+ (return-type "GtkSourceGutterRenderer*")
+)
+
+(define-method set_markup
+ (of-object "GtkSourceGutterRendererText")
+ (c-name "gtk_source_gutter_renderer_text_set_markup")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "markup")
+ '("gint" "length")
+ )
+)
+
+(define-method set_text
+ (of-object "GtkSourceGutterRendererText")
+ (c-name "gtk_source_gutter_renderer_text_set_text")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "text")
+ '("gint" "length")
+ )
+)
+
+(define-method measure
+ (of-object "GtkSourceGutterRendererText")
+ (c-name "gtk_source_gutter_renderer_text_measure")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "text")
+ '("gint*" "width")
+ '("gint*" "height")
+ )
+)
+
+(define-method measure_markup
+ (of-object "GtkSourceGutterRendererText")
+ (c-name "gtk_source_gutter_renderer_text_measure_markup")
(return-type "none")
+ (parameters
+ '("const-gchar*" "markup")
+ '("gint*" "width")
+ '("gint*" "height")
+ )
)
@@ -1041,6 +1483,166 @@
+;; From gtksourcemarkcategory.h
+
+(define-function gtk_source_mark_category_get_type
+ (c-name "gtk_source_mark_category_get_type")
+ (return-type "GType")
+)
+
+(define-function gtk_source_mark_category_new
+ (c-name "gtk_source_mark_category_new")
+ (is-constructor-of "GtkSourceMarkCategory")
+ (return-type "GtkSourceMarkCategory*")
+ (parameters
+ '("const-gchar*" "id")
+ )
+)
+
+(define-method get_id
+ (of-object "GtkSourceMarkCategory")
+ (c-name "gtk_source_mark_category_get_id")
+ (return-type "const-gchar*")
+)
+
+(define-method set_background
+ (of-object "GtkSourceMarkCategory")
+ (c-name "gtk_source_mark_category_set_background")
+ (return-type "none")
+ (parameters
+ '("const-GdkColor*" "background")
+ )
+)
+
+(define-method get_background
+ (of-object "GtkSourceMarkCategory")
+ (c-name "gtk_source_mark_category_get_background")
+ (return-type "gboolean")
+ (parameters
+ '("GdkColor*" "background")
+ )
+)
+
+(define-method set_priority
+ (of-object "GtkSourceMarkCategory")
+ (c-name "gtk_source_mark_category_set_priority")
+ (return-type "none")
+ (parameters
+ '("gint" "priority")
+ )
+)
+
+(define-method get_priority
+ (of-object "GtkSourceMarkCategory")
+ (c-name "gtk_source_mark_category_get_priority")
+ (return-type "gint")
+)
+
+(define-method set_stock_id
+ (of-object "GtkSourceMarkCategory")
+ (c-name "gtk_source_mark_category_set_stock_id")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "stock_id")
+ )
+)
+
+(define-method get_stock_id
+ (of-object "GtkSourceMarkCategory")
+ (c-name "gtk_source_mark_category_get_stock_id")
+ (return-type "const-gchar*")
+)
+
+(define-method set_stock_detail
+ (of-object "GtkSourceMarkCategory")
+ (c-name "gtk_source_mark_category_set_stock_detail")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "stock_detail")
+ )
+)
+
+(define-method get_stock_detail
+ (of-object "GtkSourceMarkCategory")
+ (c-name "gtk_source_mark_category_get_stock_detail")
+ (return-type "const-gchar*")
+)
+
+(define-method set_icon_name
+ (of-object "GtkSourceMarkCategory")
+ (c-name "gtk_source_mark_category_set_icon_name")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "icon_name")
+ )
+)
+
+(define-method get_stock_icon_name
+ (of-object "GtkSourceMarkCategory")
+ (c-name "gtk_source_mark_category_get_stock_icon_name")
+ (return-type "const-gchar*")
+)
+
+(define-method set_gicon
+ (of-object "GtkSourceMarkCategory")
+ (c-name "gtk_source_mark_category_set_gicon")
+ (return-type "none")
+ (parameters
+ '("GIcon*" "gicon")
+ )
+)
+
+(define-method get_gicon
+ (of-object "GtkSourceMarkCategory")
+ (c-name "gtk_source_mark_category_get_gicon")
+ (return-type "GIcon*")
+)
+
+(define-method set_pixbuf
+ (of-object "GtkSourceMarkCategory")
+ (c-name "gtk_source_mark_category_set_pixbuf")
+ (return-type "none")
+ (parameters
+ '("const-GdkPixbuf*" "pixbuf")
+ )
+)
+
+(define-method get_pixbuf
+ (of-object "GtkSourceMarkCategory")
+ (c-name "gtk_source_mark_category_get_pixbuf")
+ (return-type "const-GdkPixbuf*")
+)
+
+(define-method render_icon
+ (of-object "GtkSourceMarkCategory")
+ (c-name "gtk_source_mark_category_render_icon")
+ (return-type "const-GdkPixbuf*")
+ (parameters
+ '("GtkWidget*" "widget")
+ '("gint" "size")
+ )
+)
+
+(define-method get_tooltip_text
+ (of-object "GtkSourceMarkCategory")
+ (c-name "gtk_source_mark_category_get_tooltip_text")
+ (return-type "gchar*")
+ (parameters
+ '("GtkSourceMark*" "mark")
+ )
+)
+
+(define-method get_tooltip_markup
+ (of-object "GtkSourceMarkCategory")
+ (c-name "gtk_source_mark_category_get_tooltip_markup")
+ (return-type "gchar*")
+ (parameters
+ '("GtkSourceMark*" "mark")
+ )
+)
+
+
+
;; From gtksourcemark.h
(define-function gtk_source_mark_get_type
@@ -1762,94 +2364,10 @@
(return-type "gboolean")
)
-(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 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")
- (return-type "none")
- (parameters
- '("const-gchar*" "category")
- '("gint" "priority")
- )
-)
-
-(define-method get_mark_category_priority
+(define-method get_mark_category
(of-object "GtkSourceView")
- (c-name "gtk_source_view_get_mark_category_priority")
- (return-type "gint")
+ (c-name "gtk_source_view_get_mark_category")
+ (return-type "GtkSourceMarkCategory*")
(parameters
'("const-gchar*" "category")
)
diff --git a/gtksourceview/src/gtksourceview_signals.defs b/gtksourceview/src/gtksourceview_signals.defs
index 3b77170..f57557e 100644
--- a/gtksourceview/src/gtksourceview_signals.defs
+++ b/gtksourceview/src/gtksourceview_signals.defs
@@ -1047,46 +1047,460 @@
;; From GtkSourceGutter
-(define-signal query-tooltip
+(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)
+)
+
+(define-property xpad
+ (of-object "GtkSourceGutter")
+ (prop-type "GParamInt")
+ (docs "The x-padding")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property ypad
(of-object "GtkSourceGutter")
+ (prop-type "GParamInt")
+ (docs "The y-padding")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+;; From GtkSourceGutterRenderer
+
+(define-signal query-tooltip
+ (of-object "GtkSourceGutterRenderer")
(return-type "gboolean")
(when "last")
(parameters
- '("GtkCellRenderer*" "p0")
- '("GtkTextIter*" "p1")
- '("GtkTooltip*" "p2")
+ '("GtkTextIter*" "p0")
+ '("GdkRectangle*" "p1")
+ '("gint" "p2")
+ '("gint" "p3")
+ '("GtkTooltip*" "p4")
)
)
-(define-signal cell-activated
- (of-object "GtkSourceGutter")
+(define-signal activate
+ (of-object "GtkSourceGutterRenderer")
(return-type "void")
(when "last")
(parameters
- '("GtkCellRenderer*" "p0")
+ '("GtkTextIter*" "p0")
+ '("GdkRectangle*" "p1")
+ '("GdkEvent*" "p2")
+ )
+)
+
+(define-signal queue-draw
+ (of-object "GtkSourceGutterRenderer")
+ (return-type "void")
+ (when "last")
+)
+
+(define-signal query-data
+ (of-object "GtkSourceGutterRenderer")
+ (return-type "void")
+ (when "last")
+ (parameters
+ '("GtkTextIter*" "p0")
'("GtkTextIter*" "p1")
+ '("GtkSourceGutterRendererState" "p2")
+ )
+)
+
+(define-signal query-activatable
+ (of-object "GtkSourceGutterRenderer")
+ (return-type "gboolean")
+ (when "last")
+ (parameters
+ '("GtkTextIter*" "p0")
+ '("GdkRectangle*" "p1")
'("GdkEvent*" "p2")
)
)
+(define-property visible
+ (of-object "GtkSourceGutterRenderer")
+ (prop-type "GParamBoolean")
+ (docs "Visible")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property xpad
+ (of-object "GtkSourceGutterRenderer")
+ (prop-type "GParamInt")
+ (docs "The x-padding")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property ypad
+ (of-object "GtkSourceGutterRenderer")
+ (prop-type "GParamInt")
+ (docs "The y-padding")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property xalign
+ (of-object "GtkSourceGutterRenderer")
+ (prop-type "GParamFloat")
+ (docs "The x-alignment")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property yalign
+ (of-object "GtkSourceGutterRenderer")
+ (prop-type "GParamFloat")
+ (docs "The y-alignment")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
(define-property view
- (of-object "GtkSourceGutter")
+ (of-object "GtkSourceGutterRenderer")
(prop-type "GParamObject")
- (docs "The gutters' GtkSourceView")
+ (docs "The view")
(readable #t)
(writable #t)
(construct-only #t)
)
+(define-property alignment-mode
+ (of-object "GtkSourceGutterRenderer")
+ (prop-type "GParamEnum")
+ (docs "The alignment mode")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
(define-property window-type
- (of-object "GtkSourceGutter")
+ (of-object "GtkSourceGutterRenderer")
(prop-type "GParamEnum")
- (docs "The gutters text window type")
+ (docs "The window type")
+ (readable #t)
+ (writable #t)
+ (construct-only #t)
+)
+
+(define-property size
+ (of-object "GtkSourceGutterRenderer")
+ (prop-type "GParamInt")
+ (docs "The size")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property background-gdk
+ (of-object "GtkSourceGutterRenderer")
+ (prop-type "GParamBoxed")
+ (docs "The background color")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property background-set
+ (of-object "GtkSourceGutterRenderer")
+ (prop-type "GParamBoolean")
+ (docs "Whether the background color is set")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+;; From GtkSourceGutterRendererPixbuf
+
+(define-property visible
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (prop-type "GParamBoolean")
+ (docs "Visible")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property xpad
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (prop-type "GParamInt")
+ (docs "The x-padding")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property ypad
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (prop-type "GParamInt")
+ (docs "The y-padding")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property xalign
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (prop-type "GParamFloat")
+ (docs "The x-alignment")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property yalign
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (prop-type "GParamFloat")
+ (docs "The y-alignment")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property view
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (prop-type "GParamObject")
+ (docs "The view")
(readable #t)
(writable #t)
(construct-only #t)
)
+(define-property alignment-mode
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (prop-type "GParamEnum")
+ (docs "The alignment mode")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property window-type
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (prop-type "GParamEnum")
+ (docs "The window type")
+ (readable #t)
+ (writable #t)
+ (construct-only #t)
+)
+
+(define-property size
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (prop-type "GParamInt")
+ (docs "The size")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property background-gdk
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (prop-type "GParamBoxed")
+ (docs "The background color")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property background-set
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (prop-type "GParamBoolean")
+ (docs "Whether the background color is set")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property pixbuf
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (prop-type "GParamObject")
+ (docs "The pixbuf")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property stock-id
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (prop-type "GParamString")
+ (docs "The stock id")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property icon-name
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (prop-type "GParamString")
+ (docs "The icon name")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property gicon
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (prop-type "GParamObject")
+ (docs "The gicon")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property stock-detail
+ (of-object "GtkSourceGutterRendererPixbuf")
+ (prop-type "GParamString")
+ (docs "The stock detail")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+;; From GtkSourceGutterRendererText
+
+(define-property visible
+ (of-object "GtkSourceGutterRendererText")
+ (prop-type "GParamBoolean")
+ (docs "Visible")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property xpad
+ (of-object "GtkSourceGutterRendererText")
+ (prop-type "GParamInt")
+ (docs "The x-padding")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property ypad
+ (of-object "GtkSourceGutterRendererText")
+ (prop-type "GParamInt")
+ (docs "The y-padding")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property xalign
+ (of-object "GtkSourceGutterRendererText")
+ (prop-type "GParamFloat")
+ (docs "The x-alignment")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property yalign
+ (of-object "GtkSourceGutterRendererText")
+ (prop-type "GParamFloat")
+ (docs "The y-alignment")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property view
+ (of-object "GtkSourceGutterRendererText")
+ (prop-type "GParamObject")
+ (docs "The view")
+ (readable #t)
+ (writable #t)
+ (construct-only #t)
+)
+
+(define-property alignment-mode
+ (of-object "GtkSourceGutterRendererText")
+ (prop-type "GParamEnum")
+ (docs "The alignment mode")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property window-type
+ (of-object "GtkSourceGutterRendererText")
+ (prop-type "GParamEnum")
+ (docs "The window type")
+ (readable #t)
+ (writable #t)
+ (construct-only #t)
+)
+
+(define-property size
+ (of-object "GtkSourceGutterRendererText")
+ (prop-type "GParamInt")
+ (docs "The size")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property background-gdk
+ (of-object "GtkSourceGutterRendererText")
+ (prop-type "GParamBoxed")
+ (docs "The background color")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property background-set
+ (of-object "GtkSourceGutterRendererText")
+ (prop-type "GParamBoolean")
+ (docs "Whether the background color is set")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property markup
+ (of-object "GtkSourceGutterRendererText")
+ (prop-type "GParamString")
+ (docs "The markup")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property text
+ (of-object "GtkSourceGutterRendererText")
+ (prop-type "GParamString")
+ (docs "The text")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
;; From GtkSourceLanguage
(define-property id
@@ -1174,6 +1588,98 @@
(construct-only #t)
)
+;; From GtkSourceMarkCategory
+
+(define-signal query-tooltip-text
+ (of-object "GtkSourceMarkCategory")
+ (return-type "const-gchar*")
+ (when "last")
+ (parameters
+ '("GtkSourceMark*" "p0")
+ )
+)
+
+(define-signal query-tooltip-markup
+ (of-object "GtkSourceMarkCategory")
+ (return-type "const-gchar*")
+ (when "last")
+ (parameters
+ '("GtkSourceMark*" "p0")
+ )
+)
+
+(define-property id
+ (of-object "GtkSourceMarkCategory")
+ (prop-type "GParamString")
+ (docs "The id")
+ (readable #t)
+ (writable #t)
+ (construct-only #t)
+)
+
+(define-property background
+ (of-object "GtkSourceMarkCategory")
+ (prop-type "GParamBoxed")
+ (docs "The background")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property priority
+ (of-object "GtkSourceMarkCategory")
+ (prop-type "GParamInt")
+ (docs "The priority")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property stock-id
+ (of-object "GtkSourceMarkCategory")
+ (prop-type "GParamString")
+ (docs "The stock id")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property stock-detail
+ (of-object "GtkSourceMarkCategory")
+ (prop-type "GParamString")
+ (docs "The stock detail")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property pixbuf
+ (of-object "GtkSourceMarkCategory")
+ (prop-type "GParamObject")
+ (docs "The pixbuf")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property icon-name
+ (of-object "GtkSourceMarkCategory")
+ (prop-type "GParamString")
+ (docs "The icon name")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-property gicon
+ (of-object "GtkSourceMarkCategory")
+ (prop-type "GParamObject")
+ (docs "The GIcon")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
;; From GtkSourcePrintCompositor
(define-property buffer
diff --git a/gtksourceview/src/gtksourceview_vfuncs.defs b/gtksourceview/src/gtksourceview_vfuncs.defs
index dddf132..61e507e 100644
--- a/gtksourceview/src/gtksourceview_vfuncs.defs
+++ b/gtksourceview/src/gtksourceview_vfuncs.defs
@@ -148,3 +148,35 @@
(of-object "GtkSourceUndoManager")
(return-type "void")
)
+
+; GtkSourceGutterRenderer
+
+(define-vfunc begin
+ (of-object "GtkSourceGutterRenderer")
+ (return-type "void")
+ (parameters
+ '("cairo_t*" "cr")
+ '("const-GdkRectangle*" "background_area")
+ '("const-GdkRectangle*" "cell_area")
+ '("GtkTextIter*" "start")
+ '("GtkTextIter*" "end")
+ )
+)
+
+(define-vfunc draw
+ (of-object "GtkSourceGutterRenderer")
+ (return-type "void")
+ (parameters
+ '("cairo_t*" "cr")
+ '("const-GdkRectangle*" "background_area")
+ '("const-GdkRectangle*" "cell_area")
+ '("GtkTextIter*" "start")
+ '("GtkTextIter*" "end")
+ '("GtkSourceGutterRendererState" "state")
+ )
+)
+
+(define-vfunc end
+ (of-object "GtkSourceGutterRenderer")
+ (return-type "void")
+)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]