Permalink
Switch branches/tags
Commits on Jul 10, 2005
  1. Impl. Patch by Gustavo, fixes #155679

    	* gtk/gtkwidget.override (_wrap_gtk_widget_set_set_scroll_adjustments_signal)
    	(_wrap_gtk_widget_set_set_scroll_adjustments_signal): Impl.
    	Patch by Gustavo, fixes #155679
    
    	* tests/test_signal.py (TestOldStyleOverride):
    	Add unittests. Lazy Gustavo.
    Johan Dahlin committed Jul 10, 2005
  2. make iochannel api use new PyGPollFD type instead of tuples

    Gustavo J. A. M. Carneiro committed Jul 10, 2005
  3. Raise an exception if a construct only property is set after construc…

    …tion
    
    	* gobject/pygobject.c: (PyGProps_setattro),
    	(pygobject_set_property):
    	* tests/test_properties.py:
    	Raise an exception if a construct only property is set after
    	construction time. Refactor property setting code and add some
    	more tests.
    Johan Dahlin committed Jul 10, 2005
  4. gobject/pygobject-private.h gobject/gobjectmodule.c gobject/Makefile.am

            * gobject/pygobject-private.h
            * gobject/gobjectmodule.c
            * gobject/Makefile.am
            * gobject/pygsource.c: GSource wrapper, allows for pure python
            GSource implementations, as well as objectifying Idle and Timeout
            sources.
    
            * tests/Makefile.am
            * tests/test_source.py: Add test for the above.
    
            * gobject/gobjectmodule.c: timeout_add should take an explicit
            unsigned value. Also wrap g_get_current_time and g_main_depth.
    
            * gobject/pygiochannel.c (py_io_channel_write_chars): fix thread
            unblock/block logic.
    Manish Singh committed Jul 10, 2005
Commits on Jul 9, 2005
  1. Remove gtk_ prefix on a couple of (unwrapped) functions

        * gtk/gtk.defs: Remove gtk_ prefix on a couple of (unwrapped) functions
    
        * gtk/gtk-types.defs:
        (IconViewDropPosition, PackDirection): Add.
    
        * gtk/gtkiconview.override:
        (_wrap_gtk_icon_view_enable_model_drag_dest)
        (_wrap_gtk_icon_view_enable_model_drag_source)
        (_wrap_gtk_icon_view_get_dest_item_at_pos)
        (_wrap_gtk_icon_view_get_drag_dest_item)
        (_wrap_gtk_icon_view_get_cursor)
        (_wrap_gtk_icon_view_get_visible_range)
        (_wrap_gtk_icon_view_get_item_at_pos): Impl.
    Johan Dahlin committed Jul 9, 2005
  2. Bug 161177: Allow creation of python classes from g_object_new

    Gustavo J. A. M. Carneiro committed Jul 9, 2005
  3. correct PyGProps[Iter] sizes

    Gustavo J. A. M. Carneiro committed Jul 9, 2005
Commits on Jul 8, 2005
  1. Merge new Gdk & Gtk API. pango.Renderer and functions/methods also ad…

    …ded.
    
        * configure.in:
        * gtk/Makefile.am:
        * gtk/gdk-types.defs:
        * gtk/gdk.defs:
        * gtk/gdk.override:
        * gtk/gtk.defs:
        * pango-types.defs:
        * pango.defs:
        Merge new Gdk & Gtk API. pango.Renderer and functions/methods also
        added. Bump required glib,gtk & pango versions.
    Johan Dahlin committed Jul 8, 2005
  2. And unittest..

    Johan Dahlin committed Jul 8, 2005
  3. Add GObject support, patch mostly based on I�aki and Gustavos work.

        * gobject/gobjectmodule.c: (initgobject):
        * gobject/pygobject-private.h:
        * gobject/pygobject.c: (pyg_props_iter_dealloc),
        (pygobject_props_iter_next), (PyGProps_dealloc),
        (build_parameter_list), (PyGProps_getattro), (PyGProps_setattro),
        (pygobject_props_traverse), (pygobject_props_get_iter),
        (PyGProps_length), (pyg_props_descr_descr_get):
        * tests/Makefile.am:
        Add GObject support, patch mostly based on I�aki and Gustavos work.
        Unittests added, fixes #81879
    Johan Dahlin committed Jul 8, 2005
