1. 04 Apr, 2018 1 commit
  2. 28 Mar, 2018 1 commit
  3. 20 Mar, 2018 1 commit
    • Carlos Garnacho's avatar
      imwayland: Avoid TOGGLE_INPUT_PANEL requests if there's no focus · 4f78abdd
      Carlos Garnacho authored
      Fixes two things: 1) As GTK+ can be coerced into using the wayland IM
      module despite the compositor not implementing the interface, all paths
      not checking for global state before sending requests are prone to
      crashes, this one fell hit this pitfall.
      And 2) ensures the tap gesture only triggers TOGGLE_INPUT_PANEL if the
      widget IM is focused. This is a possibility on eg. WebKit pages, where
      its IM is only focused as long as a form element in the page is focused.
      Tapping elsewhere shouldn't toggle the OSK.
      Closes: #114
  4. 17 Feb, 2018 1 commit
  5. 14 Feb, 2018 1 commit
    • Carlos Garnacho's avatar
      modules: Add wayland IM implementation · e8bffe0c
      Carlos Garnacho authored
      This IM context implementation goes through the gtk-text-input protocol,
      leaving up to the compositor the actual interaction with IM engines. If
      the protocol is not offered by the compositor, GTK+ will fallback to the
      IMs as specified through GtkSettings.
  6. 17 Dec, 2017 1 commit
  7. 30 Oct, 2017 1 commit
    • Chun-wei Fan's avatar
      input/IME: Defer the emit of the "commit" signal · c255ba68
      Chun-wei Fan authored
      On Windows, when IME is used, each keystroke results in the
      WM_IME_COMPOSITION event being sent first.  This means that in our case
      when one decides on to accept the input that is in the preedit buffer,
      we first get from Windows the WM_IME_COMPOSITION event
      (where we emit the commit signal), followed by the WM_IME_ENDCOMPOSITION
      event (where we emit the pair of preedit-changed and preedit-end
      Since commit f11f989f (GtkEntry: Remove recompute idle), we do the input
      recomputation directly, this will cause a pair of "Pango-WARNING:
      Assertion failed: (index >= 0 && index <= layout->length)" being shown,
      as gtkentry.c's priv->preedit_length and priv->preedit_cursor was unable
      to be reset to 0 in time as a result of the recomputation triggered by
      the commit being done before the reset of priv->preedit_length and
      priv->preedit_cursor (which are no longer valid as we essentially say
      that we are done with the preedit buffer).
      As we could only acquire the final string that was entered in this
      preedit session when we handle the WM_IME_COMPOSITION event, fix this by
      saving up the final string we acquire from Windows IME in UTF-8 when we
      handle the WM_IME_COMPOSITION event from Windows, and emit the commit
      signal with that string after we emit the preedit-changed and
      preedit-end signals when we handle the WM_IME_ENDCOMPOSITION event from
      Windows, which comes afterwards.
      Also fix the formatting of the code around the parts of the files that
      was changed.
  8. 09 Oct, 2017 1 commit
  9. 08 Aug, 2017 1 commit
  10. 26 Mar, 2017 1 commit
  11. 10 Nov, 2016 1 commit
    • Carlos Garcia Campos's avatar
      printing: Do not truncate job names in GtkPrintOperation · 25522558
      Carlos Garcia Campos authored
      We are currently truncating job names to 255 bytes, because that's the
      maximum allowed length of job-name attribute in CUPS. This is a CUPS
      limitation that GtkPrintOperation shouldn't need to know, and it
      shouldn't affect other backends, that might have other limitations or
      even no limitation at all. This has another side effect, that what you
      set as GtkPrintOperation:job-name could be different to what you get if
      the property is truncated, this is not documented in
      gtk_print_operation_set_job_name(). So, I think the job name should be
      truncated by the CUPS backend, right before setting the job-name
  12. 20 Oct, 2016 1 commit
  13. 16 May, 2016 1 commit
  14. 19 Apr, 2016 2 commits
  15. 16 Apr, 2016 1 commit
    • Bastien Nocera's avatar
      cups: Fix gettext usage · 97d27ca2
      Bastien Nocera authored
      The previous patches didn't mark some strings as to be translated, and
      tried to translate strings with a variable part already inside the
      string, which isn't going to work.
      Mark the strings as translatable with context, and also make sure to
      translate static strings when getting them out of their structure.
  16. 14 Apr, 2016 1 commit
  17. 13 Apr, 2016 1 commit
  18. 05 Apr, 2016 1 commit
  19. 16 Feb, 2016 1 commit
    • Matthias Clasen's avatar
      printing: Add message contexts · a64dd9cc
      Matthias Clasen authored
      Some of the translated strings in the cups printbackend are short
      and generic and might occur in other contexts. Give them disambiguating
      message contexts to avoid translation problems.
  20. 08 Jan, 2016 1 commit
  21. 06 Jan, 2016 1 commit
  22. 04 Oct, 2015 1 commit
  23. 24 Sep, 2015 1 commit
  24. 11 Sep, 2015 1 commit
    • Michael Weghorn's avatar
      Improve printer distinction for option retrieval · 838391e4
      Michael Weghorn authored
      In order to retrieve the user options for a printer, the respective
      printer name is used.
      This fixes the comparison of printer names to avoid that the options of
      another printer are accidently read whose name starts with the same
      letters, but is longer (e.g. "myprinterlongername" instead of
      This fixes Bug 753628.
  25. 18 Aug, 2015 1 commit
  26. 17 Jul, 2015 1 commit
  27. 16 Jul, 2015 1 commit
    • Emmanuele Bassi's avatar
      Avoid O(n²) walking of string arrays · e259b2f3
      Emmanuele Bassi authored
      "Yo, we heard you like traversing NULL-terminated arrays to operate on
      them, so we called g_strv_length() as the for condition, so you can
      iterate the array while iterating the array."
      Instead of making famed rapper and television producer Xzibit proud, we
      should avoid calling g_strv_length() on an array while looping on the
      array, to avoid quadratic complexity.
      We do this in various places that deal with arrays of strings that we
      cannot really guess are short enough not to matter — e.g. the list of
      CSS selectors in the inspector, or the required authentication
      information for printing.
  28. 23 Jun, 2015 1 commit
  29. 02 Jun, 2015 1 commit
  30. 13 May, 2015 1 commit
  31. 09 Mar, 2015 1 commit
  32. 02 Mar, 2015 1 commit
  33. 25 Feb, 2015 2 commits
  34. 24 Feb, 2015 1 commit
    • Matthias Clasen's avatar
      Make gtk-im-context-none work · b0b38c10
      Matthias Clasen authored
      This was added a few years ago, as a way to have _no_ im context
      at all. But it didn't actually work. Make it work, and streamline
      the handling of none by moving it all to gtkimmodule.c.
      As part of this, add context to the translated names of all
      im modules we ship.
  35. 20 Feb, 2015 1 commit
  36. 11 Jan, 2015 1 commit
  37. 24 Dec, 2014 1 commit
  38. 27 Nov, 2014 1 commit