From 2f09cc7cd6c86ece05864055eca4ddfd78c03179 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Fri, 20 Mar 2009 11:00:59 +0100 Subject: Fix crashers due to bad data parsing and bad treeview cell sorting --- src/gui.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/gui.cs') 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); } -- cgit v1.1-32-gdbae