rpms/eog/devel eog-2.18.0.1-svgz.patch, NONE, 1.1 eog.spec, 1.76, 1.77 eog-2.17.4-svgz.patch, 1.1, NONE
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Sun Apr 1 14:47:12 UTC 2007
Author: mclasen
Update of /cvs/dist/rpms/eog/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv11370
Modified Files:
eog.spec
Added Files:
eog-2.18.0.1-svgz.patch
Removed Files:
eog-2.17.4-svgz.patch
Log Message:
Fix the svgz fix
eog-2.18.0.1-svgz.patch:
eog-image.c | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
--- NEW FILE eog-2.18.0.1-svgz.patch ---
--- eog-2.18.0.1/libeog/eog-image.c.svgz 2007-03-12 19:43:29.000000000 -0400
+++ eog-2.18.0.1/libeog/eog-image.c 2007-04-01 10:39:49.000000000 -0400
@@ -455,7 +455,7 @@
}
static GnomeVFSFileSize
-eog_image_determine_file_bytes (EogImage *img, GError **error)
+eog_image_determine_file_bytes (EogImage *img, gchar **mime_type, GError **error)
{
GnomeVFSFileInfo *info;
GnomeVFSFileSize bytes;
@@ -466,15 +466,20 @@
result = gnome_vfs_get_file_info_uri (img->priv->uri,
info,
GNOME_VFS_FILE_INFO_DEFAULT |
+ GNOME_VFS_FILE_INFO_GET_MIME_TYPE |
GNOME_VFS_FILE_INFO_FOLLOW_LINKS);
if ((result != GNOME_VFS_OK) || (info->valid_fields & GNOME_VFS_FILE_INFO_FIELDS_SIZE) == 0) {
bytes = 0;
+ if (mime_type)
+ *mime_type = NULL;
g_set_error (error, EOG_IMAGE_ERROR, EOG_IMAGE_ERROR_VFS,
gnome_vfs_result_to_string (result));
}
else {
bytes = info->size;
+ if (mime_type)
+ *mime_type = g_strdup (info->mime_type);
}
gnome_vfs_file_info_unref (info);
@@ -643,6 +648,7 @@
gboolean first_run = TRUE;
EogMetadataReader *md_reader = NULL;
GdkPixbufFormat *format;
+ gchar *mime_type;
gboolean read_image_data = (data2read & EOG_IMAGE_DATA_IMAGE);
g_assert (error == NULL || *error == NULL);
@@ -660,24 +666,29 @@
priv->file_type = NULL;
}
- priv->bytes = eog_image_determine_file_bytes (img, error);
+ priv->bytes = eog_image_determine_file_bytes (img, &mime_type, error);
if (priv->bytes == 0 && (error == NULL || *error != NULL)) {
+ g_free (mime_type);
return FALSE;
}
result = gnome_vfs_open_uri (&handle, priv->uri, GNOME_VFS_OPEN_READ);
if (result != GNOME_VFS_OK) {
+ g_free (mime_type);
g_set_error (error, EOG_IMAGE_ERROR, EOG_IMAGE_ERROR_VFS,
gnome_vfs_result_to_string (result));
return FALSE;
}
buffer = g_new0 (guchar, READ_BUFFER_SIZE);
+ loader = gdk_pixbuf_loader_new_with_mime_type (mime_type, NULL);
+ g_free (mime_type);
+ if (loader == NULL)
+ loader = gdk_pixbuf_loader_new ();
failed = FALSE;
bytes_read_total = 0;
if (read_image_data) {
- loader = gdk_pixbuf_loader_new ();
g_signal_connect_object (G_OBJECT (loader), "size-prepared", (GCallback) load_size_prepared, img, 0);
}
Index: eog.spec
===================================================================
RCS file: /cvs/dist/rpms/eog/devel/eog.spec,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -r1.76 -r1.77
--- eog.spec 13 Mar 2007 04:00:12 -0000 1.76
+++ eog.spec 1 Apr 2007 14:47:10 -0000 1.77
@@ -15,10 +15,10 @@
Summary: Eye of GNOME image viewer
Name: eog
Version: 2.18.0.1
-Release: 1%{?dist}
+Release: 2%{?dist}
URL: http://www.gnome.org
Source: http://ftp.gnome.org/pub/gnome/sources/eog/2.17/%{name}-%{version}.tar.bz2
-Patch0: eog-2.17.4-svgz.patch
+Patch0: eog-2.18.0.1-svgz.patch
License: GPL
Group: User Interface/Desktops
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -124,6 +124,9 @@
%{_sysconfdir}/gconf/schemas/*.schemas
%changelog
+* Sun Apr 1 2007 Matthias Clasen <mclasen at redhat.com> - 2.18.0.1-2
+- Fix a problem with the svgz patch
+
* Tue Mar 13 2007 Matthias Clasen <mclasen at redhat.com> - 2.18.0.1-1
- Update to 2.18.0.1
--- eog-2.17.4-svgz.patch DELETED ---
More information about the fedora-cvs-commits
mailing list