[gtksourceviewmm] Regenerate defs.
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceviewmm] Regenerate defs.
- Date: Sun, 27 Mar 2011 14:17:04 +0000 (UTC)
commit e5ee97205043a54679827bb5aa0d72315d10ddc6
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Sun Mar 27 15:59:30 2011 +0200
Regenerate defs.
* gtksourceview/src/gtksourceview_docs.xml:
* gtksourceview/src/gtksourceview_methods.defs: Regenerated.
* gtksourceview/src/gtksourceview_others.defs: Added some methods
that disappeared from methods defs. Seems that this is another
h2def.py fault (probably with `const gchar* const *').
gtksourceview/src/gtksourceview_docs.xml | 310 ++++++++++++++++++++++++--
gtksourceview/src/gtksourceview_methods.defs | 30 ---
gtksourceview/src/gtksourceview_others.defs | 32 +++
3 files changed, 327 insertions(+), 45 deletions(-)
---
diff --git a/gtksourceview/src/gtksourceview_docs.xml b/gtksourceview/src/gtksourceview_docs.xml
index 85956c0..198f9c6 100644
--- a/gtksourceview/src/gtksourceview_docs.xml
+++ b/gtksourceview/src/gtksourceview_docs.xml
@@ -3799,23 +3799,275 @@ a %NULL-terminated array of strings or %NULL.
<return></return>
</function>
-<function name="gtk_source_mark_category_get_gicon">
+<function name="gtk_source_mark_attributes_get_background">
<description>
-Get the #GIcon associated with the mark category.
+Stores background color in @background.
</description>
<parameters>
-<parameter name="category">
-<parameter_description> a #GtkSourceMarkCategory
+<parameter name="attributes">
+<parameter_description> a #GtkSourceMarkAttributes.
+</parameter_description>
+</parameter>
+<parameter name="background">
+<parameter_description> a #GdkRGBA.
+</parameter_description>
+</parameter>
+</parameters>
+<return> whether background color for @attributes was set.
+</return>
+</function>
+
+<function name="gtk_source_mark_attributes_get_gicon">
+<description>
+Gets a #GIcon to be used as a base for rendered icon. Note that the icon can
+be %NULL if it wasn't set earlier.
+
+
+</description>
+<parameters>
+<parameter name="attributes">
+<parameter_description> a #GtkSourceMarkAttributes.
+</parameter_description>
+</parameter>
+</parameters>
+<return> An icon. The icon belongs to @attributes and should
+not be unreffed.
+</return>
+</function>
+
+<function name="gtk_source_mark_attributes_get_icon_name">
+<description>
+Gets a name of an icon to be used as a base for rendered icon. Note that the
+icon name can be %NULL if it wasn't set earlier.
+
+
+</description>
+<parameters>
+<parameter name="attributes">
+<parameter_description> a #GtkSourceMarkAttributes.
+</parameter_description>
+</parameter>
+</parameters>
+<return> An icon name. The string belongs to @attributes and
+should not be freed.
+</return>
+</function>
+
+<function name="gtk_source_mark_attributes_get_pixbuf">
+<description>
+Gets a #GdkPixbuf to be used as a base for rendered icon. Note that the
+pixbuf can be %NULL if it wasn't set earlier.
+
+
+</description>
+<parameters>
+<parameter name="attributes">
+<parameter_description> a #GtkSourceMarkAttributes.
+</parameter_description>
+</parameter>
+</parameters>
+<return> A pixbuf. The pixbuf belongs to @attributes and
+should not be unreffed.
+</return>
+</function>
+
+<function name="gtk_source_mark_attributes_get_stock_id">
+<description>
+Gets a stock id of an icon used by this attributes. Note that the stock id can
+be %NULL if it wasn't set earlier.
+
+
+</description>
+<parameters>
+<parameter name="attributes">
+<parameter_description> a #GtkSourceMarkAttributes.
</parameter_description>
</parameter>
</parameters>
-<return> A #GIcon
+<return> Stock id. Returned string is owned by @attributes and
+shouldn't be freed.
+</return>
+</function>
+
+<function name="gtk_source_mark_attributes_get_tooltip_markup">
+<description>
+Queries for a tooltip by emitting
+a GtkSourceMarkAttributes::query-tooltip-markup signal. The tooltip may contain
+a markup.
+
+
+</description>
+<parameters>
+<parameter name="attributes">
+<parameter_description> a #GtkSourceMarkAttributes.
+</parameter_description>
+</parameter>
+<parameter name="mark">
+<parameter_description> a #GtkSourceMark.
+</parameter_description>
+</parameter>
+</parameters>
+<return> A tooltip. The returned string should be freed by
+using g_free() when done with it.
+</return>
+</function>
+
+<function name="gtk_source_mark_attributes_get_tooltip_text">
+<description>
+Queries for a tooltip by emitting
+a GtkSourceMarkAttributes::query-tooltip-text signal. The tooltip is a plain
+text.
+
+</description>
+<parameters>
+<parameter name="attributes">
+<parameter_description> a #GtkSourceMarkAttributes.
+</parameter_description>
+</parameter>
+<parameter name="mark">
+<parameter_description> a #GtkSourceMark.
+</parameter_description>
+</parameter>
+</parameters>
+<return> A tooltip. The returned string should be freed by
+using g_free() when done with it.
+</return>
+</function>
+
+<function name="gtk_source_mark_attributes_new">
+<description>
+Creates a new source mark attributes.
+
+
+</description>
+<parameters>
+</parameters>
+<return> a new source mark attributes.
+</return>
+</function>
+
+<function name="gtk_source_mark_attributes_render_icon">
+<description>
+Renders an icon of given size. The base of the icon is set by the last call
+to one of: gtk_source_mark_attributes_set_pixbuf(),
+gtk_source_mark_attributes_set_gicon(),
+gtk_source_mark_attributes_set_icon_name() or
+gtk_source_mark_attributes_set_stock_id(). @size cannot be lower than 1.
+
+
+</description>
+<parameters>
+<parameter name="attributes">
+<parameter_description> a #GtkSourceMarkAttributes.
+</parameter_description>
+</parameter>
+<parameter name="widget">
+<parameter_description> widget of which style settings may be used.
+</parameter_description>
+</parameter>
+<parameter name="size">
+<parameter_description> size of the rendered icon.
+</parameter_description>
+</parameter>
+</parameters>
+<return> A rendered pixbuf. The pixbuf belongs to @attributes
+and should not be unreffed.
</return>
</function>
+<function name="gtk_source_mark_attributes_set_background">
+<description>
+Sets background color to the one given in @background.
+
+</description>
+<parameters>
+<parameter name="attributes">
+<parameter_description> a #GtkSourceMarkAttributes.
+</parameter_description>
+</parameter>
+<parameter name="background">
+<parameter_description> a #GdkRGBA.
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_mark_attributes_set_gicon">
+<description>
+Sets an icon to be used as a base for rendered icon.
+
+</description>
+<parameters>
+<parameter name="attributes">
+<parameter_description> a #GtkSourceMarkAttributes.
+</parameter_description>
+</parameter>
+<parameter name="gicon">
+<parameter_description> a #GIcon to be used.
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_mark_attributes_set_icon_name">
+<description>
+Sets a name of an icon to be used as a base for rendered icon.
+
+</description>
+<parameters>
+<parameter name="attributes">
+<parameter_description> a #GtkSourceMarkAttributes.
+</parameter_description>
+</parameter>
+<parameter name="icon_name">
+<parameter_description> name of an icon to be used.
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_mark_attributes_set_pixbuf">
+<description>
+Sets a pixbuf to be used as a base for rendered icon.
+
+</description>
+<parameters>
+<parameter name="attributes">
+<parameter_description> a #GtkSourceMarkAttributes.
+</parameter_description>
+</parameter>
+<parameter name="pixbuf">
+<parameter_description> a #GdkPixbuf to be used.
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="gtk_source_mark_attributes_set_stock_id">
+<description>
+Sets stock id to be used as a base for rendered icon.
+
+</description>
+<parameters>
+<parameter name="attributes">
+<parameter_description> a #GtkSourceMarkAttributes.
+</parameter_description>
+</parameter>
+<parameter name="stock_id">
+<parameter_description> a stock id.
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_source_mark_get_category">
<description>
Returns the mark category.
@@ -5506,26 +5758,28 @@ be replaced by a group of space characters.
</return>
</function>
-<function name="gtk_source_view_get_mark_category">
+<function name="gtk_source_view_get_mark_attributes">
<description>
-Get the source mark category object for @category. A
-#GtkSourceMarkCategory is automatically created for the given category
-if it does not exist yet.
+Gets attributes and priority for the @category.
</description>
<parameters>
<parameter name="view">
-<parameter_description> a #GtkSourceView
+<parameter_description> a #GtkSourceView.
</parameter_description>
</parameter>
<parameter name="category">
-<parameter_description> the category
+<parameter_description> the category.
+</parameter_description>
+</parameter>
+<parameter name="priority">
+<parameter_description> place where priority of the category will be stored.
</parameter_description>
</parameter>
</parameters>
-<return> the #GtkSourceMarkCategory object
-
+<return> #GtkSourceMarkAttributes for the @category.
+The object belongs to @view, so it must not be unreffed.
</return>
</function>
@@ -5720,7 +5974,7 @@ be displayed
<function name="gtk_source_view_set_highlight_current_line">
<description>
-If @show is %TRUE the current line is highlighted.
+If @hl is %TRUE the current line is highlighted.
</description>
<parameters>
@@ -5728,7 +5982,7 @@ If @show is %TRUE the current line is highlighted.
<parameter_description> a #GtkSourceView.
</parameter_description>
</parameter>
-<parameter name="show">
+<parameter name="hl">
<parameter_description> whether to highlight the current line.
</parameter_description>
</parameter>
@@ -5797,6 +6051,32 @@ of space characters.
<return></return>
</function>
+<function name="gtk_source_view_set_mark_attributes">
+<description>
+Sets attributes and priority for the @category.
+
+</description>
+<parameters>
+<parameter name="view">
+<parameter_description> a #GtkSourceView.
+</parameter_description>
+</parameter>
+<parameter name="category">
+<parameter_description> the category.
+</parameter_description>
+</parameter>
+<parameter name="attributes">
+<parameter_description> mark attributes.
+</parameter_description>
+</parameter>
+<parameter name="priority">
+<parameter_description> priority of the category.
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="gtk_source_view_set_right_margin_position">
<description>
Sets the position of the right margin in the given @view.
diff --git a/gtksourceview/src/gtksourceview_methods.defs b/gtksourceview/src/gtksourceview_methods.defs
index 932ddf6..0a3c962 100644
--- a/gtksourceview/src/gtksourceview_methods.defs
+++ b/gtksourceview/src/gtksourceview_methods.defs
@@ -1369,12 +1369,6 @@
(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")
@@ -1384,12 +1378,6 @@
)
)
-(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")
@@ -1928,12 +1916,6 @@
(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")
@@ -1996,24 +1978,12 @@
)
)
-(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")
diff --git a/gtksourceview/src/gtksourceview_others.defs b/gtksourceview/src/gtksourceview_others.defs
index bb917a8..9867fcc 100644
--- a/gtksourceview/src/gtksourceview_others.defs
+++ b/gtksourceview/src/gtksourceview_others.defs
@@ -7,3 +7,35 @@
(c-name "gtk_source_completion_get_view")
(return-type "GtkSourceView*")
)
+
+;; h2def.py seems to choke on `const gchar * const *' or something...
+
+(define-method get_search_path
+ (of-object "GtkSourceLanguageManager")
+ (c-name "gtk_source_language_manager_get_search_path")
+ (return-type "const-gchar**")
+)
+
+(define-method get_language_ids
+ (of-object "GtkSourceLanguageManager")
+ (c-name "gtk_source_language_manager_get_language_ids")
+ (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_search_path
+ (of-object "GtkSourceStyleSchemeManager")
+ (c-name "gtk_source_style_scheme_manager_get_search_path")
+ (return-type "const-gchar**")
+)
+
+(define-method get_scheme_ids
+ (of-object "GtkSourceStyleSchemeManager")
+ (c-name "gtk_source_style_scheme_manager_get_scheme_ids")
+ (return-type "const-gchar**")
+)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]