[longomatch] Add missing file
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Add missing file
- Date: Mon, 7 Jul 2014 11:20:39 +0000 (UTC)
commit b9bec24e0c8896ff6a0a987efefb8dcc7b65e71c
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Apr 11 01:57:41 2014 +0200
Add missing file
LongoMatch.Multimedia/Utils/GtkHelpers.cs | 38 +++++++++++++++++++++++++++++
1 files changed, 38 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Multimedia/Utils/GtkHelpers.cs b/LongoMatch.Multimedia/Utils/GtkHelpers.cs
new file mode 100644
index 0000000..d05738c
--- /dev/null
+++ b/LongoMatch.Multimedia/Utils/GtkHelpers.cs
@@ -0,0 +1,38 @@
+//
+// Copyright (C) 2014 Andoni Morales Alastruey
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+//
+using System;
+using System.Runtime.InteropServices;
+using Gtk;
+
+namespace LongoMatch.Multimedia.Utils
+{
+ public class GtkHelpers
+ {
+ [DllImport("libcesarplayer.dll")]
+ static extern IntPtr lgm_get_window_handle (IntPtr window);
+
+ public static void CallFromAppThread (EventHandler del) {
+ Application.Invoke (del);
+ }
+
+ public static IntPtr GetWindowHandle (Gdk.Window window) {
+ return lgm_get_window_handle (window.Handle);
+ }
+ }
+}
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]