mousetrap r6 - in trunk: . src/mouseTrap
- From: flaper svn gnome org
- To: svn-commits-list gnome org
- Subject: mousetrap r6 - in trunk: . src/mouseTrap
- Date: Sat, 30 Aug 2008 13:27:00 +0000 (UTC)
Author: flaper
Date: Sat Aug 30 13:26:59 2008
New Revision: 6
URL: http://svn.gnome.org/viewvc/mousetrap?rev=6&view=rev
Log:
Bug fix, Ticket 11
Modified:
trunk/ChangeLog
trunk/src/mouseTrap/mouseTrap.py
Modified: trunk/src/mouseTrap/mouseTrap.py
==============================================================================
--- trunk/src/mouseTrap/mouseTrap.py (original)
+++ trunk/src/mouseTrap/mouseTrap.py Sat Aug 30 13:26:59 2008
@@ -48,7 +48,6 @@
import shutil
import getopt
import gobject
- import mTDbus as dbus
import mouseTrapPref as mTPref
except ImportError, e:
dialogs.errorDialog(
@@ -181,6 +180,22 @@
except:
debug.log( debug.LOAD, _( "Highest" ) )
+def startDBus( ):
+ """
+ This will start the mouseTraps dbus service
+ """
+
+ global dbus
+
+ try:
+ dbus = __import__("mTDbus",
+ globals(),
+ locals(),
+ [''])
+ dbus.start()
+ except:
+ debug.log( debug.LOAD, _( "Highest" ) )
+
def loadSettings( ):
"""
This function loads the mouseTrap's settings
@@ -301,7 +316,7 @@
usage()
quit(2)
- dbus.start()
+ startDBus()
showMainGui()
startCam()
startEventsHandler()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]