gthumb r2322 - in branches/gthumb-2-10: . src
- From: mjc svn gnome org
- To: svn-commits-list gnome org
- Subject: gthumb r2322 - in branches/gthumb-2-10: . src
- Date: Thu, 24 Apr 2008 14:21:37 +0100 (BST)
Author: mjc
Date: Thu Apr 24 13:21:37 2008
New Revision: 2322
URL: http://svn.gnome.org/viewvc/gthumb?rev=2322&view=rev
Log:
Backported 2320:2321 from trunk.
Modified:
branches/gthumb-2-10/ChangeLog
branches/gthumb-2-10/NEWS
branches/gthumb-2-10/src/catalog-png-exporter.c
branches/gthumb-2-10/src/catalog-web-exporter.c
branches/gthumb-2-10/src/dlg-png-exporter.c
branches/gthumb-2-10/src/dlg-rename-series.c
branches/gthumb-2-10/src/dlg-web-exporter.c
Modified: branches/gthumb-2-10/NEWS
==============================================================================
--- branches/gthumb-2-10/NEWS (original)
+++ branches/gthumb-2-10/NEWS Thu Apr 24 13:21:37 2008
@@ -7,6 +7,7 @@
* Fixed bug #477285 - Hitting enter in Open Location Dialog while
text entry is focused does nothing
* Fixed bug #507790. Sort by DateTimeOriginal instead of DateTime.
+ * Fixed bug #512374 - array accessed past end.
version 2.10.8
--------------
Modified: branches/gthumb-2-10/src/catalog-png-exporter.c
==============================================================================
--- branches/gthumb-2-10/src/catalog-png-exporter.c (original)
+++ branches/gthumb-2-10/src/catalog-png-exporter.c Thu Apr 24 13:21:37 2008
@@ -42,7 +42,6 @@
#include "glib-utils.h"
#include "main.h"
#include "gth-sort-utils.h"
-#include "gth-exif-utils.h"
static void begin_export (CatalogPngExporter *ce);
@@ -135,7 +134,6 @@
typedef struct {
FileData *file;
char *comment;
- time_t exif_time;
GdkPixbuf *thumb;
int image_width;
int image_height;
@@ -1328,8 +1326,7 @@
data_a = IMAGE_DATA (a);
data_b = IMAGE_DATA (b);
- return gth_sort_by_filetime_then_name (data_a->exif_time, data_b->exif_time,
- data_a->file->path, data_b->file->path);
+ return gth_sort_by_exiftime_then_name (data_a->file, data_b->file);
}
@@ -1449,10 +1446,6 @@
idata->image_width = gdk_pixbuf_get_width (pixbuf);
idata->image_height = gdk_pixbuf_get_height (pixbuf);
- /* time in exif tag, if present */
-
- idata->exif_time = get_metadata_time (NULL, idata->file->path);
-
/* thumbnail. */
idata->thumb = pixbuf = image_loader_get_pixbuf (iloader);
g_object_ref (idata->thumb);
Modified: branches/gthumb-2-10/src/catalog-web-exporter.c
==============================================================================
--- branches/gthumb-2-10/src/catalog-web-exporter.c (original)
+++ branches/gthumb-2-10/src/catalog-web-exporter.c Thu Apr 24 13:21:37 2008
@@ -640,8 +640,7 @@
data_a = IMAGE_DATA (a);
data_b = IMAGE_DATA (b);
- return gth_sort_by_filetime_then_name (data_a->exif_time, data_b->exif_time,
- data_a->src_file->path, data_b->src_file->path);
+ return gth_sort_by_exiftime_then_name (data_a->src_file, data_b->src_file);
}
Modified: branches/gthumb-2-10/src/dlg-png-exporter.c
==============================================================================
--- branches/gthumb-2-10/src/dlg-png-exporter.c (original)
+++ branches/gthumb-2-10/src/dlg-png-exporter.c Thu Apr 24 13:21:37 2008
@@ -56,7 +56,7 @@
#define DEF_PAGE_HEIGHT 400
#define DEF_THUMB_SIZE 128
-static int sort_method_to_idx[] = { -1, 0, 1, 2, 3, 4, 5 };
+static int sort_method_to_idx[] = { -1, 0, 1, 2, 3, 4, 5, 6 };
static GthSortMethod idx_to_sort_method[] = { GTH_SORT_METHOD_BY_NAME,
GTH_SORT_METHOD_BY_PATH,
GTH_SORT_METHOD_BY_SIZE,
Modified: branches/gthumb-2-10/src/dlg-rename-series.c
==============================================================================
--- branches/gthumb-2-10/src/dlg-rename-series.c (original)
+++ branches/gthumb-2-10/src/dlg-rename-series.c Thu Apr 24 13:21:37 2008
@@ -46,7 +46,7 @@
RS_NUM_COLUMNS
};
-static int sort_method_to_idx[] = { -1, 0, 1, 2, 3, 4, 5 };
+static int sort_method_to_idx[] = { -1, 0, 1, 2, 3, 4, 5, 6 };
static GthSortMethod idx_to_sort_method[] = { GTH_SORT_METHOD_BY_NAME,
GTH_SORT_METHOD_BY_PATH,
GTH_SORT_METHOD_BY_SIZE,
Modified: branches/gthumb-2-10/src/dlg-web-exporter.c
==============================================================================
--- branches/gthumb-2-10/src/dlg-web-exporter.c (original)
+++ branches/gthumb-2-10/src/dlg-web-exporter.c Thu Apr 24 13:21:37 2008
@@ -47,7 +47,7 @@
#include "gth-utils.h"
#include "glib-utils.h"
-static int sort_method_to_idx[] = { -1, 0, 1, 2, 3, 4, 5 };
+static int sort_method_to_idx[] = { -1, 0, 1, 2, 3, 4, 5, 6 };
static GthSortMethod idx_to_sort_method[] = { GTH_SORT_METHOD_BY_NAME,
GTH_SORT_METHOD_BY_PATH,
GTH_SORT_METHOD_BY_SIZE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]