[pdfmod] Window title marks filename with '*' for unsaved files.



commit 3f1a6e1d1fee955b479aa0ce1778f2e6e1a1135c
Author: Robert Dyer <psybers gmail com>
Date:   Wed Sep 9 21:56:14 2009 -0500

    Window title marks filename with '*' for unsaved files.
    
    Signed-off-by: Gabriel Burt <gabriel burt gmail com>

 src/PdfMod/Gui/Client.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/PdfMod/Gui/Client.cs b/src/PdfMod/Gui/Client.cs
index ca32c75..9fa8a96 100644
--- a/src/PdfMod/Gui/Client.cs
+++ b/src/PdfMod/Gui/Client.cs
@@ -319,7 +319,10 @@ namespace PdfMod.Gui
 
             var title = Document.Title;
             var filename = Document.Filename;
-            Window.Title = title == null ? filename : String.Format ("{0} ({1})", title, filename);
+            if (Document.HasUnsavedChanged) {
+                filename = "*" + filename;
+            }
+            Window.Title = title == null ? filename : String.Format ("{0} - {1}", filename, title);
         }
 
         public void PasswordProvider (PdfPasswordProviderArgs args)



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