summaryrefslogtreecommitdiffstats
path: root/gobject
Commit message (Collapse)AuthorAgeFilesLines
...
* Install the glib module, the helper library and the headers. Use it fromJohan Dahlin2008-07-204-926/+41
| | | | | | | | | | | | | | | | 2008-07-20 Johan Dahlin <johan@gnome.org> * glib/Makefile.am: * gobject/Makefile.am: * gobject/__init__.py: * gobject/gobjectmodule.c (pyg_threads_init), (pyg_error_check), (pyg_gerror_exception_check), (init_gobject): * gobject/option.py: Install the glib module, the helper library and the headers. Use it from gobject and remove the old glib specific code from there. svn path=/trunk/; revision=842
* Use pkg-config to check for libffi again.Johan Dahlin2008-07-201-1/+1
| | | | | | | | | | | 2008-07-20 Johan Dahlin <johan@gnome.org> * configure.ac: * gobject/Makefile.am: Use pkg-config to check for libffi again. svn path=/trunk/; revision=841
* Use the prefix G_IO_ for stripping constants instead of just G_ Check soJohan Dahlin2008-07-171-5/+14
| | | | | | | | | | | | | | | | | 2008-07-17 Johan Dahlin <johan@gnome.org> * gio/giomodule.c (init_gio): Use the prefix G_IO_ for stripping constants instead of just G_ * gobject/gobjectmodule.c (pyg_constant_strip_prefix): Check so the fist part of name and strip_prefix are the same, if they don't, just strip of the part of strip_prefix which matches. This removes the initial IO_* prefix for some constants in gio. Eg, gio.IO_ERROR_* -> gio.ERROR_* svn path=/trunk/; revision=817
* Bug 378704 – OptionParser.parse_args() returns unexpected results PatchJohan Dahlin2008-07-141-1/+5
| | | | | | | | | | | 2008-07-14 Johan Dahlin <johan@gnome.org> Bug 378704 – OptionParser.parse_args() returns unexpected results * gobject/option.py: Patch by Johannes Hölzl svn path=/trunk/; revision=804
* Bug 504337 - crash bug in gobject.Timeout and gobject.IdleJohan Dahlin2008-07-141-4/+2
| | | | | | | | | | | | | 2008-07-14 Johan Dahlin <johan@gnome.org> Bug 504337 - crash bug in gobject.Timeout and gobject.Idle * gobject/pygsource.c: * tests/test_source.py: Fix crash in Timeout and Idle, patch by Bryan Silverthorn. svn path=/trunk/; revision=799
* Fix error message referencing wrong argument.Juha Sahakangas2008-07-091-1/+1
| | | | | | | | | 2008-07-09 Juha Sahakangas <voas0113@saunalahti.fi> * gobject/gobjectmodule.c (pyg_io_add_watch): Fix error message referencing wrong argument. svn path=/trunk/; revision=792
* Bug 540696 – gobject.markup_escape_text() causes python to segfaultGustavo J. A. M. Carneiro2008-06-291-1/+1
| | | | svn path=/trunk/; revision=790
* New functions, unconditionally raise TypeError. (pygobject_methods): HookPaul Pogonyshev2008-06-091-0/+20
| | | | | | | | | | 2008-06-09 Paul Pogonyshev <pogonyshev@gmx.net> * gobject/pygobject.c (pygobject_copy, pygobject_deepcopy): New functions, unconditionally raise TypeError. (pygobject_methods): Hook them up. (bug #482370) svn path=/trunk/; revision=787
* Add the GParamSpec type wrapper to the module dictionary.Gustavo J. A. M. Carneiro2008-05-301-0/+4
| | | | svn path=/trunk/; revision=785
* Accept None for the child_setup parameter of gobject.spawn_async(). AlsoGustavo J. A. M. Carneiro2008-05-211-3/+12
| | | | | | | | | * gobject/gobjectmodule.c (pyg_spawn_async): Accept None for the child_setup parameter of gobject.spawn_async(). Also check that it is callable. svn path=/trunk/; revision=780
* Fix: raise warning as exception if asked by PyErr_Warn().Paul Pogonyshev2008-04-272-3/+8
| | | | | | | | | | | | | | 2008-04-27 Paul Pogonyshev <pogonyshev@gmx.net> * gobject/pygenum.c (pyg_enum_richcompare): Fix: raise warning as exception if asked by PyErr_Warn(). * gobject/pygflags.c (pyg_flags_richcompare): Don't return NULL after warning; more useful warning message. (#480424, borrowing code by Mark Doffman) svn path=/trunk/; revision=779
* Set gobject.GObject.__module__ to gobject._gobject, this helps pylint toJohan Dahlin2008-04-151-1/+4
| | | | | | | | | | | | | | | | | 2008-04-15 Johan Dahlin <johan@gnome.org> * gobject/gobjectmodule.c (init_gobject): Set gobject.GObject.__module__ to gobject._gobject, this helps pylint to check public methods of GObject subclasses * tests/Makefile.am (tests): * tests/test_gobject.py (TestGObjectAPI.testGObjectModule): Add a test for this (#523821, Simon Schampijer) svn path=/trunk/; revision=777
* Fix a typo Update the tests after the latest "refactoring". The testsuiteJohan Dahlin2008-04-081-2/+2
| | | | | | | | | | | | 2008-04-08 Johan Dahlin <jdahlin@async.com.br> * gobject/option.py: Fix a typo * tests/test_option.py: Update the tests after the latest "refactoring". The testsuite should run fine now again, finally. svn path=/trunk/; revision=770
* Unbreak Source.prepare (#523075, Bryan Silverthorn)Johan Dahlin2008-04-081-3/+1
| | | | | | | | | | | 2008-04-08 Johan Dahlin <jdahlin@async.com.br> * gobject/pygsource.c: * tests/test_source.py: Unbreak Source.prepare (#523075, Bryan Silverthorn) svn path=/trunk/; revision=766
* bug #428732 (pyg_enum_new): Fix two wrong assertions aboutPaul Pogonyshev2008-04-021-8/+29
| | | | | | | | | | | | 2008-04-02 Paul Pogonyshev <pogonyshev@gmx.net> * gobject/pygenum.c: bug #428732 (pyg_enum_new): Fix two wrong assertions about '__enum_values__' size and contents. (pyg_enum_reduce): New function (based on patch by Phil Dumont). (pyg_enum_methods): Hook it up. svn path=/trunk/; revision=756
* Don't return NULL after warning; more useful warning message (bugPaul Pogonyshev2008-03-241-2/+5
| | | | | | | | | 2008-03-24 Paul Pogonyshev <pogonyshev@gmx.net> * gobject/pygenum.c (pyg_enum_richcompare): Don't return NULL after warning; more useful warning message (bug #519631). svn path=/trunk/; revision=755
* Allow gobject.property work with subclasses. Add tests.Johan Dahlin2008-03-211-4/+4
| | | | | | | | | | | | | 2008-03-21 Johan Dahlin <johan@gnome.org> * gobject/__init__.py: * tests/test_properties.py: Allow gobject.property work with subclasses. Add tests. (#523352, Tomeu Vizoso) svn path=/trunk/; revision=752
* Never override customly set 'tp_new' and 'tp_alloc'.Paul Pogonyshev2008-03-021-2/+4
| | | | | | | | | 2008-03-02 Paul Pogonyshev <pogonyshev@gmx.net> * gobject/gobjectmodule.c (REGISTER_TYPE): Never override customly set 'tp_new' and 'tp_alloc'. svn path=/trunk/; revision=747
* Reviewed by: GustavoJohan Dahlin2008-01-031-11/+63
| | | | | | | | | | | | | | | 2008-01-03 Johan Dahlin <johan@gnome.org> Reviewed by: Gustavo * configure.ac: * gobject/pygmainloop.c (pyg_signal_watch_prepare): Optinally use PySignal_SetWakeupFd to avoid having to do a timeout to find out if there are any pending signals from python. Fixes #481569 svn path=/trunk/; revision=723
* Bug 460606 – wrap g_get_application_name and g_get_prgnameGustavo J. A. M. Carneiro2008-01-021-0/+30
| | | | svn path=/trunk/; revision=722
* check for NULL before dereferencing.Paolo Borelli2007-11-241-6/+8
| | | | | | | | | 2007-11-24 Paolo Borelli <pborelli@katamail.com> * gobject/gobjectmodule.c (pyg_type_register): check for NULL before dereferencing. svn path=/trunk/; revision=720
* do not use a potentially uninitialized variable. Bug #499334.Paolo Borelli2007-11-241-2/+3
| | | | | | | | | 2007-11-24 Paolo Borelli <pborelli@katamail.com> * gobject/gobjectmodule.c (pyg_type_register): do not use a potentially uninitialized variable. Bug #499334. svn path=/trunk/; revision=719
* Set the default value of old_args to 0, so we don't end up slicing withJohan Dahlin2007-11-121-1/+1
| | | | | | | | | | | 2007-11-12 Johan Dahlin <johan@gnome.org> * gobject/option.py (OptionParser.parse_args): Set the default value of old_args to 0, so we don't end up slicing with None. Fixes #496278 (Vincent Untz) svn path=/trunk/; revision=718
* Merge in values from all groups to the global option group. Slice up argsJohan Dahlin2007-11-061-1/+10
| | | | | | | | | | | | | | 2007-11-06 Johan Dahlin <johan@gnome.org> * gobject/option.py (OptionParser.parse_args): Merge in values from all groups to the global option group. Slice up args so it doesn't return too much. * tests/test_option.py: Refactor to be unittesty, Add new tests to test what options returns. svn path=/trunk/; revision=717
* Add pyg_option_group_new to the public APIJohan Dahlin2007-11-052-2/+7
| | | | | | | | | | | | | 2007-11-05 Johan Dahlin <johan@gnome.org> * gobject/pygobject.h: * gobject/gobjectmodule.c: Add pyg_option_group_new to the public API * configure.ac: Branch, bump version to 2.15.0. svn path=/trunk/; revision=714
* If there are no items, do not attempt to iterateJohan Dahlin2007-11-021-2/+3
| | | | svn path=/trunk/; revision=712
* Update documentation and filenameJohan Dahlin2007-08-281-3/+12
| | | | svn path=/trunk/; revision=701
* Avoid exporting the metaclass, just define it where it will be used.Johan Dahlin2007-08-271-6/+3
| | | | | | | | | | 2007-08-27 Johan Dahlin <jdahlin@async.com.br> * gobject/propertyhelper.py (property.__metaclass__.__repr__): Avoid exporting the metaclass, just define it where it will be used. svn path=/trunk/; revision=700
* Refactor a bit to make sure that it is possible to use in subclasses,Johan Dahlin2007-08-271-8/+7
| | | | | | | | | | | 2007-08-27 Johan Dahlin <jdahlin@async.com.br> * gobject/__init__.py (GObjectMeta._install_properties): Refactor a bit to make sure that it is possible to use in subclasses, fixes #470718 (Marco Giusti) svn path=/trunk/; revision=699
* Bug 470230 – check for default value in boolean type is wrongGustavo J. A. M. Carneiro2007-08-271-3/+1
| | | | svn path=/trunk/; revision=698
* removed unwanted definesGustavo J. A. M. Carneiro2007-08-271-1/+1
| | | | svn path=/trunk/; revision=697
* Fix compilation warning.Gustavo J. A. M. Carneiro2007-08-271-1/+1
| | | | svn path=/trunk/; revision=695
* Bug 466082 – pygobject_new_full not fully initialising PyGObject, chaos ↵Gustavo J. A. M. Carneiro2007-08-141-2/+6
| | | | | | results svn path=/trunk/; revision=694
* Only compile g_timeout_add_seconds for glib >= 2.13.5Gustavo J. A. M. Carneiro2007-07-081-1/+5
| | | | svn path=/trunk/; revision=691
* Wrap g_timeout_add_secondsGustavo J. A. M. Carneiro2007-07-081-0/+43
| | | | svn path=/trunk/; revision=690
* Work around the deprecation warning of BaseException.message in Python 2.6+ ↵Gustavo J. A. M. Carneiro2007-07-081-1/+16
| | | | | | affecting GError exceptions. Fixes #342948. svn path=/trunk/; revision=689
* revert last change (g_object_run_dispose)Gustavo J. A. M. Carneiro2007-07-071-11/+0
| | | | svn path=/trunk/; revision=684
* Bug 398696 – Wrap g_object_run_disposeGustavo J. A. M. Carneiro2007-07-071-0/+11
| | | | svn path=/trunk/; revision=683
* Bug 342948 – Add exception handling to GOptionGustavo J. A. M. Carneiro2007-07-074-17/+56
| | | | svn path=/trunk/; revision=681
* Bug 351072 – Cannot handle signals with parameter type G_TYPE_VALUE ↵Gustavo J. A. M. Carneiro2007-07-071-2/+19
| | | | | | (marshal/unmarshal for GValue-wrapped GValue) svn path=/trunk/; revision=680
* Rename the private struct field to private_flags, because private is a C++Murray Cumming2007-07-042-3/+3
| | | | | | | | | | | 2007-07-04 Murray Cumming <murrayc@murrayc.com> * gobject/pygobject.c: (pygobject_switch_to_toggle_ref): * gobject/pygobject.h: Rename the private struct field to private_flags, because private is a C++ keyword, so this broke builds of some C++ applications, such as Glom. svn path=/trunk/; revision=679
* 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