File: eggrecentmodule.c

package info (click to toggle)
gnome-python-extras 2.14.3-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,756 kB
  • ctags: 731
  • sloc: sh: 8,856; ansic: 5,011; xml: 1,319; python: 725; makefile: 415
file content (28 lines) | stat: -rw-r--r-- 772 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* -*- Mode: C; c-basic-offset: 4 -*- */

/* include this first, before NO_IMPORT_PYGOBJECT is defined */
#include <pygobject.h>

void pyeggrecent_register_classes (PyObject *d);
void pyeggrecent_add_constants(PyObject *module, const gchar *strip_prefix);

extern PyMethodDef pyeggrecent_functions[];

DL_EXPORT(void)
initrecent(void)
{
    PyObject *m, *d;

    if (!g_thread_supported ())
        g_thread_init (NULL);
    init_pygobject();

    m = Py_InitModule("egg.recent", pyeggrecent_functions);
    d = PyModule_GetDict(m);

    pyeggrecent_register_classes(d);
    pyeggrecent_add_constants(m, "EGG_");

    PyErr_Warn(PyExc_DeprecationWarning, "the module egg.recent is deprecated;"
               " equivalent functionality can now be found in pygtk 2.10");
}