Commits on Jul 7, 2005
  1. Rename pyg_register_boxed_custom to pyg_register_gtype_custom. Add note

           * gobject/gobjectmodule.c: (initgobject):
           * gobject/pygobject-private.h:
           * gobject/pygobject.h:
           * gobject/pygtype.c: (pyg_type_lookup),
           (pyg_register_gtype_custom), (pyg_value_from_pyobject),
           (pyg_value_as_pyobject):
           Rename pyg_register_boxed_custom to pyg_register_gtype_custom.
           Add note about private fields in exported API structure.
           Based on patch by Edward Hervey, fixes #309625
    Johan Dahlin committed Jul 7, 2005
Commits on Jul 5, 2005
  1. Add GType.is_a and deprecate gobject.type_* Update tests and make

        * gobject/gobjectmodule.c: (pyg_type_name), (pyg_type_from_name),
        (pyg_type_parent), (pyg_type_is_a), (pyg_type_children),
        (pyg_type_interfaces), (get_type_name_for_class), (initgobject):
        * gobject/pygtype.c: (_wrap_g_type_is_a), (pyg_type_wrapper_init):
        * tests/test_enum.py:
        * tests/test_gtype.py:
        * tests/test_unknown.py:
        Add GType.is_a and deprecate gobject.type_*
        Update tests
        and make GType.is_a/gobject.type_is_a return a bool instead of int
    Johan Dahlin committed Jul 5, 2005
  2. Add support for specifying name for a GObject subclass, using

        * gobject/gobjectmodule.c: (_wrap_pyg_type_register),
        (get_type_name_for_class), (pyg_type_register):
        * gobject/pygobject-private.h:
        * gobject/pygobject.c: (pygobjectmeta_register),
        (pygobjectmeta_init):
        * tests/test_gtype.py:
        Add support for specifying name for a GObject subclass,
        using __gtype_name__. Add a unittest. Fixes #169498
    Johan Dahlin committed Jul 5, 2005
Commits on Jul 4, 2005
  1. Add GType to gobject namespace Wrap a number of GType utility functions

        * gobject/gobjectmodule.c: (initgobject): Add GType to gobject
        namespace
        * gobject/pygtype.c: (_wrap_g_type_wrapper__get_pytype),
        (_wrap_g_type_wrapper__get_name),
        (_wrap_g_type_wrapper__get_parent),
        (_wrap_g_type_wrapper__get_fundamental),
        (_wrap_g_type_wrapper__get_children),
        (_wrap_g_type_wrapper__get_interfaces),
        (_wrap_g_type_wrapper__get_depth), (_wrap_g_type_is_interface),
        (_wrap_g_type_is_classed), (_wrap_g_type_is_instantiatable),
        (_wrap_g_type_is_derivable), (_wrap_g_type_is_deep_derivable),
        (_wrap_g_type_is_abstract), (_wrap_g_type_is_value_abstract),
        (_wrap_g_type_is_value_type), (_wrap_g_type_has_value_table),
        (_wrap_g_type_from_name):
        Wrap a number of GType utility functions
    Johan Dahlin committed Jul 4, 2005
  2. fix docstring typo

    Johan Dahlin committed Jul 4, 2005
  3. Use pyg_param_gvalue_from_pyobject in gobject.new, fixes unichar

        * gobject/gobjectmodule.c: (pyg_object_new):
        * tests/test_conversion.py:
        Use pyg_param_gvalue_from_pyobject in gobject.new, fixes
        unichar parameters specified from the constructor.
        Added unittests.
    Johan Dahlin committed Jul 4, 2005
Commits on Jul 2, 2005
  1. unref the underlying GMainContext upon object destruction. Some minor

    Fri Jul  1 18:51:15 PDT 2005  Manish Singh  <yosh@gimp.org>
    
            * gobject/pygmaincontext.c: unref the underlying GMainContext upon
            object destruction. Some minor cleanups as well.
    yosh committed with Manish Singh Jul 2, 2005
