[longomatch] Apply code formatting



commit f26ca2c5ee120cdbe3e0a128a522162388ed21d3
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Apr 23 13:49:11 2015 +0200

    Apply code formatting

 LongoMatch.Core/Interfaces/GUI/IGUIToolkit.cs |    2 +-
 LongoMatch.Core/Store/ActionLink.cs           |    1 +
 LongoMatch.GUI/Gui/GUIToolkit.cs              |    6 +++---
 LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs   |    2 +-
 LongoMatch.Services/EventsManager.cs          |    2 +-
 5 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/LongoMatch.Core/Interfaces/GUI/IGUIToolkit.cs b/LongoMatch.Core/Interfaces/GUI/IGUIToolkit.cs
index 3350531..f093b1a 100644
--- a/LongoMatch.Core/Interfaces/GUI/IGUIToolkit.cs
+++ b/LongoMatch.Core/Interfaces/GUI/IGUIToolkit.cs
@@ -58,7 +58,7 @@ namespace LongoMatch.Core.Interfaces.GUI
                string QueryMessage (string key, string title = null, string value = "", object parent = 
null);
 
                bool NewVersionAvailable (Version currentVersion, Version latestVersion,
-                       string downloadURL, string changeLog, object parent = null);
+                                         string downloadURL, string changeLog, object parent = null);
                
                /* Files/Folders IO */
                string SaveFile (string title, string defaultName, string defaultFolder,
diff --git a/LongoMatch.Core/Store/ActionLink.cs b/LongoMatch.Core/Store/ActionLink.cs
index c220009..68b5860 100644
--- a/LongoMatch.Core/Store/ActionLink.cs
+++ b/LongoMatch.Core/Store/ActionLink.cs
@@ -108,6 +108,7 @@ namespace LongoMatch.Core.Store
                        ActionLink link = obj as ActionLink;
                        if (link == null)
                                return false;
+
                        if (link.SourceButton != SourceButton ||
                            link.DestinationButton != DestinationButton) {
                                return false;
diff --git a/LongoMatch.GUI/Gui/GUIToolkit.cs b/LongoMatch.GUI/Gui/GUIToolkit.cs
index a319704..a0887ab 100644
--- a/LongoMatch.GUI/Gui/GUIToolkit.cs
+++ b/LongoMatch.GUI/Gui/GUIToolkit.cs
@@ -129,7 +129,7 @@ namespace LongoMatch.Gui
                }
 
                public bool NewVersionAvailable (Version currentVersion, Version latestVersion,
-                       string downloadURL, string changeLog, object parent = null)
+                                                string downloadURL, string changeLog, object parent = null)
                {
                        if (parent == null)
                                parent = mainWindow;
@@ -296,9 +296,9 @@ namespace LongoMatch.Gui
                        } else {
                                dialog.LoadPlay (play, image, drawing, camConfig, project);
                        }
-                       dialog.TransientFor = mainWindow as Gtk.Window;
+                       dialog.TransientFor = mainWindow;
                        dialog.Run ();
-                       dialog.Destroy ();      
+                       dialog.Destroy ();
                }
 
                public ProjectDescription ChooseProject (List<ProjectDescription> projects)
diff --git a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
index 43f1f49..5e9a06c 100644
--- a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
@@ -293,7 +293,7 @@ namespace LongoMatch.Gui.Panel
                {
                        videoDevices = devices;
                        bool includeSourceName;
-                       
+
                        includeSourceName = devices.GroupBy (d => d.SourceElement).Count () > 1;
 
                        foreach (Device device in devices) {
diff --git a/LongoMatch.Services/EventsManager.cs b/LongoMatch.Services/EventsManager.cs
index d06944e..047fccb 100644
--- a/LongoMatch.Services/EventsManager.cs
+++ b/LongoMatch.Services/EventsManager.cs
@@ -155,7 +155,7 @@ namespace LongoMatch.Services
 
                        player.Pause ();
                        if (play == null) {
-                               play = loadedPlay as TimelineEvent;
+                               play = loadedPlay;
                        }
                        if (play != null) {
                                if (drawingIndex == -1) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]