=== 2.12.1 === 2006-09-04 Johan Dahlin * gobject/pygobject.h (_PYGOBJECT_H_): Corrected version check, (Sebastian Dröge, #354364) * configure.ac: Post release version bump === 2.12.0 === 2006-09-04 Johan Dahlin * NEWS: * configure.ac: 2.12.0 2006-08-28 Johan Dahlin * docs/Makefile.am: Install html files regardless even when passing in --disable-docs, fixes #353159 (Matthias Clasen) 2006-08-27 Gustavo J. A. M. Carneiro * configure.ac: Post-release version bump. === 2.11.4 === 2006-08-27 Gustavo J. A. M. Carneiro * NEWS: Update. * gobject/gobjectmodule.c (pyg_type_register): Correct a bug in the code that checks if parent already implements an interface or not. * tests/test-unknown.c (test_interface_base_init), (test_interface_get_type): Add a property to the interface, for better testing. (test_unknown_get_property), (test_unknown_set_property, test_unknown_class_init): Add a property to the class as required by the interface. * tests/test_interface.py: More thorough interface testing, with properties and test both the case of implementing an interface from scratch, and re-implementing and interface that a parent already implements. 2006-08-27 Gustavo J. A. M. Carneiro * gobject/gobjectmodule.c (pygobject__g_instance_init): If necessary, attach the GObject to the PyGObject here. (pygobject_constructv): Cope with the fact that wrapper->obj may have already been set due to the change above. * tests/test_signal.py: Add test case fixed by the changes above, basically calling self.emit() inside do_set_property called implicitly by the constructor due to a CONSTRUCT property. Fixes bug 353039: "Failure in signal emission during do_set_property invoked from constructor". 2006-08-26 Gustavo J. A. M. Carneiro * gobject/gobjectmodule.c (pyg_type_register): Fix type registration once more to account for all corner cases. This time we register interfaces in two stages: first, before properties and signals are registered, we register the interfaces that are already implemented in the parent type and are being overridden; second, after registration of properties and signals, we register the remaining interfaces. 2006-08-21 Johan Dahlin * docs/Makefile.am (EXTRA_DIST): Remove build_stamp, include generated .html in the distributed tarball. Remove builddate.xml, reference directory and fixxref.py dependencies to avoid regenerating the tarball when it's not needed. * configure.ac: Post release version bump === 2.11.3 === 2006-08-21 Johan Dahlin * NEWS: Update * Makefile.am: * docs/Makefile.am: Always install the xsl files & css files, regardless if the documentation was actually built or not. Also clean it up considerably. 2006-08-17 Gustavo J. A. M. Carneiro * gobject/gobjectmodule.c (pyg_type_register): Move the interface registration code up, to run before properties and signals registration, because glib doesn't allow us to add interfaces after the first call to g_class_ref. 2006-08-16 John Finlay * docs/reference/pygobject-functions.xml: Update docs for gobject functions. 2006-08-15 Murray Cumming * gobject/pygobject-private.h: * gobject/pygobject.h: Replace uses of typename with type_name, because that is a reserved C++ keyword. This was breaking compilation of Glom due its use in the new type_register_custom function pointer in pygobject.h. 2006-08-12 John Finlay * pygobject-2.0.pc.in: Add reference to installed pygobject docs * docs/Makefile.am: Add install of style.css * docs/xsl/html.xsl: Define stylesheet as style.css * docs/style.css: Add. 2006-08-10 John Finlay * docs/reference/entities.docbook.in: * docs/reference/pygobject-ref.xml: * docs/Makefile.am: * configure.ac: Use builddate.xml for the builddate entity and have builddate.xml be updated when the docs are built not during configure time. 2006-08-08 Johan Dahlin * configure.ac: Post release version bump. === 2.11.2 === 2006-08-08 Johan Dahlin * NEWS: Update 2006-08-07 Johan Dahlin * docs/Makefile.am ($(HTML_DATA)): Fix parallel build (#350225, Ed Catmur) 2006-08-06 Johan Dahlin * m4/as-expand.m4: New file to workaround automake silliness * docs/xsl/fixxref.py.in: New script * docs/Makefile.am (XSLFILES): Add fixxref.py script, moved in from PyGTK. * docs/xsl/html.xsl: Do not use shade.verbatim, set the background color and border as a normal html tag to avoid an external stylesheet. 2006-08-04 Johan Dahlin * configure.ac: Post release version bump === 2.11.1 === 2006-08-04 Johan Dahlin * NEWS: Update * README: Update, some s/PyGTK/PyGObject/ * configure.ac: * docs/Makefile.am: * docs/reference/.cvsignore: * docs/reference/entities.docbook.in: * docs/reference/pygobject-ref.xml: Clean up the build date/version mess I created. Now it's created during configure time and properly included in the docbook files. Also make sure distcheck passes 2006-08-04 Gustavo J. A. M. Carneiro * configure.in: Add hack to disable libtool checking for g++ and g77 (copied from libglade). 2006-07-29 John Finlay * gobject/pygobject.h (pyg_param_gvalue_from_pyobject): Fix define to point to the correct function pointer field. 2006-07-29 Gustavo J. A. M. Carneiro * gobject/pygflags.c (pyg_flags_add): idem. * gobject/pygenum.c (pyg_enum_add): Give a more explicit error message when the gtype is not an enum. 2006-07-25 Johan Dahlin * gobject/pygobject.h (init_pygobject_check): Add a macro to easily check the installed pygobject version. * gobject/pygflags.c (pyg_flags_add) * gobject/pygenum.c (pyg_enum_add): Duplicate the string before sending it to python. Fixes GCC warnings. 2006-07-24 John Finlay * gobject/pygflags.c (pyg_flags_get_first_value_name) (pyg_flags_get_first_value_nick): Avoid segfault when g_flags_get_first_value returns NULL. 2006-07-20 John Finlay * docs/Makefile.am: Make version.xml dependent on config.h Make builddate.xml dependent on REFERENCE_DEPS. Add builddate.xml to build_stamp and pdf dependencies. Add pdf files to cleanup. 2006-07-20 Johan Dahlin * configure.ac: * docs/Makefile.am: * docs/reference/.cvsignore: * docs/reference/version.xml.in: Generate builddate.xml and version.xml at build time instead on configure time, add proper dependencies. 2006-07-19 John Finlay * docs/Makefile.am: Use more portable date generator. * docs/xsl/ref-html-style.xsl: Add book to list of indexed items. * docs/xsl/html.xsl: Output xref links for unknown links. * docs/xsl/ref-html-style.xsl: Include refsect1 and refsect2 in indexed items but only if they have ids. * configure.ac (AC_CONFIG_FILES) : Add docs/reference/version.xml * docs/reference/pygobject-ref.xml: Add pygobject-introduction.xml and version and builddate entities. Remove commented out items. * docs/Makefile.am: Add reference/pygobject-introduction.xml and reference/version.xml.in 2006-07-18 Johan Dahlin * docs/Makefile.am (HTMLdir): Install book in $datadir/gtk-doc/html 2006-07-13 Johan Dahlin * gobject/gobjectmodule.c: (pyg_type_from_name), (get_type_name_for_class): * gobject/pygobject-private.h: * gobject/pygobject.c: (pygobject_new_with_interfaces), (pygobject_lookup_class), (pygobject_emit): * gobject/pygobject.h: * gobject/pygtype.c: (_wrap_g_type_from_name), (pyg_type_from_object), (pyg_type_register_custom_callback), (pyg_type_get_custom), (_pyg_type_from_name): Add infrastructure for lazy type registration, fixes #346947 2006-07-13 Gustavo J. A. M. Carneiro * m4/python.m4: Properly quote AM_CHECK_PYMOD definition. * gobject/pygoptioncontext.c (pyg_option_context_parse): Fix mem leak. 2006-07-12 Johan Dahlin * Makefile.am: * configure.ac: * docs/.cvsignore: * docs/Makefile.am: * docs/common.xsl: * docs/devhelp.xsl: * docs/html.xsl: * docs/pdf-style.xsl: * docs/pdf.xsl: * docs/ref-html-style.xsl: * docs/reference/.cvsignore: * docs/reference/pygobject-classes.xml: * docs/reference/pygobject-constants.xml: * docs/reference/pygobject-functions.xml: * docs/reference/pygobject-gboxed.xml: * docs/reference/pygobject-ginterface.xml: * docs/reference/pygobject-gpointer.xml: * docs/reference/pygobject-maincontext.xml: * docs/reference/pygobject-mainloop.xml: * docs/reference/pygobject-ref.xml: * docs/reference/pygobject.xml: Import GObject part of John Finlay's PyGTK Reference Manual, copy over infrastructure from the pygtk-web module. 2006-07-12 Gustavo J. A. M. Carneiro * configure.ac: Post-release version bump to 2.11.1. === PyGObject 2.11.0 === 2006-07-09 Gustavo J. A. M. Carneiro * gobject/gobjectmodule.c (pyg_type_register): Make interface_data point to the python type before adding the interface to the new type. This should fix interface implementation (actually I thought such code had already been added earlier but can't find it now and it is obviously needed...) (pyg_type_register): move the code that needs g_type_class_ref until after interface registration (more code that I already wrote in the past but got lost). 2006-07-05 John Finlay * gobject/pygiochannel.c (py_io_channel_init): Fix message typo. 2006-06-28 Cedric Gustin * dsextras.py (InstallData): Set datarootdir in .pc file. * pygobject_postinstall.py (replace_prefix): Do not parse pygtk-codegen-2.0 as it is part of pygtk. * setup.py: Create gobject extension as gobject._gobject. Add pygoptioncontext.c and pygoptiongroup.c to the list of source files. Add option.py to the module files. Changed name of distutils package from pygtk to pygobject. 2006-06-24 Gustavo J. A. M. Carneiro * gobject/gobjectmodule.c (pyg_filename_from_utf8): Wrap g_filename_from_utf8. * tests/test_signal.py (TestClosures.testGString): Add unit test for signals using the type TYPE_GSTRING. * gobject/pygtype.c (pyg_value_as_pyobject) (pyg_value_from_pyobject): Implement conversion code for the type G_TYPE_GSTRING. * gobject/gobjectmodule.c (pyg_filename_display_basename) (pyg_filename_display_name): Add bindings for g_filename_display_basename and g_filename_display_name. (init_gobject): Add a TYPE_GSTRING definition. * gobject/pygobject.h, * gobject/pygobject-private.h: Make pyg_constant_strip_prefix receive and return const gchar*, to indicate it does not change the string. Unfortunately since PyModule_AddIntConst is broken in python < 2.5 this introduces const warnings elsewhere :-( * gobject/gobjectmodule.c (pyg_flags_add_constants) (pyg_enum_add_constants): Fix const warnings. 2006-06-23 John Finlay * gobject/gobjectmodule.c (pyg_object_class_list_properties) (pyg_signal_list_ids, pyg_signal_lookup, pyg_signal_query): Add support for retrieving signal and propertie info from interface types. 2006-06-04 Johan Dahlin * gobject/gobjectmodule.c (pyg_spawn_async) (pyg_signal_new): Fix two leaks in error cases, found by Coverity. 2006-05-28 Gustavo J. A. M. Carneiro * tests/test_subtype.py: Uncomment Johan's "subsubtype" test case. * gobject/gobjectmodule.c (pygobject__g_instance_init): Pass the g_class to pygobject_new_full, because during the instance init function instances are temporarily assigned the parent's GType. * gobject/pygobject-private.h, * gobject/pygobject.c (pygobject_new_full): Make pygobject_new_full accept an optional g_class parameter; If present, the GType is extracted from the class instead of from the instance. 2006-05-20 Yevgen Muntyan reviewed by: Gustavo Carneiro * gobject/pygobject.c (pygobject_init, pygobject_get_property), (pygobject_set_property): Bug 341174: Be more specific in set/get_property error messages. 2006-05-07 Yevgen Muntyan reviewed by: Gustavo Carneiro * gobject/gobjectmodule.c (_log_func, add_warning_redirection), (remove_handler, disable_warning_redirections, init_gobject): * gobject/pygobject.h: Add new pyg_add_warning_redirection and pyg_disable_warning_redirections APIs (bug #323786 again). 2006-05-07 Johan Dahlin * Makefile.am (CLEANFILES): Remove pygtk.py, it's not auto-generated any longer. Thanks to Kjartan for noticing. 2006-05-07 Gustavo J. A. M. Carneiro * gobject/pygoptioncontext.c: s/sizeof(PyGMainContext)/sizeof(PyGOptionContext)/ (copy-paste error). 2006-05-01 Gustavo J. A. M. Carneiro * gobject/gobjectmodule.c (pyg_pid_close): Add a close() method to the GPid wrapper. * gobject/gobjectmodule.c (pyg_pid_free, pyg_pid_new), (pyg_spawn_async, init_gobject): Wrap GPid in an object whose destructor calls g_spawn_close_pid. Fixes #340160. 2006-04-29 Johannes Hölzl reviewed by: Johan Dahlin * examples/Makefile.am: * examples/option.py: * gobject/Makefile.am: * gobject/gobjectmodule.c: (init_gobject): * gobject/option.py: * gobject/pygobject-private.h: * gobject/pygoptioncontext.c: (pyg_option_context_init), (pyg_option_context_dealloc), (pyg_option_context_parse), (pyg_option_context_set_help_enabled), (pyg_option_context_get_help_enabled), (pyg_option_context_set_ignore_unknown_options), (pyg_option_context_get_ignore_unknown_options), (pyg_option_context_set_main_group), (pyg_option_context_get_main_group), (pyg_option_context_add_group), (pyg_option_context_compare), (pyg_option_context_new): * gobject/pygoptiongroup.c: (check_if_owned), (destroy_g_group), (pyg_option_group_init), (pyg_option_group_dealloc), (arg_func), (pyg_option_group_add_entries), (pyg_option_group_set_translation_domain), (pyg_option_group_compare), (pyg_option_group_transfer_group), (pyg_option_group_new): * tests/test_option.py: Add support for GOption, fixes #163645 2006-04-29 Johan Dahlin * gobject/pygtype.c (gclosure_from_pyfunc): * gobject/pygobject.c (pygobject_disconnect_by_func) (pygobject_handler_block_by_func) (pygobject_handler_unblock_by_func): * tests/test_signal.py (TestEmissionHook._callback): Fix #154845, add tests and a private method. 2006-04-23 John Ehresman reviewed by: Gustavo * Makefile.am: * pygtk.py: * pygtk.py.in: Bug 338945: Make pygtk.py relocatable 2006-04-18 John Ehresman * dsextras.py: Add compiler / linker flags from pkgconfig-2.0.pc by default, with an override mechanism. Filter out -lc & -lm if compiling with msvc. * setup.py: Change C extension name to _gobject and don't use the pkgconfig-2.0.pc when compiling 2006-04-15 Gustavo J. A. M. Carneiro * gobject/__init__.py (_PyGObject_API): Copy _PyGObject_API from gobject._gobject into gobject in order to preserve binary compatibility with 3rd party modules. * gobject/pygobject.h (init_pygobject): Import gobject, gobject._gobject. * gobject/Makefile.am: Fix pygobject installation dir: install both _gobject.la and __init__.py into $(pyexecdir)/gtk-2.0/gobject. 2006-04-11 Johan Dahlin * gobject/gobjectmodule.c (init_gobject): * gobject/__init__.py: Move over almost all GType constants from C to Python. 2006-04-11 Gustavo J. A. M. Carneiro * gobject/__init__.py: * gobject/gobjectmodule.c (_wrap_pyg_type_register), (pyg__install_metaclass, init_gobject): GObjectMeta now moved to python-land (__init__.py). * gobject/pygobject-private.h: * gobject/pygobject.c (pygobject_register_class): PyGObject_MetaType is now a pointer, not structure. * gobject/gobjectmodule.c (_wrap_pyg_type_register): Add optional type name parameter. * tests/common.py (importModule): Include original exception string in the raised SystemExit. 2006-04-11 Johan Dahlin * gobject/.cvsignore: * gobject/Makefile.am: * gobject/__init__.py: * gobject/gobjectmodule.c: (init_gobject): * gobject/pygobject.h: * tests/Makefile.am: * tests/common.py: Turn gobject into a package; move _gobject to gobject._gobject and add gobject/__init__.py. Update macros and testsuite. 2006-04-11 Johan Dahlin * configure.ac: Post release version bump === PyGObject 2.10.1 === 2006-04-11 Johan Dahlin * NEWS: Update 2006-04-11 Andy Wingo reviewed by: Johan Dahlin * gobject/gobjectmodule.c (create_property): Parse unsigned int64 constraints in param spec declaration using the "K" ParseTuple format unit, not L -- allows the full range of the datatype to be parsed. K format unit added in python 2.3. 2006-04-01 Gustavo J. A. M. Carneiro * tests/test_properties.py: Add test for #335854. * pygtk.py.in (require): For version == '2.0', use a hardcoded pygtk path, recorded during build. * gobject/gobjectmodule.c (_pyg_strv_to_gvalue): Don't allow arbitrary sequences, only tuple or list, since a string is a sequence too. (pyg_object_new): Add a bit more detail to the exception string. 2006-01-16 Johan Dahlin * Makefile.am: Include dsextras.py in the dist and install it. 2006-03-19 Gustavo J. A. M. Carneiro * gobject/pygobject.c (pygobject_new_with_interfaces): Remove comment "It will currently not filter out interfaces already implemented by it parents.", since it is no longer true since 2006-01-13. === PyGObject 2.10.0 === 2006-01-16 Johan Dahlin * NEWS: Update 2006-03-09 Michael Smith reviewed by: Johan Dahlin * gobject/pygenum.c: (pyg_enum_new), (pyg_enum_from_gtype), (pyg_enum_add): * gobject/pygflags.c: (pyg_flags_new), (pyg_flags_from_gtype), (pyg_flags_add): Plug a couple of leaks, fixes #334027. 2006-01-19 Johan Dahlin * configure.ac (export_dynamic): * Makefile.am (egg): Add a make egg target 2006-01-16 Johan Dahlin * configure.ac: Post release version bump === PyGObject 2.9.1 === 2006-01-16 Johan Dahlin * NEWS: Update 2006-01-15 Christopher Aillon * gobject/gobjectmodule.c (pyg_strv_to_gvalue): Don't call g_value_init since the other *_to_gvalue methods expect an already inited GValue 2006-01-14 Gustavo J. A. M. Carneiro * gobject/gobjectmodule.c (iowatch_marshal): Warn if io callback returns None: almost always this is an error. 2006-01-13 Gustavo J. A. M. Carneiro * gobject/pygobject.c (pygobject_register_class): Change strategy a bit: don't ignore bases; use but augment it with missing bases extracted in runtime. * gobject/pygobject.c (pygobject_register_class): Don't use the passed in 'bases' parameter; instead find out in runtime the bases for any given gtype. (pyg_type_get_bases, pygobject_new_with_interfaces): Refactor code that dynamically discovers bases into a separate function; Override tp_dealloc, tp_alloc, tp_free, tp_traverse, and tp_clear, inherit them again from the parent type, since type_new inside Python core sets them to hardcoded functions subtype_xxx. Also call py_parent_type->ob_type, instead of fixed &PyType_Type. (pygobject_clear): Change a g_message to g_warning. 2006-01-13 Johan Dahlin * gobject/gobjectmodule.c: (pyg_io_add_watch), (marshal_emission_hook), (pyg_add_emission_hook), (pyg_remove_emission_hook): * gobject/pygobject.c: * tests/test_signal.py: Add add/remove_emission_hook and tests. Fixes #325977 2006-01-11 Gustavo J. A. M. Carneiro * gobject/gobjectmodule.c (_pyg_signal_accumulator), (create_signal, pyg_signal_accumulator_true_handled), (initgobject): Bug 155380 -- Add support for signal accumulators. * tests/runtests.py: Add 'test_enum', 'test_conversion' to SKIP_FILES, since they depend on pygtk modules so don't work anymore. This should be eventually fixed, though. * tests/test_signal.py: Test signal accumulators. * gobject/pygtype.c (object_doc_descr_get): Reorder properties/signals documentation more nicely: signals + properties from each type are presented, with types ranging from the leaf types to the base types. * configure.ac: Branch, bump version to 2.9.1. === PyGObject 2.8.0 === 2006-01-09 Johan Dahlin * MANIFEST.in: * Makefile.am: * tests/Makefile.am: Make dist/distcheck work again 2006-01-09 Johan Dahlin * setup.py: Add distutils support * dsextras.py (get_m4_define): Check for configure.ac aswell. * .cvsignore: * AUTHORS: * COPYING: * INSTALL: * Makefile.am: * PKG-INFO.in: * README: * autogen.sh: * configure.ac: * examples/.cvsignore: * examples/Makefile.am: * gobject/gobjectmodule.c: (initgobject): * m4/jhflags.m4: * m4/python.m4: * pygobject-2.0.pc.in: * tests/Makefile.am: * tests/common.py: * tests/leak.glade: * tests/runtests.py: * tests/test_actiongroup.py: * tests/test_dialog.py: * tests/test_gdk.py: * tests/test_gdkevent.py: * tests/test_glade.py: * tests/test_gtype.py: * tests/test_liststore.py: * tests/test_radiobutton.py: * tests/test_signal.py: * tests/test_subtype.py: * tests/test_textview.py: * tests/test_thread.py: * tests/testhelpermodule.c: (test_type_get_type), (_wrap_test_g_object_new): * tests/testmodule.py: Split out PyGObject from PyGTK.