| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
svn path=/trunk/; revision=923
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
svn path=/trunk/; revision=921
|
|
|
|
| |
svn path=/trunk/; revision=920
|
|
|
|
| |
svn path=/trunk/; revision=919
|
|
|
|
| |
svn path=/trunk/; revision=918
|
|
|
|
| |
svn path=/trunk/; revision=917
|
|
|
|
| |
svn path=/trunk/; revision=916
|
|
|
|
| |
svn path=/trunk/; revision=915
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
svn path=/trunk/; revision=912
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-08-02 Johan Dahlin <johan@gnome.org>
* gio/gfileinfo.override:
* gio/gio.override:
* glib/glibmodule.c (pyglib_get_current_time):
* glib/pyglib.c (pyglib_float_from_timeval):
* glib/pyglib.h:
Add pyglib_float_from_timeval and use it
svn path=/trunk/; revision=911
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-08-02 Johan Dahlin <johan@gnome.org>
* docs/Makefile.am:
* docs/reference/pyglib-constants.xml:
* docs/reference/pyglib-functions.xml:
* docs/reference/pyglib-maincontext.xml:
* docs/reference/pyglib-mainloop.xml:
* docs/reference/pygobject-classes.xml:
* docs/reference/pygobject-constants.xml:
* docs/reference/pygobject-functions.xml:
* docs/reference/pygobject-maincontext.xml:
* docs/reference/pygobject-mainloop.xml:
Separate the glib and gobject bindings in the manual.
svn path=/trunk/; revision=910
|
|
|
|
| |
svn path=/trunk/; revision=909
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-08-02 Johan Dahlin <johan@gnome.org>
* gio/gio.defs:
* gio/gfile.override:
* tests/test_gio.py:
Wrap gio.File.move
svn path=/trunk/; revision=908
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-08-02 Johan Dahlin <johan@gnome.org>
* gio/Makefile.am:
* gio/gfile.override:
* gio/gio.defs:
* gio/gio.override:
* gio/gvolume.override:
Wrap gio.Volume.mount and gio.Volume.eject
svn path=/trunk/; revision=907
|
|
|
|
| |
svn path=/trunk/; revision=906
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-08-01 Johan Dahlin <johan@gnome.org>
Bug 545861 – g_file_info_get_modification_time is missing
* gio/gfileinfo.override:
* gio/gio.defs:
* tests/test_gio.py:
Wrap, add test and documentation
svn path=/trunk/; revision=905
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-08-01 Johan Dahlin <johan@gnome.org>
Bug 545846 – g_vfs_get_supported_uri_schemes is missing
* gio/gio.defs:
* gio/gio.override:
* tests/test_gio.py:
Wrap, add test and documentation
svn path=/trunk/; revision=904
|
|
|
|
|
|
|
|
|
|
| |
2008-08-01 Johan Dahlin <johan@gnome.org>
* glib/glibmodule.c (pyglib_set_application_name):
Use %r instead of %s, this is not python!
svn path=/trunk/; revision=903
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-31 Johan Dahlin <johan@gnome.org>
* glib/glibmodule.c (pyglib_set_prgname)
(pyglib_set_application_name): Use METH_O instead of METH_VARARGS.
(_glib_functions): Add doc strings for idle_add, timeout_add,
timeout_add_seconds, io_add_watch, child_watch_add, source_remove,
main_depth and main_context_default.
svn path=/trunk/; revision=902
|
|
|
|
|
|
| |
g_file_query_settable_attributes methods.
svn path=/trunk/; revision=901
|
|
|
|
| |
svn path=/trunk/; revision=900
|
|
|
|
| |
svn path=/trunk/; revision=899
|
|
|
|
|
|
| |
g_app_launch_context_get_display and g_app_launch_context_get_startup_notify_id
svn path=/trunk/; revision=898
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-29 Johan Dahlin <johan@gnome.org>
* examples/gio/downloader.py:
* gio/giomodule.c (init_gio):
Add gio.FILE_ATTRIBUTE_* constants and update the examples to use them.
svn path=/trunk/; revision=897
|
|
|
|
| |
svn path=/trunk/; revision=896
|
|
|
|
| |
svn path=/trunk/; revision=895
|
|
|
|
|
|
| |
reuse it in a real application
svn path=/trunk/; revision=894
|
|
|
|
| |
svn path=/trunk/; revision=893
|