summaryrefslogtreecommitdiffstats
path: root/gobject
Commit message (Collapse)AuthorAgeFilesLines
...
* reviewed by: Johan DahlinSebastian Granjoux2007-07-021-1/+1
| | | | | | | | | | | | | | | 2007-07-02 Sebastian Granjoux <seb.sfo@free.fr> reviewed by: Johan Dahlin * gobject/gobjectmodule.c: (pyg_gerror_exception_check): * tests/test_gtype.py: * tests/testhelpermodule.c: (_wrap_test_gerror_exception): Fix a bug in pyg_error_exception_check, add a test, Fixes #449879 svn path=/trunk/; revision=678
* Bug 447271 – gobject has a weird bug on mac. Involves python, property and ↵Gustavo J. A. M. Carneiro2007-06-172-1/+17
| | | | | | subclassing svn path=/trunk/; revision=677
* Support type=GObject or type=TYPE_OBJECT in the new properties API.Gustavo J. A. M. Carneiro2007-06-161-0/+4
| | | | svn path=/trunk/; revision=675
* OK'd by JohanYevgen Muntyan2007-06-072-2/+3
| | | | | | | | | | | | | | 2007-06-06 Yevgen Muntyan <muntyan@tamu.edu> OK'd by Johan * gobject/generate-constants.c: Return 0 from main(). * gobject/Makefile.am: use generate-constants$(EXEEXT) instead of generate-constants in the constants.py target rule. svn path=/trunk/; revision=674
* Bug 339924 – gnome-python doesn't compile on opensolarisGustavo J. A. M. Carneiro2007-05-091-1/+1
| | | | svn path=/trunk/; revision=672
* Store property values in the descriptor per instance, add a test.Johan Dahlin2007-05-021-3/+3
| | | | | | | | | | * gobject/propertyhelper.py: * tests/test_properties.py: Store property values in the descriptor per instance, add a test. svn path=/trunk/; revision=665
* Rewrap to fit in 79 charactersJohan Dahlin2007-05-011-5/+10
| | | | svn path=/trunk/; revision=664
* delete trailing whitespaceJohan Dahlin2007-05-011-28/+28
| | | | svn path=/trunk/; revision=663
* Add a property helper, fixes #338098Johan Dahlin2007-05-015-27/+417
| | | | | | | | | | | | | | | | | * examples/properties.py: * gobject/Makefile.am: * gobject/__init__.py: * gobject/constants.py.in: * gobject/generate-constants.c: (main): * gobject/propertyhelper.py: * tests/Makefile.am: * tests/test_enum.py: * tests/test_interface.py: * tests/test_properties.py: Add a property helper, fixes #338098 svn path=/trunk/; revision=662
* fix descriptor / toggle_ref interaction bugGustavo J. A. M. Carneiro2007-04-301-3/+4
| | | | svn path=/trunk/; revision=658
* reviewed by: Johan Dahlin <johan@gnome.org>James Livingstone2007-04-301-1/+1
| | | | | | | | | | | | | | | | 2007-04-29 James Livingstone <doclivingstone@gmail.com> reviewed by: Johan Dahlin <johan@gnome.org> * gobject/pygtype.c: (pyg_value_from_pyobject): * tests/test_signal.py: Add a missing else to avoid throwing a TypeError. Includes a test written by Ed Catmur. Fixes #374653 svn path=/trunk/; revision=657
* Treat None in a GValueArray as pointer/NULL, patch by Ed Catmur, fixesJohan Dahlin2007-04-301-0/+2
| | | | | | | | | | | | | | 2007-04-29 Johan Dahlin <johan@gnome.org> * gobject/pygtype.c: (pyg_value_array_from_pyobject): * tests/test_gtype.py: * tests/testhelpermodule.c: (_wrap_test_value_array): Treat None in a GValueArray as pointer/NULL, patch by Ed Catmur, fixes #352209. svn path=/trunk/; revision=656
* Fix leak, patch by Daniel Berrange. Fixes #428726 (Phil Dumont)Johan Dahlin2007-04-301-3/+3
| | | | | | | | * gobject/pygflags.c: (pyg_flags_from_gtype): Fix leak, patch by Daniel Berrange. Fixes #428726 (Phil Dumont) svn path=/trunk/; revision=653
* Add a generic CClosure marshaller based on ffi. This makes it possible toJohan Dahlin2007-04-294-4/+249
| | | | | | | | | | | | | | | | | | | | | | | | | | 2007-04-29 Johan Dahlin <jdahlin@async.com.br> * README: * configure.ac: * gobject/Makefile.am: * gobject/ffi-marshaller.c: (g_value_to_ffi_type), (g_value_from_ffi_type), (g_cclosure_marshal_generic_ffi): * gobject/ffi-marshaller.h: * gobject/gobjectmodule.c: (create_signal), (init_gobject): * pygobject-2.0.pc.in: * tests/test_signal.py: * tests/testhelpermodule.c: (test1_callback), (test1_callback_swapped), (test2_callback), (test3_callback), (test4_callback), (test_float_callback), (test_double_callback), (test_string_callback), (test_object_callback), (connectcallbacks), (_wrap_connectcallbacks), (inittesthelper): Add a generic CClosure marshaller based on ffi. This makes it possible to connect to signals on PyGObjects from C. libffi is now an optional dependency Fixes #353816 (Edward Hervey) svn path=/trunk/; revision=651
* new pygobject_set_properties and pygobject_get_properties methodsGian Mario Tagliaretti2007-04-231-0/+107
| | | | svn path=/trunk/; revision=646
* Bug 425242 – Add API to convert a gobject.GError exception being raised to ↵Gustavo J. A. M. Carneiro2007-04-142-1/+77
| | | | | | a GError** parameter svn path=/trunk/; revision=645
* Bug 415853 – g_set_application_name() bindingGustavo J. A. M. Carneiro2007-04-141-0/+30
| | | | svn path=/trunk/; revision=644
* Bug 419379 – Modernize init_pygobject: use static inline functions instead ↵Gustavo J. A. M. Carneiro2007-04-141-43/+97
| | | | | | of macros svn path=/trunk/; revision=643
* Bug 320428 – Break PyGObject<->GObject reference cycleGustavo J. A. M. Carneiro2007-04-145-108/+425
| | | | svn path=/trunk/; revision=642
* Fix a couple of compiler warnings.Gustavo J. A. M. Carneiro2007-03-171-2/+2
| | | | svn path=/trunk/; revision=640
* Release the GIL when calling g_object_set_property, since setting aEdward Hervey2007-03-031-0/+3
| | | | | | | | | * gobject/pygobject.c: (set_property_from_pspec): Release the GIL when calling g_object_set_property, since setting a property might trigger some code that might come back in python land. Fixes #395048 svn path=/trunk/; revision=638
* Remove .cvsignore archivesJohan Dahlin2007-01-161-7/+0
| | | | svn path=/trunk/; revision=636
* Improve exceptionJohan Dahlin2006-11-181-1/+4
|
* Make sure an exception is raised when we pass in invalid arguments to theJohan Dahlin2006-11-181-2/+2
| | | | | | | * gobject/pygoptiongroup.c (pyg_option_group_dealloc): * tests/test_option.py (TestOption.testBadConstructor): Make sure an exception is raised when we pass in invalid arguments to the optiongroup constructor, add a test. #364576 (Laszlo Pandy)
* set __module__ on gobject derived types, fixes #376099Johan Dahlin2006-11-181-2/+12
| | | | | * gobject/pygobject.c (pygobject_register_class): set __module__ on gobject derived types, fixes #376099
* reviewed by: Johan Dahlin <johan@gnome.org>Yevgen Muntyan2006-11-182-14/+14
| | | | | | | | | | | | | 2006-11-18 Yevgen Muntyan <muntyan@tamu.edu> reviewed by: Johan Dahlin <johan@gnome.org> * gobject/gobjectmodule.c: (create_property): * gobject/pygparamspec.c: (pyg_param_spec_getattr): * tests/test_properties.py: Avoid truncating in pyg_param_spec_getattr, add test for all non-float numeric types. Fixes #353943
* Use PyObject_Cmp instead of comparing function closure addresses, whichJohan Dahlin2006-11-181-2/+3
| | | | | | * gobject/pygtype.c (gclosure_from_pyfunc): Use PyObject_Cmp instead of comparing function closure addresses, which makes it possible to use any callable and not just functions. Fixes #375589 (Dima)
* Revert accidentally commited changesJohan Dahlin2006-11-181-1/+1
|
* Add a test for #375589Johan Dahlin2006-11-181-1/+1
|
* Py_ssize_t postfixGustavo J. A. M. Carneiro2006-10-031-0/+1
|
* Python 2.5, int vs ssize_tGustavo J. A. M. Carneiro2006-10-038-50/+72
|
* (init_pygobject_check): Add parentheses "around && within ||" to please gcc.Gustavo J. A. M. Carneiro2006-09-241-1/+1
|
* signal emission hook refcount fixGustavo J. A. M. Carneiro2006-09-161-1/+0
|
* Declare variables at start of code blockJohn Ehresman2006-09-121-4/+5
| | | | | | | 2006-09-12 John Ehresman <jpe@wingware.com> * gobject/pygobject.h (init_pygobject_check): Declare variables at start of code block
* Increase the timeout to 1000ms instead of 100.Johan Dahlin2006-09-061-1/+1
| | | | | * gobject/pygmainloop.c (pyg_signal_watch_prepare): Increase the timeout to 1000ms instead of 100.
* Improve the version checkPYGOBJECT_2_12_1Johan Dahlin2006-09-041-24/+25
|
* interface fixes and testsGustavo J. A. M. Carneiro2006-08-271-2/+5
|
* Bug 353039 – Failure in signal emission during do_set_property invoked ↵Gustavo J. A. M. Carneiro2006-08-271-5/+11
| | | | from constructor
* type registration fixGustavo J. A. M. Carneiro2006-08-261-2/+74
|
* fix interface registrationGustavo J. A. M. Carneiro2006-08-171-31/+31
|
* Replace uses of typename with type_name, because that is a reserved C++Murray Cumming2006-08-152-7/+7
| | | | | | | | | | | 2006-08-15 Murray Cumming <murrayc@murrayc.com> * gobject/pygobject-private.h: * gobject/pygobject.h: Replace uses of typename with type_name, because that is a reserved C++ keyword. This was breaking compilation of Glom due its use in the new type_register_custom function pointer in pygobject.h.
* Fix define to point to the correct function pointer field.John Finlay2006-07-301-1/+1
| | | | | * gobject/pygobject.h (pyg_param_gvalue_from_pyobject): Fix define to point to the correct function pointer field.
* better debug warningsGustavo J. A. M. Carneiro2006-07-292-2/+10
|
* Fix 3 ! problems caused by refactoringJohan Dahlin2006-07-251-22/+24
|
* Add a macro to easily check the installed pygobject version.Johan Dahlin2006-07-251-0/+24
| | | | | * gobject/pygobject.h (init_pygobject_check): Add a macro to easily check the installed pygobject version.
* gobject/pygflags.c (pyg_flags_add) Duplicate the string before sending itJohan Dahlin2006-07-252-9/+13
| | | | | | * gobject/pygflags.c (pyg_flags_add) * gobject/pygenum.c (pyg_enum_add): Duplicate the string before sending it to python. Fixes GCC warnings.
* Fix typo in Finlays commitJohan Dahlin2006-07-251-2/+2
|
* Avoid segfault when g_flags_get_first_value returns NULL.John Finlay2006-07-251-3/+12
| | | | | | * gobject/pygflags.c (pyg_flags_get_first_value_name) (pyg_flags_get_first_value_nick): Avoid segfault when g_flags_get_first_value returns NULL.
* Add infrastructure for lazy type registration, fixes #Johan Dahlin2006-07-135-11/+102
| | | | | | | | | | | | | * gobject/gobjectmodule.c: (pyg_type_from_name), (get_type_name_for_class): * gobject/pygobject-private.h: * gobject/pygobject.c: (pygobject_new_with_interfaces), (pygobject_lookup_class), (pygobject_emit): * gobject/pygobject.h: * gobject/pygtype.c: (_wrap_g_type_from_name), (pyg_type_from_object), (pyg_type_register_custom_callback), (pyg_type_get_custom), (_pyg_type_from_name): Add infrastructure for lazy type registration, fixes #
* goption leak fixedGustavo J. A. M. Carneiro2006-07-131-2/+2
|