[gtk+] bgo#608537 - Make the file chooser's sort arrows consistent with the HIG



commit 2f990d472634b36935612014ea9b0c1a99efa6c3
Author: Federico Mena Quintero <federico novell com>
Date:   Tue Jun 8 12:09:48 2010 -0500

    bgo#608537 - Make the file chooser's sort arrows consistent with the HIG
    
    ... Although I think the HIG gets things backwards anyway.
    
    Signed-off-by: Federico Mena Quintero <federico novell com>

 gtk/gtkfilechooserdefault.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index 114e371..7f1f31c 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -6119,7 +6119,7 @@ size_sort_func (GtkTreeModel *model,
       size_a = g_value_get_int64 (_gtk_file_system_model_get_value (fs_model, a, MODEL_COL_SIZE));
       size_b = g_value_get_int64 (_gtk_file_system_model_get_value (fs_model, b, MODEL_COL_SIZE));
 
-      return size_a > size_b ? -1 : (size_a == size_b ? 0 : 1);
+      return size_a < size_b ? -1 : (size_a == size_b ? 0 : 1);
     }
 }
 
@@ -6138,7 +6138,7 @@ mtime_sort_func (GtkTreeModel *model,
       ta = g_value_get_long (_gtk_file_system_model_get_value (fs_model, a, MODEL_COL_MTIME));
       tb = g_value_get_long (_gtk_file_system_model_get_value (fs_model, b, MODEL_COL_MTIME));
 
-      return ta > tb ? -1 : (ta == tb ? 0 : 1);
+      return ta < tb ? -1 : (ta == tb ? 0 : 1);
     }
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]