1. 28 May, 2015 1 commit
  2. 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
  3. 19 Feb, 2014 1 commit
  4. 07 Feb, 2014 1 commit
  5. 05 Feb, 2014 1 commit
  6. 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
  7. 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
  8. 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
  9. 19 Feb, 2013 1 commit
  10. 16 Feb, 2013 1 commit
  11. 01 May, 2012 1 commit
  12. 27 Feb, 2012 1 commit
  13. 08 Nov, 2011 4 commits
  14. 05 Nov, 2011 1 commit
  15. 23 Oct, 2011 1 commit
  16. 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
  17. 17 Jun, 2011 1 commit
  18. 04 Jan, 2011 1 commit
  19. 02 Dec, 2010 1 commit
  20. 26 Sep, 2010 1 commit
  21. 10 Jul, 2010 1 commit
  22. 09 Nov, 2009 1 commit
  23. 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
  24. 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
  25. 23 Jan, 2009 1 commit
  26. 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
  27. 11 Dec, 2008 1 commit
    • Daniel Elstner's avatar
      Bug 563994 – Input method module interface not documented · 0bf3652e
      Daniel Elstner authored
      * gtk/gtkimcontext.h: Add public/private markers.
      * gtk/gtkimcontext.c: Add section documentation which explains how
      to add a new input method module to GTK+.  Document the signals and
      virtual functions of GtkIMContextClass.
      * gtk/gtkimmodule.c: Document struct GtkIMContextInfo.
      * docs/reference/gtk/gtk-sections.txt: Add GtkIMContextClass and
      GtkIMContextInfo to section GtkIMContext.
      * docs/reference/gtk/Makefile.am (IGNORE_HFILES): Remove
      gtkimmodule.h from the list in order to pick up GtkIMContextInfo.
      * docs/reference/gtk/tmpl/gtkimcontext.sgml: Remove file from
      repository since all the hand-edited content has been migrated to
      source file comments.
      
      svn path=/trunk/; revision=21870
      0bf3652e
  28. 17 Sep, 2008 1 commit
  29. 01 Jul, 2008 1 commit
  30. 30 Jun, 2008 1 commit
    • Cody Russell's avatar
      Practically everything changed. · fce9c8b7
      Cody Russell authored
      2008-06-30  Cody Russell  <bratsche@gnome.org>
      
              * Practically everything changed.
      
              Change	all references	of GIMP	Toolkit	(and variations	of it)
              to GTK+	Toolkit, showing no mercy at all to our	beloved
      	ancestry. (#540529)
      
      
      svn path=/trunk/; revision=20709
      fce9c8b7
  31. 22 Jun, 2008 1 commit
    • Johan Dahlin's avatar
      Include "config.h" instead of <config.h> Command used: find -name · d97cdbdf
      Johan Dahlin authored
      2008-06-21  Johan Dahlin  <jdahlin@async.com.br>
      
          * *.[ch]: Include "config.h" instead of <config.h>
          Command used:
          find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
          Rubberstamped by Mitch and Tim
      
      
      svn path=/trunk/; revision=20669
      d97cdbdf
  32. 25 Apr, 2008 1 commit
    • Michael Natterer's avatar
      include <pango/pango.h> instead of <pango/pango-layout.h>. · 53dd0547
      Michael Natterer authored
      2008-04-25  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkprintcontext.h: include <pango/pango.h> instead of
      	<pango/pango-layout.h>.
      
      	* gtk/gtkiconfactory.c
      	* gtk/gtkimmodule.c
      	* gtk/gtkmain.c
      	* gtk/gtkmodules.c
      	* gtk/queryimmodules.c: remove inclusion of single files from
      	pango, none of them was actually needed.
      
      	* modules/input/gtkimcontextime.c: include <pango/pango.h> instead of
      	<pango/pango-utils.h>.
      
      
      svn path=/trunk/; revision=20042
      53dd0547
  33. 17 Mar, 2008 1 commit
    • Tor Lillqvist's avatar
      Bug 99192 - Add --with-include-input-modules · 6ce7b71f
      Tor Lillqvist authored
      2008-03-18  Tor Lillqvist  <tml@novell.com>
      
      	Bug 99192 - Add --with-include-input-modules
      
      	* configure.in: Add --with-included-immodules switch. Handled in a
      	similar way as the --with-included-loaders switch. For each input
      	method module foo: Collect the list of input modules to be built
      	into libgtk into INCLUDED_IMMODULE_OBJ. Collect a list of
      	-DINCLUDE_IM_foo definitions into INCLUDED_IMMODULE_DEFINE.
      	Define Automake conditionals INCLUDE_IM_FOO.
      
      	* modules/input/Makefile.am: For modules to be included in libgtk,
      	build a static library.
      	
      	* modules/input/im*.c: Use MODULE_ENTRY macros much like in
      	gdk-pixbuf to get unique names for the functions called by libgtk
      	in the included case. Use G_MODULE_EXPORT in the non-included case
      	so that we don't unnecessarily export unneeded random global
      	symbols on Windows.
      
      	* gtk/Makefile.am: Build the included modules and link them into libgtk.
      
      	* gtk/gtkimmodule.c: Handle the built-in modules. Remove
      	copy/paste leftover mentions of "themes" in comments.
      
      
      svn path=/trunk/; revision=19896
      6ce7b71f
  34. 18 Dec, 2007 1 commit
    • Matthias Clasen's avatar
      Add a gtk-im-module GTK setting · f8a1be3a
      Matthias Clasen authored
      2007-12-17  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtksettings.c: Add a gtk-im-module GTK setting
              * gdk/win32/gdkproperty-win32.c:
              * gdk/x11/gdksettings.c: ...and back it by a Gtk/IMModule X setting.
      
              * gtk/gtkimmodule.[hc]:
              * gtk/gtkimmulticontext.[hc]: When determining the default context,
              look at the gtk-im-module setting, and listen for changes to the
              setting.  (#502446, Akira Tagoh)
      
      
      svn path=/trunk/; revision=19195
      f8a1be3a
  35. 17 Jan, 2007 1 commit
    • Tor Lillqvist's avatar
      Proper fix for #396175: · e6a49058
      Tor Lillqvist authored
      2007-01-17  Tor Lillqvist  <tml@novell.com>
      
      	Proper fix for #396175:
      
      	* gtk/gtkimmulticontext.c: Revert change by Hans Breuer below: Do
      	include gtkprivate.h. On Win32 we do want to use the redefinition
      	of GTK_LOCALEDIR as a call to the function _gtk_get_localedir().
      
      	* gtk/gtkimmodule.c: Instead, correct the prefix also on
      	simple_context_info.domain_dirname. Do the prefix corrections
      	always on Win32, not just when GTK_LIBDIR is defined. i.e., until
      	now they were done only in the autoconfiscated gcc builds. Hans
      	needs to make sure GTK_LIBDIR and GTK_LOCALEDIR are defined also
      	in MSVC builds now.
      	(correct_localedir_prefix): New function, like
      	correct_libdir_prefix(), but for GTK_LOCALEDIR.
      	(_gtk_im_module_list): Call correct_localedir_prefix() on
      	simple_context_info.domain_dirname.
      
      
      svn path=/trunk/; revision=17161
      e6a49058
  36. 14 May, 2006 1 commit