This commit is contained in:
parent
29f3503d0c
commit
0c04948262
2 changed files with 5 additions and 1 deletions
|
|
@ -85,6 +85,7 @@
|
|||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="style.gtkrc">
|
||||
<LogicalName>style.gtkrc</LogicalName>
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
|
|
|||
|
|
@ -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"))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue