Add Makefile target maintainer-update-website to update d.fd.o/doc/dbus-python
[dbus-python-phuang.git] / dbus / glib.py
blobbbb975fffe6f3ac99b20371551f334911ede314e
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 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version.
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 """Deprecated module which sets the default GLib main context as the mainloop
24 implementation within D-Bus, as a side-effect of being imported!
26 This API is highly non-obvious, so instead of importing this module,
27 new programs which don't need pre-0.80 compatibility should use this
28 equivalent code::
30 from dbus.mainloop.glib import DBusGMainLoop
31 DBusGMainLoop(set_as_default=True)
32 """
33 __docformat__ = 'restructuredtext'
35 from dbus.mainloop.glib import DBusGMainLoop, threads_init
36 import _dbus_glib_bindings
37 import _dbus_bindings
39 init_threads = threads_init
41 DBusGMainLoop(set_as_default=True)