Author: jerome
Date: 2009-10-01 15:18:53 +0200 (Thu, 01 Oct 2009)
New Revision: 5582
Modified:
software_suite_v3/software/plugin/plugin-skype/trunk/executables/plugin-skype.py
Log:
* Fixed a dummy bug starting skype client on Windblows.
Modified:
software_suite_v3/software/plugin/plugin-skype/trunk/executables/plugin-skype.py
===================================================================
---
software_suite_v3/software/plugin/plugin-skype/trunk/executables/plugin-skype.py
2009-10-01 12:39:26 UTC (rev 5581)
+++
software_suite_v3/software/plugin/plugin-skype/trunk/executables/plugin-skype.py
2009-10-01 13:18:53 UTC (rev 5582)
@@ -95,7 +95,11 @@
"""Plugin entry point.
This method should be used to dispatch commands.
"""
- self.__skype = Skype4Py.Skype(Transport='x11')
+ if os.name != 'nt':
+ self.__skype = Skype4Py.Skype(Transport='x11')
+ else:
+ self.__skype = Skype4Py.Skype()
+
if self.getCommand() == "run":
self.run()
else:
@@ -132,14 +136,14 @@
self.__skype._API.Close()
self.__skype = None
self.__apiAttachState = -1
- if self.__skype.Client.IsRunning != None:
+ if self.__skype.Client.IsRunning:
#Shutting down Skype application.
self.__skype.Client.Shutdown()
refreshTaskBar()
try:
if self.__skype != None:
self.hangUp()
- if self.__skype.Client.IsRunning != None:
+ if self.__skype.Client.IsRunning:
closeSkype()
else:
self.__skype._API.Close()
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn