Rebuilt for e-d-s 3.4
[git/cygwin-packages/gnome-python-desktop.git] / 2.32.0-eds-bonobo.patch
1 --- origsrc/gnome-python-desktop-2.32.0/evolution/ebookmodule.c 2011-12-08 23:20:46.212054400 -0600
2 +++ src/gnome-python-desktop-2.32.0/evolution/ebookmodule.c 2011-12-08 23:17:26.861431000 -0600
3 @@ -21,6 +21,7 @@
4 #endif
5
6 #include <pygobject.h>
7 +#include <libedataserver/eds-version.h>
8
9 void pyebook_register_classes(PyObject *d);
10 void pyebook_add_constants(PyObject *m, const gchar *strip_prefix);
11 @@ -35,9 +36,11 @@ initebook(void)
12
13 if (!pygobject_init(-1, -1, -1))
14 return;
15 +#if !EDS_CHECK_VERSION(2, 32, 0)
16 PyImport_ImportModule("bonobo");
17 if (PyErr_Occurred())
18 return;
19 +#endif
20
21 m = Py_InitModule("ebook", pyebook_functions);
22 d = PyModule_GetDict(m);
23 --- origsrc/gnome-python-desktop-2.32.0/evolution/ecalmodule.c 2011-12-08 23:20:46.212054400 -0600
24 +++ src/gnome-python-desktop-2.32.0/evolution/ecalmodule.c 2011-12-08 23:17:30.471436000 -0600
25 @@ -21,6 +21,7 @@
26 #endif
27
28 #include <pygobject.h>
29 +#include <libedataserver/eds-version.h>
30
31 void pyecal_register_classes(PyObject *d);
32 void pyecal_add_constants(PyObject *m, const gchar *strip_prefix);
33 @@ -35,9 +36,11 @@ initecal(void)
34 /* perform any initialisation required by the library here */
35 if (!pygobject_init(-1, -1, -1))
36 return;
37 +#if !EDS_CHECK_VERSION(2, 32, 0)
38 PyImport_ImportModule("bonobo");
39 if (PyErr_Occurred())
40 return;
41 +#endif
42
43 m = Py_InitModule("ecal", pyecal_functions);
44 d = PyModule_GetDict(m);
This page took 0.034164 seconds and 5 git commands to generate.