[gthumb/ext] renamed FileLoader as PixbufLoader to make things clearer
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb/ext] renamed FileLoader as PixbufLoader to make things clearer
- Date: Fri, 4 Dec 2009 20:26:13 +0000 (UTC)
commit 0ba20f2a7b4ba3dd6f4b4043b4905092f82a8869
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Dec 4 17:20:25 2009 +0100
renamed FileLoader as PixbufLoader to make things clearer
gthumb/gth-image-loader.c | 4 ++--
gthumb/gth-main-default-types.c | 2 +-
gthumb/gth-main.c | 12 ++++++------
gthumb/gth-main.h | 12 ++++++------
gthumb/gth-thumb-loader.c | 4 ++--
5 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/gthumb/gth-image-loader.c b/gthumb/gth-image-loader.c
index 5e33cc3..8022f13 100644
--- a/gthumb/gth-image-loader.c
+++ b/gthumb/gth-image-loader.c
@@ -227,9 +227,9 @@ load_image_thread (void *thread_data)
animation = (*iloader->priv->loader) (file, &error, iloader->priv->loader_data);
}
else {
- FileLoader loader;
+ PixbufLoader loader;
- loader = gth_main_get_file_loader (gth_file_data_get_mime_type (file));
+ loader = gth_main_get_pixbuf_loader (gth_file_data_get_mime_type (file));
if (loader != NULL)
animation = loader (file, &error, -1, -1);
else
diff --git a/gthumb/gth-main-default-types.c b/gthumb/gth-main-default-types.c
index 9cc7609..8024503 100644
--- a/gthumb/gth-main-default-types.c
+++ b/gthumb/gth-main-default-types.c
@@ -45,7 +45,7 @@ gth_main_register_default_file_loader (void)
mime_types = gdk_pixbuf_format_get_mime_types (format);
for (i = 0; mime_types[i] != NULL; i++)
- gth_main_register_file_loader (gth_pixbuf_animation_new_from_file, mime_types[i], NULL);
+ gth_main_register_pixbuf_loader (gth_pixbuf_animation_new_from_file, mime_types[i], NULL);
}
}
diff --git a/gthumb/gth-main.c b/gthumb/gth-main.c
index 385d577..9f0d1c7 100644
--- a/gthumb/gth-main.c
+++ b/gthumb/gth-main.c
@@ -683,9 +683,9 @@ _gth_main_create_type_spec (GType object_type,
void
-gth_main_register_file_loader (FileLoader loader,
- const char *first_mime_type,
- ...)
+gth_main_register_pixbuf_loader (PixbufLoader loader,
+ const char *first_mime_type,
+ ...)
{
va_list var_args;
const char *mime_type;
@@ -704,11 +704,11 @@ gth_main_register_file_loader (FileLoader loader,
}
-FileLoader
-gth_main_get_file_loader (const char *mime_type)
+PixbufLoader
+gth_main_get_pixbuf_loader (const char *mime_type)
{
if (mime_type != NULL)
- return (FileLoader) g_hash_table_lookup (Main->priv->loaders, mime_type);
+ return (PixbufLoader) g_hash_table_lookup (Main->priv->loaders, mime_type);
else
return NULL;
}
diff --git a/gthumb/gth-main.h b/gthumb/gth-main.h
index 941030f..af6e158 100644
--- a/gthumb/gth-main.h
+++ b/gthumb/gth-main.h
@@ -50,10 +50,10 @@ typedef struct _GthMain GthMain;
typedef struct _GthMainPrivate GthMainPrivate;
typedef struct _GthMainClass GthMainClass;
-typedef GdkPixbufAnimation* (*FileLoader) (GthFileData *file_data,
- GError **error,
- int requested_width,
- int requested_height);
+typedef GdkPixbufAnimation* (*PixbufLoader) (GthFileData *file_data,
+ GError **error,
+ int requested_width,
+ int requested_height);
struct _GthMain {
GObject __parent;
@@ -87,10 +87,10 @@ GPtrArray * gth_main_get_all_metadata_info (void);
void gth_main_register_sort_type (GthFileDataSort *sort_type);
GthFileDataSort * gth_main_get_sort_type (const char *name);
GList * gth_main_get_all_sort_types (void);
-void gth_main_register_file_loader (FileLoader loader,
+void gth_main_register_pixbuf_loader (PixbufLoader loader,
const char *first_mime_type,
...);
-FileLoader gth_main_get_file_loader (const char *mime_type);
+PixbufLoader gth_main_get_pixbuf_loader (const char *mime_type);
GthPixbufSaver * gth_main_get_pixbuf_saver (const char *mime_type);
GthTest * gth_main_get_general_filter (void);
GthTest * gth_main_add_general_filter (GthTest *filter);
diff --git a/gthumb/gth-thumb-loader.c b/gthumb/gth-thumb-loader.c
index d2d63fb..ca9b6ac 100644
--- a/gthumb/gth-thumb-loader.c
+++ b/gthumb/gth-thumb-loader.c
@@ -498,9 +498,9 @@ thumb_loader (GthFileData *file,
/* try with a custom thumbnailer first */
if (! tloader->priv->from_cache) {
- FileLoader thumbnailer;
+ PixbufLoader thumbnailer;
- thumbnailer = gth_main_get_file_loader (gth_file_data_get_mime_type (file));
+ thumbnailer = gth_main_get_pixbuf_loader (gth_file_data_get_mime_type (file));
if (thumbnailer != NULL)
animation = thumbnailer (file, error, tloader->priv->cache_max_w, tloader->priv->cache_max_h);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]