Mercurial > pidgin
comparison plugins/mono/MPlugin.cs @ 11980:67fbd2ff4c4e
[gaim-migrate @ 14273]
Mono cleanup patch from Eoin Coffey
First, I changed mono_loader_ to ml_, since I was
getting sick of typing mono_loader_ :-D
Moved the mono runtime init and deinit code out of
mono.c into ml_init and ml_uninit in mono-helper.c
Added api/Status.cs and loader/status-glue.c so the
.net api now knows very little (as in the 'id') of
statuses.
committer: Tailor Script <tailor@pidgin.im>
| author | Gary Kramlich <grim@reaperworld.com> |
|---|---|
| date | Sat, 05 Nov 2005 02:09:30 +0000 |
| parents | a3302d271199 |
| children |
comparison
equal
deleted
inserted
replaced
| 11979:717cbb3115bc | 11980:67fbd2ff4c4e |
|---|---|
| 3 public class MPlugin : GaimPlugin | 3 public class MPlugin : GaimPlugin |
| 4 { | 4 { |
| 5 public void HandleSig(object[] args) | 5 public void HandleSig(object[] args) |
| 6 { | 6 { |
| 7 Buddy buddy = (Buddy)args[0]; | 7 Buddy buddy = (Buddy)args[0]; |
| 8 Status old_status = (Status)args[1]; | |
| 9 Status status = (Status)args[2]; | |
| 8 | 10 |
| 9 Debug.debug(Debug.INFO, "mplug", "buddy " + buddy.Name + " went away\n"); | 11 Debug.debug(Debug.INFO, "mplug", "buddy " + buddy.Name + " went from " + old_status.Id + " to " + status.Id + "\n"); |
| 10 } | 12 } |
| 11 | 13 |
| 12 public override void Load() | 14 public override void Load() |
| 13 { | 15 { |
| 14 Debug.debug(Debug.INFO, "mplug", "loading...\n"); | 16 Debug.debug(Debug.INFO, "mplug", "loading...\n"); |
| 15 | 17 |
| 16 /*Signal.connect(BuddyList.GetHandle(), this, "buddy-away", new Signal.Handler(HandleSig));*/ | 18 /*Signal.connect(BuddyList.GetHandle(), this, "buddy-away", new Signal.Handler(HandleSig));*/ |
| 17 BuddyList.OnBuddyAway.connect(this, new Signal.Handler(HandleSig)); | 19 BuddyList.OnBuddyStatusChanged.connect(this, new Signal.Handler(HandleSig)); |
| 18 } | 20 } |
| 19 | 21 |
| 20 public override void Unload() | 22 public override void Unload() |
| 21 { | 23 { |
| 22 Debug.debug(Debug.INFO, "mplug", "unloading...\n"); | 24 Debug.debug(Debug.INFO, "mplug", "unloading...\n"); |
