[tomboy] Explicitly set About and Preferences dialogs to display in the center of the screen.



commit 3e423f7c4d0632063fde15cd24fe6c6adad6ef26
Author: Valdar Moridin <valdarmoridin gmail com>
Date:   Tue May 21 23:46:36 2013 +1200

    Explicitly set About and Preferences dialogs to display in the center of the screen.
    
    Signed-off-by: Jared Jennings <jared jaredjennings org>

 Tomboy/PreferencesDialog.cs |    1 +
 Tomboy/Tomboy.cs            |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/Tomboy/PreferencesDialog.cs b/Tomboy/PreferencesDialog.cs
index 6a5c812..5e6a489 100644
--- a/Tomboy/PreferencesDialog.cs
+++ b/Tomboy/PreferencesDialog.cs
@@ -61,6 +61,7 @@ namespace Tomboy
                        BorderWidth = 5;
                        Resizable = true;
                        Title = Catalog.GetString ("Tomboy Preferences");
+                       WindowPosition = WindowPosition.Center;
                        
                        addin_prefs_dialogs = new Dictionary<string, Gtk.Dialog> ();
                        addin_info_dialogs = new Dictionary<string, Gtk.Dialog> ();
diff --git a/Tomboy/Tomboy.cs b/Tomboy/Tomboy.cs
index de47020..88f57b9 100644
--- a/Tomboy/Tomboy.cs
+++ b/Tomboy/Tomboy.cs
@@ -428,6 +428,8 @@ namespace Tomboy
                                                   "Copyright \xa9 2004-2011 Others\n");
                        about.Comments = Catalog.GetString ("A simple and easy to use desktop " +
                                                            "note-taking application.");
+                       about.WindowPosition = Gtk.WindowPosition.Center;
+
                        Gtk.AboutDialog.SetUrlHook (delegate (Gtk.AboutDialog dialog, string link) {
                                try {
                                        Services.NativeApplication.OpenUrl (link, null);


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