From 3b54363203e6a8aceeba5fcde4b19802be4338ac Mon Sep 17 00:00:00 2001 From: Algorithman Date: Sat, 6 Aug 2016 12:51:33 +0200 Subject: [PATCH] Showing version number in title --- SoundCenSe GTK/SoundCenSeGTK/MainWindow.cs | 7 +++++++ SoundCenSe GTK/SoundCenSeGTK/Properties/AssemblyInfo.cs | 6 +++--- SoundCenSe GTK/SoundCenSeGTK/gtk-gui/gui.stetic | 4 ++-- SoundCenSe GTK/SoundCenSeGUI/gtk-gui/gui.stetic | 2 +- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/SoundCenSe GTK/SoundCenSeGTK/MainWindow.cs b/SoundCenSe GTK/SoundCenSeGTK/MainWindow.cs index 4c9f525..0b23d6f 100644 --- a/SoundCenSe GTK/SoundCenSeGTK/MainWindow.cs +++ b/SoundCenSe GTK/SoundCenSeGTK/MainWindow.cs @@ -7,6 +7,7 @@ using Misc; using SoundCenSeGTK; using System.Linq; +using System.Reflection; namespace SoundCenSeGTK { @@ -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 == '\\'; diff --git a/SoundCenSe GTK/SoundCenSeGTK/Properties/AssemblyInfo.cs b/SoundCenSe GTK/SoundCenSeGTK/Properties/AssemblyInfo.cs index 4144493..fddbfe4 100644 --- a/SoundCenSe GTK/SoundCenSeGTK/Properties/AssemblyInfo.cs +++ b/SoundCenSe GTK/SoundCenSeGTK/Properties/AssemblyInfo.cs @@ -5,11 +5,11 @@ // 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 ("")] @@ -17,7 +17,7 @@ // 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. diff --git a/SoundCenSe GTK/SoundCenSeGTK/gtk-gui/gui.stetic b/SoundCenSe GTK/SoundCenSeGTK/gtk-gui/gui.stetic index 4c791d2..2849801 100644 --- a/SoundCenSe GTK/SoundCenSeGTK/gtk-gui/gui.stetic +++ b/SoundCenSe GTK/SoundCenSeGTK/gtk-gui/gui.stetic @@ -6,8 +6,8 @@ - - + + diff --git a/SoundCenSe GTK/SoundCenSeGUI/gtk-gui/gui.stetic b/SoundCenSe GTK/SoundCenSeGUI/gtk-gui/gui.stetic index 5d68dd2..b166ce0 100644 --- a/SoundCenSe GTK/SoundCenSeGUI/gtk-gui/gui.stetic +++ b/SoundCenSe GTK/SoundCenSeGUI/gtk-gui/gui.stetic @@ -5,7 +5,7 @@ 2.12 - +