1. 18 Sep, 2018 1 commit
    • Ell's avatar
      app, libgimp*, modules: don't use g_type_class_add_private() ... · 3b0040c0
      Ell authored
      ... and G_TYPE_INSTANCE_GET_PRIVATE()
      
      g_type_class_add_private() and G_TYPE_INSTANCE_GET_PRIVATE() were
      deprecated in GLib 2.58.  Instead, use
      G_DEFINE_[ABSTRACT_]TYPE_WITH_PRIVATE(), and
      G_ADD_PRIVATE[_DYNAMIC](), and the implictly-defined
      foo_get_instance_private() functions, all of which are available in
      the GLib versions we depend on.
      
      This commit only covers types registered using one of the
      G_DEFINE_FOO() macros (i.e., most types), but not types with a
      custom registration function, of which we still have a few -- GLib
      currently only provides a (non-deprecated) public API for adding a
      private struct using the G_DEFINE_FOO() macros.
      
      Note that this commit was 99% auto-generated (because I'm not
      *that* crazy :), so if there are any style mismatches... we'll have
      to live with them for now.
      3b0040c0
  2. 11 Jul, 2018 1 commit
  3. 18 Apr, 2013 2 commits
  4. 10 Apr, 2011 2 commits
  5. 28 Mar, 2011 1 commit
  6. 22 Oct, 2010 1 commit
  7. 18 Oct, 2010 1 commit
  8. 04 Oct, 2010 1 commit
    • Michael Natterer's avatar
      app: don't use PROJ_ROUND() for pixel-adjusting canvas item drawing · b7481132
      Michael Natterer authored
      When PROJ_ROUND()ing e.g. 3.8, it ends up at 4, then we added the 0.5
      offset to draw a nice cairo line in the middle of the pixel,
      effectively drawing a line that's meant to be at 3.8 at 4.5.  Instead,
      we now use floor(x)+0.5 now which snaps the above example to 3.5.
      
      Also, calculate arcs like we calculate rectangles (transform the arc's
      bounding box and pixel-align that, then recalculate the center), so
      arcs properly align with rectangles.
      b7481132
  9. 01 Oct, 2010 2 commits
  10. 29 Sep, 2010 1 commit
  11. 23 Sep, 2010 1 commit
  12. 22 Sep, 2010 2 commits
  13. 19 Sep, 2010 3 commits