1. 20 Mar, 2018 1 commit
    • Peter Bloomfield's avatar
      gtkimmodule: make match_backend() query · 6e2d1403
      Peter Bloomfield authored
      …the wayland registry.
      
      Wnen _gtk_im_module_get_default_context_id calls
      match_backend (context_id) and the default GdkDisplay
      is wayland, match_backend() should return TRUE only if
      gdk_wayland_display_query_registry (display, "gtk_text_input_manager")
      returns TRUE.
      6e2d1403
  2. 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.
      e8bffe0c
  3. 26 Mar, 2016 1 commit
  4. 11 Feb, 2016 1 commit
  5. 03 Feb, 2016 1 commit
  6. 30 Dec, 2015 1 commit
  7. 29 Dec, 2015 1 commit
  8. 06 Sep, 2015 1 commit
  9. 20 Aug, 2015 1 commit
  10. 01 Aug, 2015 1 commit
    • Matthias Clasen's avatar
      Code cleanup · 9f24b547
      Matthias Clasen authored
      Use g_slist_free_full more consistently. This commit just converts
      the obvious cases where g_slist_forall is directly followed by
      g_slist_free.
      9f24b547
  11. 28 May, 2015 1 commit
  12. 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.
      b0b38c10
  13. 19 Feb, 2014 1 commit
  14. 07 Feb, 2014 1 commit
  15. 05 Feb, 2014 1 commit
  16. 13 Nov, 2013 1 commit
    • Alexander Larsson's avatar
      broadway: Support ipad on-screen keyboard · 4226f97d
      Alexander Larsson authored
      We add a custom im module for broadway that calls some broadway
      specific APIs to show/hide the keyboard on focus in/out. We then forward this
      to the browser, and on the ipad we focus an input field to activate
      the keyboard.
      4226f97d
  17. 31 Aug, 2013 1 commit
    • Aleksander Morgado's avatar
      win32: use the input locale to decide the default input method · 90de3c4f
      Aleksander Morgado authored
      GTK+ tries to automatically assign the best input module based on the
      'system locale'. In the specific case of the IME input method, it will
      be the default for the whole GTK+ application if the system locale is
      either Japanese (ja), Korean (ko) or Chinese (zh). Other defaults are
      equally applicable, e.g. if system locale is Catalan (ca), the special
      'Cedilla' input module is chosen.
      
      System locale can be changed (e.g. Win7) through the following sequence
      (reboot required):
        Control Panel
          Region and Language
            Administrative
              Language for non-Unicode Programs
                Change system locale...
      
      The problem with this behaviour is that changing the 'default input
      language' (e.g. from English to Japanese+IME) doesn't affect the GTK+
      application. Therefore, I can have an English system locale (where GTK+
      will choose Simple IM by default) but then have Japanese+IME as input
      language.
      
      Default input language can be changed (e.g. Win7) through the following
      sequence (no reboot required):
        System locale can be changed (e.g. Win7) through:
          Control Panel
            Region and Language
              Keyboards and Languages
                Keyboards and other input languages
                  Change keyboards...
      
      Default input language can also be changed using the language bar directly.
      
      So, instead of using the system-wide default locale to decide which input
      method to use as default, better use the input language specified by the
      user, which may be the same as the system-wide default locale, or different.
      Following the previous example, with an English system locale and a
      Japanese+IME input language, the default input method will now be IME
      instead of Simple, which is closer to what's expected by the user.
      
      This change only affects the application during startup; i.e. if the user
      changes the input language while the application is running, we wouldn't be
      changing the default input method to use. We could do this processing the
      WM_INPUTLANGCHANGE messages, though.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=700428
      90de3c4f
  18. 11 Aug, 2013 2 commits
    • Matthias Clasen's avatar
      Deal with platform-specific im modules · ea715a49
      Matthias Clasen authored
      With multiple GDK backends in the process, we run into problems where
      we try to use the Wayland im module on X, which crashes. This commit
      adds a quick backend filter that removes the wayland, xim and ime
      input methods from consideration  unless the corresponding GDK backend
      is in use.
      ea715a49
    • Matthias Clasen's avatar
      GtkIMModule: Use default screen when determining context id · f4a138c7
      Matthias Clasen authored
      This code is called early on, without a window, and then later on
      with a window. Currently, it returns different results for these
      cases when the setting contains a value. That leads to pointless
      construction and destruction of im contexts. Instead, just look
      at the settings of the default screen. In practice, there is only
      one screen, ever.
      f4a138c7
  19. 19 Feb, 2013 1 commit
  20. 16 Feb, 2013 1 commit
  21. 01 May, 2012 1 commit
  22. 27 Feb, 2012 1 commit
  23. 08 Nov, 2011 4 commits
  24. 05 Nov, 2011 1 commit
  25. 23 Oct, 2011 1 commit
  26. 22 Oct, 2011 1 commit
    • Michael Natterer's avatar
      gtk: clean up the private horror · 2688ccdb
      Michael Natterer authored
      - add gtkmodulesprivate.h and move stuff there from gtkprivate.h
      - add gtkprivate.c and move stuff there from gtkmain.c
      - add gtkwin32.c and move stuff there from gtkmain.c
      - don't redefine GTK_DATADIR and friends in gtkprivate.h
      - have _gtk_get_datadir() and friends on all platforms
      - remove the horrid hacks where gtkprivate.h can't be included,
        or must be included later due to redefinition of the compile-time
        directories
      2688ccdb
  27. 17 Jun, 2011 1 commit
  28. 04 Jan, 2011 1 commit
  29. 02 Dec, 2010 1 commit
  30. 26 Sep, 2010 1 commit
  31. 10 Jul, 2010 1 commit
  32. 09 Nov, 2009 1 commit
  33. 04 Sep, 2009 1 commit
    • Matthias Clasen's avatar
      Rework the way IM contexts are set · 1c0ecc03
      Matthias Clasen authored
      Add a function to obtain the effective context id, and reset the slave
      only when the effective context id is different from the current context
      id, when setting a client window and on focus in. This might fix
      bug 593868 and bug 567124.
      1c0ecc03
  34. 25 Jan, 2009 1 commit
    • Matthias Clasen's avatar
      Revert changes for bug 567124. Instead of trying to avoid · b9905c8f
      Matthias Clasen authored
              setting up the im context before the widget is realized, just
              reset it when the client window is set.
      
              * gtk/gtkimmulticontext.c: Reset the slave when a client window
              is set.
      
              * gtk/gtkimmodule.c
              * gtk/gtktextview.c: Revert changes for bug 567124.
      
      svn path=/trunk/; revision=22214
      b9905c8f
  35. 23 Jan, 2009 1 commit
  36. 29 Dec, 2008 1 commit
    • Matthias Clasen's avatar
      Doc fixes · 3c906f86
      Matthias Clasen authored
      2008-12-28  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkimmodule.c:
              * gtk/gtkseparatortoolitem.c: Doc fixes
      
              * gtk/gtkfontsel.c: Merge docs inline.
      
      
      svn path=/trunk/; revision=21957
      3c906f86