[gnome-commander] Added GnomeCmdFileList::get_sort_order()



commit c1d161846cb0d51d1dccb66c7a7980369ef0fe5f
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Mon Jun 28 19:54:21 2010 +0200

    Added GnomeCmdFileList::get_sort_order()

 src/gnome-cmd-file-list.cc |    6 ++++++
 src/gnome-cmd-file-list.h  |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index bca18fa..4bc81ae 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -1635,6 +1635,12 @@ GnomeCmdFileList::ColumnID GnomeCmdFileList::get_sort_column()
 }
 
 
+gboolean GnomeCmdFileList::get_sort_order()
+{
+    return priv->sort_raising[priv->current_col];
+}
+
+
 inline void add_file_to_clist (GnomeCmdFileList *fl, GnomeCmdFile *f, gint in_row)
 {
     GtkCList *clist = *fl;
diff --git a/src/gnome-cmd-file-list.h b/src/gnome-cmd-file-list.h
index 72767cb..3da6ed9 100644
--- a/src/gnome-cmd-file-list.h
+++ b/src/gnome-cmd-file-list.h
@@ -155,6 +155,7 @@ struct GnomeCmdFileList
     void show_column(ColumnID col, gboolean value)     {  gtk_clist_set_column_visibility (*this, col, value);  }
 
     ColumnID get_sort_column();
+    gboolean get_sort_order();
     static guint get_column_default_width(ColumnID col);
 
     void invalidate_tree_size();



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