1. 03 Nov, 2012 7 commits
  2. 31 Oct, 2012 2 commits
  3. 29 Oct, 2012 2 commits
  4. 28 Oct, 2012 6 commits
  5. 27 Oct, 2012 1 commit
  6. 26 Oct, 2012 3 commits
  7. 25 Oct, 2012 4 commits
  8. 24 Oct, 2012 15 commits
    • Martin Pitt's avatar
      test_option: Use public API · e6e047ef
      Martin Pitt authored
      Use GLib.option, not gi._glib.option.
      e6e047ef
    • Martin Pitt's avatar
      Drop static SPAWN_* constants · 6a586af4
      Martin Pitt authored
      Use the introspected constants instead, which are identical. Add backwards
      compatible aliases.
      
      These constants are covered by tests/test_subprocess.py.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=686765
      6a586af4
    • Martin Pitt's avatar
      Drop static IO_* constants · 0137a7af
      Martin Pitt authored
      Use the introspected constants instead, which are identical. Add backwards
      compatible aliases.
      
      These constants are covered by tests/test_iochannel.py.
      0137a7af
    • Martin Pitt's avatar
      Fix various bugs in GLib.IOChannel · 0e1a6cce
      Martin Pitt authored
      - Fix segfault when using an IOChannel as an iterator: PyIter_Next() returns
        NULL on the last element, instead of raising a StopIteration.
      
      - The default encoding of a stream is 'UTF-8', not NULL. NULL means that the
        stream is being used in binary mode; in that case, we should not attempt to
        do any automagic conversion to an Unicode object. As this special case is
        inconsistent and has never worked anyway, and the current buggy
        implementation breaks binary streams, just drop it without replacement.
        (Introduced in commit de9eae4d)
      
      These bugs were uncovered by the previously committed tests.
      0e1a6cce
    • Martin Pitt's avatar
      Add tests for GLib.IOChannel · a98c3793
      Martin Pitt authored
      This did not have any code coverage at all. The tests uncover a range of bugs,
      which will be fixed in the next commit.
      a98c3793
    • Martin Pitt's avatar
      Remove static idle_add/timeout_add bindings · 1b27432a
      Martin Pitt authored
      Use the GLib functions through GI instead. Add overrides to ensure that default
      arguments continue to work as before, and that callbacks are called without an
      userdata argument if it wasn't specified.
      1b27432a
    • Martin Pitt's avatar
      Add tests for priority argument of idle_add/timeout_add · 2357f4a0
      Martin Pitt authored
      There is a potential to treat the priority as user data in a call like
      "GLib.idle_add(cb, GLib.PRIORITY_HIGH)". The current static bindings force
      using a keyword argument for the priority (but silently ignore it if you
      specify both userdata and priority as a positional argument).
      
      Test the correct handling of priority as well.
      2357f4a0
    • Martin Pitt's avatar
      Drop old ChangeLog.pre-2.18 · dceb4d60
      Martin Pitt authored
      This is ancient by now, quite sizable, and the complete history can always be
      seen in the git log.
      dceb4d60
    • Martin Pitt's avatar
      Fix PEP-8 whitespace in previous commit · 127ef91f
      Martin Pitt authored
      127ef91f
    • Martin Pitt's avatar
      Add tests for idle_add()/timeout_add with and without user data · 0bc0b55b
      Martin Pitt authored
      This is implicitly spread over various test cases, but let's test it explicitly
      to ensure that the behaviour stays consistent when moving this to GI.
      0bc0b55b
    • Martin Pitt's avatar
      tests: consitent naming style · d0a0332f
      Martin Pitt authored
      Stop mixing camel case and underline naming, use the latter consistently
      in all tests.
      d0a0332f
    • Martin Pitt's avatar
      Work around wrong 64 bit constants in GLib Gir · 4b460e2e
      Martin Pitt authored
      GLib's gir currently has wrong constants for MININT64 and MAXUINT64; explicitly
      set them in an override, until this gets fixed properly.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=685022
      4b460e2e
    • Martin Pitt's avatar
      Mark GLib.Source.get_current_time() as deprecated · f30efd26
      Martin Pitt authored
      This method has been deprecated in GLib long ago. We have a workaround
      implementation using GLib.get_real_time(), but eventually this should go away.
      f30efd26
    • Martin Pitt's avatar
      Mark GLib API that is exposed in GObject as deprecated · 483c8626
      Martin Pitt authored
      A lot of API in GObject really belongs into GLib and is just there for
      historical/backwards compatible reasons. Mark these methods as deprecated so
      that at some point we can drop them.
      483c8626
    • Martin Pitt's avatar
      Remove static MainLoop, MainContext, and some GSource bindings · 191cf45a
      Martin Pitt authored
      glib's MainLoop and MainContext are fully introspectable these days, so remove
      our static bindings. This reduces our code, as well enables GLib API which
      hasn't been available through the static bindings before.
      
      This also requires dropping our custom static types for GLib Source, Timeout,
      and Idle. The latter two work fine with introspection and just need tiny
      overrides for a backwards compatible API. g_source_new() is not introspectable,
      though, so we need to keep our static wrappers for that. Move them from
      gi/_glib/pygsource.c to gi/pygi-source.c, so that it can use the GI API.
      
      Note that gi/_glib/pygsource.[hc] is still required for the static PollFD type
      which is used by the static IOChannel binding. Once the latter goes away,
      PollFD can be dropped as well.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=686443
      191cf45a