~ubuntu-branches/ubuntu/trusty/gnome-python/trusty

« back to all changes in this revision

Viewing changes to gconf/gconfmodule.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-12-02 12:30:09 UTC
  • Revision ID: james.westby@ubuntu.com-20051202123009-z00n5h4uuwfo64ev
Tags: upstream-2.12.2
ImportĀ upstreamĀ versionĀ 2.12.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; c-basic-offset: 4 -*- */
 
2
 
 
3
#ifdef HAVE_CONFIG_H
 
4
#include "config.h"
 
5
#endif
 
6
 
 
7
/* include this first, before NO_IMPORT_PYGOBJECT is defined */
 
8
#include <pygobject.h>
 
9
 
 
10
#include "gconf-types.h"
 
11
 
 
12
void pygconf_register_classes (PyObject *d);
 
13
void pygconf_add_constants(PyObject *module, const gchar *strip_prefix);
 
14
                
 
15
extern PyMethodDef pygconf_functions[];
 
16
extern PyTypeObject PyGConfEngine_Type;
 
17
 
 
18
DL_EXPORT(void)
 
19
initgconf (void)
 
20
{
 
21
        PyObject *m, *d;
 
22
 
 
23
        init_pygobject ();
 
24
 
 
25
        m = Py_InitModule ("gconf", pygconf_functions);
 
26
        d = PyModule_GetDict (m);
 
27
 
 
28
        pygconf_register_classes (d);
 
29
        pygconf_add_constants (m, "GCONF_");
 
30
        pygconf_register_engine_type (m);
 
31
 
 
32
        PyModule_AddObject(m, "Engine", (PyObject *) &PyGConfEngine_Type);
 
33
}