[gtksourceviewmm] Add background-pattern to Gsv::View



commit 3423a876d0723a73e6a83ef8c98e766ba52d098f
Author: Christoph Brill <egore911 gmail com>
Date:   Sun May 10 19:56:55 2015 +0200

    Add background-pattern to Gsv::View

 codegen/m4/convert_gtksourceview.m4 |    1 +
 gtksourceview/src/view.hg           |   26 ++++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/codegen/m4/convert_gtksourceview.m4 b/codegen/m4/convert_gtksourceview.m4
index 6dd53e3..4b7c4f8 100644
--- a/codegen/m4/convert_gtksourceview.m4
+++ b/codegen/m4/convert_gtksourceview.m4
@@ -138,6 +138,7 @@ _CONVERSION(`GtkSourceView*',`View*',`Glib::wrap($3)')
 
 _CONV_ENUM(GtkSource,SmartHomeEndType)
 _CONV_ENUM(GtkSource,DrawSpacesFlags)
+_CONV_ENUM(GtkSource,BackgroundPatternType)
 _CONV_ENUM(GtkSource,CompletionActivation)
 _CONV_ENUM(GtkSource,BracketMatchType)
 _CONV_ENUM(GtkSource,GutterRendererState)
diff --git a/gtksourceview/src/view.hg b/gtksourceview/src/view.hg
index 9891524..1bb1cf8 100644
--- a/gtksourceview/src/view.hg
+++ b/gtksourceview/src/view.hg
@@ -73,6 +73,14 @@ _WRAP_ENUM(DrawSpacesFlags, GtkSourceDrawSpacesFlags, s#^SOURCE_##)
  * Whether all kind of whitespaces should be drawn.
  */
 
+_WRAP_ENUM(BackgroundPatternType, GtkSourceBackgroundPatternType, s#^SOURCE_##)
+/** @var BackgroundPatternType BACKGROUND_PATTERN_TYPE_NONE
+ * no pattern
+ */
+/** @var BackgroundPatternType BACKGROUND_PATTERN_TYPE_GRID
+ * grid pattern
+ */
+
 /** The view object.
  *
  * View is the main object of the gtksourceviewmm library. It provides
@@ -341,6 +349,22 @@ public:
 
   _WRAP_METHOD(Glib::RefPtr<const MarkAttributes> get_mark_attributes(const Glib::ustring& category, int& 
priority) const, gtk_source_view_get_mark_attributes, constversion)
 
+  /** Set if and how the background pattern should be displayed.
+   *
+   * @param background_pattern the GtkSourceBackgroundPatternType.
+   *
+   * @newin {3,16}
+   */
+  _WRAP_METHOD(void set_background_pattern(BackgroundPatternType background_pattern), 
gtk_source_view_set_background_pattern)
+
+  /** Returns the GtkSourceBackgroundPatternType specifying if and how the background pattern should be 
displayed for this view .
+   *
+   * @return the GtkSourceBackgroundPatternType.
+   *
+   * @newin {3,16}
+   */
+  _WRAP_METHOD(BackgroundPatternType get_background_pattern(), gtk_source_view_get_background_pattern)
+
   /** Emitted when redo action is requested.
    */
   _WRAP_SIGNAL(void redo(), "redo")
@@ -406,6 +430,8 @@ public:
   _WRAP_PROPERTY("draw-spaces", DrawSpacesFlags)
 
   _WRAP_PROPERTY("completion", Glib::RefPtr<Completion>)
+
+  _WRAP_PROPERTY("background-pattern", BackgroundPatternType)
 };
 
 } /* namespace Gsv */


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