2009-04-03 Mark Lee Make the uint16, uint32, and uint64 unit tests pass. * bank/bank-argument.c (pyg_argument_from_pyobject, pyg_argument_to_pyobject): * bank/btypes.py (Callable.type_check): Add proper support for uint16, uint32, and uint64. 2009-03-31 Mark Lee Make the int16, int32, and int64 unit tests pass. * bank/bank-argument.c (pyg_argument_from_pyobject, pyg_argument_to_pyobject): * bank/btypes.py (Callable.type_check): Add proper support for int16, int32, and int64. 2009-03-31 Mark Lee * everything_unittest.py: Add limit tests to the integer-related unit tests. 2009-03-31 Mark Lee Make the uint8 unit test pass. * bank/bank-argument.c (pyg_argument_from_pyobject): Add proper support for uint8. * bank/btypes.py (Callable.type_check): Enforce the unsigned modifier. 2009-03-28 Mark Lee Make the int8 unit test pass. * bank/bank-argument.c (pyg_argument_to_pyobject): Add proper support for int8. 2009-03-28 Mark Lee * bank/bank-argument.c: * bank/bank-info.c: * bank/bank.c: Add Vim modelines. 2009-03-28 Mark Lee * bank/bank-repository.c: Add license. 2009-03-28 Mark Lee Make the float and double unit tests pass. * bank/bank-argument.c (pyg_argument_from_pyobject, pyg_argument_to_pyobject): * bank/btypes.py (Callable.type_check): Add proper support for floats and doubles. * everything_unittest.py (TestGIEverything.testFloat): Adjust the number of decimal places the test uses to determine whether a value is almost equal. 2009-03-28 Mark Lee * README: Clarify some of the docs. 2009-03-27 Mark Lee Add unit tests, based on the ones in gjs. * everything_unittest.py: Add. 2009-03-23 Mark Lee Bug 559006 – pybank & pyobject integration * bank/bank-repository.c (_wrap_g_irepository_get_c_prefix): * bank/repository.py (_Repository.get_c_prefix): Bind g_irepository_get_c_prefix. * bank/module.py (DynamicModule._create_object): Use get_c_prefix() instead of listing namespace exceptions. Ensure that gtype is defined. * bank/btypes.py (buildClass): Add support for static methods in classes. * bank/gobject.py: Remove stub. 2009-03-23 Mark Lee Make the WebKit example app run again. * webkittest.py: Make sure threads are started and the app quits when the window is closed. 2008-11-18 Stefan Kost * README: mention GI_TYPELIB_PATH instead of XDG_DATA_DIRS 2008-11-05 Jani Monoses Make example apps run again. * simple.py: Use Poppler not PopplerGLib module. * notify.py: * simple.py: * simple2.py: No longer pass last GError ** argument to method calls that now throw an exception. 2008-10-11 Colin Walters * bank/bank-repository.c: Use NULL for new introspection version parameter. 2008-10-02 Colin Walters * bank/bank.c: Update for latest type tags. 2008-10-02 Colin Walters Adapt for bug 552961. * bank/bank-info.c: If we're invoking a method, insert this parameter. * bank/btypes.py: Ditto. Also don't hardcode type tag. 2008-10-02 Johan Dahlin Bug 553833 – fix poppler example in pybank * bank/module.py: * bank/repository.py: * simple.py: Patch by Jani Monoses 2008-09-25 Colin Walters Bug 552810: Remove unused gidl * data/*.gidl: Remove, we are using the .typelib now 2008-09-25 Colin Walters Bug 552554 - small fixes Patch from Jani Monoses * bank/module.py: Use correct path property. * bank/btypes.py: Actually return value. 2008-09-15 Johan Dahlin Bug 551169 – fix pixbuf example in pybank * bank/bank-argument.c (pyg_argument_from_pyobject), (pyg_argument_to_pyobject): * simple2.py: Patch by Jani Monoses 2008-08-30 Colin Walters * bank/bank-repository.c: Update to new g-i API. 2008-08-22 Johan Dahlin * bank/bank-argument.c (pyg_argument_from_pyobject), (pyg_argument_to_pyobject): Handle uint8, improve error messages * bank/btypes.py: Improve exception message * overrides/WebKit.py: Kill * webkittest.py: Use WebKit.WebView instead of Page 2008-08-21 Johan Dahlin * bank/module.py: Upper case enum names 2008-08-20 Colin Walters * bank/bank-repository.c: Bind new g_irepository_require. * bank/repository.py: Another layer for same. * bank/importer.py: Try to look up names in GIRepository using built-in logic rather than duplicating it here. * bank/module.py: Don't call .register. 2007-07-26 Colin Walters * Makefile: Use installed gobject-introspection.pc file. Also add -fPIC when making shared libraries. 2007-12-14 Johan Dahlin * bank/module.py: Avoid re-creating the classes each time they're accessed, save them in our namespace just after they're created. 2007-12-06 Johan Dahlin * bank/bank-argument.c: (pyg_argument_from_pyobject), (pyg_argument_to_pyobject): * bank/btypes.py: * bank/importer.py: * bank/module.py: * data/Gdk.gidl: * data/Gtk.gidl: * defs/gtk-base.defs: * defs2gidl.py: * overrides/Gtk.py: * overrides/WebKit.py: Get rid of ctypes dependency, support None for strings, update idls and scanner parser to init_check can be generated. Add a hack to avoid unsupported char***. Saves 400k writable memory. 2007-12-06 Johan Dahlin * bank/bank-argument.c: (pyg_argument_from_pyobject): Handle None for interface types * data/Gtk.gidl: * defs/gtk-base.defs: Update ScrolledWindow constructor * data/WebKit.gidl: Set shared-library * webkittest.py: Use a scrolled window and set a default size 2007-12-06 Johan Dahlin * Makefile: Add -l to all generate .gidls * data/Atk.gidl: * data/Gdk.gidl: * data/Gtk.gidl: * data/Pango.gidl: Update 2007-12-06 Johan Dahlin * Makefile: * bank/bank-repository.c: (_wrap_g_irepository_register_filename): * bank/registry.py: * bank/repository.py: * data/Gtk.gidl: * defs2gidl.py: * gtktest.py: Update to latest gobject-introspection, register a dlopenable file for Gtk, we can finally avoid LD_PRELOAD hacks now. 2007-11-30 Johan Dahlin * bank/btypes.py (Function.__get__): Remove, it's unused (Method.__init__): inherit from Function, swap order of first two arguments. * data/WebKit.gidl: * overrides/WebKit.py: * webkittest.py: Add WebKit and a small testcase 2007-11-26 Johan Dahlin * introspection.diff: Remove, everything is committed upstream now. 2007-11-25 Johan Dahlin * introspection.diff: Resync: * src/girepository.c: * src/girepository.h: Add g_irepository_is_registered * Makefile: Add Gdk rules * bank/bank-info.c: (pyg_info_new): Don't raise exception, return an UnresolvedInfo object instead. * bank/bank-repository.c: (_wrap_g_irepository_is_registered): Wrap * bank/btypes.py: Add a function wrapper. Set __name__ to __init__ on constructor. Remove some left overs. * bank/gobject.py: Remove GObject and GInitiallyUnknown, they will be generated eventually. * bank/module.py: Add support for creating functions, add __name__, __file__ and __path__ descriptors. import external modules, so we don't need to directly import all the dependencies for classes we're going to use * bank/repository.py: Check if the module has been registered before trying to add it * codegen/definitions.py: Use module everywhere * data/Gdk.gidl: New file * data/Atk.gidl: * data/GLib.gidl: * data/Gtk.gidl: * data/Pango.gidl: Resync * defs/atk-types.defs: * defs/gdk-base-types.defs: * defs/gdk-base.defs: * defs/gtk-base-types.defs: * defs/gtk-base.defs: * defs/pango-types.defs: Add missing structs, move Gdk functions using Gtk types to gtk-base.defs * defs2gidl.py: Refactor, add support for missing gdk types. Generate functions too, ignore *_get_type. * gtktest.py: No need to import gtktest any longer * overrides/Gdk.py: Add. * overrides/Gtk.py: Remove PyGTK main, we can generate it now 2007-11-24 Johan Dahlin * bank/btypes.py (Method.__repr__): Make it look more like normal methods. * data/Atk.gidl: * data/Gtk.gidl: * data/Pango.gidl: Regenerate * defs2gidl.py: Use the nick to determine the name, not the constant name * gtktest.py: Use the enum here * bank/bank-info.c: (pyg_info_new), (_wrap_g_enum_info_get_values), (_wrap_g_value_info_get_value): * bank/gobject.py: * bank/module.py: Add support for enums 2007-11-24 Johan Dahlin * gtktest.py: Call show_all on the window too * overrides/Gtk.py (GtkModule.main): Add, using PyGTK until we have functions. * bank/btypes.py (Method): Make sure that object arguments are sent in * bank/bank-info.c: (pyg_info_new): Raise an exception instead of printing warning * data/Atk.gidl: * data/GLib.gidl: * data/Gtk.gidl: * data/Pango.gidl: Regenerate * defs/gtk-base.defs: Convert the GtkWindow constructor * defs2gidl.py: Add an extra parameter to methods which is the object itself * gtktest.py: import GLib as well 2007-11-24 Johan Dahlin * Makefile: Update all/clean rules * README: Update * TODO: Update * data/Atk.gidl: Rescan with defs2gidl chnages * data/Gtk.gidl: * defs2gidl.py (DefsImporter.__init__): Rename to GType back to GLib.GType. * introspection.diff: Add my diff to gobject-introspection here 2007-11-24 Johan Dahlin * defs2gidl.py (DefsImporter.__init__): Rename to GType back to GLib.GType. * bank/registry.py: Remove unused import dl * overrides/Gtk.py (GtkModule.get_library_name): Do not import locale, it's unused. * bank/importer.py (DynamicImporter.load_module): Lazy load module * bank/module.py (DynamicModule.__init__): Lazy load ctypes * Makefile: * data/Atk.gidl: * data/Pango.gidl: * defs/atk-types.defs: * defs/pango-types.defs: * defs2gidl.py: Namespace the GLib structs properly * overrides/Atk.py: * overrides/Pango.py: Add Atk and Pango, add missing structs to the defs files 2007-11-24 Johan Dahlin * Makefile: Remove unused targets * bank/importer.py: Check GIREPO_PATH instead of sys.path for repos * defs/gtk-base.defs: Fix a typo and convert a few constructors away from property based ones. * defs2gidl.py: Parse constructors * data/Gtk.gidl: Update now including constructors 2007-11-24 Johan Dahlin * gtktest.py: Add a simple test for Gtk+ * bank/bank-info.c (_wrap_g_object_info_get_parent): Check for NULL. * Makefile: * bank/module.py: * codegen/__init__.py: * codegen/definitions.py: * codegen/defsparser.py: * codegen/scmexpr.py: * data/Gtk.gidl: * defs/gdk-base-types.defs: * defs/gtk-base-types.defs: * defs/gtk-base.defs: * defs2gidl.py: * overrides/Gtk.py: Add a new program defs2gidl, to convert a .defs file to .gidl. Add structs to the pygtk defs so we can create a metadata format which is validatable. Include a beginning of a Gtk.idl. Update Makefile and add generation rules. Make sure that the class heritance creationg is working with the 'new' repository information. 2007-11-23 Johan Dahlin * defs/atk-types.defs: * defs/atk.defs: * defs/gdk-2.10.defs: * defs/gdk-2.12.defs: * defs/gdk-base-types.defs: * defs/gdk-base.defs: * defs/gtk-2.10-types.defs: * defs/gtk-2.10.defs: * defs/gtk-2.12-types.defs: * defs/gtk-2.12.defs: * defs/gtk-base-types.defs: * defs/gtk-base.defs: * defs/gtk-extrafuncs.defs: * defs/gtkunixprint.defs: * defs/libglade.defs: * defs/pango-types.defs: * defs/pango.defs: * defs/pangocairo.defs: Import defs from pygtk trunk 2007-11-23 Johan Dahlin * bank/bank-info.c: (pyg_info_new): * bank/bank.c: (register_types): * bank/bank.h: Add Flags and Boxed types 2007-11-23 Johan Dahlin * bank/repository.py (_Repository.get_infos): New method * bank/module.py (DynamicModule.__members__): Create a list of all available attributes based on the metadata in the repository. * overrides/Poppler.py: * overrides/GLib.py: Import module from the right location * bank/dynamic.py: Rename to importer.py * bank/__init__.py: Update callsite. * bank/*: Redo the klass registration to be dynamic. * overrides: New directory to be able to customize the bindings. * data/GLib.gidl: beginning of a GLib gidl * Makefile: update for python 2.5 and standard libtool build of g-i 2005-05-20 Gustavo J. A. M. Carneiro * bank/bank-info.c (pyg_base_info_dealloc): Remove some code, call pyg_base_info_clear instead. (pyg_base_info_traverse): Don't visit self. Fixes a GC assertion error. (pyg_base_info_clear): Use python 2.4 macro Py_CLEAR, as recommended in python docs. 2005-05-20 Johan Dahlin * Makefile: * bank/bank-argument.c: (pyg_argument_to_pyobject): * bank/bank-info.c: (_wrap_g_function_info_invoke): * bank/btypes.py: * bank/registry.py: Add support for multiple constructor as staticmethods, add basic support for guessing which one to use. Add a few more return types. Should be enough to do some interesting things with gdk-pixbuf. 2005-05-19 Johan Dahlin * bank/bank-argument.c: (pyg_argument_from_pyobject), (pyg_argument_to_pyobject): * bank/bank-info.c: (_wrap_g_function_info_invoke): * bank/btypes.py: * simple.py: Add support for objects as return values, mostly working out argument support. 2005-05-18 Johan Dahlin * COPYING: * Makefile: * bank/.cvsignore: * bank/__init__.py: * bank/bank-argument.c: (pyg_argument_from_pyobject), (pyg_argument_to_pyobject): * bank/bank-info.c: (_wrap_g_base_info_get_namespace), (_wrap_g_callable_info_get_return_type), (_wrap_g_function_info_invoke), (_wrap_g_arg_info_get_direction), (_wrap_g_type_info_get_interface): * bank/bank.c: (register_constants), (initrepo): * bank/bank.h: * bank/btypes.py: * bank/importer.py: * bank/module.py: * bank/registry.py: * data/poppler.gidl: * simple.py: License under LGPL, No more camel case on generated types. Pass pointers around in a slightly saner way. Split up __init__.py into several files. Rename _bank.so to repo.so. Only count inargs, improve type checking. 2005-05-17 Johan Dahlin * Makefile: * bank/__init__.py: * bank/bank-argument.c: (pyg_argument_from_pyobject), (pyg_argument_to_pyobject): * bank/bank-info.c: (pyg_base_info_dealloc), (pyg_base_info_traverse), (pyg_base_info_clear), (pyg_info_new), (_wrap_g_callable_info_get_args), (_wrap_g_function_info_invoke), (_wrap_g_object_info_get_methods), (_wrap_g_arg_info_get_type), (_wrap_g_type_info_get_tag), (_wrap_g_type_info_get_param_type): * bank/bank-repository.c: (_wrap_g_irepository_get_namespaces): * bank/bank.c: (register_types), (register_constants), (init_bank): * bank/bank.h: * simple.py: Add basic support for method invokations. Very limited type checking. Wrap all types, but most of them are still unusable. Add a couple of constants. 2005-05-17 Johan Dahlin reviewed by: * bank/__init__.py: * bank/bank-info.c: (pyg_info_new), (_wrap_g_function_info_invoke), (_wrap_g_arg_info_get_type), (_wrap_g_type_info_get_tag), (_wrap_g_type_info_get_param_type): * bank/bank.c: (register_types), (register_constants), (init_bank): * bank/bank.h: * simple.py: 2005-05-17 Johan Dahlin * Makefile: * bank.pyx: * bank/__init__.py: * bank/bank-info.c: (pyg_base_info_repr), (pyg_base_info_dealloc), (pyg_base_info_traverse), (pyg_base_info_clear), (pyg_base_info_free), (pyg_base_info_get_dict), (_wrap_g_base_info_get_name), (_wrap_g_base_info_get_type), (pyg_info_new), (_wrap_g_object_info_get_methods), (_wrap_g_function_info_is_constructor), (_wrap_g_function_info_is_method), (_wrap_g_callable_info_get_args): * bank/bank-repository.c: (_wrap_g_irepository_register), (_wrap_g_irepository_get_namespaces), (_wrap_g_irepository_get_infos), (_wrap_g_irepository_get_default): * bank/bank.c: (init_bank): * bank/bank.h: * simple.py: * test.py: Remove pyrex bindings, add handwrapped ones. Add a high level interface and a simple test 2005-05-13 Johan Dahlin * TODO: Added * bank.pyx: Add support for PropertyInfo * test.py: More silly printouts 2005-05-12 Johan Dahlin * bank.pyx: Add support for FunctionInfo, ArgInfo and CallableInfo * test.py: Print out silly python class skeleton * data/poppler.gidl: Reindent and reorganize output to match output from g-idl-generate. Fix enum names. 2005-05-11 Johan Dahlin * Initial import