Imported Upstream version 2.28.6
[platform/upstream/pygobject2.git] / gio / __init__.py
1 # -*- Mode: Python -*-
2 # pygobject - Python bindings for the GObject library
3 # Copyright (C) 2008  Johan Dahlin
4 #
5 #   gio/__init__.py: initialisation file for gio module
6 #
7 # This library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2.1 of the License, or (at your option) any later version.
11 #
12 # This library 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 GNU
15 # Lesser General Public License for more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this library; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
20 # USA
21
22 from gobject import GObjectMeta
23 from _gio import *
24 from _gio import \
25      _app_info_init, _install_app_info_meta, \
26      _file_init, _install_file_meta
27 try:
28     import unix
29     unix # pyflakes
30 except ImportError:
31     unix = None
32 del _gio
33
34 class GFileMeta(GObjectMeta):
35     __call__ = _file_init
36 _install_file_meta(GFileMeta)
37
38 class GAppInfoMeta(GObjectMeta):
39     __call__ = _app_info_init
40 _install_app_info_meta(GAppInfoMeta)