changeset 20385:fb83c1d7e154

sf patch #1639901, from Saleem Abdulrasool Fix the build failure of the Mono example dlls due to the Mono API change
author Mark Doliner <mark@kingant.net>
date Thu, 25 Jan 2007 08:11:21 +0000
parents 590d00c472d3
children 1657b86dc04e
files COPYRIGHT libgaim/plugins/mono/GetBuddyBack.cs libgaim/plugins/mono/MPlugin.cs
diffstat 3 files changed, 17 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/COPYRIGHT	Thu Jan 25 07:54:39 2007 +0000
+++ b/COPYRIGHT	Thu Jan 25 08:11:21 2007 +0000
@@ -4,6 +4,7 @@
 If you have contributed to Gaim, you deserve to be on this list.
 Contact us (see: AUTHORS) and we'll add you.
 
+Saleem Abdulrasool
 Dave Ahlswede
 Manuel Amador
 Matt Amato
--- a/libgaim/plugins/mono/GetBuddyBack.cs	Thu Jan 25 07:54:39 2007 +0000
+++ b/libgaim/plugins/mono/GetBuddyBack.cs	Thu Jan 25 08:11:21 2007 +0000
@@ -1,7 +1,14 @@
 using Gaim;
 
-public class GetBuddyBack : GaimPlugin
+public class GetBuddyBack : Plugin
 {
+	private static PluginInfo info = new PluginInfo("C# Get Buddy Back", "0.1", "Prints when a Buddy returns", "Longer Description", "Eoin Coffey", "urled");
+
+	public GetBuddyBack()
+		: base (info)
+	{
+	}
+
 	public void HandleSig(object[] args)
 	{
 		Buddy buddy = (Buddy)args[0];
@@ -24,9 +31,4 @@
 	public override void Destroy()
 	{
 	}
-	
-	public override GaimPluginInfo Info()
-	{
-		return new GaimPluginInfo("C# Get Buddy Back", "0.1", "Prints when a Buddy returns", "Longer Description", "Eoin Coffey", "urled");
-	}
 }
--- a/libgaim/plugins/mono/MPlugin.cs	Thu Jan 25 07:54:39 2007 +0000
+++ b/libgaim/plugins/mono/MPlugin.cs	Thu Jan 25 08:11:21 2007 +0000
@@ -1,7 +1,14 @@
 using Gaim;
 
-public class MPlugin : GaimPlugin
+public class MPlugin : Plugin
 {
+	private static PluginInfo info = new PluginInfo("C# Plugin", "0.1", "Test C# Plugin", "Longer Description", "Eoin Coffey", "urled");
+
+	public MPlugin()
+		: base(info)
+	{
+	}
+
 	public void HandleSig(object[] args)
 	{
 		Buddy buddy = (Buddy)args[0];
@@ -28,9 +35,4 @@
 	{
 		Debug.debug(Debug.INFO, "mplug", "destroying...\n");
 	}
-	
-	public override GaimPluginInfo Info()
-	{
-		return new GaimPluginInfo("C# Plugin", "0.1", "Test C# Plugin", "Longer Description", "Eoin Coffey", "urled");
-	}
 }