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
1=== modified file 'Dbus/interfaces/python/CDApplet.py.in'
2--- Dbus/interfaces/python/CDApplet.py.in 2012-02-17 00:54:24 +0000
3+++ Dbus/interfaces/python/CDApplet.py.in 2012-03-05 14:35:14 +0000
4@@ -30,6 +30,9 @@
5 import dbus
6 from dbus.mainloop.glib import DBusGMainLoop
7
8+gobject.threads_init() # Enabling threading
9+dbus.mainloop.glib.threads_init()
10+
11 DBusGMainLoop(set_as_default=True)
12
13 INSTALL_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