| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
svn path=/trunk/; revision=936
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
svn path=/trunk/; revision=930
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|