| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
svn path=/trunk/; revision=1004
|
|
|
|
| |
svn path=/trunk/; revision=1003
|
|
|
|
| |
svn path=/trunk/; revision=1002
|
|
|
|
|
|
|
|
|
| |
2009-02-06 Murray Cumming <murrayc@murrayc.com>
* codegen/h2def.py DefsWriter::write_enum_defs(): Prevent an exception
when the prefix is empty.
svn path=/trunk/; revision=1001
|
|
|
|
|
|
|
|
|
|
| |
2009-01-29 Paul Pogonyshev <pogonyshev@gmx.net>
Bug 569350 – Inconsistent use of tabs and spaces in pygtk.py
* pygtk.py: Replace all tabs with spaces.
svn path=/trunk/; revision=1000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-29 Paul Pogonyshev <pogonyshev@gmx.net>
Bug 567792 – gio.InputStream.read_async can cause memory
corruption
* gio/gio.override (py_decref_callback): Remove (unused now).
(pygio_notify_allocate_buffer, pygio_notify_attach_to_result)
(pygio_notify_get_attached): New functions.
(async_result_callback_marshal): Attach to the result object if
asked and then don't free self. Fix reference leak (spotted by
Gustavo).
* gio/ginputstream.override (async_result_callback_marshal_read):
Remove. Use new attachment functionality in
async_result_callback_marshal() instead.
(_wrap_g_input_stream_read_async): Use the new functions (also
those mentioned in the cleanup log below).
(_wrap_g_input_stream_read_finish): Use the new functions.
svn path=/trunk/; revision=999
|
|
|
|
|
|
|
|
| |
* codegen/docextract_to_xml.py (escape_text): Do not escape the
ampersand "&" in entity references (bug #568485). Replace some
unusual entity references in the output with their literal values.
svn path=/trunk/; revision=998
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-14 Paul Pogonyshev <pogonyshev@gmx.net>
Bug 566571 – gtk.Buildable interface method override is not
recognized
* gobject/gobjectmodule.c (pyg_type_add_interfaces): New function,
break out code repetition out of pyg_type_register().
* tests/test_subtype.py
(TestSubType.test_gtk_buildable_virtual_method): New test
case (inactive).
svn path=/trunk/; revision=997
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-14 Paul Pogonyshev <pogonyshev@gmx.net>
Bug 566706 – cleanup GIO overrides
* gio/gio.override (pygio_notify_new)
(pygio_notify_using_optional_callback)
(pygio_notify_callback_is_valid_full)
(pygio_notify_callback_is_valid)
(pygio_notify_reference_callback): New functions.
(pygio_notify_free): Rename from pygio_free_notify() and extend.
(async_result_callback_marshal): Warn if new `referenced' field is
not set (programming error).
(_wrap_g_drive_eject, _wrap_g_drive_poll_for_media)
(_wrap_g_mount_unmount, _wrap_g_mount_eject)
(_wrap_g_mount_remount): Lots of cleanup: use new functions
instead of repeating code, unify and fix error handling.
* gio/gfile.override (_wrap_g_file_read_async)
(_wrap_g_file_load_contents_async)
(_wrap_g_file_enumerate_children_async)
(_wrap_g_file_mount_mountable, _wrap_g_file_unmount_mountable)
(_wrap_g_file_mount_enclosing_volume, _wrap_g_file_copy)
(_wrap_g_file_copy_async, _wrap_g_file_move)
(_wrap_g_file_append_to_async, _wrap_g_file_create_async)
(_wrap_g_file_replace_async, _wrap_g_file_query_info_async)
(_wrap_g_file_replace_contents_async): Similar cleanup.
* gio/gfileenumerator.override
(_wrap_g_file_enumerator_next_files_async): Similar cleanup.
* gio/gicon.override (_wrap_g_loadable_icon_load_async): Similar
cleanup.
* gio/ginputstream.override (_wrap_g_input_stream_close_async):
Similar cleanup.
* gio/goutputstream.override (_wrap_g_output_stream_write_async)
(_wrap_g_output_stream_close_async): Similar cleanup.
* gio/gvolume.override (_wrap_g_volume_mount)
(_wrap_g_volume_eject): Similar cleanup.
* tests/test_gio.py (TestFile.test_copy_async): Fix the test.
svn path=/trunk/; revision=996
|
|
|
|
|
|
|
|
| |
* gobject/gobjectmodule.c (pyg_type_register): Add a comment
explaining why the two for loops for registering interfaces.
svn path=/trunk/; revision=995
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-07 Paul Pogonyshev <pogonyshev@gmx.net>
Bug 566744 – _wrap_g_input_stream_read_async() argument parsing
has incorrect keyword args
* gio/ginputstream.override (_wrap_g_input_stream_read_async): Fix
keyword list to be in sync with positional arguments.
svn path=/trunk/; revision=994
|
|
|
|
| |
svn path=/trunk/; revision=993
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-04 Mads Chr. Olesen <gnome-bugzilla@shiyee.dk>
* gio/gio.defs (gio.File.copy_async, gio.File.copy_finish): Define
methods.
* gio/gfile.override (_wrap_g_file_copy_async): New function.
* tests/test_gio.py (TestFile.test_copy_async): Test the methods.
svn path=/trunk/; revision=990
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-04 Przemysław Grzegorczyk <pgrzegorczyk@gmail.com>
Bug 563714 – GNOME Goal: Clean up GLib and GTK+ includes
* gobject/generate-constants.c:
* glib/pygspawn.c: Only include toplevel <glib.h>.
svn path=/trunk/; revision=989
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
2009-01-04 Paul Pogonyshev <pogonyshev@gmx.net>
* configure.ac: Branch, bump version to 2.17.0.
svn path=/trunk/; revision=987
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
| |
* codegen/Makefile.am (codegen_PYTHON): Add defsgen.py
svn path=/trunk/; revision=973
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
svn path=/trunk/; revision=971
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
2008-09-03 Johan Dahlin <johan@gnome.org>
* configure.ac:
Post release version bump
svn path=/trunk/; revision=964
|
|
|
|
|
|
|
|
|
| |
2008-09-03 Johan Dahlin <johan@gnome.org>
* NEWS: Update
svn path=/trunk/; revision=962
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
svn path=/trunk/; revision=960
|
|
|
|
|
|
|
|
|
|
| |
2008-08-31 Johan Dahlin <johan@gnome.org>
* configure.ac:
Post release version bump
svn path=/trunk/; revision=959
|
|
|
|
|
|
|
|
|
| |
2008-08-31 Johan Dahlin <johan@gnome.org>
* NEWS: Update
svn path=/trunk/; revision=957
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
svn path=/trunk/; revision=955
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
svn path=/trunk/; revision=945
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
2008-08-12 Paul Pogonyshev <pogonyshev@gmx.net>
* gio/gio.override: Ignore `g_io_module*' and `g_io_scheduler_*'.
svn path=/trunk/; revision=943
|