[gthumb/ext] update the sort order only if required
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb/ext] update the sort order only if required
- Date: Sat, 29 Aug 2009 09:12:39 +0000 (UTC)
commit 122c5ca4232e065fc52af23f2bdc1ce40396f90a
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Aug 29 11:09:38 2009 +0200
update the sort order only if required
gthumb/gth-file-store.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-file-store.c b/gthumb/gth-file-store.c
index 753ad6b..242e817 100644
--- a/gthumb/gth-file-store.c
+++ b/gthumb/gth-file-store.c
@@ -1101,6 +1101,9 @@ gth_file_store_set_sort_func (GthFileStore *file_store,
GthFileDataCompFunc cmp_func,
gboolean inverse_sort)
{
+ if ((cmp_func != file_store->priv->cmp_func) || (inverse_sort != file_store->priv->inverse_sort))
+ return;
+
file_store->priv->cmp_func = cmp_func;
file_store->priv->inverse_sort = inverse_sort;
_gth_file_store_reorder (file_store);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]