
Note to other developers: you might have to do `make clean;./autogen.sh` after this commit. * Use a GtkCheese namespace to be constistent with other vapi's (such as GtkClutter). * Put each library in a separate vapi-file (this will come in handy when porting to Meson). * Clean up config.vapi: * get rid of unused CCode prefix-attribute (removes warning) * be consistent with braces
18 lines
788 B
Vala
18 lines
788 B
Vala
[CCode (cheader_filename = "libgnome-desktop/gnome-desktop-thumbnail.h")]
|
|
namespace Gnome {
|
|
public class DesktopThumbnailFactory : GLib.Object {
|
|
[CCode (has_construct_function = false)]
|
|
public DesktopThumbnailFactory (Gnome.ThumbnailSize size);
|
|
public bool can_thumbnail (string uri, string mime_type, ulong mtime);
|
|
public void create_failed_thumbnail (string uri, ulong mtime);
|
|
public unowned Gdk.Pixbuf generate_thumbnail (string uri, string mime_type);
|
|
public bool has_valid_failed_thumbnail (string uri, ulong mtime);
|
|
public unowned string lookup (string uri, ulong mtime);
|
|
public void save_thumbnail (Gdk.Pixbuf thumbnail, string uri, ulong original_mtime);
|
|
}
|
|
[CCode (cprefix = "GNOME_DESKTOP_THUMBNAIL_SIZE_")]
|
|
public enum ThumbnailSize {
|
|
NORMAL,
|
|
LARGE
|
|
}
|
|
}
|