summaryrefslogtreecommitdiff
path: root/gtk/gtkimmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* gtk/gtkaccelmap.[ch] gtk/gtkfilechooser.[ch] gtk/gtkfilesel.cTor Lillqvist2004-12-121-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-12-12 Tor Lillqvist <tml@iki.fi> * gtk/gtkaccelmap.[ch] * gtk/gtkfilechooser.[ch] * gtk/gtkfilesel.c * gtk/gtkfilesystemwin32.c * gtk/gtkiconfactory.[ch] * gtk/gtkicontheme.[ch] * gtk/gtkimage.[ch] * gtk/gtkimmodule.c * gtk/gtkmodules.c * gtk/gtkrc.[ch] * gtk/gtkuimanager.[ch] * gtk/gtkwindow.[ch] * gtk/updateiconcache.c * gtk/gtk.symbols: Use gstdio wrappers. On Windows, convert environment variables referring to pathnames from locale encoding to UTF-8. As in GLib, in order to preserve Windows DLL ABI stability, add binary compatibility versions of functions that take file names as arguments, or return file names. Add a _utf8 suffix to the "real" such functions on Windows. The ABI compatibility versions keep the old name. * gtk/Makefile.am: Strip PRIVATE symbols from the GNU import library. * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Implement file mapping on Win32. * gtk/updateiconcache.c: Don't crash if invoked without argument. Use binary mode when opening file. * modules/engines/ms-windows/Theme/gtk-2.0/Makefile.am: Install gtkrc in correct place, in <datadir>/themes/MS-Windows/gtk-2.0.
* Fix many sparse warnings.Matthias Clasen2004-10-281-1/+1
|
* Underscore-prefix gtk_file_system_module_get_type(). Underscore-prefixMatthias Clasen2004-08-121-2/+2
| | | | | | | | | | | 2004-08-12 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilesystem.c: Underscore-prefix gtk_file_system_module_get_type(). * gtk/gtkfilechooserdefault.c: Underscore-prefix shortcuts_model_filter_get_type(). * gtk/gtkimmodule.c: Make gtk_im_module_get_type() static. * gtk/gtk.symbols: * gtk/gtkinternals.h: Remove the no longer exported get_type functions.
* Add hidden aliases for exported symbols which are used internally in orderMatthias Clasen2004-08-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Aug 9 12:48:04 2004 Matthias Clasen <maclas@gmx.de> Add hidden aliases for exported symbols which are used internally in order to get rid of many PLT entries. (#145519, Arjan van de Ven) * gtk/Makefile.am: Add rules to generate gtk.def and from gtk.symbols, and make make check check the abi with abicheck.sh. (gtk_private_h_sources): Add gtkinternals.h (gtk_built_private_headers): Add gtkalias.h (gtk_extra_sources): Add gtk.symbols (EXTRA_DIST): Add makegtkalias.pl and abicheck.sh * gtk/gtk.symbols: New file. Definition of the GTK+ ABI. The file can be processed by cpp to filter out certain subsets of symbols. * gtk/abicheck.sh: New file. Script to check the actually symbols exported from libgtk-x11.2.0.so against the symbols found in gtk.symbols. * gtk/makegtkalias.pl: New file. Perl script to generate the header containing the alias definitions for internally used exported symbols from a list of symbols. * gtk/gtkinternals.h: New file. An uninstalled header listing symbols which must be exported for some reason and do not appear in any other header. * gtk/*.c: Include gtkalias.h
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-061-1/+3
| | | | | | | | | | 2004-03-05 Federico Mena Quintero <federico@ximian.com> Fixes #136082 and #135265, patch by Morten Welinder. * configure.in: Use AC_SYS_LARGEFILE. * */*.c: #include <config.h>
* Use case-insensitive comparison. Fixes XIM module loading on AIX.Matthias Clasen2004-03-011-2/+2
| | | | | | | Tue Mar 2 00:47:21 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkimmodule.c (match_locale): Use case-insensitive comparison. Fixes XIM module loading on AIX. (#131277)
* handle GTK_DATADIR similar as the other filesystem placement 'constants'Hans Breuer2003-12-141-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-14 Hans Breuer <hans@breuer.org> * gtk/gtkprivate.h gtk/gtkmain.c : handle GTK_DATADIR similar as the other filesystem placement 'constants' (dynamic resolving on win32) * gtk/gtkfilechooserwidget.c : handle file system to win32 renaming here as will * gtk/gtkfilesystemwin32.c : implement render_icon * gtk/gtk.def gdk/gdk.def : updated externals * gdk/win32/gdkdisplay-win32.c : make it compile without <multimon.h> - i.e. even older sdk * gdk/win32/gdkevents-win32.c : match resize_timer_proc with TIMERPROC prototype * gdk/win32/gdkwindow-win32.c : older msvc does not know BITMAPV5HEADER (from win xp) either * gtk/gtkimmodule.c : make it compile even if GTK_LOCALEDIR is not defined * tests/testfilechooser.c : recent GLib crashes on g_print ("%s", NULL) so avoid this
* use GETTEXT_PACKAGE to get a translation for "Default"(#113850).Hidetoshi Tajima2003-05-301-2/+2
| | | | | | | Thu May 29 18:08:01 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com> * gtk/gtkimmodule.c (_gtk_im_module_list): use GETTEXT_PACKAGE to get a translation for "Default"(#113850).
* make "Default" label of default input method localizable. use translationsHidetoshi Tajima2003-05-301-1/+1
| | | | | | | | | | | | | | | Thu May 29 09:34:05 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com> * gtk/gtkimmodule.c (_gtk_im_module_list): make "Default" label of default input method localizable. * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems): use translations of input method context names * modules/input/imam-et.c, modules/input/imcyrillic-translit.c, modules/input/iminuktitut.c, modules/input/imthai-broken.c, modules/input/imti-er.c, modules/input/imti-et.c modules/input/imviqr.c, modules/input/imxim.c use GETTEXT_PACKAGE instead of "gtk+" for domain name. (#113850).
* Silently accept a missing gtk.immodules file, some people want to runOwen Taylor2003-05-201-3/+6
| | | | | | | | | Tue May 20 17:27:24 2003 Owen Taylor <otaylor@redhat.com> * gtk/gtkimmodule.c (gtk_im_module_init): Silently accept a missing gtk.immodules file, some people want to run without one. (#112406, patch from Arnaud Charlet)
* Sort the list of Input Modules by name, keeping Default at top.Abigail Brady2002-11-181-0/+10
| | | | | | | 2002-11-18 Abigail Brady <morwen@evilmagic.org> * gtk/gtkimmodule.c: (_gtk_im_module_list): Sort the list of Input Modules by name, keeping Default at top.
* Deprecation cleanupManish Singh2002-10-101-2/+4
| | | | | | | | Thu Oct 10 15:13:48 2002 Manish Singh <yosh@gimp.org> * gtk/gtkimcontext.[ch] gtk/gtkimcontextsimple.[ch] gtk/gtkimmodule.c gtk/gtkimmulticontext.[ch] gtk/gtktreestore.[ch]: Deprecation cleanup
* Pass the actual input keycode to XIM, rather than the result ofOwen Taylor2002-09-061-1/+3
| | | | | | | | | | | Fri Sep 6 12:41:16 2002 Owen Taylor <otaylor@redhat.com> * modules/input/gtkimcontextxim.c: Pass the actual input keycode to XIM, rather than the result of backconverting the keysym. Fixes the <> input problem! (#74922) * gtk/gtkimmodule.c: Fix bug where GTK_IM_MODULE environment variable couldn't be used to force the input method to the default input method.
* Fix another missing static.Owen Taylor2002-01-311-1/+1
| | | | | | | | | | | | | Thu Jan 31 11:33:52 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkproperty-x11.c (insert_atom_pair): Fix another missing static. * gtk/gtkimmodule.c (n_loaded_contexts): And another. * gdk/x11/Makefile.am gdk/x11/gxid_lib.c: Don't build gxid sources at all except in the vanishingly rare case of --with-xinput=xfree.