[gthumb] Use slow mime-type detection in importer preview generation
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb] Use slow mime-type detection in importer preview generation
- Date: Sun, 14 Jun 2009 16:48:04 -0400 (EDT)
commit 78bf3d608966d72979fee6a127741b990ae72e30
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Sun Jun 14 16:47:37 2009 -0400
Use slow mime-type detection in importer preview generation
src/dlg-photo-importer.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/dlg-photo-importer.c b/src/dlg-photo-importer.c
index f3b0b12..70c6bfd 100644
--- a/src/dlg-photo-importer.c
+++ b/src/dlg-photo-importer.c
@@ -698,15 +698,16 @@ load_images_preview__init (AsyncOperationData *aodata,
static GdkPixbuf*
gfile_get_preview (DialogData *data,
GFile *gfile,
- int size,
- const char *mime_type)
+ int size)
{
GdkPixbuf *pixbuf = NULL;
GIcon *gicon;
GtkIconTheme *theme;
GFileInfo *info;
char *uri;
+ const char *mime_type;
+ mime_type = gfile_get_mime_type (gfile, FALSE);
theme = gtk_icon_theme_get_default ();
gfile_debug (DEBUG_INFO, "need preview for", gfile);
@@ -797,7 +798,7 @@ load_images_preview__step (AsyncOperationData *aodata,
g_free (data->msg_text);
data->msg_text = g_strdup_printf (_("Getting preview of '%s\' from camera."), fd->utf8_name);
- pixbuf = gfile_get_preview (data, (GFile *) aodata->scan->data, THUMB_SIZE, fd->mime_type);
+ pixbuf = gfile_get_preview (data, (GFile *) aodata->scan->data, THUMB_SIZE);
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]