cairo-dock-team team mailing list archive
-
cairo-dock-team team
-
Mailing list archive
-
Message #03620
[Merge] lp:~eduardo-mucelli/cairo-dock-plug-ins/DbusInterfaces into lp:cairo-dock-plug-ins
Eduardo Mucelli Rezende Oliveira has proposed merging lp:~eduardo-mucelli/cairo-dock-plug-ins/DbusInterfaces into lp:cairo-dock-plug-ins.
Requested reviews:
Cairo-Dock Team (cairo-dock-team)
For more details, see:
https://code.launchpad.net/~eduardo-mucelli/cairo-dock-plug-ins/DbusInterfaces/+merge/95908
Enabling threads on the Python Interface. The Twitter applet is going to need to use threads to act as a consumer of the Twitter Stream API. Well, hopefully future applets also are going to utilize it too.
--
https://code.launchpad.net/~eduardo-mucelli/cairo-dock-plug-ins/DbusInterfaces/+merge/95908
Your team Cairo-Dock Team is requested to review the proposed merge of lp:~eduardo-mucelli/cairo-dock-plug-ins/DbusInterfaces into lp:cairo-dock-plug-ins.
=== modified file 'Dbus/interfaces/python/CDApplet.py.in'
--- Dbus/interfaces/python/CDApplet.py.in 2012-02-17 00:54:24 +0000
+++ Dbus/interfaces/python/CDApplet.py.in 2012-03-05 14:35:14 +0000
@@ -30,6 +30,9 @@
import dbus
from dbus.mainloop.glib import DBusGMainLoop
+gobject.threads_init() # Enabling threading
+dbus.mainloop.glib.threads_init()
+
DBusGMainLoop(set_as_default=True)
INSTALL_PREFIX = os.path.abspath("..") # applets are launched from their install directory, so ".." is the folder containing all applets.
Follow ups