[gthumb] added a "generate-thumbnail" hook
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] added a "generate-thumbnail" hook
- Date: Fri, 26 Mar 2010 16:52:01 +0000 (UTC)
commit 76bfb1a799fd7cdec7376023826bb9df38e76408
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Mar 26 16:29:02 2010 +0100
added a "generate-thumbnail" hook
allow to personalize the thumbnail creation process with a
"generate-thumbnail" hook.
gthumb/gth-main-default-hooks.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-main-default-hooks.c b/gthumb/gth-main-default-hooks.c
index 46bf49c..2456236 100644
--- a/gthumb/gth-main-default-hooks.c
+++ b/gthumb/gth-main-default-hooks.c
@@ -197,6 +197,16 @@ gth_main_register_default_hooks (void)
gth_hook_register ("read-metadata-ready", 2);
/**
+ * Called to generate a thumbnail pixbuf for a file
+ *
+ * @uri (char *): the file uri
+ * @mime_type (char *): the file mime type
+ * @size (int): the requested thumbnail size
+ * @return (GdkPixbuf *): the thumbnail pixbuf
+ */
+ gth_hook_register ("generate-thumbnail", 3);
+
+ /**
* Called when creating the preferences dialog to add other tabs to
* the dialog.
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]