summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Wrap GFile.append_to_async with docs and testGian Mario Tagliaretti2008-08-024-1/+101
| | | | svn path=/trunk/; revision=912
* Add pyglib_float_from_timeval and use itJohan Dahlin2008-08-026-7/+29
| | | | | | | | | | | | | | 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
* Separate the glib and gobject bindings in the manual.Johan Dahlin2008-08-019-932/+1145
| | | | | | | | | | | | | | | | | | | 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
* Wrap GFile.query_writable_namespaces with docs and testGian Mario Tagliaretti2008-08-014-1/+70
| | | | svn path=/trunk/; revision=909
* Wrap gio.File.moveJohan Dahlin2008-08-013-1/+75
| | | | | | | | | | | | 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
* Wrap gio.Volume.mount and gio.Volume.ejectJohan Dahlin2008-08-016-5/+243
| | | | | | | | | | | | | | 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
* Add docstring for gio.FileInfo.list_attributesGian Mario Tagliaretti2008-08-012-0/+9
| | | | svn path=/trunk/; revision=906
* Bug 545861 – g_file_info_get_modification_time is missingJohan Dahlin2008-08-014-4/+34
| | | | | | | | | | | | | 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
* Bug 545846 – g_vfs_get_supported_uri_schemes is missingJohan Dahlin2008-08-014-0/+47
| | | | | | | | | | | | | | 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
* Use %r instead of %s, this is not python!Johan Dahlin2008-08-012-1/+6
| | | | | | | | | | 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
* Use METH_O instead of METH_VARARGS. (_glib_functions): Add doc strings forJohan Dahlin2008-07-302-37/+94
| | | | | | | | | | | | | 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
* Wrap new object gio.FileAttributeInfo, g_file_set_attribute and ↵Gian Mario Tagliaretti2008-07-297-37/+331
| | | | | | g_file_query_settable_attributes methods. svn path=/trunk/; revision=901
* WhitespaceJohan Dahlin2008-07-291-0/+1
| | | | svn path=/trunk/; revision=900
* Take some creditJohan Dahlin2008-07-292-0/+3
| | | | svn path=/trunk/; revision=899
* Wrap g_app_info_launch_uris, g_app_info_launch, ↵Gian Mario Tagliaretti2008-07-299-116/+448
| | | | | | g_app_launch_context_get_display and g_app_launch_context_get_startup_notify_id svn path=/trunk/; revision=898
* Add gio.FILE_ATTRIBUTE_* constants and update the examples to use them.Johan Dahlin2008-07-293-2/+139
| | | | | | | | | | | 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
* Fetch the total and print percentageJohan Dahlin2008-07-291-3/+8
| | | | svn path=/trunk/; revision=896
* Remove unused importJohan Dahlin2008-07-291-1/+1
| | | | svn path=/trunk/; revision=895
* Refactor the example a bit, use start/stop to access loop so it's easier to ↵Johan Dahlin2008-07-291-12/+19
| | | | | | reuse it in a real application svn path=/trunk/; revision=894
* Handle errors from gfile.read() gracefullyJohan Dahlin2008-07-291-3/+6
| | | | svn path=/trunk/; revision=893