Switch branches/tags
Commits on Mar 1, 2011
  1. Run tests with LC_MESSAGES="C"

    martinpitt committed Mar 1, 2011
    Some tests, such as tests/ check parts of error messages or other
    visible strings. Ensure that these do not get translated in the test suite.
Commits on Feb 28, 2011
  1. [gi-overrides] override Gtk.stock_lookup to not return success

    John (J5) Palmieri committed Feb 28, 2011
  2. update NEWS to reflect changes in the 2.27.91 release (PYGOBJECT_2_28…

    John (J5) Palmieri committed Feb 28, 2011
    … branch)
  3. [gi-tests] use Gdk.test_simulate_button instead of emitting event our…

    John (J5) Palmieri committed Feb 28, 2011
     * this function is available specifically so we can test events so use this
       instead of creating our own button press event
  4. [gi-tests] tests for EventButton override.

    Laszlo Pandy committed with John (J5) Palmieri Feb 24, 2011
     * John (J5) Palmieri - fixed up original patch so that we actually
       emit the event instead of just creating a Gdk.ButtonEvent object
  5. [gi] check to see if object is a member of a union when validating pa…

    John (J5) Palmieri committed Feb 23, 2011
    * union members are not subclasses of the union they belong to so if an
       inteface requires you pass a union but you pass one of its members
       there will be a type error
     * this patch checks to see if the type you are passing is a member of the
       union and passes the checks if it is
     * this works in python 3 but in python 2 methods do their own isinstance
       check on the instance parameter (e.g. self) so we need to figure
       out how to override that for union methods (e.g. Gdk.Event.get_state)
Commits on Feb 24, 2011
  1. [gi] Remove DyanmicModule.load() to _load() to prevent overriding GI …

    Laszlo Pandy committed Feb 24, 2011
  2. Test case with John's fix for crash with C arrays and a GError is set.

    Laszlo Pandy committed Feb 23, 2011
    I have added a test case, and made a few fixes to John's patch, but the
    solution is the same his.
    Workaround a bug when freeing C array types
     * This is a hack and there is really no way around it without ripping out
        the current array handling code which spans between pygi-invoke.c and
        pygi-argument.c and completely rewriting it.
      * The is no time before our stable release
      * This patch trades a segfault for a leak in the very unusual case where
        an error occures inside an interface that takes one or more C arrays. Since
        we wrap C arrays in GArrays internally but have to unwrap them to send them
        to the introspected C function, there is a period of time where an error
        can occure with the C array in an unknown state (some being true C arrays
        and others still wrapped in a GArray)
      * This patch adds a c_arrays_are_wrapped state to signal that it is safe to
        free them.  However since c_arrays_are_wrapped can only track arrays
        as a group, not individually, if it is set to FALSE we can not assume
        that every array is a pure C array, so instead we will simply leak them
        to avoid incorrectly freeing one and causing a segfault.
      * This issue is fixed in the invoke rewrite branch as it treats C arrays and
        GArrays separately, however that branch is not yet ready to be merged and
        won't be until the next release.
Commits on Feb 23, 2011
  1. [gi-overrides] fix setting rows in treeview to accept None as a value

    John (J5) Palmieri committed Feb 23, 2011
     * as done in PyGTK None indicates the column should not be set
  2. [gi] Add value_name for enum and flags from introspection "c:identifi…

    Laszlo Pandy committed Feb 23, 2011
    …er" (if attr is available).
  3. Fix flags with multiple names for the same value.

    Laszlo Pandy committed Feb 23, 2011
    Flags constructs a dict __flags_values__ and uses it to cache
    instances. However some flags in Glib such as G_IO_FLAG_MASK and
    G_IO_FLAG_GET_MASK are aliases for the same int value, and will
    override each other's place in the dictionary.
    The dict length check is not necessary. It only reduces the number
    of duplicate instances we keep, because if an instance is not
    found in the dict, a new one is created anyway.
  4. Don't force loading of DynamicModule until set in sys.modules

    Laszlo Pandy committed with tomeuv Feb 22, 2011
    This fixes Tomeu's previous commit, which removed lazy loading.
    Forcing the loading of a module before it is installed in sys.modules
    prevents some overrides from being registered (namely Gtk.main_quit).
