diff --git a/Programs/GridProxyGUI/MainWindow.Persistance.cs b/Programs/GridProxyGUI/MainWindow.Persistance.cs index e8166920..07046d75 100755 --- a/Programs/GridProxyGUI/MainWindow.Persistance.cs +++ b/Programs/GridProxyGUI/MainWindow.Persistance.cs @@ -22,13 +22,14 @@ public partial class MainWindow } s["Version"] = "1.0"; + s["Description"] = "Grid Proxy Session Archive"; s["Messages"] = array; System.Threading.ThreadPool.QueueUserWorkItem((sync) => { try { - using (var file = File.OpenWrite(SessionFileName)) + using (var file = File.Open(SessionFileName, FileMode.Create)) { using (var compressed = new GZipStream(file, CompressionMode.Compress)) { diff --git a/Programs/GridProxyGUI/MainWindow.cs b/Programs/GridProxyGUI/MainWindow.cs index 6543298c..104cf48c 100755 --- a/Programs/GridProxyGUI/MainWindow.cs +++ b/Programs/GridProxyGUI/MainWindow.cs @@ -418,13 +418,13 @@ public partial class MainWindow : Gtk.Window void messages_CursorChanged(object sender, EventArgs e) { - TreeSelection selection = (sender as TreeView).Selection; - TreeModel model; + var tv = (TreeView)sender; + var paths = tv.Selection.GetSelectedRows(); TreeIter iter; - if (selection.GetSelected(out model, out iter)) + if (paths.Length == 1 && tv.Model.GetIter(out iter, paths[0])) { - var item = model.GetValue(iter, 0) as Session; + var item = tv.Model.GetValue(iter, 0) as Session; if (item != null) { ColorizePacket(txtRequest.Buffer, item.ToPrettyString(GridProxy.Direction.Outgoing)); @@ -491,8 +491,8 @@ public partial class MainWindow : Gtk.Window if (tag == null) { tag = new TextTag("header"); - tag.ForegroundGdk = new Gdk.Color(0, 255, 0); - tag.BackgroundGdk = new Gdk.Color(176, 196, 222); + tag.ForegroundGdk = new Gdk.Color(0, 96, 0); + tag.BackgroundGdk = new Gdk.Color(206, 226, 252); buffer.TagTable.Add(tag); } @@ -569,7 +569,7 @@ public partial class MainWindow : Gtk.Window } else if (!String.IsNullOrEmpty(match.Groups["Header"].Value)) { - tag = "heder"; + tag = "header"; } else if (!String.IsNullOrEmpty(match.Groups["BlockSep"].Value)) {