[maemo-commits] [maemo-commits] r8982 - in projects/haf/branches/maemo-af-desktop/python-hildon-desktop: . libhildondesktop
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Mon Jan 8 17:40:28 EET 2007
- Previous message: [maemo-commits] r8981 - projects/haf/branches/hildon-control-panel/refactoring
- Next message: [maemo-commits] r8983 - projects/haf/trunk/python-dbus/debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: lucasr Date: 2007-01-08 17:40:27 +0200 (Mon, 08 Jan 2007) New Revision: 8982 Modified: projects/haf/branches/maemo-af-desktop/python-hildon-desktop/ChangeLog projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/hildondesktop.defs projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/hildondesktopmodule.c Log: 200i7-01-08 Lucas Rocha <lucas.rocha at nokia.com> * libhildondesktop/hildondesktopmodule.c: export enums and constants to bindings also. Modified: projects/haf/branches/maemo-af-desktop/python-hildon-desktop/ChangeLog =================================================================== --- projects/haf/branches/maemo-af-desktop/python-hildon-desktop/ChangeLog 2007-01-08 15:09:32 UTC (rev 8981) +++ projects/haf/branches/maemo-af-desktop/python-hildon-desktop/ChangeLog 2007-01-08 15:40:27 UTC (rev 8982) @@ -1,3 +1,8 @@ +200i7-01-08 Lucas Rocha <lucas.rocha at nokia.com> + + * libhildondesktop/hildondesktopmodule.c: export enums and constants + to bindings also. + 2006-12-29 Lucas Rocha <lucas.rocha at nokia.com> * libhildondesktop/hildondesktop.defs, libhildondesktop/Makefile.am, Modified: projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/hildondesktop.defs =================================================================== --- projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/hildondesktop.defs 2007-01-08 15:09:32 UTC (rev 8981) +++ projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/hildondesktop.defs 2007-01-08 15:40:27 UTC (rev 8982) @@ -38,7 +38,7 @@ ;; Enumerations and flags ... (define-enum HomeAppletResizeType - (in-module "Hildon") + (in-module "HildonDesktop") (c-name "HildonHomeAppletResizeType") (gtype-id "HILDON_HOME_APPLET_RESIZE_TYPE_TYPE") (values @@ -49,7 +49,6 @@ ) ) - ;; From /usr/include/libhildondesktop/libhildondesktop/hildon-desktop-item.h (define-function hildon_desktop_item_get_type Modified: projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/hildondesktopmodule.c =================================================================== --- projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/hildondesktopmodule.c 2007-01-08 15:09:32 UTC (rev 8981) +++ projects/haf/branches/maemo-af-desktop/python-hildon-desktop/libhildondesktop/hildondesktopmodule.c 2007-01-08 15:40:27 UTC (rev 8982) @@ -1,6 +1,7 @@ #include <pygobject.h> void hildondesktop_register_classes (PyObject *d); +void hildondesktop_add_constants(PyObject *module, const gchar *strip_prefix); extern PyMethodDef hildondesktop_functions[]; @@ -15,7 +16,8 @@ d = PyModule_GetDict (m); hildondesktop_register_classes (d); - + hildondesktop_add_constants (m, "HILDON_"); + if (PyErr_Occurred ()) { Py_FatalError ("can't initialise module hildondesktop"); }
- Previous message: [maemo-commits] r8981 - projects/haf/branches/hildon-control-panel/refactoring
- Next message: [maemo-commits] r8983 - projects/haf/trunk/python-dbus/debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]