summaryrefslogtreecommitdiffstats
path: root/src/gui.cs
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-03-20 11:00:59 +0100
committerGravatar Martin Szulecki2009-03-20 11:00:59 +0100
commit2f09cc7cd6c86ece05864055eca4ddfd78c03179 (patch)
tree0f313ff11a4cbc7b0161c643bd6dc13b45ff3bea /src/gui.cs
parent4e57bfa0652a3c4eb42c79ddbe7a1d00b4aea79c (diff)
downloadgfax-master.tar.gz
gfax-master.tar.bz2
Fix crashers due to bad data parsing and bad treeview cell sortingHEADmaster
Diffstat (limited to 'src/gui.cs')
-rwxr-xr-xsrc/gui.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gui.cs b/src/gui.cs
index 5a4f64a..e780c4f 100755
--- a/src/gui.cs
+++ b/src/gui.cs
@@ -225,6 +225,9 @@ Please login as the root user and create the "
typeof (string),
typeof (DateTime),
typeof (string));
+
+ // Default to sorting by job id
+ StatusStore.SetSortColumnId(1, SortType.Descending);
RecvStore = new ListStore(
typeof (Gdk.Pixbuf),
@@ -234,6 +237,9 @@ Please login as the root user and create the "
typeof (DateTime),
typeof (string));
+ // Default to sorting by arrival date
+ RecvStore.SetSortColumnId(4, SortType.Descending);
+
lv = new G_ListView(StatusList, StatusStore);
lv.AddColumnIcon(Gtk.Stock.Info, 0);
@@ -263,7 +269,7 @@ Please login as the root user and create the "
jobsReceivedView.AddColumnTitle(Catalog.GetString("Sender"), 1, 1);
jobsReceivedView.AddColumnTitle(Catalog.GetString("Status"), 2, 2);
jobsReceivedView.AddColumnTitle(Catalog.GetString("Pages "), 3, 3);
- jobsReceivedView.AddColumnDateTime(Catalog.GetString("Arrived"), "d", 4, 4);
+ jobsReceivedView.AddColumnDateTime(Catalog.GetString("Arrived"), "G", 4, 4);
jobsReceivedView.AddColumnTitle(Catalog.GetString("Filename"), 5, 5);
StatusList.Selection.Changed +=
@@ -1021,7 +1027,7 @@ Please check your settings or contact your system Administrator"));
}
} else { //receive queue
while ( enu.MoveNext() ) {
- rq = (Fax.FaxRecQueue)enu.Current;
+ rq = (Fax.FaxRecQueue)enu.Current;
view.AddTextToRow(GetFaxStatusIcon(rq.StatusType), rq.Sender, rq.Status, rq.Pages, rq.TimeReceived, rq.Filename);
}