[Vala] [PATCH] Wrap functions for escaping markup strings.



---
 trunk/vala/vapi/glib-2.0.vala |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/trunk/vala/vapi/glib-2.0.vala b/trunk/vala/vapi/glib-2.0.vala
index 11f6373..023ac7d 100644
--- a/trunk/vala/vapi/glib-2.0.vala
+++ b/trunk/vala/vapi/glib-2.0.vala
@@ -178,8 +178,7 @@ public struct string {
        public bool has_prefix (string! prefix);
        [CCode (cname = "g_str_has_suffix")]
        public bool has_suffix (string! suffix);
-       [CCode (cname = "g_strdup_printf")]
-       [PrintfFormat ()]
+       [CCode (cname = "g_strdup_printf"), PrintfFormat]
        public ref string printf (...);
        [CCode (cname = "g_strconcat")]
        public ref string concat (string string2, ...);
@@ -983,6 +982,13 @@ namespace GLib {
                public MarkupParserPassthroughFunc passthrough;
                public MarkupParserErrorFunc error;
        }
+
+       public struct Markup {
+               [CCode (cname = "g_markup_escape_text")]
+               public static string escape (string text, int len = -1);
+               [CCode (cname = "g_markup_printf_escaped"), PrintfFormat]
+               public ref string printf (...);
+       }
        
        /* Key-value file parser */
        
-- 
1.4.4.2




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