Remove trailing whitespace in C source
[dbus-python-phuang.git] / dbus / glib.py
blob548f12186370a159fd91701897013441efe1872e
1 # Copyright (C) 2004 Anders Carlsson
2 # Copyright (C) 2004, 2005, 2006 Red Hat Inc. <http://www.redhat.com/>
3 # Copyright (C) 2005, 2006 Collabora Ltd. <http://www.collabora.co.uk/>
5 # Licensed under the Academic Free License version 2.1
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 """Deprecated module which sets the default GLib main context as the mainloop
22 implementation within D-Bus, as a side-effect of being imported!
24 This API is highly non-obvious, so instead of importing this module,
25 new programs which don't need pre-0.80 compatibility should use this
26 equivalent code::
28 from dbus.mainloop.glib import DBusGMainLoop
29 DBusGMainLoop(set_as_default=True)
30 """
31 __docformat__ = 'restructuredtext'
33 from dbus.mainloop.glib import DBusGMainLoop, threads_init
34 import _dbus_glib_bindings
35 import _dbus_bindings
37 init_threads = threads_init
39 DBusGMainLoop(set_as_default=True)