Merge lp:~eduardo-mucelli/cairo-dock-plug-ins/DbusInterfaces into lp:~cairo-dock-team/cairo-dock-plug-ins/plug-ins

Proposed by Eduardo Mucelli Rezende Oliveira
Status: Merged
Merged at revision: 2314
Proposed branch: lp:~eduardo-mucelli/cairo-dock-plug-ins/DbusInterfaces
Merge into: lp:~cairo-dock-team/cairo-dock-plug-ins/plug-ins
Diff against target: 13 lines (+3/-0)
1 file modified
Dbus/interfaces/python/CDApplet.py.in (+3/-0)
To merge this branch: bzr merge lp:~eduardo-mucelli/cairo-dock-plug-ins/DbusInterfaces
Reviewer Review Type Date Requested Status
Cairo-Dock Devs Pending
Review via email: mp+95908@code.launchpad.net

Description of the change

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.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== 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 @@
30import dbus30import dbus
31from dbus.mainloop.glib import DBusGMainLoop31from dbus.mainloop.glib import DBusGMainLoop
3232
33gobject.threads_init() # Enabling threading
34dbus.mainloop.glib.threads_init()
35
33DBusGMainLoop(set_as_default=True)36DBusGMainLoop(set_as_default=True)
3437
35INSTALL_PREFIX = os.path.abspath("..") # applets are launched from their install directory, so ".." is the folder containing all applets.38INSTALL_PREFIX = os.path.abspath("..") # applets are launched from their install directory, so ".." is the folder containing all applets.

Subscribers

People subscribed via source and target branches