[gnome-commander] GnomeCmdData: added get_sort_col(FileSelectorID id) and get_sort_direction(FileSelectorID id) method



commit 12ed3a83faa37cc729b7828c07fa57e789c4866d
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sun Jul 18 20:25:07 2010 +0200

    GnomeCmdData: added get_sort_col(FileSelectorID id) and get_sort_direction(FileSelectorID id) methods

 src/gnome-cmd-data.cc |   12 ++++++++++++
 src/gnome-cmd-data.h  |    3 +++
 2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index afe3576..dc3e63e 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -1710,6 +1710,18 @@ void GnomeCmdData::save()
 }
 
 
+GnomeCmdFileList::ColumnID GnomeCmdData::get_sort_col(FileSelectorID id) const
+{
+    return (GnomeCmdFileList::ColumnID) priv->sort_column[id];
+}
+
+
+GtkSortType GnomeCmdData::get_sort_direction(FileSelectorID id) const
+{
+    return (GtkSortType) priv->sort_direction[id];
+}
+
+
 gpointer gnome_cmd_data_get_con_list ()
 {
     return gnome_cmd_data.priv->con_list;
diff --git a/src/gnome-cmd-data.h b/src/gnome-cmd-data.h
index d0b5360..7f40fda 100644
--- a/src/gnome-cmd-data.h
+++ b/src/gnome-cmd-data.h
@@ -252,6 +252,9 @@ struct GnomeCmdData
     gboolean hide_type(GnomeVFSFileType type)     {  return filter_settings.file_types[type];  }
     GnomeCmdConFtp *get_quick_connect()           {  return quick_connect;                     }
 
+    GnomeCmdFileList::ColumnID get_sort_col(FileSelectorID id) const;
+    GtkSortType get_sort_direction(FileSelectorID id) const;
+
     const gchar *get_viewer()                     {  return viewer;                            }
     const gchar *get_editor()                     {  return editor;                            }
     const gchar *get_differ()                     {  return differ;                            }



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