[gthumb] Minor refactoring
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb] Minor refactoring
- Date: Tue, 9 Jun 2009 12:32:42 -0400 (EDT)
commit 9e8757a1a539e5bfff3915c5c65cd5527a8518e7
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Tue Jun 9 12:32:23 2009 -0400
Minor refactoring
---
src/dlg-photo-importer.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/dlg-photo-importer.c b/src/dlg-photo-importer.c
index 4ad74a7..0320fdc 100644
--- a/src/dlg-photo-importer.c
+++ b/src/dlg-photo-importer.c
@@ -697,8 +697,7 @@ static GdkPixbuf*
gfile_get_preview (DialogData *data,
GFile *gfile,
int size,
- const char *mime_type,
- GnomeThumbnailFactory *factory) /* FIXME */
+ const char *mime_type)
{
GdkPixbuf *pixbuf = NULL;
GIcon *gicon;
@@ -715,7 +714,7 @@ gfile_get_preview (DialogData *data,
if (data->generate_previews) {
uri = g_file_get_uri (gfile);
- pixbuf = gnome_thumbnail_factory_generate_thumbnail (factory, uri, mime_type); /* FIXME */
+ pixbuf = gnome_thumbnail_factory_generate_thumbnail (data->factory, uri, mime_type); /* FIXME */
g_free (uri);
if (pixbuf) {
@@ -792,7 +791,7 @@ load_images_preview__step (AsyncOperationData *aodata,
fd = file_data_new_from_gfile ((GFile *) aodata->scan->data);
- pixbuf = gfile_get_preview (data, (GFile *) aodata->scan->data, THUMB_SIZE, fd->mime_type, data->factory);
+ pixbuf = gfile_get_preview (data, (GFile *) aodata->scan->data, THUMB_SIZE, fd->mime_type);
gth_image_list_append_with_data (GTH_IMAGE_LIST (data->image_list),
pixbuf,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]