Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-tweak.git;a=commitdiff;h=8fe706cc9f920b46fd7fc87ad7d18479627dbfa9

commit 8fe706cc9f920b46fd7fc87ad7d18479627dbfa9
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Tue Sep 7 22:16:39 2010 +0200

*import proxy

diff --git a/frugal-mono-tools/Main.cs b/frugal-mono-tools/Main.cs
index 2c4dbed..0fcaa86 100644
--- a/frugal-mono-tools/Main.cs
+++ b/frugal-mono-tools/Main.cs
@@ -135,12 +135,18 @@ namespace frugalmonotools
{
try{
bus = Bus.Session;
-                                       if (bus.RequestName (DbusName) == 
RequestNameReply.PrimaryOwner) {
+                                       if (bus.RequestName (DbusName) == 
RequestNameReply.PrimaryOwner)
+                                       {
//create a new instance of the object to be exported
DbusCom = new DbusObject ();
bus.Register (DbusPath, DbusCom);
//EXEMPLE : MainClass.DbusCom.Hello("test");
}
+                                       else
+                                       {
+                                               //import a remote to a local 
proxy
+                                               DbusCom = 
bus.GetObject<DbusObject> (DbusName, DbusPath);
+                                       }

}
catch(Exception exe)
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to