Commits on Feb 22, 2011
  1. [gi] pass raw GValues instead of trying to marshal them

    John (J5) Palmieri committed Feb 21, 2011
    * Right now GValues are transparent to the user but this leave us no
       way to describe fundimental types other than those supported directly
       by python (e.g. int, str, etc)
     * If an interface is expecting a uint or other GValue type a user can now use
       the raw GValue interfaces and expect paramaters that take GValues to
       marshal them correctly e.g.:
           value = GObject.Value()
     * The objective here is to not for users to use this API but for overrides
       to be able to utilize them.  For instance in the TreeModel API we can
       get the expected type for a column and them create a GValue with the correct
       type so that he underlying python object is marshalled correctly.
  2. [gi-demos] add icon view edit and drag-and-drop demo

    John (J5) Palmieri committed Feb 20, 2011
  3. [gi-demos] add info bars demo

    John (J5) Palmieri committed Feb 19, 2011
  4. Load typelibs at import time, add gi.require_version()

    tomeuv committed Feb 16, 2011
    also adds Repository.get_loaded_namespaces()
  5. [gi] Register GType for non-GType enums and flags at runtime.

    Laszlo Pandy committed Feb 19, 2011
    Note: rebuild of gobject-introspection is required for new tests.
    Previously non-GType enums used a separate type implemented in
    Python, and non-GType flags had no implementation at all. This
    removes the separate type for enums, and registers a new GType at
    runtime if there isn't one.
    This allows non-GType enums and flags to use the same Python type
    as GType enums and flags. This removes duplication of code, and
    make both kinds behave identically.
Commits on Feb 19, 2011
  1. [gi] Add Pythonic gdbus method invocation

    martinpitt committed Feb 8, 2011
    Provide a wrapper for Gio.DBusProxy for calling D-Bus methods like on a normal
    Python object. This will handle the Python object <-> GVariant conversion, and
    optional keyword arguments for flags, timeout, and a result handler for
    asynchronous calls.
    Require specifying the input argument signature as the first argument of each
    method call. This ensures that the types of e. g. integers are always correct,
    and avoids having to do expensive D-Bus introspection for each call.
  2. Skip GError out parameters in Python closure.

    Laszlo Pandy committed Feb 18, 2011
    Python code should have never have to explicitely return a GError.
    Once we are able to marshal exceptions the Python code should
    throw an exception instead. Until then, set GError to NULL, and
    don't complain if a Python function doesn't return an arg for it.
Commits on Feb 18, 2011
  1. [gi-demos] added rotate text demo

    John (J5) Palmieri committed Feb 18, 2011
    * needs some Pango Attr fixes to be 100% done, See FIXME
  2. [gi-demos] add images demo

    John (J5) Palmieri committed Feb 17, 2011
     * needs annotation fix from GdkPixbuf for ImageLoader to work
  3. [gi-demos] add pixbuf demo

    John (J5) Palmieri committed Feb 17, 2011
  4. [gi-demos] remove fixmes from print demo, fixed in pango

    John (J5) Palmieri committed Feb 17, 2011
Commits on Feb 17, 2011
  1. [gi-demos] add printing demo

    John (J5) Palmieri committed Feb 17, 2011
    * needs some annotations for pango before it is 100% useful
Commits on Feb 16, 2011
  1. [gi-demos] add the links demo

    John (J5) Palmieri committed Feb 16, 2011
  2. [gi-demos] add expander demo

    John (J5) Palmieri committed Feb 16, 2011
  3. [gi-overrides] use pop instead of del and add extra tests for Gtk.Tab…

    John (J5) Palmieri committed Feb 16, 2011
    …le kwargs
Commits on Feb 15, 2011
  1. [tests] Separate processes for GI and static binding tests.

    Laszlo Pandy committed Feb 15, 2011
    Importing and using both static gobject bindings and
    introspection GObject bindings in the same process can cause
    conflicts with types which otherwise wouldn't be there.
    This patch changes "make check" to call twice -- once
    for each set of tests.
    In the case of a test failure, now sets the exit code
    so that make does not continue. Otherwise you might miss the
    failures from the first batch of tests in the scrollback.
  2. [gi-demos] add dialogs demo

    John (J5) Palmieri committed Feb 15, 2011
  3. [gi-overrides] fix typo in GtkTable constructor

    John (J5) Palmieri committed Feb 15, 2011