summaryrefslogtreecommitdiffstats
path: root/glib
Commit message (Collapse)AuthorAgeFilesLines
* Fix various selftests when building against python 3.1David Malcolm2010-04-162-3/+24
|
* Allow GPid instances to be createdJohn Ehresman2010-04-161-1/+7
|
* Test for basestring and use str if not presentJohn Ehresman2010-04-161-2/+7
|
* Use bytes rather than bytearray and use PYGLIB_ macro prefixJohn Ehresman2010-04-162-17/+17
|
* Fix pyg_pid_new on python 3David Malcolm2010-04-161-4/+4
|
* Initial working enum/flags/pid subclasses of longJohn Ehresman2010-04-151-2/+3
|
* METH_KEYWORDS w/o METH_VARARGS is invalid in python 3John Ehresman2010-04-152-17/+17
|
* Changes to module init, and to compile under python3. Doesn't work thoughJohn Ehresman2010-04-153-32/+78
|
* More PyString to _PyUnicode or _PyByteArrayJohn Ehresman2010-04-151-0/+1
|
* Return byte array from read_chars iff encoding is NULL, otherwise return a ↵John Ehresman2010-04-151-6/+22
| | | | unicode instance in python 3
* Add PyByteArray macrosJohn Ehresman2010-04-151-1/+7
|
* Remove remaining PyInt & PyString callsJohn Ehresman2010-04-151-6/+6
|
* Make pyglib-python-compat.h a public header and include in pygobject.h Also ↵John Ehresman2010-04-154-3/+12
| | | | #define PyVarObject_HEAD_INIT if not defined (in < python 2.6)
* Fix reference leak when using repr in exception stringsJohn Ehresman2010-04-151-2/+8
|
* Use richcompare slot rather than old compare slot and Py_TYPE macro in ↵John Ehresman2010-04-157-35/+149
| | | | preparation for py3k support
* Bug 598435 - No wrapping for g_find_program_in_path ()Gian Mario Tagliaretti2009-12-181-0/+20
|
* Move threads_init() function from 'gobject' to 'glib'Paul Pogonyshev2009-11-101-0/+16
| | | | | Retain in original place for backward compatibility, but remove it from the docs.
* pygmainloop: fix use of PySignal_WakeUpFD API for nested loopsPhilippe Normad2009-10-211-45/+50
| | | | Fixes bug #481569
* Plug reference leak of GSource in pyg_main_loop_init()Paul Pogonyshev2009-09-221-0/+1
| | | | Bug #579406, second change.
* Add Python version into installed libpyglib nameEmilio Pozuelo Monfort2009-05-241-5/+5
| | | | | Do this now, while no-one (as far as we know) links to the library besides PyGObject itself. Bug #550235.
* Mark relevant glib.IOChannel methods as METH_NOARGSPaul Pogonyshev2009-05-131-63/+20
| | | | | Additionally fix glib.IOChannel.set_close_on_unref: was marked METH_NOARGS but actually accepted arguments. Fixes bug #582427.
* Properly mark glib.get_user_special_dir() as a keywords methodPaul Pogonyshev2009-05-031-1/+1
| | | | Fixes bug #581082.
* Fix occasional build failures after the 'ltihooks.py' removalPaul Pogonyshev2009-04-291-1/+1
| | | | | Simply amend all related symbolic link creation so that any errors are ignored.
* Wrap four g_get_user_*_dir() functionsPaul Pogonyshev2009-04-201-0/+85
| | | | | | | Wrap g_get_user_cache_dir(), g_get_user_config_dir(), g_get_user_data_dir(), g_get_user_special_dir() and the constants required for the latter. Document all new functions and constants. (Bug #575999).
* Remove 'ltihooks.py' as using deprecated Python module.Paul Pogonyshev2009-04-182-8/+7
| | | | | | | Remove the script and all related imports. All relevant Makefile's now create symbolic links for '.so' files from '.libs' to the level up, so that C helper modules are still importable in built, but not installed source tree.
* Add support code for fixing: Bug 507174 – Convert from popt to GOption.Gustavo J. A. M. Carneiro2009-04-051-0/+7
| | | | svn path=/trunk/; revision=1055
* Update the address of the FSF, by replacing old bits of the address withTobias Mueller2009-03-2920-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-03-29 Tobias Mueller <tobiasmue@gnome.org> Update the address of the FSF, by replacing old bits of the address with new ones. Fixes bug 577134 * ltihooks.py: * pygtk.py: * COPYING: * gobject/pygparamspec.h: * gobject/pygpointer.c: * gobject/ffi-marshaller.h: * gobject/pygtype.c: * gobject/__init__.py: * gobject/pygpointer.h: * gobject/pygtype.h: * gobject/pygflags.c: * gobject/pyginterface.c: * gobject/pygflags.h: * gobject/pygboxed.c: * gobject/gobjectmodule.c: * gobject/pygenum.c: * gobject/pyginterface.h: * gobject/pygboxed.h: * gobject/pygobject.c: * gobject/constants.py.in: * gobject/pygenum.h: * gobject/propertyhelper.py: * gobject/pygparamspec.c: * gobject/ffi-marshaller.c: * glib/pygmainloop.c: * glib/pygoptioncontext.h: * glib/pygmainloop.h: * glib/pyglib-private.h: * glib/__init__.py: * glib/pygoptiongroup.c: * glib/pygspawn.c: * glib/pygmaincontext.c: * glib/pygoptiongroup.h: * glib/pygspawn.h: * glib/pygmaincontext.h: * glib/option.py: * glib/pygsource.c: * glib/glibmodule.c: * glib/pygiochannel.h: * glib/pygsource.h: * glib/pyglib.c: * glib/pyglib.h: * glib/pyglib-python-compat.h: * glib/pygoptioncontext.c: * gio/gfileinfo.override: * gio/gappinfo.override: * gio/__init__.py: * gio/gfileattribute.override: * gio/gvolume.override: * gio/gio.override: * gio/ginputstream.override: * gio/goutputstream.override: * gio/unix.override: * gio/gfile.override: * gio/gvolumemonitor.override: * gio/gapplaunchcontext.override: * gio/giomodule.c: * gio/gfileenumerator.override: * gio/pygio-utils.c: * gio/unixmodule.c: * gio/pygio-utils.h: * gio/gicon.override: svn path=/trunk/; revision=1038
* Bug 563714 – GNOME Goal: Clean up GLib and GTK+ includesPrzemysław Grzegorczyk2009-01-041-1/+1
| | | | | | | | | | | 2009-01-04 Przemysław Grzegorczyk <pgrzegorczyk@gmail.com> Bug 563714 – GNOME Goal: Clean up GLib and GTK+ includes * gobject/generate-constants.c: * glib/pygspawn.c: Only include toplevel <glib.h>. svn path=/trunk/; revision=989
* Test if `domain' is not-null before using it (avoids segfaults, see bugPaul Pogonyshev2008-12-031-3/+8
| | | | | | | | | 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
* * gobject/pygobject.c: Fix memory problems reported by valgrind due toGustavo J. A. M. Carneiro2008-08-301-1/+2
| | | | | | | | | * 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
* Mark pyglib_notify_on_enabling_threads() as private (also rename).Paul Pogonyshev2008-08-272-3/+5
| | | | svn path=/trunk/; revision=955
* Bug 549351 – an unitialized variable in PyGLibPaul Pogonyshev2008-08-271-3/+2
| | | | | | | | | | | 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
* Bug 547633 – cannot create new threads when pygtk is usedPaul Pogonyshev2008-08-272-1/+26
| | | | | | | | | | | | | | | | | | 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
* Add a pygobject_enable_threads wrapper around pyglib_threads_enable andJohan Dahlin2008-08-061-6/+12
| | | | | | | | | | | | | 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-061-1/+4
| | | | | | | | | | | 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
* Change return value from 'gboolean' to 'int' and changed semantics toPaul Pogonyshev2008-08-032-7/+7
| | | | | | | | | | | | | | 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 compilation warnings, clean up style and indentation.Johan Dahlin2008-08-023-87/+99
| | | | | | | | | | | | | | | | | | 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
* Add pyglib_float_from_timeval and use itJohan Dahlin2008-08-023-3/+18
| | | | | | | | | | | | | | 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
* Use %r instead of %s, this is not python!Johan Dahlin2008-08-011-1/+1
| | | | | | | | | | 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-301-36/+86
| | | | | | | | | | | | | 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
* Move all compatibility into the same place, fixes build on python 2.4.Johan Dahlin2008-07-281-8/+23
| | | | | | | | | | | | 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
* Remove tabs. Use sys.exc_info()[1] to fetch the exception valueJohan Dahlin2008-07-271-11/+14
| | | | | | | | | | | | | | | | | | | 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-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-272-4/+4
| | | | | | | | | | | | | | | | | | | | | 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
* Add _PyUnicode_Type macroJohan Dahlin2008-07-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix a commentJohan Dahlin2008-07-261-1/+1
| | | | svn path=/trunk/; revision=876
* reviewed by: <delete if not using a buddy>Johan Dahlin2008-07-262-21/+26
| | | | | | | | | | | | | | | | | | | | | | | | 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-266-33/+44
| | | | | | | | | | | | | | | | | | | | | 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-265-43/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-265-210/+37
| | | | | | | | | | | | | | | | 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