Mercurial > pidgin.yaz
view libpurple/plugins/mono/MPlugin.cs @ 15539:7ae72b7c02b1
sf patch #1640011, from Celso Pinto
Patch for gaim.spec that fixes dependencies on SUSE
Add line breaks to Evan's NEWS entry
sf patch #1639901, from Saleem Abdulrasool
Fix the build failure of the Mono example dlls due to the
Mono API change
Show "(experimental)" next to the enable-mono option
when calling "./configure --help"
sf patch #1644019, from good ol' Ka-Hing Cheung
"fix compiling on gtk 2.4. xmppconsole.c is the culprit.
gtk_combo_box_get_active_text is defined in gtk 2.6 but not 2.4."
Sun apparently doesn't like when void functions return
the return value from another void function. For example:
void func1(void) {
printf("hi");
}
void func2(void) {
return func1(); /* this line causes a warning */
}
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 04 Feb 2007 08:46:24 +0000 |
parents | 5fe8042783c1 |
children | 80ee585fb53c |
line wrap: on
line source
using Gaim; 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]; Status old_status = (Status)args[1]; Status status = (Status)args[2]; Debug.debug(Debug.INFO, "mplug", "buddy " + buddy.Name + " went from " + old_status.Id + " to " + status.Id + "\n"); } public override void Load() { Debug.debug(Debug.INFO, "mplug", "loading...\n"); /*Signal.connect(BuddyList.GetHandle(), this, "buddy-away", new Signal.Handler(HandleSig));*/ BuddyList.OnBuddyStatusChanged.connect(this, new Signal.Handler(HandleSig)); } public override void Unload() { Debug.debug(Debug.INFO, "mplug", "unloading...\n"); } public override void Destroy() { Debug.debug(Debug.INFO, "mplug", "destroying...\n"); } }