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



commit 4acbc2fdb0f4312e8b991761994429f25f79f195
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 429e8c4..3fef7db 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -6123,7 +6123,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);
     }
 }
 
@@ -6142,7 +6142,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]