summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a new exampleJohan Dahlin2008-07-283-9/+83
| | | | | | | | | | | | | | | 2008-07-29 Johan Dahlin <johan@gnome.org> * examples/gio/downloader.py: Add a new example * gio/ginputstream.override: Use a string internally instead of a PyStringObject when in read_async. Create a new python string in finish and honor the number of bytes read. svn path=/trunk/; revision=892
* add a py-compile which works on python 2.x and 3.xJohan Dahlin2008-07-281-0/+146
| | | | svn path=/trunk/; revision=891
* Move all compatibility into the same place, fixes build on python 2.4.Johan Dahlin2008-07-283-27/+30
| | | | | | | | | | | | 2008-07-28 Johan Dahlin <johan@gnome.org> * glib/pyglib-python-compat.h: * gobject/pygobject-private.h: Move all compatibility into the same place, fixes build on python 2.4. svn path=/trunk/; revision=890
* Use hexversion so it works with alpha/beta releasesJohan Dahlin2008-07-281-2/+8
| | | | svn path=/trunk/; revision=889
* Remove unnecessary spacingJohan Dahlin2008-07-281-2/+2
| | | | svn path=/trunk/; revision=888
* Remove tabs. Use sys.exc_info()[1] to fetch the exception valueJohan Dahlin2008-07-277-40/+72
| | | | | | | | | | | | | | | | | | | 2008-07-27 Johan Dahlin <johan@gnome.org> * glib/option.py: Remove tabs. Use sys.exc_info()[1] to fetch the exception value * gobject/__init__.py: * gobject/propertyhelper.py: Import gobject._gobject instead of just gobject. * gobject/Makefile.am: * gobject/constants.py.in: * gobject/generate-constants.c (main): Don't add long suffix if python >= 3.0 svn path=/trunk/; revision=887
* Use the Py_TYPE macro everywhere.Johan Dahlin2008-07-2710-30/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-27 Johan Dahlin <johan@gnome.org> * glib/pyglib-python-compat.h: * gobject/gobjectmodule.c (pyg_object_new), (pyg__install_metaclass): * gobject/pygboxed.c (pyg_boxed_dealloc), (pyg_boxed_init), (pyg_register_boxed): * gobject/pygenum.c (pyg_enum_reduce): * gobject/pyginterface.c (pyg_interface_init), (pyg_register_interface): * gobject/pygobject.c (pygobject_get_inst_data), (pygobject_register_class), (pygobject_new_with_interfaces), (pygobject_dealloc), (pygobject_repr), (pygobject_emit), (pygobject_chain_from_overridden), (pygobject_weak_ref_notify): * gobject/pygparamspec.c (pygobject_paramspec_register_types): * gobject/pygpointer.c (pyg_pointer_dealloc), (pyg_pointer_init), (pyg_register_pointer): * gobject/pygtype.c (pyg_type_from_object), (pyg_value_array_from_pyobject), (pyg_value_from_pyobject), (pyg_object_descr_doc_get): Use the Py_TYPE macro everywhere. svn path=/trunk/; revision=886
* Add a Py_TYPE macro for accessing ob_type.Johan Dahlin2008-07-276-28/+56
| | | | | | | | | | | | | | | | | | | | | 2008-07-27 Johan Dahlin <johan@gnome.org> * glib/pyglib-python-compat.h: Add a Py_TYPE macro for accessing ob_type. * glib/glibmodule.c (pyglib_register_constants): * gobject/gobjectmodule.c (pygobject__g_instance_init), (pyg_integer_richcompare): * gobject/pygenum.c (pyg_enum_repr), (pyg_enum_from_gtype), (pyg_enum_add), (pyg_enum_get_value_name), (pyg_enum_get_value_nick): * gobject/pygflags.c (pyg_flags_repr), (pyg_flags_from_gtype), (pyg_flags_add), (pyg_flags_and), (pyg_flags_or), (pyg_flags_xor), (pyg_flags_get_first_value_name), (pyg_flags_get_first_value_nick), (pyg_flags_get_value_names), (pyg_flags_get_value_nicks): Use Py_TYPE and PyLong macros to access struct fields svn path=/trunk/; revision=885
* Use _PyLong macros.Johan Dahlin2008-07-278-66/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-27 Johan Dahlin <johan@gnome.org> * gobject/gobjectmodule.c (pyg_param_spec_from_object), (add_properties), (pyg_signal_new), (pyg_signal_list_ids), (pyg_signal_lookup), (pyg_signal_query): * gobject/pygenum.c (pyg_enum_richcompare), (pyg_enum_new), (pyg_enum_from_gtype), (pyg_enum_add), (pyg_enum_reduce), (pygobject_enum_register_types): * gobject/pygflags.c (pyg_flags_richcompare), (pyg_flags_new), (pyg_flags_from_gtype), (pyg_flags_add), (pyg_flags_and), (pyg_flags_or), (pyg_flags_xor), (pygobject_flags_register_types): * gobject/pygobject-private.h: * gobject/pygobject.c (pygobject_disconnect_by_func), (pygobject_handler_block_by_func), (pygobject_handler_unblock_by_func), (pygobject_get_refcount): * gobject/pygparamspec.c (pyg_param_spec_getattr): * gobject/pygtype.c (_wrap_g_type_wrapper__get_depth), (pyg_type_from_object), (pyg_enum_get_value), (pyg_flags_get_value), (pyg_value_from_pyobject), (pyg_value_as_pyobject): Use _PyLong macros. svn path=/trunk/; revision=884
* Use PYGLIB_DEFINE_TYPE macro and move struct field initialization to theJohan Dahlin2008-07-278-496/+142
| | | | | | | | | | | | | | | | | 2008-07-27 Johan Dahlin <johan@gnome.org> * gobject/pygboxed.c (pygobject_boxed_register_types): * gobject/pygenum.c (pygobject_enum_register_types): * gobject/pygflags.c (pygobject_flags_register_types): * gobject/pygobject.c (pygobject_object_register_types): * gobject/pygparamspec.c (pygobject_paramspec_register_types): * gobject/pygpointer.c (pygobject_pointer_register_types): * gobject/pygtype.c (pygobject_type_register_types): Use PYGLIB_DEFINE_TYPE macro and move struct field initialization to the registration methods. svn path=/trunk/; revision=883
* Add _PyUnicode_Type macroJohan Dahlin2008-07-2710-78/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-27 Johan Dahlin <johan@gnome.org> * glib/pyglib-python-compat.h: Add _PyUnicode_Type macro * gobject/gobjectmodule.c (pyg_type_name), (pyg_type_from_name), (_pyg_signal_accumulator), (add_signals), (add_properties), (get_type_name_for_class), (pyg_signal_list_names), (pyg_signal_name), (pyg_signal_query), (pyg_object_new), (pyg_add_emission_hook), (pyg_remove_emission_hook): * gobject/pygboxed.c (pyg_boxed_repr): * gobject/pygenum.c (pyg_enum_repr), (pyg_enum_add), (pyg_enum_get_value_name), (pyg_enum_get_value_nick): * gobject/pygflags.c (pyg_flags_repr), (pyg_flags_add), (pyg_flags_get_first_value_name), (pyg_flags_get_first_value_nick), (pyg_flags_get_value_names), (pyg_flags_get_value_nicks): * gobject/pygobject.c (build_parameter_list), (PyGProps_getattro), (PyGProps_setattro), (pygobject_register_class), (pygobject_repr), (pygobject_init), (pygobject_get_properties), (pygobject_set_properties), (pygobject_connect), (pygobject_connect_after), (pygobject_connect_object), (pygobject_connect_object_after), (pygobject_emit), (pygobject_stop_emission), (pygobject_disconnect_by_func), (pygobject_handler_block_by_func), (pygobject_handler_unblock_by_func), (pygobject_object_register_types): * gobject/pygparamspec.c (pyg_param_spec_repr), (pyg_param_spec_getattr): * gobject/pygpointer.c (pyg_pointer_repr): * gobject/pygtype.c (pyg_type_wrapper_repr), (_wrap_g_type_wrapper__get_name), (pyg_type_from_object), (pyg_enum_get_value), (pyg_flags_get_value), (pyg_value_from_pyobject), (pyg_value_as_pyobject), (object_doc_descr_get), (_pyg_strv_from_gvalue), (_pyg_strv_to_gvalue): Use _PyUnicode_* macros in the gobject module svn path=/trunk/; revision=882
* Use glib macros to define the module, update export regexp.Johan Dahlin2008-07-274-9/+16
| | | | | | | | | | | | 2008-07-27 Johan Dahlin <johan@gnome.org> * gobject/Makefile.am: * gobject/gobjectmodule.c (PYGLIB_MODULE_START): * gobject/pygobject-private.h: Use glib macros to define the module, update export regexp. svn path=/trunk/; revision=881
* Split out quark and type registration to the respective implementationJohan Dahlin2008-07-2711-19/+184
| | | | | | | | | | | | | | | | | | | | 2008-07-27 Johan Dahlin <johan@gnome.org> * gobject/Makefile.am: * gobject/gobjectmodule.c (init_gobject): * gobject/pygboxed.c (pygobject_boxed_register_types): * gobject/pygboxed.h: * gobject/pygenum.c (pygobject_enum_register_types): * gobject/pygenum.h: * gobject/pygflags.c (pygobject_flags_register_types): * gobject/pygflags.h: * gobject/pygpointer.c (pygobject_pointer_register_types): * gobject/pygpointer.h: Split out quark and type registration to the respective implementation source files, add headers. svn path=/trunk/; revision=880
* Move off a bit more to separate functions, cleaning up the init_glib a bitJohan Dahlin2008-07-267-191/+262
| | | | | | | | | | | | | | | | | | | | | 2008-07-27 Johan Dahlin <johan@gnome.org> * gobject/Makefile.am: * gobject/gobjectmodule.c (pygobject_register_api), (pygobject_register_constants), (pygobject_register_features), (pygobject_register_version_tuples), (pygobject_register_warnings), (init_gobject): * gobject/pygobject-private.h: * gobject/pygobject.c (pyobject_copy), (pyobject_free), (pygobject_object_register_types): * gobject/pygtype.c (_pyg_strv_from_gvalue), (_pyg_strv_to_gvalue), (pygobject_type_register_types): * gobject/pygtype.h: Move off a bit more to separate functions, cleaning up the init_glib a bit more. svn path=/trunk/; revision=879
* Move paramspec registration to a separate file, add a header for theJohan Dahlin2008-07-268-13/+69
| | | | | | | | | | | | | | | | | 2008-07-27 Johan Dahlin <johan@gnome.org> * gobject/Makefile.am: * gobject/gobjectmodule.c (init_gobject): * gobject/pygobject-private.h: * gobject/pygobject.c: * gobject/pygparamspec.c (pygobject_paramspec_register_types): * gobject/pygparamspec.h: * gobject/pygtype.c: Move paramspec registration to a separate file, add a header for the internal API. svn path=/trunk/; revision=878
* Issue warning if 'obj' is a PyGEnum of wrong type, i.e. not matchingPaul Pogonyshev2008-07-262-0/+12
| | | | | | | | | | 2008-07-27 Paul Pogonyshev <pogonyshev@gmx.net> * gobject/pygtype.c (pyg_enum_get_value): Issue warning if 'obj' is a PyGEnum of wrong type, i.e. not matching 'enum_type' (bug #503771). svn path=/trunk/; revision=877
* Fix a commentJohan Dahlin2008-07-261-1/+1
| | | | svn path=/trunk/; revision=876
* reviewed by: <delete if not using a buddy>Johan Dahlin2008-07-269-150/+222
| | | | | | | | | | | | | | | | | | | | | | | | 2008-07-26 Johan Dahlin <johan@gnome.org> reviewed by: <delete if not using a buddy> * glib/pyglib-python-compat.h: * glib/pyglib.h: Make a few macros public * gobject/Makefile.am: * gobject/gobjectmodule.c (init_gobject): * gobject/pyginterface.c (pyg_interface_init), (pyg_interface_free), (pyg_register_interface), (pyg_register_interface_info), (pyg_lookup_interface_info), (pygobject_interface_register_types): * gobject/pyginterface.h: * gobject/pygobject-private.h: * gobject/pygobject.c: Move GInterface wrapper into its own file svn path=/trunk/; revision=875
* Also export PyInit_glib import glib._glib instead of just _glibJohan Dahlin2008-07-267-33/+60
| | | | | | | | | | | | | | | | | | | | | 2008-07-26 Johan Dahlin <johan@gnome.org> * glib/Makefile.am: Also export PyInit_glib * glib/__init__.py: import glib._glib instead of just _glib * glib/pyglib-python-compat.h: * glib/pygoptioncontext.c (pyg_option_context_parse): * glib/pygsource.c (source_repr), (pyg_source_attach), (pyg_source_get_priority), (pyg_source_set_priority), (pyg_source_get_id), (pyg_source_prepare), (pyg_poll_fd_repr): * glib/pygspawn.c (pyg_pid_close), (pyg_pid_free), (pyg_pid_new), (pyglib_spawn_async), (pyglib_spawn_register_types): Go over the rest and replace missing symbols on python3. the glib module successfully compiles and runs now. svn path=/trunk/; revision=874
* gobject -> glibJohan Dahlin2008-07-266-43/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-26 Johan Dahlin <johan@gnome.org> * glib/pygiochannel.c (py_io_channel_shutdown), (py_io_channel_set_buffer_size), (py_io_channel_get_buffer_size), (py_io_channel_set_buffered), (py_io_channel_get_buffered), (py_io_channel_set_encoding), (py_io_channel_get_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_get_flags), (py_io_channel_get_buffer_condition), (py_io_channel_set_close_on_unref), (py_io_channel_add_watch), (py_io_channel_win32_poll), (py_io_channel_win32_make_pollfd), (py_io_channel_read_line), (py_io_channel_read_lines), (py_io_channel_seek), (py_io_channel_init): * glib/pyglib.c (pyglib_gerror_exception_check): * glib/pygoptioncontext.c (pyg_option_context_init): * glib/pygoptiongroup.c (check_if_owned): * glib/pygsource.c (pyg_idle_init), (pyg_timeout_init), (pyg_poll_fd_init): gobject -> glib svn path=/trunk/; revision=873
* Convert the pid/mainloop/maincontext/optiongroup/optioncontext.Johan Dahlin2008-07-266-210/+48
| | | | | | | | | | | | | | | | 2008-07-26 Johan Dahlin <johan@gnome.org> * glib/pygmaincontext.c (pyglib_maincontext_register_types): * glib/pygmainloop.c (pyg_main_loop_init), (pyglib_mainloop_register_types): * glib/pygoptioncontext.c (pyg_option_context_set_main_group), (pyglib_option_context_register_types): * glib/pygoptiongroup.c (pyglib_option_group_register_types): * glib/pygspawn.c (pyglib_spawn_register_types): Convert the pid/mainloop/maincontext/optiongroup/optioncontext. svn path=/trunk/; revision=872
* Convert the source objects to use macros, saves ~150 lines of code!Johan Dahlin2008-07-262-178/+47
| | | | | | | | | | 2008-07-26 Johan Dahlin <johan@gnome.org> * glib/pygsource.c (pyglib_source_register_types): Convert the source objects to use macros, saves ~150 lines of code! svn path=/trunk/; revision=871
* Add macros for supporting additional python versions. Start using them forJohan Dahlin2008-07-267-122/+206
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-26 Johan Dahlin <johan@gnome.org> * glib/glibmodule.c (get_handler_priority), (pyglib_idle_add), (pyglib_timeout_add), (pyglib_timeout_add_seconds), (pyglib_io_add_watch), (pyglib_child_watch_add), (pyglib_markup_escape_text), (pyglib_main_depth), (pyglib_filename_from_utf8), (pyglib_get_application_name), (pyglib_get_prgname), (PYGLIB_MODULE_START): * glib/pygiochannel.c (py_io_channel_next), (py_io_channel_shutdown), (py_io_channel_get_buffer_size), (py_io_channel_get_buffered), (py_io_channel_get_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_get_flags), (py_io_channel_get_buffer_condition), (py_io_channel_win32_poll), (py_io_channel_read_line), (py_io_channel_read_lines), (py_io_channel_seek), (pyglib_iochannel_register_types): * glib/pyglib-private.h: * glib/pyglib-python-compat.h: * glib/pyglib.c (pyglib_init), (pyglib_error_check), (pyglib_gerror_exception_check), (pyglib_register_exception_for_domain): Add macros for supporting additional python versions. Start using them for the glib module. Tested on python 2.5 and 3.0. svn path=/trunk/; revision=870
* Add macros which are compatible with python > 2.6.Johan Dahlin2008-07-263-6/+197
| | | | | | | | | | | 2008-07-26 Johan Dahlin <johan@gnome.org> * configure.ac: * m4/python.m4: Add macros which are compatible with python > 2.6. svn path=/trunk/; revision=869
* Post release version bumpJohan Dahlin2008-07-262-1/+6
| | | | | | | | | | 2008-07-26 Johan Dahlin <johan@gnome.org> * configure.ac: Post release version bump svn path=/trunk/; revision=868
* 2.15.2PYGOBJECT_2_15_2Johan Dahlin2008-07-262-0/+22
| | | | svn path=/trunk/; revision=866
* Build fix, remove extra \Johan Dahlin2008-07-262-1/+4
| | | | | | | | | | 2008-07-26 Johan Dahlin <johan@gnome.org> * gobject/Makefile.am (_gobject_la_SOURCES): Build fix, remove extra \ svn path=/trunk/; revision=865
* Update, add glib/gio bindings and other environmentsJohan Dahlin2008-07-261-1/+4
| | | | svn path=/trunk/; revision=864
* Add a new API for registering exceptions for a GError domain. Register aJohan Dahlin2008-07-267-15/+77
| | | | | | | | | | | | | | | | | | 2008-07-26 Johan Dahlin <johan@gnome.org> * examples/gio/directory-async.py: * gio/Makefile.am: * gio/giomodule.c (init_gio): * glib/pyglib.c (pyglib_error_check), (pyglib_register_exception_for_domain): * glib/pyglib.h: * tests/test_gio.py: Add a new API for registering exceptions for a GError domain. Register a new exception for G_IO_ERROR, update tests and examples to use the new exception. svn path=/trunk/; revision=863
* Send in a PyObject instead of a PyGOptionGroup object.Johan Dahlin2008-07-262-2/+8
| | | | | | | | | | | 2008-07-26 Johan Dahlin <johan@gnome.org> * glib/pygoptioncontext.c (pyg_option_context_set_main_group), (pyg_option_context_add_group): Send in a PyObject instead of a PyGOptionGroup object. svn path=/trunk/; revision=862
* Update the test tooJohan Dahlin2008-07-261-1/+1
| | | | svn path=/trunk/; revision=861
* Move option over from gobject to glib.Johan Dahlin2008-07-2614-179/+311
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-26 Johan Dahlin <johan@gnome.org> * glib/Makefile.am: * glib/glibmodule.c (pyglib_register_constants), (init_glib): * glib/option.py: * glib/pyglib.c (pyglib_init), (pyglib_option_group_transfer_group), (pyglib_option_group_new), (pyglib_option_context_new): * glib/pyglib.h: * glib/pygoptioncontext.c (pyg_option_context_parse), (pyg_option_context_set_main_group), (pyg_option_context_add_group), (pyglib_option_context_register_types): * glib/pygoptioncontext.h: * glib/pygoptiongroup.c (arg_func), (pyglib_option_group_register_types): * glib/pygoptiongroup.h: * gobject/Makefile.am: * gobject/__init__.py: * gobject/gobjectmodule.c (init_gobject): * gobject/option.py: * gobject/pygobject-private.h: * gobject/pygoptioncontext.c: * gobject/pygoptiongroup.c: Move option over from gobject to glib. svn path=/trunk/; revision=860
* Run pyflakes on the testsuite, remove unused imports and reorganizeJohan Dahlin2008-07-2611-65/+73
| | | | | | | | | | | | | | | | | | | | 2008-07-26 Johan Dahlin <johan@gnome.org> * tests/common.py: * tests/test_conversion.py: * tests/test_enum.py: * tests/test_interface.py: * tests/test_option.py: * tests/test_source.py: * tests/test_subprocess.py: * tests/test_subtype.py: * tests/test_thread.py: * tests/test_unknown.py: Run pyflakes on the testsuite, remove unused imports and reorganize others. svn path=/trunk/; revision=859
* Move over glib constants to gobjectJohan Dahlin2008-07-269-100/+151
| | | | | | | | | | | | | | | | | | 2008-07-26 Johan Dahlin <johan@gnome.org> * glib/glibmodule.c (pyglib_register_constants), (init_glib): * gobject/__init__.py: * gobject/gobjectmodule.c (init_gobject): Move over glib constants to gobject * tests/test_gio.py: * tests/test_mainloop.py: * tests/test_source.py: * tests/test_subprocess.py: * tests/test_thread.py: Update tests to refer to glib when appropriate svn path=/trunk/; revision=858
* Only bump to 2.14, not 2.16Johan Dahlin2008-07-263-3/+3
| | | | svn path=/trunk/; revision=857
* Bump required glib version to 2.16Johan Dahlin2008-07-263-8/+14
| | | | | | | | | | | 2008-07-26 Johan Dahlin <johan@gnome.org> * README: * configure.ac: Bump required glib version to 2.16 svn path=/trunk/; revision=856
* Use g_slice_new instead of g_newJohan Dahlin2008-07-264-7/+17
| | | | | | | | | | | | | | | 2008-07-26 Johan Dahlin <johan@gnome.org> * glib/glibmodule.c (child_watch_dnotify), (pyglib_child_watch_add): * glib/pygiochannel.c (pyg_iowatch_data_free), (py_io_channel_add_watch): * glib/pygspawn.c (_pyg_spawn_async_callback), (pyglib_spawn_async): Use g_slice_new instead of g_new svn path=/trunk/; revision=855
* Make distcheck passJohan Dahlin2008-07-253-2/+11
| | | | | | | | | | | 2008-07-25 Johan Dahlin <johan@gnome.org> * gobject/Makefile.am: * tests/Makefile.am: Make distcheck pass svn path=/trunk/; revision=854
* Remove private structures which moved to pyglib.Johan Dahlin2008-07-253-26/+6
| | | | | | | | | | | 2008-07-25 Johan Dahlin <johan@gnome.org> * gobject/gobjectmodule.c (init_gobject): * gobject/pygobject-private.h: Remove private structures which moved to pyglib. svn path=/trunk/; revision=853
* remove unused structureJohan Dahlin2008-07-251-5/+0
| | | | svn path=/trunk/; revision=852
* Bug 544600 – pygobject building failed since 839 revision, error :Johan Dahlin2008-07-242-0/+11
| | | | | | | | | | | | | 2008-07-24 Johan Dahlin <johan@gnome.org> Bug 544600 – pygobject building failed since 839 revision, error : "Py_ssize_t" undeclared * glib/pyglib-private.h: Add backward compatibility macros for python 2.4. svn path=/trunk/; revision=851
* 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