Ejemplo n.º 1
0
 public ThumbnailFactory(Gnome.ThumbnailSize size) : base(IntPtr.Zero)
 {
     if (GetType() != typeof(ThumbnailFactory))
     {
         throw new InvalidOperationException("Can't override this constructor.");
     }
     Raw = gnome_thumbnail_factory_new((int)size);
 }
Ejemplo n.º 2
0
        public static string PathForUri(string uri, Gnome.ThumbnailSize size)
        {
            IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup(uri);
            IntPtr raw_ret    = gnome_thumbnail_path_for_uri(native_uri, (int)size);
            string ret        = GLib.Marshaller.PtrToStringGFree(raw_ret);

            GLib.Marshaller.Free(native_uri);
            return(ret);
        }