Skip to content

Commit

Permalink
Showing version number in title
Browse files Browse the repository at this point in the history
  • Loading branch information
Algorithman committed Aug 6, 2016
1 parent 2a0c510 commit 3b54363
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions SoundCenSe GTK/SoundCenSeGTK/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Misc;
using SoundCenSeGTK;
using System.Linq;
using System.Reflection;

namespace SoundCenSeGTK
{
Expand All @@ -20,6 +21,12 @@ public MainWindow()
{
Build();
Config.Load(@"Configuration.json");
this.Title="SoundCenSe GTK " +
string.Join(".",
FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location)
.FileVersion.Split('.')
.Take(3)
.ToArray());

// Set AutoDetect to false when not running on windows
Config.Instance.autoDetect &= System.IO.Path.DirectorySeparatorChar == '\\';
Expand Down
6 changes: 3 additions & 3 deletions SoundCenSe GTK/SoundCenSeGTK/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
// Change them to the values specific to your project.

[assembly: AssemblyTitle ("SoundCenSeGTK")]
[assembly: AssemblyDescription ("")]
[assembly: AssemblyDescription ("Sound engine for Dwarf Fortress based on SoundSense")]
[assembly: AssemblyConfiguration ("")]
[assembly: AssemblyCompany ("")]
[assembly: AssemblyProduct ("")]
[assembly: AssemblyCopyright ("chris")]
[assembly: AssemblyCopyright ("Algorithman")]
[assembly: AssemblyTrademark ("")]
[assembly: AssemblyCulture ("")]

// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.

[assembly: AssemblyVersion ("1.0.*")]
[assembly: AssemblyVersion ("1.3.0.*")]

// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
Expand Down
4 changes: 2 additions & 2 deletions SoundCenSe GTK/SoundCenSeGTK/gtk-gui/gui.stetic
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</configuration>
<import>
<widget-library name="glade-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<widget-library name="../../SoundCenSeGUI/bin/Release/SoundCenSeGUI.dll" />
<widget-library name="../bin/Release/SoundCenSeGTK.exe" internal="true" />
<widget-library name="../../SoundCenSeGUI/bin/Debug/SoundCenSeGUI.dll" />
<widget-library name="../bin/Debug/SoundCenSeGTK.exe" internal="true" />
</import>
<widget class="Gtk.Window" id="SoundCenSeGTK.MainWindow" design-size="419 626">
<property name="MemberName" />
Expand Down
2 changes: 1 addition & 1 deletion SoundCenSe GTK/SoundCenSeGUI/gtk-gui/gui.stetic
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<target-gtk-version>2.12</target-gtk-version>
</configuration>
<import>
<widget-library name="../bin/Release/SoundCenSeGUI.dll" internal="true" />
<widget-library name="../bin/Debug/SoundCenSeGUI.dll" internal="true" />
</import>
<icon-factory>
<icon-set id="DisableSound">
Expand Down

0 comments on commit 3b54363

Please sign in to comment.