Skip to content

Commit 3b54363

Browse files
committed
Showing version number in title
1 parent 2a0c510 commit 3b54363

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

SoundCenSe GTK/SoundCenSeGTK/MainWindow.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Misc;
88
using SoundCenSeGTK;
99
using System.Linq;
10+
using System.Reflection;
1011

1112
namespace SoundCenSeGTK
1213
{
@@ -20,6 +21,12 @@ public MainWindow()
2021
{
2122
Build();
2223
Config.Load(@"Configuration.json");
24+
this.Title="SoundCenSe GTK " +
25+
string.Join(".",
26+
FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location)
27+
.FileVersion.Split('.')
28+
.Take(3)
29+
.ToArray());
2330

2431
// Set AutoDetect to false when not running on windows
2532
Config.Instance.autoDetect &= System.IO.Path.DirectorySeparatorChar == '\\';

SoundCenSe GTK/SoundCenSeGTK/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
// Change them to the values specific to your project.
66

77
[assembly: AssemblyTitle ("SoundCenSeGTK")]
8-
[assembly: AssemblyDescription ("")]
8+
[assembly: AssemblyDescription ("Sound engine for Dwarf Fortress based on SoundSense")]
99
[assembly: AssemblyConfiguration ("")]
1010
[assembly: AssemblyCompany ("")]
1111
[assembly: AssemblyProduct ("")]
12-
[assembly: AssemblyCopyright ("chris")]
12+
[assembly: AssemblyCopyright ("Algorithman")]
1313
[assembly: AssemblyTrademark ("")]
1414
[assembly: AssemblyCulture ("")]
1515

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

20-
[assembly: AssemblyVersion ("1.0.*")]
20+
[assembly: AssemblyVersion ("1.3.0.*")]
2121

2222
// The following attributes are used to specify the signing key for the assembly,
2323
// if desired. See the Mono documentation for more information about signing.

SoundCenSe GTK/SoundCenSeGTK/gtk-gui/gui.stetic

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</configuration>
77
<import>
88
<widget-library name="glade-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
9-
<widget-library name="../../SoundCenSeGUI/bin/Release/SoundCenSeGUI.dll" />
10-
<widget-library name="../bin/Release/SoundCenSeGTK.exe" internal="true" />
9+
<widget-library name="../../SoundCenSeGUI/bin/Debug/SoundCenSeGUI.dll" />
10+
<widget-library name="../bin/Debug/SoundCenSeGTK.exe" internal="true" />
1111
</import>
1212
<widget class="Gtk.Window" id="SoundCenSeGTK.MainWindow" design-size="419 626">
1313
<property name="MemberName" />

SoundCenSe GTK/SoundCenSeGUI/gtk-gui/gui.stetic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<target-gtk-version>2.12</target-gtk-version>
66
</configuration>
77
<import>
8-
<widget-library name="../bin/Release/SoundCenSeGUI.dll" internal="true" />
8+
<widget-library name="../bin/Debug/SoundCenSeGUI.dll" internal="true" />
99
</import>
1010
<icon-factory>
1111
<icon-set id="DisableSound">

0 commit comments

Comments
 (0)