Commits on Jul 1, 2005
  1. Extend to add some new fields, add a getter for GType.type, which points

        * gobject/pygtype.c: Extend to add some new fields, add a getter
        for GType.type, which points to the python registered type
        of a PyGTypeWrapper.
    
        * gobject/gobjectmodule.c (initgobject): And register PyGTypeWrapper,
        a side effect is that dir(gtype) also works now.
    Johan Dahlin committed Jul 1, 2005
Commits on Jun 21, 2005
  1. Try to register unknown enums and flags on the fly. Fixes #308536, patch

    2005-06-21  Johan Dahlin  <jdahlin@async.com.br>
    
        * gobject/pygparamspec.c: (pygenum_from_pspec),
        (pygflags_from_pspec): Try to register unknown enums and flags on the fly.
        Fixes #308536, patch by Edward Hervey
        * gobject/pygflags.c: (pyg_flags_add): Make module optional.
    Johan Dahlin committed with Johan Dahlin Jun 21, 2005
Commits on Jun 20, 2005
  1. Bug 308097: Overriden realize gets called twice

    Gustavo J. A. M. Carneiro committed Jun 20, 2005
  2. Fix typo in documentation string. Fixes #171910 (Tuure Laurinolli and…

    … Gian
    
        * gobject/pygobject.c (pygobject_new_with_interfaces): Fix
        typo in documentation string. Fixes #171910 (Tuure Laurinolli
        and Gian Mario Tagliaretti)
    Johan Dahlin committed Jun 20, 2005
Commits on Jun 19, 2005
  1. file pygiargument.c was initially added on branch pygtk-introspection.

    Gustavo J. A. M. Carneiro committed Jun 19, 2005
  2. file pygifunction.c was initially added on branch pygtk-introspection.

    Gustavo J. A. M. Carneiro committed Jun 19, 2005
Commits on Jun 10, 2005
  1. gobject/pygobject.h Use G_STMT_START/END for init_ defines.

    2005-06-09  Manish Singh  <yosh@gimp.org>
    
            * gobject/pygobject.h
            * gtk/pygtk.h: Use G_STMT_START/END for init_ defines.
    yosh committed with Manish Singh Jun 10, 2005
Commits on May 29, 2005
  1. fix registration of already registered types through the gobject meta…

    …class
    Gustavo J. A. M. Carneiro committed May 29, 2005
Commits on May 28, 2005
  1. blah

    Johan Dahlin committed May 28, 2005
  2. Pass the GIOCondition to PyObject_CallFunction.

    2005-05-28  Manish Singh  <yosh@gimp.org>
    
            * gobject/pygiochannel.c (pyg_iowatch_marshal): Pass the GIOCondition
            to PyObject_CallFunction.
    yosh committed with Manish Singh May 28, 2005
  3. Sort quark names. Rename pyg_boxed_marshal_key to pygboxed_marshal_key.

        * gobject/gobjectmodule.c: (initgobject):
        * gobject/pygobject-private.h:
        * gobject/pygtype.c: (pyg_register_boxed_custom):
        Sort quark names. Rename pyg_boxed_marshal_key to pygboxed_marshal_key.
        Don't set the keys twice
    Johan Dahlin committed May 28, 2005
  4. gquark initialization cleanup

    Gustavo J. A. M. Carneiro committed May 28, 2005
Commits on May 25, 2005
  1. Pass gsize to GIOChannel functions that expect them.

    2005-05-25  Manish Singh  <yosh@gimp.org>
    
            * gobject/pygiochannel.c: Pass gsize to GIOChannel functions that
            expect them.
    yosh committed with Manish Singh May 25, 2005
Commits on May 22, 2005
  1. Bug fixes

    	* Bug fixes
    John Finlay committed May 22, 2005
  2. Bug 128765: GObject metaclass

    Gustavo J. A. M. Carneiro committed May 22, 2005
  3. Bug 164665: g_markup_escape_text needs binding

    Gustavo J. A. M. Carneiro committed May 22, 2005
  4. Bug 139176: GIOChannel wrapper

    Gustavo J. A. M. Carneiro committed May 22, 2005
  5. revert accidental commit

    Gustavo J. A. M. Carneiro committed May 22, 2005