Esempio n. 1
0
        public GtkSource.Encoding Copy()
        {
            IntPtr raw_ret = gtk_source_encoding_copy(Handle);

            GtkSource.Encoding ret = raw_ret == IntPtr.Zero ? null : (GtkSource.Encoding)GLib.Opaque.GetOpaque(raw_ret, typeof(GtkSource.Encoding), true);
            return(ret);
        }
Esempio n. 2
0
        public static GtkSource.Encoding GetFromCharset(string charset)
        {
            IntPtr native_charset = GLib.Marshaller.StringToPtrGStrdup(charset);
            IntPtr raw_ret        = gtk_source_encoding_get_from_charset(native_charset);

            GtkSource.Encoding ret = raw_ret == IntPtr.Zero ? null : (GtkSource.Encoding)GLib.Opaque.GetOpaque(raw_ret, typeof(GtkSource.Encoding), false);
            GLib.Marshaller.Free(native_charset);
            return(ret);
        }