diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2006-07-14 16:20:12 +0000 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2006-07-14 16:20:12 +0000 |
commit | a929c9a3b465db8b7e17b9b39936c612c2621a7c (patch) | |
tree | d1764257d1bd56f8e6a044516ccfc9bc44f7f9f5 /mono/example/BusListener.cs | |
parent | 5efe8e7f1d97931710558495a951e0b35afbfb72 (diff) |
* Remove all bindings
Diffstat (limited to 'mono/example/BusListener.cs')
-rw-r--r-- | mono/example/BusListener.cs | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/mono/example/BusListener.cs b/mono/example/BusListener.cs deleted file mode 100644 index d999360f..00000000 --- a/mono/example/BusListener.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Foo -{ - using System; - using DBus; - using Gtk; - - public class BusListener - { - - static void OnNameOwnerChanged (string name, - string oldOwner, - string newOwner) - { - if (oldOwner == "") - Console.WriteLine ("{0} created by {1}", - name, newOwner); - else if (newOwner == "") - Console.WriteLine ("{0} released by {1}", - name, oldOwner); - else - Console.WriteLine ("{0} transfered from {1} to {2}", - name, oldOwner, newOwner); - } - - public static int Main (string [] args) - { - Application.Init (); - - Connection connection; - connection = Bus.GetSessionBus (); - - BusDriver driver = BusDriver.New (connection); - driver.NameOwnerChanged += new NameOwnerChangedHandler (OnNameOwnerChanged); - - Console.WriteLine ("Listening for name owner changes..."); - - Application.Run (); - - return 0; - } - } - - -} |