[gtksourceviewmm] Add get_style_fallback to Gsv::Language



commit 8f179b55e9310829b0558cb6d890d9cb0662567a
Author: Christoph Brill <egore911 gmail com>
Date:   Sun May 10 20:15:34 2015 +0200

    Add get_style_fallback to Gsv::Language

 gtksourceview/src/language.hg |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/src/language.hg b/gtksourceview/src/language.hg
index 038d7e1..912a12f 100644
--- a/gtksourceview/src/language.hg
+++ b/gtksourceview/src/language.hg
@@ -114,6 +114,16 @@ public:
    */
   _WRAP_METHOD(Glib::ustring get_style_name(const Glib::ustring& style_id) const, 
gtk_source_language_get_style_name)
 
+  /** Returns the ID of the style to use if the specified @a style_id is not present in the current style 
scheme.
+   *
+   * @param style_id a style ID.
+   *
+   * @return the ID of the style to use if the specified @a style_id is not present in the current style 
scheme or NULL
+   *         if the style has no fallback defined. The returned string is owned by the language and must not 
be modified.
+   * @newin {3,4}
+   */
+  _WRAP_METHOD(Glib::ustring get_style_fallback(const Glib::ustring& style_id) const, 
gtk_source_language_get_style_fallback)
+
   /** Returns metadata of a language.
    *
    * @param name Metadata property name.


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