summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Post release version bumpJohan Dahlin2008-09-032-1/+6
| | | | | | | | | | 2008-09-03 Johan Dahlin <johan@gnome.org> * configure.ac: Post release version bump svn path=/trunk/; revision=964
* === 2.15.4 ===PYGOBJECT_2_15_4Johan Dahlin2008-09-032-0/+9
| | | | | | | | | 2008-09-03 Johan Dahlin <johan@gnome.org> * NEWS: Update svn path=/trunk/; revision=962
* Fix typo (s/&type/type) introduced in r886 causing weird crashes onLoïc Minier2008-09-022-1/+7
| | | | | | | | | | 2008-09-03 Loïc Minier <lool@dooz.org> * gobject/pygpointer.c: (pyg_register_pointer): Fix typo (s/&type/type) introduced in r886 causing weird crashes on x86-64; bug #550463. svn path=/trunk/; revision=961
* add G_TYPE_CLOSURE boxed type in codegenGian Mario Tagliaretti2008-09-012-0/+5
| | | | svn path=/trunk/; revision=960
* Post release version bumpJohan Dahlin2008-08-312-1/+6
| | | | | | | | | | 2008-08-31 Johan Dahlin <johan@gnome.org> * configure.ac: Post release version bump svn path=/trunk/; revision=959
* === 2.15.3 ===PYGOBJECT_2_15_3Johan Dahlin2008-08-312-0/+44
| | | | | | | | | 2008-08-31 Johan Dahlin <johan@gnome.org> * NEWS: Update svn path=/trunk/; revision=957
* * gobject/pygobject.c: Fix memory problems reported by valgrind due toGustavo J. A. M. Carneiro2008-08-303-2/+10
| | | | | | | | | * glib/pyglib.h: * gobject/pygobject.c: Fix memory problems reported by valgrind due to invalid tp_basicsize in PyGPropsDescr_Type. Closes #549945. svn path=/trunk/; revision=956
* Mark pyglib_notify_on_enabling_threads() as private (also rename).Paul Pogonyshev2008-08-274-7/+10
| | | | svn path=/trunk/; revision=955
* Bug 549191 – Constructor of gtk.TreeView raises TypeError when model isPaul Pogonyshev2008-08-272-7/+19
| | | | | | | | | | | | 2008-08-28 Paul Pogonyshev <pogonyshev@gmx.net> Bug 549191 – Constructor of gtk.TreeView raises TypeError when model is None * gobject/pygtype.c (pyg_value_from_pyobject): Handle None in G_TYPE_INTERFACE branch. svn path=/trunk/; revision=954
* Bug 549351 – an unitialized variable in PyGLibPaul Pogonyshev2008-08-272-3/+9
| | | | | | | | | | | 2008-08-28 Paul Pogonyshev <pogonyshev@gmx.net> Bug 549351 – an unitialized variable in PyGLib * glib/pygmainloop.c (pyg_main_loop_init): Initialize `is_running'. svn path=/trunk/; revision=953
* Bug 547633 – cannot create new threads when pygtk is usedPaul Pogonyshev2008-08-274-1/+49
| | | | | | | | | | | | | | | | | | 2008-08-28 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547633 – cannot create new threads when pygtk is used * glib/pyglib.c (pyglib_notify_on_enabling_threads): New function. (pyglib_enable_threads): Invoke all callbacks added with new pyglib_notify_on_enabling_threads(). * gobject/gobjectmodule.c (pyg_note_threads_enabled): New function (callback for new pyglib_notify_on_enabling_threads()). (PYGLIB_MODULE_START): Initialize 'pygobject_api_functions.threads_enabled' and also watch for thread being enabled later on. svn path=/trunk/; revision=952
* Bug 547088 – wrap g_content_types_get_registered()Paul Pogonyshev2008-08-274-0/+44
| | | | | | | | | | | | | | | | | | | 2008-08-28 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547088 – wrap g_content_types_get_registered() * gio/gio.override (_wrap_g_drive_get_volumes): Fix refleak. (_wrap_g_content_types_get_registered): New function. * gio/gfileenumerator.override (_wrap_g_file_enumerator_next_files_finish): Fix refleak. * gio/gvolumemonitor.override (_wrap_g_volume_monitor_get_connected_drives): Fix refleak. (_wrap_g_volume_monitor_get_volumes): Likewise. (_wrap_g_volume_monitor_get_mounts): Likewise. svn path=/trunk/; revision=951
* Rename from read(), document. (gio.InputStream.read): Rename fromPaul Pogonyshev2008-08-276-26/+260
| | | | | | | | | | | | | | | | | | | | | | | | 2008-08-28 Paul Pogonyshev <pogonyshev@gmx.net> * gio/gio.defs (gio.InputStream.read_part): Rename from read(), document. (gio.InputStream.read): Rename from read_all(), document. (gio.OutputStream.write_part): Rename from write(), document. (gio.OutputStream.write): Rename from write_all(), document. * gio/ginputstream.override (_wrap_g_input_stream_read): Fix several bugs. (_wrap_g_input_stream_read_all): New function. * gio/goutputstream.override (_wrap_g_output_stream_write_all): New function. * tests/test_gio.py (TestInputStream.testRead): Add more tests. (TestInputStream.test_read_part): New test. (TestInputStream._read_in_loop): New helper method. (TestOutputStream.test_write_part): New test. svn path=/trunk/; revision=950
* Fix keywords getting out of sync with actual argument order.Paul Pogonyshev2008-08-162-1/+6
| | | | | | | | | 2008-08-16 Paul Pogonyshev <pogonyshev@gmx.net> * gio/gfile.override (_wrap_g_file_enumerate_children_async): Fix keywords getting out of sync with actual argument order. svn path=/trunk/; revision=949
* Bug 547495 – wrap four important asynchronous methods in gio.Drive andPaul Pogonyshev2008-08-123-1/+252
| | | | | | | | | | | | | | | | 2008-08-13 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547495 – wrap four important asynchronous methods in gio.Drive and gio.Mount * gio/gio.defs (gio.Drive.eject, gio.Drive.poll_for_media) (gio.Mount.remount): Document. * gio/gio.override (_wrap_g_drive_eject) (_wrap_g_drive_poll_for_media, _wrap_g_mount_eject) (_wrap_g_mount_remount): New functions. svn path=/trunk/; revision=948
* Bug 547484 – wrap gio.DataInputStream.read_line and ...read_untilPaul Pogonyshev2008-08-122-0/+11
| | | | | | | | | | | | | | | 2008-08-12 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547484 – wrap gio.DataInputStream.read_line and ...read_until * tests/test_gio.py (TestDataInputStream): New test case. * gio/gio.defs (read_line, read_until): Document. * gio/ginputstream.override (_wrap_g_data_input_stream_read_line) (_wrap_g_data_input_stream_read_until): New functions. svn path=/trunk/; revision=947
* Bug 547484 – wrap gio.DataInputStream.read_line and ...read_untilPaul Pogonyshev2008-08-123-0/+95
| | | | | | | | | | | | | 2008-08-12 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547484 – wrap gio.DataInputStream.read_line and ...read_until * tests/test_gio.py (TestDataInputStream): New test case. * gio/ginputstream.override (_wrap_g_data_input_stream_read_line) (_wrap_g_data_input_stream_read_until): New functions. svn path=/trunk/; revision=946
* only use 4 spaces in indentGian Mario Tagliaretti2008-08-121-202/+202
| | | | svn path=/trunk/; revision=945
* Bug 547354 – wrap a few memory stream methodsPaul Pogonyshev2008-08-115-1/+103
| | | | | | | | | | | | | | | | | | | | 2008-08-12 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547354 – wrap a few memory stream methods * gio/ginputstream.override (_wrap_g_memory_input_stream_add_data): New function. * gio/gio.defs (gio.MemoryOutputStream.get_contents): Rename from get_data() to avoid name clash. * gio/goutputstream.override (_wrap_g_memory_output_stream_new) (_wrap_g_memory_output_stream_get_data): New functions. * tests/test_gio.py (TestMemoryInputStream) (TestMemoryOutputStream): New test cases. svn path=/trunk/; revision=944
* Ignore `g_io_module*' and `g_io_scheduler_*'.Paul Pogonyshev2008-08-112-0/+6
| | | | | | | | 2008-08-12 Paul Pogonyshev <pogonyshev@gmx.net> * gio/gio.override: Ignore `g_io_module*' and `g_io_scheduler_*'. svn path=/trunk/; revision=943
* Bug 540376 – No TypeError raised when type is NonePaul Pogonyshev2008-08-113-0/+27
| | | | | | | | | | | | | 2008-08-11 Paul Pogonyshev <pogonyshev@gmx.net> Bug 540376 – No TypeError raised when type is None * gobject/gobjectmodule.c (pyg_signal_new): Add check on second argument type. * tests/test_signal.py (TestSignalCreation): New test case. svn path=/trunk/; revision=942
* Bug 547104 – improve type wrapper creationPaul Pogonyshev2008-08-113-0/+65
| | | | | | | | | | | | | 2008-08-11 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547104 – improve type wrapper creation * gio/gappinfo.override (_wrap_g_app_info_tp_richcompare) (_wrap_g_app_info_tp_repr): New functions. * tests/test_gio.py (TestAppInfo.test_eq): New test. svn path=/trunk/; revision=941
* Bug 547104 – improve type wrapper creationPaul Pogonyshev2008-08-113-52/+64
| | | | | | | | | | | | | | | | | | | | | | 2008-08-11 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547104 – improve type wrapper creation * gobject/pygobject.c (pygobject_register_class): Use new pygobject_inherit_slots() to propagate custom slots in normal types too. (pygobject_inherit_slots): New function, break out of pygobject_new_with_interfaces() and rewrite a bit. (pygobject_find_slot_for): Add new argument that can forbid overriding non-NULL slots. * gio/gicon.override (pygio_do_icon_richcompare): Remove, the code is now directly in _wrap_g_icon_tp_richcompare(). (_wrap_g_file_icon_tp_richcompare, _wrap_g_file_icon_tp_hash) (_wrap_g_themed_icon_tp_richcompare, _wrap_g_themed_icon_tp_hash): Remove, duplicating code in this way is not needed anymore. svn path=/trunk/; revision=940
* Bug 546120 – make gio.File more PythonicPaul Pogonyshev2008-08-103-1/+78
| | | | | | | | | | | | | | 2008-08-10 Paul Pogonyshev <pogonyshev@gmx.net> Bug 546120 – make gio.File more Pythonic * gio/gfile.override (_wrap_g_file_tp_richcompare) (_wrap_g_file_tp_hash, _wrap_g_file_tp_repr): New functions. * tests/test_gio.py (TestFile.test_eq, TestFile.test_hash): New tests. svn path=/trunk/; revision=939
* Bug 547104 – improve runtime type wrapper creationPaul Pogonyshev2008-08-102-0/+72
| | | | | | | | | | | | | 2008-08-10 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547104 – improve runtime type wrapper creation * gobject/pygobject.c (pygobject_new_with_interfaces): Use new pygobject_find_slot_for() for `tp_richcompare', `tp_compare`, `tp_hash', `tp_iter', `tp_repr', `tp_str' and `tp_print'. (pygobject_find_slot_for): New static function. svn path=/trunk/; revision=938
* Bug 547134 – fix docstring line lengthJonathan Matthew2008-08-102-18/+36
| | | | | | | | | | | | 2008-08-10 Jonathan Matthew <jonathan@d14n.org> Bug 547134 – fix docstring line length * gio/gio.defs: Fix docstring line lengths so they don't wrap across lines in an 80 column terminal. svn path=/trunk/; revision=937
* Add GFile.query_default_handler which was missing from the defs.Gian Mario Tagliaretti2008-08-102-0/+15
| | | | svn path=/trunk/; revision=936
* Bug 547067 – add File.replace_contents, replace_contents_async,Jonathan Matthew2008-08-104-3/+235
| | | | | | | | | | | | | | | 2008-08-10 Jonathan Matthew <jonathan@d14n.org> Bug 547067 – add File.replace_contents, replace_contents_async, replace_contents_finish. * gio/gfile.override: * gio/gio.defs: * tests/test_gio.py: Add overrides, docs, and tests for File.replace_contents, replace_contents_async, and replace_contents_finish. svn path=/trunk/; revision=935
* Fix to not use `use_default_fallbacks' property (it's new).Paul Pogonyshev2008-08-092-3/+13
| | | | | | | | | 2008-08-09 Paul Pogonyshev <pogonyshev@gmx.net> * tests/test_gicon.py (TestThemedIcon.test_constructor): Fix to not use `use_default_fallbacks' property (it's new). svn path=/trunk/; revision=934
* Bug 546135 – GIcon and implementations improvementsPaul Pogonyshev2008-08-093-10/+32
| | | | | | | | | | | | | | | 2008-08-09 Paul Pogonyshev <pogonyshev@gmx.net> Bug 546135 – GIcon and implementations improvements * gio/gio.defs (g_file_icon_new): Change from method of gio.File to constructor of gio.FileIcon. * tests/test_gicon.py (TestIcon.test_eq, Test_Eq.test_hash) (TestLoadableIcon.setUp): Adapt accordingly. (TestFileIcon): New test case. svn path=/trunk/; revision=933
* Bug 546591 – File.copy progress_callback does not workPaul Pogonyshev2008-08-094-14/+55
| | | | | | | | | | | | | | | | | | | | | 2008-08-09 Paul Pogonyshev <pogonyshev@gmx.net> Bug 546591 – File.copy progress_callback does not work * gio/gfile.override (file_progress_callback_marshal): Use PyObject_CallFunction() instead of PyEval_CallFunction(). Use "K" instead of "k" (the latter is not correct for 32-bit platforms). Don't free 'notify' here. (_wrap_g_file_copy): Free 'notify'. (_wrap_g_file_move): Likewise. * gio/gio.override (pygio_free_notify): New function. (async_result_callback_marshal): Use it. * tests/test_gio.py (TestFile.test_copy_progress.progress): New test. svn path=/trunk/; revision=932
* Bug 546135 – GIcon and implementations improvementsPaul Pogonyshev2008-08-098-161/+490
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-09 Paul Pogonyshev <pogonyshev@gmx.net> Bug 546135 – GIcon and implementations improvements * gio/gio.defs (gio.LoadableIcon.load) (gio.LoadableIcon.load_async, gio.LoadableIcon.load_finish): Document. * gio/Makefile.am: * gio/gicon.override: New file: parts of 'gio.override', three methods of gio.LoadableIcon and gio.ThemedIcon constructor. * gio/gio.override: Move over all icon-related overrides to 'gicon.override'. * tests/Makefile.am: * tests/test_gicon.py: New file: parts of 'test_gio.py' and several new gio.Icon tests. * tests/test_gio.py (TestThemedIcon): Move over to 'test_gicon.py'. svn path=/trunk/; revision=931
* include test_gio.py in the testsJohan Dahlin2008-08-091-0/+1
| | | | svn path=/trunk/; revision=930
* Bug 546734 – Missing Py_INCREFs for some file async methodsJonathan Matthew2008-08-072-0/+19
| | | | | | | | | | | | | 2008-08-07 Jonathan Matthew <jonathan@d14n.org> Bug 546734 – Missing Py_INCREFs for some file async methods * gio/gfile.override: Increment refcounts on callbacks and callback data for append_to_async, create_async, replace_async, query_info_async and load_contents_async as for all other async methods. svn path=/trunk/; revision=929
* Move the progress callback for move/copy so it's consistent with theJohan Dahlin2008-08-063-6/+15
| | | | | | | | | | | | 2008-08-06 Johan Dahlin <johan@gnome.org> * gio/gfile.override: * gio/gio.defs: Move the progress callback for move/copy so it's consistent with the documentation and positional arguments. Update documentation as well svn path=/trunk/; revision=928
* Add a pygobject_enable_threads wrapper around pyglib_threads_enable andJohan Dahlin2008-08-063-8/+31
| | | | | | | | | | | | | 2008-08-06 Johan Dahlin <johan@gnome.org> * glib/pyglib.c (pyglib_enable_threads): * gobject/gobjectmodule.c (pyg_threads_init), (pygobject_enable_threads): Add a pygobject_enable_threads wrapper around pyglib_threads_enable and return 0/-1 which existing gobject based applications expect. svn path=/trunk/; revision=927
* return in case of error instead of trying to access the internal types.Johan Dahlin2008-08-062-1/+10
| | | | | | | | | | | 2008-08-06 Johan Dahlin <johan@gnome.org> * glib/pyglib.c (pyglib_init): return in case of error instead of trying to access the internal types. svn path=/trunk/; revision=926
* Add 'pygio_do_icon_richcompare' prototype to header.Paul Pogonyshev2008-08-052-2/+11
| | | | | | | | | | | 2008-08-06 Paul Pogonyshev <pogonyshev@gmx.net> * gio/gio.override: Add 'pygio_do_icon_richcompare' prototype to header. (_wrap_g_file_icon_tp_repr, _wrap_g_themed_icon_tp_repr): Fix return value type in signature. svn path=/trunk/; revision=925
* Bug 546135 – GIcon and implementations improvementsPaul Pogonyshev2008-08-053-0/+146
| | | | | | | | | | | | | | | | | 2008-08-05 Paul Pogonyshev <pogonyshev@gmx.net> Bug 546135 – GIcon and implementations improvements * gio/gio-types.defs (FileIcon): New 'define-object'. * gio/gio.override (pygio_do_icon_richcompare) (_wrap_g_icon_tp_richcompare, _wrap_g_icon_tp_hash) (_wrap_g_file_icon_tp_richcompare, _wrap_g_file_icon_tp_hash) (_wrap_g_file_icon_tp_repr, _wrap_g_themed_icon_tp_richcompare) (_wrap_g_themed_icon_tp_hash, _wrap_g_themed_icon_tp_repr): New functions. svn path=/trunk/; revision=924
* Wrap GFile.replace_async and query_info_async with docs and test.Gian Mario Tagliaretti2008-08-034-2/+181
| | | | svn path=/trunk/; revision=923
* Change return value from 'gboolean' to 'int' and changed semantics toPaul Pogonyshev2008-08-034-8/+18
| | | | | | | | | | | | | | 2008-08-03 Paul Pogonyshev <pogonyshev@gmx.net> * glib/pyglib.h: * glib/pyglib.c (pyglib_enable_threads): Change return value from 'gboolean' to 'int' and changed semantics to Pythonic: restores backwards compatibility. * gobject/gobjectmodule.c (pyg_threads_init): Treat return value accordingly (bug #544946). svn path=/trunk/; revision=922
* Fix a copy/paste pattern...Gian Mario Tagliaretti2008-08-021-42/+0
| | | | svn path=/trunk/; revision=921
* Wrap GFile.create_async with docs and testGian Mario Tagliaretti2008-08-024-1/+143
| | | | svn path=/trunk/; revision=920
* More cleanups.Johan Dahlin2008-08-021-33/+38
| | | | svn path=/trunk/; revision=919
* PEP8ifyJohan Dahlin2008-08-021-69/+78
| | | | svn path=/trunk/; revision=918
* More refactoring. Avoid duplication, add xml string templatesJohan Dahlin2008-08-021-67/+62
| | | | svn path=/trunk/; revision=917
* Do not include gio-types.defsJohan Dahlin2008-08-021-2/+0
| | | | svn path=/trunk/; revision=916
* further cleanupsJohan Dahlin2008-08-021-243/+255
| | | | svn path=/trunk/; revision=915
* Remove SGML support, require python 2.4, modernize, PEP-8ify. Make it runJohan Dahlin2008-08-024-108/+119
| | | | | | | | | | | | | | | | | 2008-08-02 Johan Dahlin <johan@gnome.org> * codegen/docgen.py: Remove SGML support, require python 2.4, modernize, PEP-8ify. Make it run on gio. * codegen/definitions.py: Make property iterable * gio/gio.defs: Include the gio-types.defs file. svn path=/trunk/; revision=914
* Fix compilation warnings, clean up style and indentation.Johan Dahlin2008-08-024-87/+112
| | | | | | | | | | | | | | | | | | 2008-08-02 Johan Dahlin <johan@gnome.org> * glib/glibmodule.c (pyglib_set_prgname): * glib/pygoptioncontext.c (pyg_option_context_init), (pyg_option_context_set_help_enabled), (pyg_option_context_set_ignore_unknown_options), (pyg_option_context_set_main_group), (pyg_option_context_add_group): * glib/pygoptiongroup.c (arg_func), (pyg_option_group_add_entries), (pyg_option_group_set_translation_domain), (pyg_option_group_compare), (pyglib_option_group_register_types): Fix compilation warnings, clean up style and indentation. svn path=/trunk/; revision=913