summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Bug 564018 – pygobject libtool-2.2 patchPaul Pogonyshev2009-01-042-0/+9
| | | | | | | | | | | 2009-01-04 Paul Pogonyshev <pogonyshev@gmx.net> Bug 564018 – pygobject libtool-2.2 patch * configure.ac: Apply the patch provided by Cygwin Ports maintainer. svn path=/trunk/; revision=988
* Branch, bump version to 2.17.0.Paul Pogonyshev2009-01-042-2/+6
| | | | | | | | 2009-01-04 Paul Pogonyshev <pogonyshev@gmx.net> * configure.ac: Branch, bump version to 2.17.0. svn path=/trunk/; revision=987
* Merge from 2.16 branch:Paul Pogonyshev2008-12-242-0/+71
| | | | | | | | | | | 2008-12-24 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547119 – gobject.timeout_add_seconds() not found in docs * docs/reference/pyglib-functions.xml (glib.timeout_add_seconds): Describe. svn path=/trunk/; revision=983
* Merge from 2.16 branch:Paul Pogonyshev2008-12-214-4/+35
| | | | | | | | | | | | | | | | | | | 2008-12-21 Paul Pogonyshev <pogonyshev@gmx.net> Bug 564102 – _wrap_g_output_stream_write_async not adding a reference to the buffer passed * gio/gio.override (pygio_notify_copy_buffer): New function. (pygio_free_notify): Free new `buffer' field if it is set. * gio/goutputstream.override (_wrap_g_output_stream_write_async): Copy the buffer with new pygio_notify_copy_buffer() and use the copy for g_output_stream_write_async() call. * gio/gfile.override (_wrap_g_file_replace_contents_async): Same as for _wrap_g_output_stream_write_async(). svn path=/trunk/; revision=981
* Test if `domain' is not-null before using it (avoids segfaults, see bugPaul Pogonyshev2008-12-032-3/+13
| | | | | | | | | 2008-12-03 Paul Pogonyshev <pogonyshev@gmx.net> * glib/pyglib.c (pyglib_error_check): Test if `domain' is not-null before using it (avoids segfaults, see bug #561826). svn path=/trunk/; revision=976
* Add option (-p) to use the modulename as a hint to the prefix of functionsJohn Finlay2008-11-031-18/+84
| | | | | | | | | | * codegen/defsgen.py (DefsWriter.write_enum_defs): Add option (-p) to use the modulename as a hint to the prefix of functions and type codes. Provide way to identify untyped enums and flags and print defs for them as well. svn path=/trunk/; revision=975
* Add defsgen to __all__ list. Strip out # directives from enum defintions.John Finlay2008-11-013-0/+12
| | | | | | | | | * codegen/__init__.py (__all__): Add defsgen to __all__ list. * codegen/h2def.py (find_enum_defs): Strip out # directives from enum defintions. (clean_func): Change ' * G_CONST_RETURN * ' to '** ' svn path=/trunk/; revision=974
* Add defsgen.pyJohn Finlay2008-10-312-0/+3
| | | | | | | * codegen/Makefile.am (codegen_PYTHON): Add defsgen.py svn path=/trunk/; revision=973
* Use the passed in prefix as a hint when creating a typecode.John Finlay2008-10-313-14/+41
| | | | | | | | | | | | | | | * codegen/defsgen.py (typecode): Use the passed in prefix as a hint when creating a typecode. (split_prefix,write_enum_defs,_write_obj_helper): Add function to use passed in prefix as a hint when splitting an object name into module and name. * codegen/h2def.py (DefsWriter.write_enum_defs): Make sure the prefix ends with a _ i.e. really handle the GDK_FONT_FONT, GDK_FONT_FONTSET case. svn path=/trunk/; revision=972
* g_output_stream_write_all use gsize instead of gssizeGian Mario Tagliaretti2008-09-122-1/+6
| | | | svn path=/trunk/; revision=971
* Bug 530935 – pygobject_set_properties doesnt release the GILPaul Pogonyshev2008-09-092-20/+21
| | | | | | | | | | | | 2008-09-10 Paul Pogonyshev <pogonyshev@gmx.net> Bug 530935 – pygobject_set_properties doesnt release the GIL * gobject/pygobject.c (pygobject_set_properties): Reuse set_property_from_pspec() which release GIL for us. Also make sure that g_object_thaw_notify() is called even after error. svn path=/trunk/; revision=970
* Bug 549517 – add __repr__ to gio.Drive, gio.Mount and gio.VolumePaul Pogonyshev2008-09-083-0/+79
| | | | | | | | | | | | | 2008-09-09 Paul Pogonyshev <pogonyshev@gmx.net> Bug 549517 – add __repr__ to gio.Drive, gio.Mount and gio.Volume * gio/gio.override (_wrap_g_drive_tp_repr, _wrap_g_mount_tp_repr): New functions. * gio/gvolume.override (_wrap_g_volume_tp_repr): New function. svn path=/trunk/; revision=969
* Bug 551227 – Missing AC_CONFIG_MACRO_DIR([m4])Loïc Minier2008-09-082-0/+7
| | | | | | | | | | 2008-09-09 Loïc Minier <lool@dooz.org> Bug 551227 – Missing AC_CONFIG_MACRO_DIR([m4]) * configure.ac: Add AC_CONFIG_MACRO_DIR. svn path=/trunk/; revision=968
* Bug 551056 – make codegen not import when corresponding argument typesPaul Pogonyshev2008-09-083-7/+30
| | | | | | | | | | | | | | | | | | 2008-09-08 Paul Pogonyshev <pogonyshev@gmx.net> Bug 551056 – make codegen not import when corresponding argument types are not registered * codegen/override.py (import_pat): Add support for optional 'for' clause. (Overrides.__parse_override): Handle it. * codegen/codegen.py (SourceWriter.write_imports) (SourceWriter.write_object_imports): Adapt for changes in get_imports() return value. (is_registered_object): New function. svn path=/trunk/; revision=967
* Fix typos breaking compilation (bug #551212).Frederic Peters2008-09-072-4/+10
| | | | | | | | | | 2008-09-07 Frederic Peters <fpeters@0d.be> * gio/gfile.override (_wrap_g_file_load_contents) (_wrap_g_file_load_contents_finish): Fix typos breaking compilation (bug #551212). svn path=/trunk/; revision=966
* Bug 551059 – GFile load_contents methods chop data at first \0Jonathan Matthew2008-09-072-2/+10
| | | | | | | | | | | | 2008-09-07 Jonathan Matthew <jonathan@d14n.org> Bug 551059 – GFile load_contents methods chop data at first \0 * gio/gfile.override: Use 's#' (length specified) rather than 's' when constructing result values in load_contents and load_contents_finish. svn path=/trunk/; revision=965
* 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