[longomatch/newui: 28/157] Track media file changes correctly
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/newui: 28/157] Track media file changes correctly
- Date: Mon, 1 Sep 2014 09:43:42 +0000 (UTC)
commit 06cd75a6588f14eb5781b521228967f3e8ea64ee
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Aug 20 11:58:16 2014 +0200
Track media file changes correctly
LongoMatch.GUI/Gui/Component/MediaFileChooser.cs | 4 ++++
LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs | 1 +
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/MediaFileChooser.cs
b/LongoMatch.GUI/Gui/Component/MediaFileChooser.cs
index d9e06d3..f216be9 100644
--- a/LongoMatch.GUI/Gui/Component/MediaFileChooser.cs
+++ b/LongoMatch.GUI/Gui/Component/MediaFileChooser.cs
@@ -25,6 +25,7 @@ namespace LongoMatch.Gui.Component
[System.ComponentModel.ToolboxItem(true)]
public partial class MediaFileChooser : Gtk.Bin
{
+ public event EventHandler ChangedEvent;
MediaFile file;
public MediaFileChooser ()
@@ -50,6 +51,9 @@ namespace LongoMatch.Gui.Component
void HandleClicked (object sender, EventArgs e)
{
File = Misc.OpenFile (this);
+ if (ChangedEvent != null) {
+ ChangedEvent (this, null);
+ }
}
}
}
diff --git a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
index 9f377a8..b71f302 100644
--- a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
@@ -137,6 +137,7 @@ namespace LongoMatch.Gui.Panel
outfileEntry.Changed += HandleEntryChanged;
createbutton.Clicked += HandleCreateProject;
tagscombobox.Changed += HandleSportsTemplateChanged;
+ mediafilechooser1.ChangedEvent += (sender, e) => {mediaFile =
mediafilechooser1.File;};
}
void FillProjectDetails () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]