[gtksourceviewmm] Updated to recent GtkSourceView.



commit 1733825ad0000edff2bdd792798e1a2679cf0980
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Thu Oct 28 23:52:30 2010 +0200

    Updated to recent GtkSourceView.
    
    * codegen/m4/convert_gtksourceview.m4: Added conversion for new
    enum.
    * configure.ac: Bumped some versions.
    * gtksourceview/src/gtksourceview_enums.defs:
    * gtksourceview/src/gtksourceview_methods.defs:
    * gtksourceview/src/gtksourceview_signals.defs: Regenerated.
    * gtksourceview/src/sourcebuffer.hg:
    * gtksourceview/src/sourceview.hg: Wrapped new stuff.

 codegen/m4/convert_gtksourceview.m4          |    1 +
 configure.ac                                 |    6 +-
 gtksourceview/src/gtksourceview_enums.defs   |   22 ++
 gtksourceview/src/gtksourceview_methods.defs |   51 +++--
 gtksourceview/src/gtksourceview_signals.defs |  345 +++++++++++++++++++++++---
 gtksourceview/src/sourcebuffer.hg            |   34 +++-
 gtksourceview/src/sourceview.hg              |   49 +++-
 7 files changed, 431 insertions(+), 77 deletions(-)
---
diff --git a/codegen/m4/convert_gtksourceview.m4 b/codegen/m4/convert_gtksourceview.m4
index e120346..541af32 100644
--- a/codegen/m4/convert_gtksourceview.m4
+++ b/codegen/m4/convert_gtksourceview.m4
@@ -161,3 +161,4 @@ _CONVERSION(`GtkSourceView*',`const SourceView*',`Glib::wrap($3)')
 _CONV_ENUM(Gtk,SourceSmartHomeEndType)
 _CONV_ENUM(Gtk,SourceDrawSpacesFlags)
 _CONV_ENUM(Gtk,SourceCompletionActivation)
