1. 19 Dec, 2019 1 commit
  2. 13 Dec, 2019 2 commits
  3. 12 Dec, 2019 1 commit
  4. 11 Dec, 2019 1 commit
  5. 16 Nov, 2019 2 commits
  6. 11 Oct, 2019 1 commit
  7. 19 Sep, 2019 1 commit
  8. 06 Sep, 2019 1 commit
  9. 25 Jun, 2019 2 commits
  10. 22 Jun, 2019 1 commit
    • John Ralls's avatar
      Hide Objective-C from outside GdkQuartz. · ef72fe75
      John Ralls authored
      Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1737
      Don't export any functions taking or returning MacOS types in
      gdkquartz.h, gdkprivate-quartz.h, or any header that either includes.
      The GdkQuartz internal functions are moved to a new header
      gdkinternal-quartz.h, the functions used by quartz-specific
      Gtk files are moved to another new header gdkquartz-gtk-only.h, and
      the key and event enums to a new header gdkkeys-quartz.h.
  11. 17 Jun, 2019 1 commit
  12. 15 Jun, 2019 2 commits
    • Christoph Reiter's avatar
      build: only require cups >=1.7 · d402cd4e
      Christoph Reiter authored
      In 9236ee05 the cups code was updated to use newer API with cups >= 2
      and a later commit (a7e207ab) dropped the old code paths and added version
      checks in meson/autotools.
      The newly used functions were httpConnect2 and httpReconnect2 which are
      available since 1.7 and don't require cups 2.0.
      Change the versions checks to 1.7 instead so gtk can still be build with
      older cups (macOS 10.9 for example, see #1950)
    • Christoph Reiter's avatar
      build/cups: remove checks for httpGetAuthString and http_t.authstring · 175c4006
      Christoph Reiter authored
      httpGetAuthString() was added with cups 1.3 and we depend on a newer version
      now. The direct field access was a fallback in case httpGetAuthString()
      was missing, so this can also be dropped.
  13. 10 May, 2019 3 commits
    • Emmanuele Bassi's avatar
      Require CUPS >= 2.0 · a7e207ab
      Emmanuele Bassi authored
      Drop support for versions of CUPS < 2.0, to simplify the backend code
      and drop a lot of conditional blocks.
    • Emmanuele Bassi's avatar
      cups: Use non-deprecated API · 9236ee05
      Emmanuele Bassi authored
      The http* family of functions was deprecated after CUPS 1.7. We can
      conditionally use it when built against a newer version of CUPS. The
      additional parameters are taken directly from the fallback values
      inside CUPS itself.
    • Emmanuele Bassi's avatar
      Detect CUPS ≥ 1.7 · 91cc9b58
      Emmanuele Bassi authored
      We support CUPS ≥ 1.2, but we use API that was introduced and deprecated
      at a later point.
  14. 25 Apr, 2019 1 commit
  15. 15 Apr, 2019 1 commit
  16. 11 Apr, 2019 10 commits
  17. 05 Apr, 2019 1 commit
  18. 08 Feb, 2019 1 commit
  19. 05 Feb, 2019 1 commit
    • Emmanuele Bassi's avatar
      Terminate strncpy() buffers correctly · 8f8b68f8
      Emmanuele Bassi authored
      When using strncpy() with a buffer we need to account for the
      terminating NUL character. GCC 8 started warning when using PPD_MAX_NAME
      as the buffer length for strncpy() because the buffer we're copying into
      has the same length — which means that the terminating NUL may be
      skipped if the source string has a length of PPD_MAX_NAME.
      The appropriate way to handle the case where we're copying a source with
      a length bigger than of PPD_MAX_NAME is, as reported in the strncpy()
      documentation, to copy `PPD_MAX_NAME - 1` bytes, and explicitly NUL
      terminate the destination buffer. This has the additional benefit of
      avoiding the compiler warning.
  20. 31 Jan, 2019 1 commit
    • Suyuan Chang's avatar
      macOS: Fix bug that entry cannot press and hold a key to input accented character. · cfad43b8
      Suyuan Chang authored
      There're two issues in GdkQuartzView's NSTextInputClient implementation
      causes this bug.
      1. The -(NSRange)selectedRange should not return [NSNotFound, 0] if
         there's no selection. The accented character window will not show
         if returned NSRange's location is NSNotFound. Instead of that, the
         NSRange's location should be the caret position in the text input
      2. The accented character window will invoke
         -(void)insertText:replacementRange: with non-empty replacement
         range, to replace non-accented character with accented character
         after user select it from accented character window. This case is
         not implemented in original code. Here I use another gobject data
         to pass the information to input module and convert it into
         'delete-surrounding' event.
      Besides these, there's another bug cause gtk_im_context_filter_keypress()
      return wrong value while user press and hold a key. When user press
      and hold a key, the accented character window will consume the
      repeating key down event. Is this case, gtk_im_context_filter_keypress()
      should return TRUE, indicate the key press is filtered by input
      method module. But it will return FALSE because
      gtk_im_context_filter_keypress() assume that every key press event
      will generate some text from input method module.
      Fixes #1618
  21. 24 Jan, 2019 1 commit
  22. 23 Jan, 2019 1 commit
  23. 21 Jan, 2019 1 commit
  24. 14 Jan, 2019 1 commit
    • John Ralls's avatar
      [IMQuartz] Get the GdkWindow from the NSKeyEvent. · ee0e59e6
      John Ralls authored
      Instead of from the IMContextQuartz's client window because the former
      is the event window where the text will be inserted. In some cases
      they're different and the text may be discarded (because the client
      window isn't editable) or misplaced.
      Fixes Bug 707945.
  25. 06 Dec, 2018 1 commit