[f-spot] [xbuild] Checking in the generated files



commit ef03995a35ed263af83da0a23d01f6c2b7d265c9
Author: Stephen Shaw <sshaw decriptor com>
Date:   Fri Jun 29 12:42:23 2012 -0600

    [xbuild] Checking in the generated files
    
    Adding unique-sharp to the build process so that
    we can use xbuild.
    
    Since the .raw isn't going to change I'm generating
    and committing the files.
    
    Ultimately this is all going to go away with gtk-sharp3

 F-Spot.sln                                       |   12 ++-
 configure.ac                                     |    3 -
 lib/Makefile.am                                  |    1 -
 lib/unique-sharp/unique-sharp.csproj             |   51 ++++++
 lib/unique-sharp/unique/AssemblyInfo.cs          |    1 -
 lib/unique-sharp/unique/generated/App.cs         |  210 ++++++++++++++++++++++
 lib/unique-sharp/unique/generated/Command.cs     |   31 ++++
 lib/unique-sharp/unique/generated/MessageData.cs |  197 ++++++++++++++++++++
 lib/unique-sharp/unique/generated/Response.cs    |   31 ++++
 src/Clients/MainApp/MainApp.csproj               |    8 +-
 10 files changed, 536 insertions(+), 9 deletions(-)
---
diff --git a/F-Spot.sln b/F-Spot.sln
index bdebbc3..9dbc2e8 100644
--- a/F-Spot.sln
+++ b/F-Spot.sln
@@ -33,6 +33,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SmugMugNet", "lib\SmugMugNe
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mono.Tabblo", "lib\Mono.Tabblo\Mono.Tabblo.csproj", "{B5CDF05C-278A-40AA-A587-B27A00BD9135}"
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "unique-sharp", "lib\unique-sharp\unique-sharp.csproj", "{5DBBB8C5-7BAF-46DA-B7D2-2486430141E2}"
+EndProject
 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Clients", "Clients", "{9D75644A-DEF1-4362-8553-4B5F09783DC9}"
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MainApp", "src\Clients\MainApp\MainApp.csproj", "{27EC05FB-0223-4B26-8157-E49AF81D0007}"
@@ -205,6 +207,14 @@ Global
 		{55199016-6D69-4F52-AB82-06FC99408E78}.Submodule|Any CPU.Build.0 = Debug|Any CPU
 		{57EDC3BC-E777-4400-B4E7-32A5D8F15A76}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 		{57EDC3BC-E777-4400-B4E7-32A5D8F15A76}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{5DBBB8C5-7BAF-46DA-B7D2-2486430141E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{5DBBB8C5-7BAF-46DA-B7D2-2486430141E2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{5DBBB8C5-7BAF-46DA-B7D2-2486430141E2}.Default|Any CPU.ActiveCfg = Debug|Any CPU
+		{5DBBB8C5-7BAF-46DA-B7D2-2486430141E2}.Default|Any CPU.Build.0 = Debug|Any CPU
+		{5DBBB8C5-7BAF-46DA-B7D2-2486430141E2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{5DBBB8C5-7BAF-46DA-B7D2-2486430141E2}.Release|Any CPU.Build.0 = Release|Any CPU
+		{5DBBB8C5-7BAF-46DA-B7D2-2486430141E2}.Submodule|Any CPU.ActiveCfg = Debug|Any CPU
+		{5DBBB8C5-7BAF-46DA-B7D2-2486430141E2}.Submodule|Any CPU.Build.0 = Debug|Any CPU
 		{61DAD6B1-E866-485B-819E-A9E86B793F5E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 		{61DAD6B1-E866-485B-819E-A9E86B793F5E}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{61DAD6B1-E866-485B-819E-A9E86B793F5E}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -367,6 +377,7 @@ Global
 		{40C7D4EA-FB93-49FE-B18F-700A28C3E670} = {6369E0D4-0A68-4D4E-A6A0-EF2EA793002F}
 		{FFC3D9B1-B19A-44D8-8AA2-96DDE911320E} = {6369E0D4-0A68-4D4E-A6A0-EF2EA793002F}
 		{B5CDF05C-278A-40AA-A587-B27A00BD9135} = {6369E0D4-0A68-4D4E-A6A0-EF2EA793002F}
+		{5DBBB8C5-7BAF-46DA-B7D2-2486430141E2} = {6369E0D4-0A68-4D4E-A6A0-EF2EA793002F}
 		{27EC05FB-0223-4B26-8157-E49AF81D0007} = {9D75644A-DEF1-4362-8553-4B5F09783DC9}
 		{A2A7E62B-8AE1-44F3-BB1B-B8E2DE7916C4} = {9D75644A-DEF1-4362-8553-4B5F09783DC9}
 		{416E19A2-9CD9-498F-BE75-20AB74535ACD} = {7D049DAA-F1B0-4697-9BCA-91FC0E1A2B9D}
@@ -407,7 +418,6 @@ Global
 		$1.ResourceNamePolicy = FileName
 		$0.TextStylePolicy = $2
 		$2.FileWidth = 120
-		$2.RemoveTrailingWhitespace = True
 		$2.inheritsSet = Mono
 		$2.inheritsScope = text/plain
 		$2.scope = text/x-csharp
diff --git a/configure.ac b/configure.ac
index 5d5e714..4b9deb6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -321,9 +321,6 @@ lib/Makefile
 lib/Mono.Google/Makefile
 lib/Mono.Tabblo/Makefile
 lib/SmugMugNet/Makefile
-lib/unique-sharp/generator/Makefile
-lib/unique-sharp/Makefile
-lib/unique-sharp/unique/Makefile
 
 src/AssemblyInfo.cs
 
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 30231a1..1a486de 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -5,7 +5,6 @@ SUBDIRS = \
 	gtk-sharp-beans		\
 	Hyena 				\
 	libfspot			\
-	unique-sharp 		\
 	Mono.Google 		\
 	Mono.Tabblo 		\
 	SmugMugNet
diff --git a/lib/unique-sharp/unique-sharp.csproj b/lib/unique-sharp/unique-sharp.csproj
new file mode 100644
index 0000000..69ecfe6
--- /dev/null
+++ b/lib/unique-sharp/unique-sharp.csproj
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>9.0.21022</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{5DBBB8C5-7BAF-46DA-B7D2-2486430141E2}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <RootNamespace>uniquesharp</RootNamespace>
+    <AssemblyName>unique-sharp</AssemblyName>
+    <ReleaseVersion>0.9.0</ReleaseVersion>
+    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>True</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>False</Optimize>
+    <OutputPath>..\..\bin</OutputPath>
+    <DefineConstants>DEBUG;</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <ConsolePause>False</ConsolePause>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>none</DebugType>
+    <Optimize>True</Optimize>
+    <OutputPath>..\..\bin</OutputPath>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <ConsolePause>False</ConsolePause>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
+      <Private>False</Private>
+    </Reference>
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <ItemGroup>
+    <Folder Include="unique\" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="unique\generated\App.cs" />
+    <Compile Include="unique\generated\Command.cs" />
+    <Compile Include="unique\generated\MessageData.cs" />
+    <Compile Include="unique\generated\Response.cs" />
+    <Compile Include="unique\AssemblyInfo.cs" />
+    <Compile Include="unique\MessageReceivedHandler.cs" />
+  </ItemGroup>
+</Project>
\ No newline at end of file
diff --git a/lib/unique-sharp/unique/AssemblyInfo.cs b/lib/unique-sharp/unique/AssemblyInfo.cs
index 68bf32a..19cbc0f 100644
--- a/lib/unique-sharp/unique/AssemblyInfo.cs
+++ b/lib/unique-sharp/unique/AssemblyInfo.cs
@@ -3,5 +3,4 @@ using System.Runtime.CompilerServices;
 
 [assembly:AssemblyVersion("1.0.0.0")]
 [assembly:AssemblyDelaySign(false)]
-[assembly:AssemblyKeyFile("unique-sharp.snk")]
 [assembly:GLib.IgnoreClassInitializers]
diff --git a/lib/unique-sharp/unique/generated/App.cs b/lib/unique-sharp/unique/generated/App.cs
new file mode 100644
index 0000000..d8abc31
--- /dev/null
+++ b/lib/unique-sharp/unique/generated/App.cs
@@ -0,0 +1,210 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace Unique {
+
+	using System;
+	using System.Collections;
+	using System.Runtime.InteropServices;
+
+#region Autogenerated code
+	public class App : GLib.Object {
+
+		[Obsolete]
+		protected App(GLib.GType gtype) : base(gtype) {}
+		public App(IntPtr raw) : base(raw) {}
+
+		[DllImport("libunique-1.0-0.dll")]
+		static extern IntPtr unique_app_new(IntPtr name, IntPtr startup_id);
+
+		public App (string name, string startup_id) : base (IntPtr.Zero)
+		{
+			if (GetType () != typeof (App)) {
+				ArrayList vals = new ArrayList();
+				ArrayList names = new ArrayList();
+				names.Add ("name");
+				vals.Add (new GLib.Value (name));
+				names.Add ("startup_id");
+				vals.Add (new GLib.Value (startup_id));
+				CreateNativeObject ((string[])names.ToArray (typeof (string)), (GLib.Value[])vals.ToArray (typeof (GLib.Value)));
+				return;
+			}
+			IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
+			IntPtr native_startup_id = GLib.Marshaller.StringToPtrGStrdup (startup_id);
+			Raw = unique_app_new(native_name, native_startup_id);
+			GLib.Marshaller.Free (native_name);
+			GLib.Marshaller.Free (native_startup_id);
+		}
+
+		[DllImport("libunique-1.0-0.dll")]
+		static extern bool unique_app_is_running(IntPtr raw);
+
+		[GLib.Property ("is-running")]
+		public bool IsRunning {
+			get  {
+				bool raw_ret = unique_app_is_running(Handle);
+				bool ret = raw_ret;
+				return ret;
+			}
+		}
+
+		[GLib.Property ("startup-id")]
+		public string StartupId {
+			get {
+				GLib.Value val = GetProperty ("startup-id");
+				string ret = (string) val;
+				val.Dispose ();
+				return ret;
+			}
+		}
+
+		[GLib.Property ("name")]
+		public string Name {
+			get {
+				GLib.Value val = GetProperty ("name");
+				string ret = (string) val;
+				val.Dispose ();
+				return ret;
+			}
+		}
+
+		[DllImport("libunique-1.0-0.dll")]
+		static extern void unique_app_add_command(IntPtr raw, IntPtr command_name, int command_id);
+
+		public void AddCommand(string command_name, int command_id) {
+			IntPtr native_command_name = GLib.Marshaller.StringToPtrGStrdup (command_name);
+			unique_app_add_command(Handle, native_command_name, command_id);
+			GLib.Marshaller.Free (native_command_name);
+		}
+
+		[DllImport("libunique-1.0-0.dll")]
+		static extern int unique_app_send_message(IntPtr raw, int command_id, IntPtr message_data);
+
+		public Unique.Response SendMessage(Unique.Command command_id, Unique.MessageData message_data) {
+			int raw_ret = unique_app_send_message(Handle, (int) command_id, message_data == null ? IntPtr.Zero : message_data.Handle);
+			Unique.Response ret = (Unique.Response) raw_ret;
+			return ret;
+		}
+
+		[DllImport("libunique-1.0-0.dll")]
+		static extern IntPtr unique_app_get_type();
+
+		public static new GLib.GType GType { 
+			get {
+				IntPtr raw_ret = unique_app_get_type();
+				GLib.GType ret = new GLib.GType(raw_ret);
+				return ret;
+			}
+		}
+
+#endregion
+#region Customized extensions
+#line 1 "App.custom"
+// App.custom - customization for App.cs
+//
+// Author(s):
+//	Stephane Delcroix  <stephane delcroix org>
+//
+// Copyright (c) 2009 Stephane Delcroix
+//
+// This is open source software. See COPYING for details.
+//
+
+		public App (string name, string startup_id, params object [] commands) : this (name, startup_id)
+		{
+			for (int i = 0; i < commands.Length; i+=2)
+				AddCommand (commands[i] as string, (int)commands[i+1]);
+		}
+
+		[GLib.CDeclCallback]
+		delegate int MessageReceivedVMDelegate (IntPtr app, int command, IntPtr message_data, uint time_);
+
+		static MessageReceivedVMDelegate MessageReceivedVMCallback;
+
+		static int messagereceived_cb (IntPtr app, int command, IntPtr message_data, uint time_)
+		{
+			try {
+				App app_managed = GLib.Object.GetObject (app, false) as App;
+				Unique.Response raw_ret = app_managed.OnMessageReceived (command, message_data == IntPtr.Zero ? null : (Unique.MessageData) GLib.Opaque.GetOpaque (message_data, typeof (Unique.MessageData), false), time_);
+				return (int) raw_ret;
+			} catch (Exception e) {
+				GLib.ExceptionManager.RaiseUnhandledException (e, true);
+				// NOTREACHED: above call doesn't return
+				throw e;
+			}
+		}
+
+		static void OverrideMessageReceived (GLib.GType gtype)
+		{
+			if (MessageReceivedVMCallback == null)
+				MessageReceivedVMCallback = new MessageReceivedVMDelegate (messagereceived_cb);
+			OverrideVirtualMethod (gtype, "message-received", MessageReceivedVMCallback);
+		}
+
+		[GLib.DefaultSignalHandler(Type=typeof(Unique.App), ConnectionMethod="OverrideMessageReceived")]
+		protected virtual Unique.Response OnMessageReceived (int command, Unique.MessageData message_data, uint time_)
+		{
+			GLib.Value ret = new GLib.Value (Unique.ResponseGType.GType);
+			GLib.ValueArray inst_and_params = new GLib.ValueArray (4);
+			GLib.Value[] vals = new GLib.Value [4];
+			vals [0] = new GLib.Value (this);
+			inst_and_params.Append (vals [0]);
+			vals [1] = new GLib.Value (command);
+			inst_and_params.Append (vals [1]);
+			vals [2] = new GLib.Value (message_data);
+			inst_and_params.Append (vals [2]);
+			vals [3] = new GLib.Value (time_);
+			inst_and_params.Append (vals [3]);
+			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
+			foreach (GLib.Value v in vals)
+				v.Dispose ();
+			Unique.Response result = (Unique.Response) (Enum) ret;
+			ret.Dispose ();
+			return result;
+		}
+
+		[GLib.Signal("message-received")]
+		event Unique.MessageReceivedHandler InternalMessageReceived {
+			add {
+				GLib.Signal sig = GLib.Signal.Lookup (this, "message-received", typeof (Unique.MessageReceivedArgs));
+				sig.AddDelegate (value);
+			}
+			remove {
+				GLib.Signal sig = GLib.Signal.Lookup (this, "message-received", typeof (Unique.MessageReceivedArgs));
+				sig.RemoveDelegate (value);
+			}
+		}
+
+		MessageReceivedHandler received_handler;
+
+		public event MessageReceivedHandler MessageReceived {
+			add {
+				if (received_handler == null)
+					InternalMessageReceived += MessageReceivedWrapper;
+				received_handler = (MessageReceivedHandler)Delegate.Combine (received_handler, value);
+			}
+			remove {
+				received_handler = (MessageReceivedHandler)Delegate.Remove (received_handler, value);
+				if (received_handler == null)
+					InternalMessageReceived -= MessageReceivedWrapper;
+			}
+		}
+
+		[GLib.ConnectBefore]
+		void MessageReceivedWrapper (object sender, MessageReceivedArgs e)
+		{
+			MessageReceivedHandler eh = received_handler;
+			if (eh == null)
+				return;
+			foreach (MessageReceivedHandler d in eh.GetInvocationList ()) {
+				if (e.RetVal != null && (Response)e.RetVal != Response.Passthrough)
+					break;
+				d (sender, e);
+			}
+		}
+
+
+
+#endregion
+	}
+}
diff --git a/lib/unique-sharp/unique/generated/Command.cs b/lib/unique-sharp/unique/generated/Command.cs
new file mode 100644
index 0000000..ea7da2e
--- /dev/null
+++ b/lib/unique-sharp/unique/generated/Command.cs
@@ -0,0 +1,31 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace Unique {
+
+	using System;
+	using System.Runtime.InteropServices;
+
+#region Autogenerated code
+	[GLib.GType (typeof (Unique.CommandGType))]
+	public enum Command {
+
+		Invalid,
+		Activate = -1,
+		New = -2,
+		Open = -3,
+		Close = -4,
+	}
+
+	internal class CommandGType {
+		[DllImport ("libunique-1.0-0.dll")]
+		static extern IntPtr unique_command_get_type ();
+
+		public static GLib.GType GType {
+			get {
+				return new GLib.GType (unique_command_get_type ());
+			}
+		}
+	}
+#endregion
+}
diff --git a/lib/unique-sharp/unique/generated/MessageData.cs b/lib/unique-sharp/unique/generated/MessageData.cs
new file mode 100644
index 0000000..bb0b787
--- /dev/null
+++ b/lib/unique-sharp/unique/generated/MessageData.cs
@@ -0,0 +1,197 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace Unique {
+
+	using System;
+	using System.Collections;
+	using System.Runtime.InteropServices;
+
+#region Autogenerated code
+	public class MessageData : GLib.Opaque, ICloneable {
+
+		[DllImport("libunique-1.0-0.dll")]
+		static extern IntPtr unique_message_data_get_filename(IntPtr raw);
+
+		[DllImport("libunique-1.0-0.dll")]
+		static extern void unique_message_data_set_filename(IntPtr raw, IntPtr filename);
+
+		public string Filename { 
+			get {
+				IntPtr raw_ret = unique_message_data_get_filename(Handle);
+				string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
+				return ret;
+			}
+			set {
+				IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
+				unique_message_data_set_filename(Handle, native_value);
+				GLib.Marshaller.Free (native_value);
+			}
+		}
+
+		[DllImport("libunique-1.0-0.dll")]
+		static extern IntPtr unique_message_data_get_startup_id(IntPtr raw);
+
+		public string StartupId { 
+			get {
+				IntPtr raw_ret = unique_message_data_get_startup_id(Handle);
+				string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
+				return ret;
+			}
+		}
+
+		[DllImport("libunique-1.0-0.dll")]
+		static extern uint unique_message_data_get_workspace(IntPtr raw);
+
+		public uint Workspace { 
+			get {
+				uint raw_ret = unique_message_data_get_workspace(Handle);
+				uint ret = raw_ret;
+				return ret;
+			}
+		}
+
+		[DllImport("libunique-1.0-0.dll")]
+		static extern IntPtr unique_message_data_get_uris(IntPtr raw);
+
+		[DllImport("libunique-1.0-0.dll")]
+		static extern void unique_message_data_set_uris(IntPtr raw, IntPtr[] uris);
+
+		public string[] Uris { 
+			get {
+				IntPtr raw_ret = unique_message_data_get_uris(Handle);
+				string[] ret = GLib.Marshaller.NullTermPtrToStringArray (raw_ret, false);
+				return ret;
+			}
+			set {
+				int cnt_value = value == null ? 0 : value.Length;
+				IntPtr[] native_value = new IntPtr [cnt_value + 1];
+				for (int i = 0; i < cnt_value; i++)
+					native_value [i] = GLib.Marshaller.StringToPtrGStrdup(value[i]);
+				native_value [cnt_value] = IntPtr.Zero;
+				unique_message_data_set_uris(Handle, native_value);
+			}
+		}
+
+		[DllImport("libunique-1.0-0.dll")]
+		static extern IntPtr unique_message_data_get_type();
+
+		public static GLib.GType GType { 
+			get {
+				IntPtr raw_ret = unique_message_data_get_type();
+				GLib.GType ret = new GLib.GType(raw_ret);
+				return ret;
+			}
+		}
+
+		[DllImport("libunique-1.0-0.dll")]
+		static extern IntPtr unique_message_data_copy(IntPtr raw);
+
+		private Unique.MessageData Copy() {
+			IntPtr raw_ret = unique_message_data_copy(Handle);
+			Unique.MessageData ret = raw_ret == IntPtr.Zero ? null : (Unique.MessageData) GLib.Opaque.GetOpaque (raw_ret, typeof (Unique.MessageData), true);
+			return ret;
+		}
+
+		public MessageData(IntPtr raw) : base(raw) {}
+
+		[DllImport("libunique-1.0-0.dll")]
+		static extern IntPtr unique_message_data_new();
+
+		public MessageData () 
+		{
+			Raw = unique_message_data_new();
+		}
+
+		[DllImport("libunique-1.0-0.dll")]
+		static extern void unique_message_data_free(IntPtr raw);
+
+		protected override void Free (IntPtr raw)
+		{
+			unique_message_data_free (raw);
+		}
+
+		class FinalizerInfo {
+			IntPtr handle;
+
+			public FinalizerInfo (IntPtr handle)
+			{
+				this.handle = handle;
+			}
+
+			public bool Handler ()
+			{
+				unique_message_data_free (handle);
+				return false;
+			}
+		}
+
+		~MessageData ()
+		{
+			if (!Owned)
+				return;
+			FinalizerInfo info = new FinalizerInfo (Handle);
+			GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
+		}
+
+#endregion
+#region Customized extensions
+#line 1 "MessageData.custom"
+//
+// MessageData.custom
+//
+// Author(s):
+//	Stephane Delcroix  <stephane delcroix org>
+//
+// Copyright (c) 2009 Stephane Delcroix
+//
+// This is open source software.
+//
+
+		public object Clone ()
+		{
+			return (object)Copy ();
+		}
+		
+		[DllImport("libunique-1.0-0.dll")]
+		static extern bool unique_message_data_set_text(IntPtr raw, IntPtr str, IntPtr length);
+
+		[DllImport("libunique-1.0-0.dll")]
+		static extern IntPtr unique_message_data_get_text(IntPtr raw);
+
+		public string Text {
+			set {
+				IntPtr native_str = GLib.Marshaller.StringToPtrGStrdup (value);
+				bool raw_ret = unique_message_data_set_text(Handle, native_str, new IntPtr ((long) System.Text.Encoding.UTF8.GetByteCount (value)));
+				bool ret = raw_ret;
+				GLib.Marshaller.Free (native_str);
+				if (!ret)
+					throw new Exception ("Failed to convert the text to UTF-8");
+			}
+			get {
+				IntPtr raw_ret = unique_message_data_get_text(Handle);
+				string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
+				return ret;
+			}
+		}
+
+		[DllImport("libunique-1.0-0.dll")]
+		static extern byte[] unique_message_data_get(IntPtr raw, out UIntPtr length);
+
+		[DllImport("libunique-1.0-0.dll")]
+		static extern void unique_message_data_set(IntPtr raw, byte[] data, UIntPtr n_data);
+
+		public byte[] Data { 
+			set { unique_message_data_set(Handle, value, new UIntPtr ((ulong) (value == null ? -1 : value.Length))); }
+			get {
+				UIntPtr native_length;
+				return unique_message_data_get(Handle, out native_length);
+			}
+		}
+
+
+
+
+#endregion
+	}
+}
diff --git a/lib/unique-sharp/unique/generated/Response.cs b/lib/unique-sharp/unique/generated/Response.cs
new file mode 100644
index 0000000..56e17b1
--- /dev/null
+++ b/lib/unique-sharp/unique/generated/Response.cs
@@ -0,0 +1,31 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace Unique {
+
+	using System;
+	using System.Runtime.InteropServices;
+
+#region Autogenerated code
+	[GLib.GType (typeof (Unique.ResponseGType))]
+	public enum Response {
+
+		Invalid,
+		Ok,
+		Cancel,
+		Fail,
+		Passthrough,
+	}
+
+	internal class ResponseGType {
+		[DllImport ("libunique-1.0-0.dll")]
+		static extern IntPtr unique_response_get_type ();
+
+		public static GLib.GType GType {
+			get {
+				return new GLib.GType (unique_response_get_type ());
+			}
+		}
+	}
+#endregion
+}
diff --git a/src/Clients/MainApp/MainApp.csproj b/src/Clients/MainApp/MainApp.csproj
index 3b0efbb..c2e3d0b 100644
--- a/src/Clients/MainApp/MainApp.csproj
+++ b/src/Clients/MainApp/MainApp.csproj
@@ -324,11 +324,9 @@
     </Reference>
     <Reference Include="nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" />
     <Reference Include="Mono.Simd" />
-    <Reference Include="unique-sharp">
-      <HintPath>..\..\..\lib\unique-sharp\unique\unique-sharp.dll</HintPath>
-    </Reference>
     <Reference Include="gio-sharp">
       <HintPath>..\..\..\lib\gio-sharp\gio\gio-sharp.dll</HintPath>
+      <Package>gio-sharp-2.0</Package>
     </Reference>
     <Reference Include="gtk-sharp-beans">
       <HintPath>..\..\..\lib\gtk-sharp-beans\gtk-sharp-beans.dll</HintPath>
@@ -385,6 +383,10 @@
       <Project>{05A7FEC4-974A-40EB-AFB8-14E523EEEFFB}</Project>
       <Name>FSpot.Gui</Name>
     </ProjectReference>
+    <ProjectReference Include="..\..\..\lib\unique-sharp\unique-sharp.csproj">
+      <Project>{5DBBB8C5-7BAF-46DA-B7D2-2486430141E2}</Project>
+      <Name>unique-sharp</Name>
+    </ProjectReference>
   </ItemGroup>
   <ItemGroup>
     <Folder Include="FSpot\" />



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