+_CONV_ENUM(Gtk,SourceBracketMatchType)
diff --git a/configure.ac b/configure.ac
index 7073b9b..ca8e75d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-AC_INIT([gtksourceviewmm], [2.10.1],
+AC_INIT([gtksourceviewmm], [2.91.0],
         [http://bugzilla.gnome.org/enter_bug.cgi?product=gtksourceviewmm],
         [gtksourceviewmm], [http://projects.gnome.org/gtksourceviewmm/])
 AC_PREREQ([2.62])
@@ -24,7 +24,7 @@ AC_SUBST([GTKSOURCEVIEWMM_SO_VERSION], [0:0:0])
 LT_INIT([win32-dll disable-static])
 AC_PROG_CXX
 
-AC_SUBST([GTKSOURCEVIEWMM_MODULES], ['gtkmm-3.0 >= 2.90 gtksourceview-3.0 >= 2.9.7'])
+AC_SUBST([GTKSOURCEVIEWMM_MODULES], ['gtkmm-3.0 >= 2.91.2 gtksourceview-3.0 >= 2.91.0'])
 PKG_CHECK_MODULES([GTKSOURCEVIEWMM], [$GTKSOURCEVIEWMM_MODULES])
 
 MM_PKG_CONFIG_SUBST([GTHREAD_CFLAGS], [--cflags-only-other gthread-2.0])
@@ -37,7 +37,7 @@ MM_ARG_WITH_TAGFILE_DOC([libstdc++.tag], [mm-common-libstdc++])
 MM_ARG_WITH_TAGFILE_DOC([libsigc++-2.0.tag], [sigc++-2.0])
 MM_ARG_WITH_TAGFILE_DOC([glibmm-2.4.tag], [glibmm-2.4])
 MM_ARG_WITH_TAGFILE_DOC([pangomm-1.4.tag], [pangomm-1.4])
-MM_ARG_WITH_TAGFILE_DOC([gtkmm-2.4.tag], [gtkmm-2.4])
+MM_ARG_WITH_TAGFILE_DOC([gtkmm-3.0.tag], [gtkmm-3.0])
 
 AC_LANG([C++])
 MM_ARG_ENABLE_WARNINGS([GTKSOURCEVIEWMM_WXXFLAGS],
diff --git a/gtksourceview/src/gtksourceview_enums.defs b/gtksourceview/src/gtksourceview_enums.defs
index 174389f..d68c03b 100644
--- a/gtksourceview/src/gtksourceview_enums.defs
+++ b/gtksourceview/src/gtksourceview_enums.defs
@@ -1,3 +1,25 @@
+;; From gtksourcebuffer.h
+
+;; Original typedef:
+;; typedef enum
+;; {
+;; 	GTK_SOURCE_BRACKET_MATCH_NONE,
+;; 	GTK_SOURCE_BRACKET_MATCH_OUT_OF_RANGE,
+;; 	GTK_SOURCE_BRACKET_MATCH_NOT_FOUND,
+;; 	GTK_SOURCE_BRACKET_MATCH_FOUND
+;; } GtkSourceBracketMatchType;
+
+(define-enum-extended SourceBracketMatchType
+  (in-module "Gtk")
+  (c-name "GtkSourceBracketMatchType")
+  (values
+    '("none" "GTK_SOURCE_BRACKET_MATCH_NONE" "0")
+    '("out-of-range" "GTK_SOURCE_BRACKET_MATCH_OUT_OF_RANGE" "1")
+    '("not-found" "GTK_SOURCE_BRACKET_MATCH_NOT_FOUND" "2")
+    '("found" "GTK_SOURCE_BRACKET_MATCH_FOUND" "3")
+  )
+)
+
 ;; From gtksourcecompletioncontext.h
 
 ;; Original typedef:
diff --git a/gtksourceview/src/gtksourceview_methods.defs b/gtksourceview/src/gtksourceview_methods.defs
index 5d68167..e8dc77a 100644
--- a/gtksourceview/src/gtksourceview_methods.defs
+++ b/gtksourceview/src/gtksourceview_methods.defs
@@ -7,6 +7,13 @@
   (gtype-id "GTK_TYPE_SOURCE_BUFFER")
 )
 
+(define-object SourceCompletion
+  (in-module "Gtk")
+  (parent "GObject")
+  (c-name "GtkSourceCompletion")
+  (gtype-id "GTK_TYPE_SOURCE_COMPLETION")
+)
+
 (define-object SourceCompletionContext
   (in-module "Gtk")
   (parent "GInitiallyUnowned")
@@ -111,6 +118,18 @@
 
 ;; Enumerations and flags ...
 
+(define-enum SourceBracketMatchType
+  (in-module "Gtk")
+  (c-name "GtkSourceBracketMatchType")
+  (gtype-id "GTK_TYPE_SOURCE_BRACKET_MATCH_TYPE")
+  (values
+    '("none" "GTK_SOURCE_BRACKET_MATCH_NONE")
+    '("out-of-range" "GTK_SOURCE_BRACKET_MATCH_OUT_OF_RANGE")
+    '("not-found" "GTK_SOURCE_BRACKET_MATCH_NOT_FOUND")
+    '("found" "GTK_SOURCE_BRACKET_MATCH_FOUND")
+  )
+)
+
 (define-flags SourceCompletionActivation
   (in-module "Gtk")
   (c-name "GtkSourceCompletionActivation")
@@ -1784,16 +1803,6 @@
   (return-type "gboolean")
 )
 
-(define-method set_mark_category_pixbuf
-  (of-object "GtkSourceView")
-  (c-name "gtk_source_view_set_mark_category_pixbuf")
-  (return-type "none")
-  (parameters
-    '("const-gchar*" "category")
-    '("GdkPixbuf*" "pixbuf")
-  )
-)
-
 (define-method set_mark_category_icon_from_pixbuf
   (of-object "GtkSourceView")
   (c-name "gtk_source_view_set_mark_category_icon_from_pixbuf")
@@ -1824,15 +1833,6 @@
   )
 )
 
-(define-method get_mark_category_pixbuf
-  (of-object "GtkSourceView")
-  (c-name "gtk_source_view_get_mark_category_pixbuf")
-  (return-type "GdkPixbuf*")
-  (parameters
-    '("const-gchar*" "category")
-  )
-)
-
 (define-method set_mark_category_background
   (of-object "GtkSourceView")
   (c-name "gtk_source_view_set_mark_category_background")
@@ -1926,6 +1926,15 @@
   (return-type "GtkSourceDrawSpacesFlags")
 )
 
+(define-method get_visual_column
+  (of-object "GtkSourceView")
+  (c-name "gtk_source_view_get_visual_column")
+  (return-type "guint")
+  (parameters
+    '("const-GtkTextIter*" "iter")
+  )
+)
+
 (define-method get_completion
   (of-object "GtkSourceView")
   (c-name "gtk_source_view_get_completion")
@@ -1945,8 +1954,8 @@
 
 ;; From gtksourceview-typebuiltins.h
 
-(define-function gtk_source_search_flags_get_type
-  (c-name "gtk_source_search_flags_get_type")
+(define-function gtk_source_bracket_match_type_get_type
+  (c-name "gtk_source_bracket_match_type_get_type")
   (return-type "GType")
 )
 
diff --git a/gtksourceview/src/gtksourceview_signals.defs b/gtksourceview/src/gtksourceview_signals.defs
index ad288cb..4eb21bd 100644
--- a/gtksourceview/src/gtksourceview_signals.defs
+++ b/gtksourceview/src/gtksourceview_signals.defs
@@ -31,6 +31,16 @@
   )
 )
 
+(define-signal bracket-matched
+  (of-object "GtkSourceBuffer")
+  (return-type "void")
+  (when "last")
+  (parameters
+    '("GtkTextIter*" "p0")
+    '("GtkSourceBracketMatchType" "p1")
+  )
+)
+
 (define-property tag-table
   (of-object "GtkSourceBuffer")
   (prop-type "GParamObject")
@@ -206,15 +216,6 @@
   (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")
@@ -339,15 +340,6 @@
   (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")
@@ -549,7 +541,115 @@
 (define-property double-buffered
   (of-object "GtkSourceCompletionInfo")
   (prop-type "GParamBoolean")
-  (docs "Whether or not the widget is double buffered")
+  (docs "Whether the widget is double buffered")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property halign
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamEnum")
+  (docs "How to position in extra horizontal space")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property valign
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamEnum")
+  (docs "How to position in extra vertical space")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property margin-left
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamInt")
+  (docs "Pixels of extra space on the left side")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property margin-right
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamInt")
+  (docs "Pixels of extra space on the right side")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property margin-top
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamInt")
+  (docs "Pixels of extra space on the top side")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property margin-bottom
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamInt")
+  (docs "Pixels of extra space on the bottom side")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property margin
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamInt")
+  (docs "Pixels of extra space on all four sides")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property hexpand
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether widget wants more horizontal space")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property vexpand
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether widget wants more vertical space")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property hexpand-set
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether to use the hexpand property")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property vexpand-set
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether to use the vexpand property")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property expand
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Whether widget wants to expand in both directions")
   (readable #t)
   (writable #t)
   (construct-only #f)
@@ -609,24 +709,6 @@
   (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")
@@ -807,6 +889,33 @@
   (construct-only #f)
 )
 
+(define-property has-resize-grip
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Specifies whether the window should have a resize grip")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property resize-grip-visible
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamBoolean")
+  (docs "Specifies whether the window's resize grip is visible.")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
+(define-property application
+  (of-object "GtkSourceCompletionInfo")
+  (prop-type "GParamObject")
+  (docs "The GtkApplication for the window")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
 (define-property is-active
   (of-object "GtkSourceCompletionInfo")
   (prop-type "GParamBoolean")
@@ -1377,6 +1486,16 @@
 
 ;; From GtkSourceView
 
+(define-signal smart-home-end
+  (of-object "GtkSourceView")
+  (return-type "void")
+  (when "last")
+  (parameters
+    '("GtkTextIter*" "p0")
+    '("gint" "p1")
+  )
+)
+
 (define-signal undo
   (of-object "GtkSourceView")
   (return-type "void")
@@ -1415,10 +1534,46 @@
   )
 )
 
-(define-property user-data
+(define-signal move-words
   (of-object "GtkSourceView")
-  (prop-type "GParamPointer")
-  (docs "Anonymous User Data Pointer")
+  (return-type "void")
+  (when "last")
+  (parameters
+    '("gint" "p0")
+  )
+)
+
+(define-property hadjustment
+  (of-object "GtkSourceView")
+  (prop-type "GParamObject")
+  (docs "Horizontal adjustment that is shared between scrollable widget and it's controller")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property hscroll-policy
+  (of-object "GtkSourceView")
+  (prop-type "GParamEnum")
+  (docs "How the size of the content should be determined")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property vadjustment
+  (of-object "GtkSourceView")
+  (prop-type "GParamObject")
+  (docs "Vertical adjustment that is shared between scrollable widget and it's controller")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property vscroll-policy
+  (of-object "GtkSourceView")
+  (prop-type "GParamEnum")
+  (docs "How the size of the content should be determined")
   (readable #t)
   (writable #t)
   (construct-only #f)
@@ -1625,7 +1780,115 @@
 (define-property double-buffered
   (of-object "GtkSourceView")
   (prop-type "GParamBoolean")
-  (docs "Whether or not the widget is double buffered")
+  (docs "Whether the widget is double buffered")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property halign
+  (of-object "GtkSourceView")
+  (prop-type "GParamEnum")
+  (docs "How to position in extra horizontal space")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property valign
+  (of-object "GtkSourceView")
+  (prop-type "GParamEnum")
+  (docs "How to position in extra vertical space")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property margin-left
+  (of-object "GtkSourceView")
+  (prop-type "GParamInt")
+  (docs "Pixels of extra space on the left side")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property margin-right
+  (of-object "GtkSourceView")
+  (prop-type "GParamInt")
+  (docs "Pixels of extra space on the right side")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property margin-top
+  (of-object "GtkSourceView")
+  (prop-type "GParamInt")
+  (docs "Pixels of extra space on the top side")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property margin-bottom
+  (of-object "GtkSourceView")
+  (prop-type "GParamInt")
+  (docs "Pixels of extra space on the bottom side")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property margin
+  (of-object "GtkSourceView")
+  (prop-type "GParamInt")
+  (docs "Pixels of extra space on all four sides")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property hexpand
+  (of-object "GtkSourceView")
+  (prop-type "GParamBoolean")
+  (docs "Whether widget wants more horizontal space")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property vexpand
+  (of-object "GtkSourceView")
+  (prop-type "GParamBoolean")
+  (docs "Whether widget wants more vertical space")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property hexpand-set
+  (of-object "GtkSourceView")
+  (prop-type "GParamBoolean")
+  (docs "Whether to use the hexpand property")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property vexpand-set
+  (of-object "GtkSourceView")
+  (prop-type "GParamBoolean")
+  (docs "Whether to use the vexpand property")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property expand
+  (of-object "GtkSourceView")
+  (prop-type "GParamBoolean")
+  (docs "Whether widget wants to expand in both directions")
   (readable #t)
   (writable #t)
   (construct-only #f)
diff --git a/gtksourceview/src/sourcebuffer.hg b/gtksourceview/src/sourcebuffer.hg
index 24567aa..11592e8 100644
--- a/gtksourceview/src/sourcebuffer.hg
+++ b/gtksourceview/src/sourcebuffer.hg
@@ -27,10 +27,29 @@
 
 _DEFS(gtksourceviewmm,gtksourceview)
 _PINCLUDE(gtkmm/private/textbuffer_p.h)
+_PINCLUDE(gtksourceview/gtksourceview-typebuiltins.h)
 
 namespace gtksourceview
 {
 
+/** Describes result of matching brackets.
+ *
+ * @newin{3,0}
+ */
+_WRAP_ENUM(SourceBracketMatchType, GtkSourceBracketMatchType)
+/** @var SourceBracketMatchType SOURCE_BRACKET_MATCH_NONE
+ * There was no bracket to match.
+ */
+/** @var SourceBracketMatchType SOURCE_BRACKET_MATCH_OUT_OF_RANGE
+ * Matching a bracket failed because the maximum range was reached.
+ */
+/** @var SourceBracketMatchType SOURCE_BRACKET_MATCH_NOT_FOUND
+ * A matching bracket was not found.
+ */
+/** @var SourceBracketMatchType SOURCE_BRACKET_MATCH_FOUND
+ * A matching bracket was found.
+ */
+
 /** Buffer object for SourceView.
  *
  * The SourceBuffer class is the model for SourceView widgets. It extends the
@@ -471,7 +490,20 @@ public:
    *
    * @newin{2,10}
    */
-  _WRAP_SIGNAL(void redo(), "redo", no_default_handler)
+  _WRAP_SIGNAL(void redo(), "redo")
+
+  // TODO: iter may be sent as NULL, so here we will have segfault when no bracket is matched. - krnowak
+  // TODO: also documentation is wrong - state is a pointer, not a value. - krnowak
+  // TODO: this is filed as bug #633400. - krnowak
+  /** Sets iter to a valid iterator pointing to the matching bracket if state is SourceBracketMatchType::SOURCE_BRACKET_MATCH_FOUND.
+   *
+   * @par Handler parameters:
+   * iter Iterator to initialize.
+   * state State of bracket matching.
+   *
+   * @newin{3,0}
+   */
+  //_WRAP_SIGNAL(void bracket_matched(Gtk::TextIter& iter, SourceBracketMatchType state), "bracket-matched")
 };
 
 } /* namespace gtksourceview */
diff --git a/gtksourceview/src/sourceview.hg b/gtksourceview/src/sourceview.hg
index 2a88c37..683cf08 100644
--- a/gtksourceview/src/sourceview.hg
+++ b/gtksourceview/src/sourceview.hg
@@ -69,7 +69,7 @@ _WRAP_ENUM(SourceDrawSpacesFlags, GtkSourceDrawSpacesFlags)
  * Whether the non-breaking whitespaces should be drawn.
  */
 /** @var SourceDrawSpacesFlags SOURCE_DRAW_SPACES_ALL
- * Wheter all kind of whitespaces should be drawn.
+ * Whether all kind of whitespaces should be drawn.
  */
 
 /** The view object.
@@ -281,8 +281,6 @@ public:
    */
   _WRAP_METHOD(gint get_mark_category_priority(const Glib::ustring& category) const, gtk_source_view_get_mark_category_priority)
 
-  _IGNORE(gtk_source_view_set_mark_category_pixbuf, gtk_source_view_get_mark_category_pixbuf)
-
   /** Sets the icon to be used for @a category to @a pixbuf.
    *
    * @param category A mark category.
@@ -363,6 +361,17 @@ public:
    */
   _WRAP_METHOD(SourceDrawSpacesFlags get_draw_spaces() const, gtk_source_view_get_draw_spaces)
 
+  /** Determines the visual column at @a iter taking into consideration the indent
+   *  width of @a view.
+   *
+   * @param iter: a position in this view.
+   *
+   * @return the visual column at @a iter.
+   *
+   * @newin{3,0}
+   */
+  _WRAP_METHOD(guint get_visual_column(const Gtk::TextIter& iter) const, gtk_source_view_get_visual_column)
+
   /** Slot holding a function.
    *
    * @par Prototype:
@@ -479,10 +488,9 @@ public:
   /** Emitted when undo action is requested.
    */
   _WRAP_SIGNAL(void undo(), "undo")
-// TODO: remove no_default_handler when we will break API/ABI. krnowak
 
   /** Emitted when a line mark has been activated (for instance when there
-   * was a button press in the line marks gutter).
+   *  was a button press in the line marks gutter).
    *
    * You can use @a iter to determine on which line the activation took place.
    *
@@ -490,11 +498,28 @@ public:
    * iter A Gtk::TextIter.
    * event The GdkEvent that activated the event.
    */
-  _WRAP_SIGNAL(void line_mark_activated(Gtk::TextIter& mark, GdkEvent* event), "line-mark-activated", no_default_handler)
+  _WRAP_SIGNAL(void line_mark_activated(Gtk::TextIter& mark, GdkEvent* event), "line-mark-activated")
+
+  // TODO: there is no function pointer to "smart-home-end" signal handler in C class struct. - krnowak
+  // TODO: bug #633407. - krnowak
+  /** Emitted when a the cursor was moved according to the smart home end setting.
+   *
+   * The signal is emitted after the cursor is moved, but during the
+   * Gtk::TextView::move-cursor action. This can be used to find out whether the
+   * cursor was moved by a normal home/end or by a smart home/end.
+   *
+   * @par Handler parameters:
+   * iter A Gtk::TextIter
+   * count The count
+   *
+   * @newin{3,0}
+   */
+  _WRAP_SIGNAL(void smart_home_end(Gtk::TextIter& iter, int count), "smart-home-end", no_default_handler)
 
   // these are keybinding signals, so we ignore them.
   _IGNORE_SIGNAL(show-completion)
   _IGNORE_SIGNAL(move-lines)
+  _IGNORE_SIGNAL(move-words)
 
   _WRAP_PROPERTY("show-line-numbers", bool)
 
@@ -504,21 +529,23 @@ public:
 
   _WRAP_PROPERTY("indent-width", int)
 
-  _WRAP_PROPERTY("auto_indent", bool)
+  _WRAP_PROPERTY("auto-indent", bool)
 
-  _WRAP_PROPERTY("insert_spaces_instead_of_tabs", bool)
+  _WRAP_PROPERTY("insert-spaces-instead-of-tabs", bool)
 
   _WRAP_PROPERTY("show-right-margin", bool)
 
   _WRAP_PROPERTY("right-margin-position", guint)
 
-  _WRAP_PROPERTY("smart_home_end", SourceSmartHomeEndType)
+  _WRAP_PROPERTY("smart-home-end", SourceSmartHomeEndType)
 
-  _WRAP_PROPERTY("highlight_current_line", bool)
+  _WRAP_PROPERTY("highlight-current-line", bool)
 
-  _WRAP_PROPERTY("indent_on_tab", bool)
+  _WRAP_PROPERTY("indent-on-tab", bool)
 
   _WRAP_PROPERTY("draw-spaces", SourceDrawSpacesFlags)
+
+  _WRAP_PROPERTY("completion", Glib::RefPtr<SourceCompletion>)
 };
 
 } /* namespace gtksourceview */



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