This commit is contained in:
tzim 2013-11-04 16:34:16 +00:00
parent 29f3503d0c
commit 0c04948262
2 changed files with 5 additions and 1 deletions

View file

@ -85,6 +85,7 @@
</EmbeddedResource>
<EmbeddedResource Include="style.gtkrc">
<LogicalName>style.gtkrc</LogicalName>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>

View file

@ -10,7 +10,10 @@ namespace DMX2
Application.Init ();
if(System.IO.File.Exists("style.gtkrc")) Gtk.Rc.Parse("style.gtkrc");
System.IO.Directory.SetCurrentDirectory ( (new System.IO.FileInfo(System.Reflection.Assembly.GetExecutingAssembly().Location)).DirectoryName);
if(System.IO.File.Exists("style.gtkrc"))
Gtk.Rc.Parse("style.gtkrc");
else using (System.IO.Stream stream =
System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("style.gtkrc"))
{