summaryrefslogtreecommitdiff
path: root/gtk/gtkimmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* im module: Remvoe an unneeded variableMatthias Clasen2015-09-061-7/+3
| | | | The G_DEFINE_TYPE macros automate the parent_class handling.
* immodule: Remove unused parameterBenjamin Otte2015-08-201-2/+1
|
* Code cleanupMatthias Clasen2015-07-311-8/+1
| | | | | | 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.
* gtk: Add deprecation guards for newest pango deprecationsBenjamin Otte2015-05-281-0/+2
|
* Make gtk-im-context-none workMatthias Clasen2015-02-231-11/+36
| | | | | | | | | 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.
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-2/+2
| | | | Instead of Return value:
* docs: use proper quotations instead of '*'William Jon McCann2014-02-071-4/+4
|
* docs: use proper quotesWilliam Jon McCann2014-02-051-1/+1
|
* broadway: Support ipad on-screen keyboardAlexander Larsson2013-11-131-0/+12
| | | | | | | 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.
* win32: use the input locale to decide the default input methodAleksander Morgado2013-08-311-1/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Deal with platform-specific im modulesMatthias Clasen2013-08-111-1/+39
| | | | | | | | 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.
* GtkIMModule: Use default screen when determining context idMatthias Clasen2013-08-111-23/+20
| | | | | | | | | 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.
* immodule: fix a GCC warningCosimo Cecchi2013-02-181-1/+1
|
* immodule: Fix context ID lookup on module with multiple contextsChangwoo Ryu2013-02-161-6/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=690247
* build: Remove now-unused GTK_DISABLE_DEPRECATED undefsBenjamin Otte2012-05-011-1/+0
|
* Change FSF AddressJavier Jardón2012-02-271-2/+1
|
* immodule: Disable deprecations before including deprecated headerBenjamin Otte2011-11-081-0/+6
|
* gtk: Empty gtkimmodule.hBenjamin Otte2011-11-081-1/+0
| | | | | | | | | | Move the remaining struct definition into gtkimcontextinfo.h and include that header in gtk.h. gtkimmodule.h is now an empty header. We should probably deprecate it somehow. This is also necessary so headers used in gtk .c files don't include gtk.h which in turn includes all the deprecated headers which we want to avoid so we can include them with deprecation warnings turned off.
* immodule: Move private functions to a private headerBenjamin Otte2011-11-081-0/+1
|
* immodule: Fix includesBenjamin Otte2011-11-081-0/+2
| | | | | | | Make includes not rely on gtkimmodule.h including gtk.h. This will be important once we remove gtkimmodule from the include files. That way, we can achieve not pulling deprecated headers automatically.
* Allow fallback for input method modulesAkira TAGOH2011-11-051-15/+34
| | | | | | | | Accept a :-separated list of module names in GTK_IM_MODULE and the corresponding setting, to deal a bit better with broken situations. https://bugzilla.gnome.org/show_bug.cgi?id=603559
* gtk: move _gtk_modules_has_mixed_deps() to gtkmodlesprivate.hMichael Natterer2011-10-231-1/+0
| | | | and remove gtkmainprivate.h completely.
* gtk: clean up the private horrorMichael Natterer2011-10-221-18/+3
| | | | | | | | | | | - 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
* Remove unused includesMatthias Clasen2011-06-161-1/+0
| | | | Nothing is using gtkrc.h functionality any more.
* Move docs for gtkmain inlineMatthias Clasen2011-01-041-1/+1
| | | | | | | | At the same time, introduce a gtkmainprivate.h header and various other cleanups. Based on a patch by Tadej Borovšak. https://bugzilla.gnome.org/show_bug.cgi?id=617471
* gtk: Avoid GdkDrawable usage, including needless castsBenjamin Otte2010-12-021-2/+2
|
* gtk: gdk_drawable_get_screen/visual => gdk_window_get_screen/visualBenjamin Otte2010-09-261-1/+1
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-1/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Fix compilation warning: Use G_GNUC_UNUSED macroJavier Jardón2009-11-091-1/+1
| | | | add_builtin_module() is only used into #define block of code
* Rework the way IM contexts are setMatthias Clasen2009-09-041-7/+3
| | | | | | | 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.
* Revert changes for bug 567124. Instead of trying to avoidMatthias Clasen2009-01-251-3/+0
| | | | | | | | | | | | | 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
* Don't set up im stuff if the widget is not realized.Matthias Clasen2009-01-231-1/+4
| | | | | | | | | | * gtk/gtktextview.c: Don't set up im stuff if the widget is not realized. * gtk/gtkimmodule.c: Assert that we have a window. svn path=/trunk/; revision=22193
* Doc fixesMatthias Clasen2008-12-291-8/+6
| | | | | | | | | | | | 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
* Bug 563994 – Input method module interface not documentedDaniel Elstner2008-12-111-0/+14
| | | | | | | | | | | | | | | | | * 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
* Bug 552668 – format not a string literal and no format arguments inChristian Persch2008-09-171-2/+2
| | | | | | gtkimmodule svn path=/trunk/; revision=21416
* Revert name changeCody Russell2008-07-011-1/+1
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-301-1/+1
| | | | | | | | | | | | | 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
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 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
* include <pango/pango.h> instead of <pango/pango-layout.h>.Michael Natterer2008-04-251-1/+0
| | | | | | | | | | | | | | | | | | | | 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
* Bug 99192 - Add --with-include-input-modulesTor Lillqvist2008-03-171-28/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add a gtk-im-module GTK settingMatthias Clasen2007-12-181-12/+43
| | | | | | | | | | | | | | | | 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
* Proper fix for #396175:Tor Lillqvist2007-01-171-12/+42
| | | | | | | | | | | | | | | | | | | | | | | | 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
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* More G_DEFINE_TYPE conversion.Matthias Clasen2006-05-031-17/+8
| | | | | | | | | | 2006-05-03 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaccessible.c: * gtk/gtkclipboard.c: * gtk/gtkfilefilter.c: * gtk/gtkimmodule.c: * gtk/gtkmenubar.c: More G_DEFINE_TYPE conversion.
* Boilerplate reductionMatthias Clasen2006-05-021-17/+6
|
* Use G_MODULE_BIND_LAZY when opening modules.Matthias Clasen2005-12-161-1/+1
| | | | | | | | | | 2005-12-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilesystem.c (gtk_file_system_module_load): * gtk/gtkimmodule.c (gtk_im_module_load): * gtk/gtkthemes.c (gtk_theme_engine_load): * gtk/gtkmodules.c (find_module): Use G_MODULE_BIND_LAZY when opening modules.
* Use G_MODULE_BIND_LAZY when dlopening modules. (#319557, Laszlo Peter)Matthias Clasen2005-10-271-1/+1
| | | | | | | | | 2005-10-26 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilesystem.c (gtk_file_system_module_load): * gtk/gtkthemes.c (gtk_theme_engine_load): * gtk/gtkimmodule.c (gtk_im_module_load): Use G_MODULE_BIND_LAZY when dlopening modules. (#319557, Laszlo Peter)
* Intern some more strings.Matthias Clasen2005-09-011-1/+1
| | | | | | | | | 2005-09-01 Matthias Clasen <mclasen@redhat.com> * gdk/*.c: Intern some more strings. * gtk/gtkintl.h: * gtk/*.c: Define an I_() macro and use it instead of the bulky g_intern_static_string().
* Intern type names in code generated by glib-mkenums, too.Matthias Clasen2005-08-311-1/+1
| | | | | | | | | | | | | 2005-08-31 Matthias Clasen <mclasen@redhat.com> * gdk/Makefile.am: * gtk/Makefile.am: Intern type names in code generated by glib-mkenums, too. * gtk/*.c: * gdk/x11/*.c: * gdk/*.c: Intern type names before registering the type to avoid unnecessary copies.
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-1/+1
| | | | | | | | | | | | | | | | | | 2005-03-20 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in gdkalias.h: * gtk/grk.symbols: Group symbols by header and source file. * gtk/makegtkalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegtkalias.pl -def * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate this file. * gtk/*.c: Include gtkalias.h after the other headers, include gtkaliasdef.c at the bottom. * gtk/*.h: Small cleanups.