forked from rhult/ige-mac-integration
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Introspection] Change gtk_osxapplication to gtkosx_application in py…
…thon bindings
- Loading branch information
Showing
2 changed files
with
18 additions
and
18 deletions.
There are no files selected for viewing
16 changes: 8 additions & 8 deletions
16
bindings/python/gtkosx_application/gtkosx_application-module.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,25 @@ | ||
| #include <pygobject.h> | ||
|
|
||
| void gtk_osxapplication_register_classes (PyObject *d); | ||
| void pygtk_osxapplication_add_constants(PyObject *module, const gchar *strip_prefix); | ||
| void gtkosx_application_register_classes (PyObject *d); | ||
| void pygtkosx_application_add_constants(PyObject *module, const gchar *strip_prefix); | ||
|
|
||
| extern PyMethodDef gtk_osxapplication_functions[]; | ||
| extern PyMethodDef gtkosx_application_functions[]; | ||
|
|
||
| DL_EXPORT(void) | ||
| init_gtk_osxapplication (void) | ||
| init_gtkosx_application (void) | ||
| { | ||
| PyObject *m, *d; | ||
|
|
||
| init_pygobject (); | ||
|
|
||
| m = Py_InitModule ("gtk_osxapplication._gtk_osxapplication", | ||
| gtk_osxapplication_functions); | ||
| m = Py_InitModule ("gtkosx_application._gtkosx_application", | ||
| gtkosx_application_functions); | ||
| d = PyModule_GetDict (m); | ||
|
|
||
| gtk_osxapplication_register_classes (d); | ||
| gtkosx_application_register_classes (d); | ||
|
|
||
| if (PyErr_Occurred ()) { | ||
| PyErr_Print(); | ||
| Py_FatalError ("can't initialize module gtk_osxapplication:"); | ||
| Py_FatalError ("can't initialize module gtkosx_application:"); | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters