diff options
author | Lluis Sanchez Gual <lluis@novell.com> | 2011-02-14 21:18:33 +0300 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@novell.com> | 2011-02-14 21:18:33 +0300 |
commit | 65716fa18db8a1fabe067bedf7e16902fb0da818 (patch) | |
tree | 90aef62a3ba5ecf7ef12d5fa003168c7d5fd8ee2 /Mono.Addins.Gui | |
parent | e706d022f09952d7421d457e63b0301e793657e1 (diff) |
Set parent of NewSiteDialog.
Diffstat (limited to 'Mono.Addins.Gui')
-rw-r--r-- | Mono.Addins.Gui/Mono.Addins.Gui/ManageSitesDialog.cs | 2 | ||||
-rw-r--r-- | Mono.Addins.Gui/Mono.Addins.Gui/NewSiteDialog.cs | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Mono.Addins.Gui/Mono.Addins.Gui/ManageSitesDialog.cs b/Mono.Addins.Gui/Mono.Addins.Gui/ManageSitesDialog.cs index 0744ba0..e3b1717 100644 --- a/Mono.Addins.Gui/Mono.Addins.Gui/ManageSitesDialog.cs +++ b/Mono.Addins.Gui/Mono.Addins.Gui/ManageSitesDialog.cs @@ -76,7 +76,7 @@ namespace Mono.Addins.Gui protected void OnAdd (object sender, EventArgs e) { - NewSiteDialog dlg = new NewSiteDialog (); + NewSiteDialog dlg = new NewSiteDialog (this); try { if (dlg.Run ()) { string url = dlg.Url; diff --git a/Mono.Addins.Gui/Mono.Addins.Gui/NewSiteDialog.cs b/Mono.Addins.Gui/Mono.Addins.Gui/NewSiteDialog.cs index e2c9c94..1137603 100644 --- a/Mono.Addins.Gui/Mono.Addins.Gui/NewSiteDialog.cs +++ b/Mono.Addins.Gui/Mono.Addins.Gui/NewSiteDialog.cs @@ -34,9 +34,10 @@ namespace Mono.Addins.Gui { partial class NewSiteDialog : Dialog { - public NewSiteDialog () + public NewSiteDialog (Gtk.Window parent) { Build (); + TransientFor = parent; pathEntry.Sensitive = false; CheckValues (); } |