diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2012-04-24 11:33:58 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2012-04-24 11:33:58 +0400 |
commit | fee338171683b783e2dfb7140fab4168714b5a5c (patch) | |
tree | d91febc82a60fc2faddb5b566f29fb5e4b3ea1fb /main/src/tools | |
parent | e5ab63050a82ea3490485f71fc8731275e405588 (diff) |
Fixed 'Bug 4547 - "make update-po" causes NRE'.
Diffstat (limited to 'main/src/tools')
-rw-r--r-- | main/src/tools/mdtool/mdtool.csproj | 6 | ||||
-rw-r--r-- | main/src/tools/mdtool/src/mdtool.cs | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/main/src/tools/mdtool/mdtool.csproj b/main/src/tools/mdtool/mdtool.csproj index 4cd48abdf0..fd91f947f7 100644 --- a/main/src/tools/mdtool/mdtool.csproj +++ b/main/src/tools/mdtool/mdtool.csproj @@ -39,10 +39,16 @@ <Reference Include="Mono.Addins, Version=0.4.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"> <SpecificVersion>False</SpecificVersion> <Private>False</Private> + <Package>mono-addins</Package> </Reference> <Reference Include="Mono.Addins.Setup, Version=0.4.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"> <SpecificVersion>False</SpecificVersion> <Private>False</Private> + <Package>mono-addins-setup</Package> + </Reference> + <Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f"> + <Private>False</Private> + <Package>gtk-sharp-2.0</Package> </Reference> </ItemGroup> <ItemGroup> diff --git a/main/src/tools/mdtool/src/mdtool.cs b/main/src/tools/mdtool/src/mdtool.cs index 64f2e28932..7bf80dc78e 100644 --- a/main/src/tools/mdtool/src/mdtool.cs +++ b/main/src/tools/mdtool/src/mdtool.cs @@ -40,6 +40,7 @@ public class MonoDevelopProcessHost public static int Main (string[] args) { try { + Gtk.Application.Init (); Runtime.Initialize (false); Runtime.SetProcessName ("mdtool"); @@ -78,7 +79,7 @@ public class MonoDevelopProcessHost string[] newArgs = new string [args.Length - 1 - pi]; Array.Copy (args, pi + 1, newArgs, 0, args.Length - 1 - pi); if (args [pi] != "setup") - return Runtime.ApplicationService.StartApplication (args[pi], newArgs); + return Runtime.ApplicationService.StartApplication (args [pi], newArgs); else return RunSetup (newArgs); } catch (UserException ex) { @@ -88,6 +89,7 @@ public class MonoDevelopProcessHost Console.WriteLine (ex); return -1; } finally { + Gtk.Application.Quit (); try { Runtime.Shutdown (); } catch { |