summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Wrap gio.File.copy, add tests and documentation. RenameJohan Dahlin2008-07-248-55/+246
| | | | | | | | | | | | | | | | | 2008-07-24 Johan Dahlin <johan@gnome.org> * gio/gfile.override: * gio/gfileenumerator.override: * gio/ginputstream.override: * gio/gio.defs: * gio/gio.override: * gio/goutputstream.override: * tests/test_gio.py: Wrap gio.File.copy, add tests and documentation. Rename PyGAsyncRequestNotify to PyGIONotify and reuse it. svn path=/trunk/; revision=850
* Rename the function too, not just the prototype!Johan Dahlin2008-07-232-3/+8
| | | | | | | | | | 2008-07-23 Johan Dahlin <johan@gnome.org> * glib/pyglib.c (_pyglib_destroy_notify): Rename the function too, not just the prototype! svn path=/trunk/; revision=849
* Make pyglib_destroy_notify and pyglib_handler_marshal private. Add a fewJohan Dahlin2008-07-216-32/+49
| | | | | | | | | | | | | | | | 2008-07-21 Johan Dahlin <johan@gnome.org> * glib/glibmodule.c (pyglib_idle_add), (pyglib_timeout_add), (pyglib_timeout_add_seconds), (pyglib_io_add_watch): * glib/pyglib-private.h: * glib/pyglib.c (pyglib_destroy_notify), (_pyglib_handler_marshal): * glib/pyglib.h: * glib/pygsource.c (pyg_source_set_callback): Make pyglib_destroy_notify and pyglib_handler_marshal private. Add a few public prototypes. svn path=/trunk/; revision=848
* Mark as static, rename from pyg_* -> pyglib_*. Fill in api struct, renameJohan Dahlin2008-07-212-49/+61
| | | | | | | | | | | | | | | | | | | 2008-07-21 Johan Dahlin <johan@gnome.org> * glib/glibmodule.c (pyglib_idle_add), (pyglib_timeout_add), (pyglib_timeout_add_seconds), (pyglib_io_add_watch), (pyglib_source_remove), (pyglib_child_watch_add), (pyglib_markup_escape_text), (pyglib_get_current_time), (pyglib_main_depth), (pyglib_filename_display_name), (pyglib_filename_display_basename), (pyglib_filename_from_utf8), (pyglib_get_application_name), (pyglib_set_application_name), (pyglib_get_prgname), (pyglib_set_prgname), (pyglib_register_api), (pyglib_register_error): Mark as static, rename from pyg_* -> pyglib_*. Fill in api struct, rename struct and remove function suffix. svn path=/trunk/; revision=847
* Move over Source, IOChannel, Idle, Timeout and PollFD to glib fromJohan Dahlin2008-07-2116-130/+301
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-21 Johan Dahlin <johan@gnome.org> * glib/Makefile.am: * glib/glibmodule.c (pyg_idle_add), (pyg_timeout_add), (pyg_timeout_add_seconds), (pyg_io_add_watch), (pyglib_register_api), (pyglib_register_error), (pyglib_register_version_tuples), (init_glib): * glib/pygiochannel.c (py_io_channel_next), (py_io_channel_shutdown), (py_io_channel_set_encoding), (py_io_channel_read_chars), (py_io_channel_write_chars), (py_io_channel_write_lines), (py_io_channel_flush), (py_io_channel_set_flags), (py_io_channel_read_line), (py_io_channel_read_lines), (py_io_channel_seek), (py_io_channel_init), (pyglib_iochannel_register_types): * glib/pygiochannel.h: * glib/pyglib-private.h: * glib/pyglib.c (pyglib_threads_enabled), (pyglib_gil_state_ensure), (pyglib_gil_state_release), (pyglib_enable_threads), (pyglib_block_threads), (pyglib_unblock_threads), (pyglib_set_thread_block_funcs), (pyglib_handler_marshal), (pyglib_destroy_notify): * glib/pyglib.h: * glib/pygsource.c (pyg_source_set_callback), (pyglib_source_register_types): * glib/pygsource.h: * glib/pygspawn.c (pyglib_spawn_register_types): * glib/pygspawn.h: * gobject/Makefile.am: * gobject/__init__.py: * gobject/gobjectmodule.c (pyg_set_thread_block_funcs), (init_gobject): * gobject/pygiochannel.c: * gobject/pygobject-private.h: * gobject/pygsource.c: Move over Source, IOChannel, Idle, Timeout and PollFD to glib from gobject. Clean up and add a bit of new api for glib. svn path=/trunk/; revision=846
* Use yes/no instead of true/false. Avoid bashism. Fix another logic bug,Johan Dahlin2008-07-212-4/+10
| | | | | | | | | | | 2008-07-21 Johan Dahlin <johan@gnome.org> * configure.ac: Use yes/no instead of true/false. Avoid bashism. Fix another logic bug, and let's hope I didn't break anything svn path=/trunk/; revision=845
* Fix libffi check logic.Paul Pogonyshev2008-07-202-1/+7
| | | | | | | | | 2008-07-20 Paul Pogonyshev <pogonyshev@gmx.net> * configure.ac (pygobject_CODEGEN_DEFINES): Fix libffi check logic. svn path=/trunk/; revision=844
* Move maincontext and mainloop over to glib. Update the threadstate api toJohan Dahlin2008-07-2024-159/+333
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-20 Johan Dahlin <johan@gnome.org> * glib/Makefile.am: * glib/glibmodule.c (pyglib_main_context_default), (init_glib): * glib/pyglib.c (pyglib_init), (pyglib_threads_enabled), (pyglib_main_context_new): * glib/pyglib.h: * glib/pygmaincontext.c (_wrap_g_main_context_iteration), (pyglib_maincontext_register_types): * glib/pygmaincontext.h: * glib/pygmainloop.c (pyg_signal_watch_prepare), (pyg_signal_watch_check), (pyg_main_loop_new), (_wrap_g_main_loop_get_context), (_wrap_g_main_loop_run), (pyglib_mainloop_register_types): * glib/pygmainloop.h: * gobject/Makefile.am: * gobject/__init__.py: * gobject/gobjectmodule.c (pyg_destroy_notify), (pyobject_free), (pyg_object_set_property), (pyg_object_get_property), (_pyg_signal_accumulator), (pygobject__g_instance_init), (pyg_handler_marshal), (pygobject_gil_state_ensure), (pygobject_gil_state_release), (marshal_emission_hook), (_log_func), (init_gobject): * gobject/pygboxed.c (pyg_boxed_dealloc), (pyg_boxed_new): * gobject/pygenum.c (pyg_enum_add): * gobject/pygflags.c (pyg_flags_add): * gobject/pygiochannel.c (pyg_iowatch_marshal): * gobject/pygmaincontext.c: * gobject/pygmainloop.c: * gobject/pygobject-private.h: * gobject/pygobject.c (pygobject_data_free), (pyg_toggle_notify), (pygobject_new_with_interfaces), (pygobject_weak_ref_notify): * gobject/pygobject.h: * gobject/pygoptiongroup.c (destroy_g_group), (arg_func): * gobject/pygpointer.c (pyg_pointer_new): * gobject/pygsource.c (pyg_source_get_context), (pyg_source_prepare), (pyg_source_check), (pyg_source_dispatch), (pyg_source_finalize): * gobject/pygtype.c (pyg_closure_invalidate), (pyg_closure_marshal), (pyg_signal_class_closure_marshal): * tests/common.py: Move maincontext and mainloop over to glib. Update the threadstate api to use the variant in glib. svn path=/trunk/; revision=843
* Install the glib module, the helper library and the headers. Use it fromJohan Dahlin2008-07-206-931/+63
| | | | | | | | | | | | | | | | 2008-07-20 Johan Dahlin <johan@gnome.org> * glib/Makefile.am: * gobject/Makefile.am: * gobject/__init__.py: * gobject/gobjectmodule.c (pyg_threads_init), (pyg_error_check), (pyg_gerror_exception_check), (init_gobject): * gobject/option.py: Install the glib module, the helper library and the headers. Use it from gobject and remove the old glib specific code from there. svn path=/trunk/; revision=842
* Use pkg-config to check for libffi again.Johan Dahlin2008-07-203-29/+22
| | | | | | | | | | | 2008-07-20 Johan Dahlin <johan@gnome.org> * configure.ac: * gobject/Makefile.am: Use pkg-config to check for libffi again. svn path=/trunk/; revision=841
* Rename helper library to libpyglib-2.0. Move overJohan Dahlin2008-07-205-10/+97
| | | | | | | | | | | | | | 2008-07-20 Johan Dahlin <johan@gnome.org> * glib/Makefile.am: * glib/glibmodule.c (pyg_main_context_default): * glib/pyglib.c (pyglib_gerror_exception_check): * glib/pyglib.h: Rename helper library to libpyglib-2.0. Move over pyg_gerror_exception_check as well. svn path=/trunk/; revision=840
* Add glib bindings, currently not installed or used. Add some internal APIJohan Dahlin2008-07-2011-1/+1375
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-20 Johan Dahlin <johan@gnome.org> * Makefile.am: * configure.ac: * glib/Makefile.am: * glib/__init__.py: * glib/glibmodule.c (pyg_destroy_notify), (get_handler_priority), (pyg_handler_marshal), (pyg_idle_add), (pyg_timeout_add), (pyg_timeout_add_seconds), (iowatch_marshal), (pyg_io_add_watch), (pyg_source_remove), (pyg_main_context_default), (child_watch_func), (child_watch_dnotify), (pyg_child_watch_add), (pyg_markup_escape_text), (pyg_get_current_time), (pyg_main_depth), (pyg_filename_display_name), (pyg_filename_display_basename), (pyg_filename_from_utf8), (pyg_get_application_name), (pyg_set_application_name), (pyg_get_prgname), (pyg_set_prgname), (pyg_register_api), (pyg_register_error), (pyg_register_version_tuples), (init_glib): * glib/pyglib-private.h: * glib/pyglib.c (pyglib_init), (pyglib_init_internal), (pyglib_gil_state_ensure), (pyglib_gil_state_release), (pyglib_enable_threads), (pyglib_gil_state_ensure_py23), (pyglib_gil_state_release_py23), (pyglib_error_check): * glib/pyglib.h: * glib/pygspawn.c (pyg_pid_close), (pyg_pid_free), (pyg_pid_tp_init), (pyg_pid_new), (_pyg_spawn_async_callback), (pyglib_spawn_async), (pyg_spawn_register_types): * glib/pygspawn.h: Add glib bindings, currently not installed or used. Add some internal API and move over a couple of functions from the gobject module. Still very much a work in progress. svn path=/trunk/; revision=839
* Ignore a bunch of functions which are not relevant.Johan Dahlin2008-07-192-2/+19
| | | | | | | | | | 2008-07-19 Johan Dahlin <johan@gnome.org> * gio/gio.override: Ignore a bunch of functions which are not relevant. svn path=/trunk/; revision=838
* Bind gio.Mount.unmount, gio.File.mount_mountable,Johan Dahlin2008-07-195-5/+318
| | | | | | | | | | | | | | | 2008-07-19 Johan Dahlin <johan@gnome.org> * gio/gfile.override: * gio/gio.defs: * gio/gio.override: * tests/test_gio.py: Bind gio.Mount.unmount, gio.File.mount_mountable, gio.File.unmount_mountable and gio.File.mount_enclosing_volume. Add documents and tests. svn path=/trunk/; revision=837
* Set module name back to gio, as setting it to gio._gio breaks pydoc.Johan Dahlin2008-07-192-1/+4
| | | | | | | | | | 2008-07-19 Johan Dahlin <johan@gnome.org> * gio/gio.override: Set module name back to gio, as setting it to gio._gio breaks pydoc. svn path=/trunk/; revision=836
* Use property based constructors when possible.Johan Dahlin2008-07-192-10/+15
| | | | | | | | | | 2008-07-19 Johan Dahlin <johan@gnome.org> * gio/gio.defs: Use property based constructors when possible. svn path=/trunk/; revision=835
* Increase to 100 per goJohan Dahlin2008-07-181-1/+2
| | | | svn path=/trunk/; revision=834
* improve example: show error message and allow sys.argv[1] to be specifiedJohan Dahlin2008-07-181-3/+13
| | | | svn path=/trunk/; revision=833
* Wrap gio.FileEnumerator.next_files_async/next_files_done. Update theJohan Dahlin2008-07-185-3/+143
| | | | | | | | | | | | | | | 2008-07-19 Johan Dahlin <johan@gnome.org> * examples/gio/directory-async.py: * gio/gfileenumerator.override: * gio/gio.defs: * tests/test_gio.py: Wrap gio.FileEnumerator.next_files_async/next_files_done. Update the example to use them instead of the synchronous versions, add documentation and tests. svn path=/trunk/; revision=832
* Only fetch name, saves a couple of syscalls. Set name to gio._gio soJohan Dahlin2008-07-183-2/+9
| | | | | | | | | | | | 2008-07-19 Johan Dahlin <johan@gnome.org> * examples/gio/directory-async.py: Only fetch name, saves a couple of syscalls. * gio/gio.override: Set name to gio._gio so pychecker/pydoc works. svn path=/trunk/; revision=831
* Fix header filenameJohan Dahlin2008-07-181-1/+1
| | | | svn path=/trunk/; revision=830
* Remove unused importJohan Dahlin2008-07-181-1/+0
| | | | svn path=/trunk/; revision=829
* Wrap gio.File.enumerate_children_async, add tests, docstring and anJohan Dahlin2008-07-186-11/+150
| | | | | | | | | | | | | | * examples/gio/directory-async.py: * gio/gfile.override: * gio/gfileenumerator.override: * gio/gio.defs: * tests/test_gio.py: Wrap gio.File.enumerate_children_async, add tests, docstring and an example. Also document gio.File.enumerate while we're at it. svn path=/trunk/; revision=828
* Use %zd instead of %d since it's a Py_ssize_t and not an int.Johan Dahlin2008-07-182-1/+6
| | | | | | | | | | 2008-07-18 Johan Dahlin <johan@gnome.org> * gio/gfile.override: Use %zd instead of %d since it's a Py_ssize_t and not an int. svn path=/trunk/; revision=827
* define NO_IMPORT_PYGOBJECT before including pygobject.hJohan Dahlin2008-07-182-1/+7
| | | | | | | | | | 2008-07-18 Johan Dahlin <johan@gnome.org> * gio/pygio-utils.h: define NO_IMPORT_PYGOBJECT before including pygobject.h svn path=/trunk/; revision=826
* Require pygobject 2.15.2Johan Dahlin2008-07-182-1/+6
| | | | | | | | | | 2008-07-18 Johan Dahlin <johan@gnome.org> * gio/giomodule.c (init_gio): Require pygobject 2.15.2 svn path=/trunk/; revision=825
* Put gio.override before all the othersJohan Dahlin2008-07-181-1/+1
| | | | svn path=/trunk/; revision=824
* Use #include <pygobject.h> instead of include "pygobject.h"Johan Dahlin2008-07-183-3/+3
| | | | svn path=/trunk/; revision=823
* The module is called gio._gio, not just _gio.Johan Dahlin2008-07-172-1/+2
| | | | | | | | | | 2008-07-17 Johan Dahlin <johan@gnome.org> * gio/giomodule.c (init_gio): (DL_EXPORT): The module is called gio._gio, not just _gio. svn path=/trunk/; revision=822
* s/pygobject/gio/Johan Dahlin2008-07-171-1/+1
| | | | svn path=/trunk/; revision=821
* Add a pygio_version module attributeJohan Dahlin2008-07-172-2/+19
| | | | | | | | | | 2008-07-17 Johan Dahlin <johan@gnome.org> * gio/giomodule.c (init_gio): Add a pygio_version module attribute svn path=/trunk/; revision=820
* Rename gio.IOErrorEnum to gio.ErrorEnumJohan Dahlin2008-07-172-1/+6
| | | | | | | | | | 2008-07-17 Johan Dahlin <johan@gnome.org> * gio/gio-types.defs: Rename gio.IOErrorEnum to gio.ErrorEnum svn path=/trunk/; revision=819
* Add gio.ERROR which maps to the G_IO_ERROR quark.Johan Dahlin2008-07-172-0/+7
| | | | | | | | | | 2008-07-17 Johan Dahlin <johan@gnome.org> * gio/giomodule.c (init_gio): Add gio.ERROR which maps to the G_IO_ERROR quark. svn path=/trunk/; revision=818
* Use the prefix G_IO_ for stripping constants instead of just G_ Check soJohan Dahlin2008-07-173-6/+27
| | | | | | | | | | | | | | | | | 2008-07-17 Johan Dahlin <johan@gnome.org> * gio/giomodule.c (init_gio): Use the prefix G_IO_ for stripping constants instead of just G_ * gobject/gobjectmodule.c (pyg_constant_strip_prefix): Check so the fist part of name and strip_prefix are the same, if they don't, just strip of the part of strip_prefix which matches. This removes the initial IO_* prefix for some constants in gio. Eg, gio.IO_ERROR_* -> gio.ERROR_* svn path=/trunk/; revision=817
* Post release version bumpJohan Dahlin2008-07-162-1/+5
| | | | | | | | | 2008-07-16 Johan Dahlin <johan@gnome.org> * configure.ac: Post release version bump svn path=/trunk/; revision=816
* 2.15.1PYGOBJECT_2_15_1Johan Dahlin2008-07-162-0/+9
| | | | svn path=/trunk/; revision=814
* Rename from 'pygtk-codegen-2.0.in'.Paul Pogonyshev2008-07-154-3/+11
| | | | | | | | | | | | 2008-07-15 Paul Pogonyshev <pogonyshev@gmx.net> * codegen/pygobject-codegen-2.0.in: Rename from 'pygtk-codegen-2.0.in'. * configure.ac: * codegen/Makefile.am: Update accordingly. svn path=/trunk/; revision=813
* Post release version bumpJohan Dahlin2008-07-143-1/+6
| | | | | | | | | 2008-07-15 Johan Dahlin <johan@gnome.org> * configure.ac: Post release version bump svn path=/trunk/; revision=812
* Add a release-tag targetJohan Dahlin2008-07-141-0/+9
| | | | svn path=/trunk/; revision=811
* 2.15.0PYGOBJECT_2_15_0Johan Dahlin2008-07-142-0/+22
| | | | svn path=/trunk/; revision=809
* Make sure we can distcheck the gio module properlyJohan Dahlin2008-07-142-1/+9
| | | | | | | | | | 2008-07-15 Johan Dahlin <johan@gnome.org> * tests/Makefile.am: Make sure we can distcheck the gio module properly svn path=/trunk/; revision=808
* Bug 450659 – h2def.py - export 'typedef struct' object definitions notJohan Dahlin2008-07-142-1/+9
| | | | | | | | | | | | | 2008-07-15 Johan Dahlin <johan@gnome.org> Bug 450659 – h2def.py - export 'typedef struct' object definitions not working * codegen/h2def.py: Patch by Lauro Moura svn path=/trunk/; revision=807
* Bug 471559 – add AM_PROG_CC_C_O to configure.ac for recent automakeJohan Dahlin2008-07-142-0/+8
| | | | | | | | | | | 2008-07-14 Johan Dahlin <johan@gnome.org> Bug 471559 – add AM_PROG_CC_C_O to configure.ac for recent automake * configure.ac: Patch by Tim Mooney svn path=/trunk/; revision=806
* Bug 448173 – use python-config to get python includesJohan Dahlin2008-07-142-2/+13
| | | | | | | | | | | | 2008-07-14 Johan Dahlin <johan@gnome.org> Bug 448173 – use python-config to get python includes * configure.ac: Really close the by, patch by Matthias Klose svn path=/trunk/; revision=805
* Bug 378704 – OptionParser.parse_args() returns unexpected results PatchJohan Dahlin2008-07-142-1/+12
| | | | | | | | | | | 2008-07-14 Johan Dahlin <johan@gnome.org> Bug 378704 – OptionParser.parse_args() returns unexpected results * gobject/option.py: Patch by Johannes Hölzl svn path=/trunk/; revision=804
* Bug 491773 – autoconf failure: .m4 files cannot be foundJohan Dahlin2008-07-142-0/+8
| | | | | | | | | | | | 2008-07-14 Johan Dahlin <johan@gnome.org> Bug 491773 – autoconf failure: .m4 files cannot be found * Makefile.am: Patch by macks@netspace.org svn path=/trunk/; revision=803
* wrap File.load_contents_async and File.load_contents_finish with docsstrings ↵Gian Mario Tagliaretti2008-07-144-3/+119
| | | | | | and a test svn path=/trunk/; revision=802
* Bug 487523 – Add xslfiles variable to .pc.in filesJohan Dahlin2008-07-142-2/+10
| | | | | | | | | | | | 2008-07-14 Johan Dahlin <johan@gnome.org> Bug 487523 – Add xslfiles variable to .pc.in files * pygobject-2.0-uninstalled.pc.in: Add xslfiles variable, patch by Damien Carbery svn path=/trunk/; revision=801
* Remove g_file_input_stream_seek and g_file_output_stream_seek, theyJohan Dahlin2008-07-142-24/+6
| | | | | | | | | | | 2008-07-14 Johan Dahlin <johan@gnome.org> * gio/gio.defs: Remove g_file_input_stream_seek and g_file_output_stream_seek, they already implement the seekable interface. svn path=/trunk/; revision=800
* Bug 504337 - crash bug in gobject.Timeout and gobject.IdleJohan Dahlin2008-07-143-4/+17
| | | | | | | | | | | | | 2008-07-14 Johan Dahlin <johan@gnome.org> Bug 504337 - crash bug in gobject.Timeout and gobject.Idle * gobject/pygsource.c: * tests/test_source.py: Fix crash in Timeout and Idle, patch by Bryan Silverthorn. svn path=/trunk/; revision=799