[longomatch] Use new toolkits
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Use new toolkits
- Date: Sun, 18 Dec 2011 21:42:20 +0000 (UTC)
commit 34cb287a29041014e3e4d82269cbab945f2a2910
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Dec 9 19:55:25 2011 +0100
Use new toolkits
LongoMatch/Main.cs | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
---
diff --git a/LongoMatch/Main.cs b/LongoMatch/Main.cs
index 47fa170..172e692 100644
--- a/LongoMatch/Main.cs
+++ b/LongoMatch/Main.cs
@@ -24,9 +24,13 @@ using System.IO;
using Gtk;
using Mono.Unix;
+using LongoMatch.Interfaces.GUI;
+using LongoMatch.Interfaces.Multimedia;
using LongoMatch.Gui;
using LongoMatch.Services;
using LongoMatch.Common;
+using LongoMatch.Video;
+using LongoMatch.Multimedia;
using LongoMatch.Multimedia.Utils;
namespace LongoMatch
@@ -38,17 +42,22 @@ namespace LongoMatch
public static void Main(string[] args)
{
- GLib.ExceptionManager.UnhandledException += new GLib.UnhandledExceptionHandler(OnException);
-
+ /* Init Gtk */
+ Application.Init();
+
+ /* Init GStreamer */
GStreamer.Init();
if (!GStreamer.CheckInstallation())
return;
+ GLib.ExceptionManager.UnhandledException += new GLib.UnhandledExceptionHandler(OnException);
+
+
//try {
Core.Init();
- MainWindow win = new MainWindow();
- win.Show();
- Core.Start(win);
+ GUIToolkit guiToolkit = new GUIToolkit();
+ IMultimediaToolkit multimediaToolkit = new MultimediaFactory();
+ Core.Start(guiToolkit, multimediaToolkit);
Application.Run();
//} catch(Exception ex) {
// ProcessExecutionError(ex);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]