[longomatch] Make sure to use the software name from Constants.
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Make sure to use the software name from Constants.
- Date: Tue, 31 Mar 2015 17:27:56 +0000 (UTC)
commit 9f515a3f30923e31ae88fb85466d61831dacfa84
Author: Julien Moutte <julien fluendo com>
Date: Wed Mar 18 19:12:00 2015 +0100
Make sure to use the software name from Constants.
Using hardcoded LongoMatch prohibits customisation of app name.
LongoMatch.GUI/Gui/Component/MediaFileChooser.cs | 4 ++--
LongoMatch.GUI/Gui/Dialog/DrawingTool.cs | 6 +++---
LongoMatch.GUI/Gui/Dialog/VideoConversionTool.cs | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/MediaFileChooser.cs
b/LongoMatch.GUI/Gui/Component/MediaFileChooser.cs
index 0e49b28..2a0bf52 100644
--- a/LongoMatch.GUI/Gui/Component/MediaFileChooser.cs
+++ b/LongoMatch.GUI/Gui/Component/MediaFileChooser.cs
@@ -58,8 +58,8 @@ namespace LongoMatch.Gui.Component
nameentry.TooltipText = Catalog.GetString ("Edit to change camera name");
- ProposedFileName = String.Format ("LongoMatch-{0}.mp4",
DateTime.Now.ToShortDateString ());
- ProposedDirectoryName = String.Format ("LongoMatch-{0}",
DateTime.Now.ToShortDateString ());
+ ProposedFileName = String.Format ("{0}-{1}.mp4", Constants.SOFTWARE_NAME,
DateTime.Now.ToShortDateString ());
+ ProposedDirectoryName = String.Format ("{0}-{1}", Constants.SOFTWARE_NAME,
DateTime.Now.ToShortDateString ());
}
public MediaFileChooser () : this (null)
diff --git a/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs b/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs
index 42bbbf7..047a2d5 100644
--- a/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs
+++ b/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs
@@ -397,10 +397,10 @@ namespace LongoMatch.Gui.Dialog
void OnSavebuttonClicked (object sender, System.EventArgs e)
{
- string proposed_filename = String.Format ("LongoMatch-{0}.png",
- DateTime.Now.ToShortDateString ().Replace ('/', '-'));
+ string proposed_filename = String.Format ("{0}-{1}.png", Constants.SOFTWARE_NAME,
+ DateTime.Now.ToShortDateString ().Replace ('/',
'-'));
string filename = FileChooserHelper.SaveFile (this, Catalog.GetString ("Save File
as..."),
- proposed_filename, Config.SnapshotsDir, "PNG Images", new string[] { "*.png"
});
+ proposed_filename, Config.SnapshotsDir, "PNG Images", new
string[] { "*.png" });
if (filename != null) {
System.IO.Path.ChangeExtension (filename, ".png");
blackboard.Save (filename);
diff --git a/LongoMatch.GUI/Gui/Dialog/VideoConversionTool.cs
b/LongoMatch.GUI/Gui/Dialog/VideoConversionTool.cs
index 4995515..0eee5b7 100644
--- a/LongoMatch.GUI/Gui/Dialog/VideoConversionTool.cs
+++ b/LongoMatch.GUI/Gui/Dialog/VideoConversionTool.cs
@@ -47,8 +47,8 @@ namespace LongoMatch.Gui.Dialog
maxHeight = supportedVideoStandards [0].Height;
mediafilechooser1.FileChooserMode = FileChooserMode.File;
mediafilechooser1.ChangedEvent += HandleFileChanges;
- mediafilechooser1.ProposedFileName = String.Format ("LongoMatch-Video-{0}.mp4",
- DateTime.Now.ToShortDateString
().Replace ('/', '-'));
+ mediafilechooser1.ProposedFileName = String.Format ("{0}-Video-{1}.mp4",
Constants.SOFTWARE_NAME,
+ DateTime.Now.ToShortDateString ().Replace ('/', '-'));
FillStandards ();
FillBitrates ();
addbutton1.Clicked += OnAddbuttonClicked;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]