summaryrefslogtreecommitdiff
path: root/gtk/gtkimmulticontext.c
Commit message (Collapse)AuthorAgeFilesLines
* gkimmulticontext: Remove left over debug printAdel Gadllah2012-08-261-2/+0
| | | | | | Remove the g_print debug statement from propagate_purpose. https://bugzilla.gnome.org/show_bug.cgi?id=682747
* GtkIMMultcontext: Propagate input purpose and hintsMatthias Clasen2012-08-251-3/+36
| | | | | The lack of this was pointed out by Carlos Garnacho in https://bugzilla.gnome.org/show_bug.cgi?id=651244
* immulticontext: Always check if the global context id changedRui Matos2012-05-081-12/+9
| | | | | | | | | | | This makes sure that if the gtk-im-module setting changes we update our internal state immediately on the next event whichever it is. In particular this fixes the case of the gtk-im-module setting changing while the user is typing and the slave context remaining the same, effectively ignoring the setting change. https://bugzilla.gnome.org/show_bug.cgi?id=675365
* types: Clean up gtkwidget.h includesBenjamin Otte2012-03-031-2/+3
| | | | | | | In particular gtksettings.h and gtkstylecontext.h needed to be included in lots of places now. Also, I order the includes alphabetically in a bunch of headers.
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* 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.
* gtk: clean up the private horrorMichael Natterer2011-10-221-2/+2
| | | | | | | | | | | - 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
* gtk: remove the private GTK_NO_TEXT_INPUT_MOD_MASKMichael Natterer2011-09-271-12/+26
| | | | and use the new public modifier abstraction API.
* gtk: fix entering of Option-foo symbols on the MacMichael Natterer2011-09-261-1/+1
| | | | | | define GTK_NO_TEXT_INPUT_MOD_MASK in gtkprivate.h and use it in the IM contexts, so Option-foo is no longer filtered away.
* Don't only use ch != 0 to check if a character is a control char.Jasper St. Pierre2011-03-161-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=644976
* gtk: Avoid GdkDrawable usage, including needless castsBenjamin Otte2010-12-021-1/+1
|
* gtk: gdk_drawable_get_screen/visual => gdk_window_get_screen/visualBenjamin Otte2010-09-261-1/+1
|
* gtkimmulticontext: move documentation to inline commentsJavier Jardón2010-09-011-0/+8
|
* GtkIMMulticontext: move public members to private structureJavier Jardón2010-07-131-61/+87
|
* Use accessor functions to access GtkCheckMenuItemJavier Jardón2010-07-131-1/+1
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-5/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Allow running without any im contextMatthias Clasen2010-02-091-3/+37
| | | | | Setting GtkSettings::im-module to gtk-im-context-none will make GtkIMMultiContext just pass through.
* Don't forget to set the client window on the slaveMatthias Clasen2009-09-041-0/+3
|
* Rework the way IM contexts are setMatthias Clasen2009-09-041-39/+33
| | | | | | | 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-6/+2
| | | | | | | | | | | | | 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
* Bug 450716 – New API to change global IMMatthias Clasen2009-01-131-19/+41
| | | | | | | | | | | | | | | Requested by Daniel Elstner. * gtk/gtk.symbols: * gtk/gtkimmulticontext.[hc] (gtk_im_multicontext_set_context_id): New function to set the context id on a GtkIMMulticontext. * gtk/gtkentry.c: * gtk/gtktextview.c: Add a ::im-module property that can be set to override the global setting for the im module to be used. svn path=/trunk/; revision=22113
* Use C_() instead of Q_(). String change!Matthias Clasen2008-10-271-2/+2
| | | | | | | | | | | | | | | | 2008-10-26 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaccellabel.c: * gtk/gtkcalendar.c: * gtk/gtkcellrendereraccel.c: * gtk/gtkcellrendererprogress.c: * gtk/gtkimmulticontext.c: * gtk/gtkrecentchoosermenu.c: * gtk/gtkvolumebutton.c: Use C_() instead of Q_(). String change! svn path=/trunk/; revision=21716
* Bug 553086 – hard to see current immoduleMatthias Clasen2008-09-301-3/+20
| | | | | | | | | | | | | 2008-09-29 Matthias Clasen <mclasen@redhat.com> Bug 553086 – hard to see current immodule * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems): Display the actually selected context in the system menuitem. Complaint by Akira Tagoh. svn path=/trunk/; revision=21548
* Add a getter for the the sealed context_id field.Matthias Clasen2008-09-291-1/+18
| | | | | | | | | | | 2008-09-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkimmulticontext.[hc] (gtk_im_multicontext_get_context_id): Add a getter for the the sealed context_id field. svn path=/trunk/; revision=21546
* Bug 552837 – mem leak in gtkimmulticontextChristian Persch2008-09-191-0/+1
| | | | | | | * gtk/gtkimmulticontext.c: (gtk_im_multicontext_get_slave): Plug mem leak. svn path=/trunk/; revision=21445
* gtk/gtkdnd-quartz.c gtk/gtkdnd.c gtk/gtkentry.c gtk/gtkfilesel.cSven Neumann2008-08-111-11/+11
| | | | | | | | | | | | | | | | | | | | 2008-08-11 Sven Neumann <sven@gimp.org> * gtk/gtkdnd-quartz.c * gtk/gtkdnd.c * gtk/gtkentry.c * gtk/gtkfilesel.c * gtk/gtkimcontextsimple.c * gtk/gtkimmulticontext.c * gtk/gtkoptionmenu.c * gtk/gtkplug.c * gtk/gtkrecentchooserdefault.c * gtk/gtkscrolledwindow.c * gtk/gtksocket-x11.c: use canonical signal names in some more places that I missed earlier. svn path=/trunk/; revision=21069
* 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
* Bug 503071 – Application direction changes to right to left even ifBehdad Esfahbod2008-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-11 Behdad Esfahbod <behdad@gnome.org> Bug 503071 – Application direction changes to right to left even if theres no translation * configure.in: Bump glib requirement. * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): * gtk/gtkactiongroup.c (dgettext_swapped): * gtk/gtkbuilder.c (gtk_builder_class_init): * gtk/gtkbuilderparser.c (_dpgettext), (_gtk_builder_parser_translate): * gtk/gtkfilechooserdefault.c (list_size_data_func): * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems): * gtk/gtkintl.h: * gtk/gtkmain.c (setlocale_initialization), (do_pre_parse_initialization), (gettext_initialization): * gtk/gtkstock.c (gtk_stock_lookup), (sgettext_swapped): Use g_dgettext() and g_dngettext(). svn path=/trunk/; revision=20358
* Bug 503071 - Application direction changes to right to left even if theres14:27:34 Tim Janik2008-05-201-1/+1
| | | | | | | | | | | 2008-05-20 14:27:34 Tim Janik <timj@imendio.com> * reverted recent unapproved changes by Yair Hershkovitz, regarding: Bug 503071 - Application direction changes to right to left even if theres no translation. svn path=/trunk/; revision=20116
* call g_i18n_init() in gettext_initialization(). do gettext_initializationYair Hershkovitz2008-05-111-1/+1
| | | | | | | | | | | | | | | | | | | | 2008-05-11 Yair Hershkovitz <yairhr@gmail.com> * gtk/gtkmain.c: call g_i18n_init() in gettext_initialization(). do gettext_initialization only once. * gtk/gtkbuilderparser.c: use glib i18n api. removed dpgettext() as it duplicates g_dpgettext() and added _g_dpgettext() to wrap g_dpgettext with the extended functionality that was in the removed dpgettext(). * gtk/gtkaccellabelc: * gtk/gtkstock.c: * gtk/gtkimmulticontext.c: * gtk/gtkactiongroup.c: * gtk/gtkintl.h: use glib i18n api. svn path=/trunk/; revision=20091
* Add a gtk-im-module GTK settingMatthias Clasen2007-12-181-20/+65
| | | | | | | | | | | | | | | | 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-9/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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
* don't include "gtkprivate.h" to avoid differing definitions ofHans Breuer2007-01-131-1/+9
| | | | | | | | | | | | | | 2007-01-13 Hans Breuer <hans@breuer.org> * gtk/gtkimmulticontext.c : don't include "gtkprivate.h" to avoid differing definitions of GTK_LOCALEDIR (bug #396175). * gtk/gtktreeview.c : use g_snprintf instead of snprintf, which is not available everywhere * gtk/makefile.msc.in : updated svn path=/trunk/; revision=17137
* Be careful to not override GTK+ translations with the translations of theMatthias Clasen2006-12-231-10/+55
| | | | | | | | | | | 2006-12-23 Matthias Clasen <mclasen@redhat.com> * gtk/gtkimmulticontext.c: Be careful to not override GTK+ translations with the translations of the input method. (#317080, Tor Lillqvist) * modules/input/imcedilla.c: Use standard macros for translation domain and locale dir.
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Boilerplate reductionMatthias Clasen2006-05-021-33/+2
|
* Convert to use instance private data.Matthias Clasen2006-01-111-2/+3
| | | | | | | | 2006-01-10 Matthias Clasen <mclasen@redhat.com> * gtk/gtkimmulticontext.c: * gtk/gtkhsv.c: * gtk/gtkhandlebox.c: Convert to use instance private data.
* Intern some more strings.Matthias Clasen2005-09-011-2/+2
| | | | | | | | | 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().
* Also intern static strings passed to g_object_set_data()Matthias Clasen2005-08-311-1/+1
|
* 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/+3
| | | | | | | | | | | | | | | | | | 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.
* 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/+1
| | | | | | | | | | 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>
* Don't use zip -r on the etc directory, to avoid including editor backupTor Lillqvist2003-09-201-4/+3
| | | | | | | | | | | | | | | | | | | 2003-09-20 Tor Lillqvist <tml@iki.fi> * gtk-zip.sh.in: Don't use zip -r on the etc directory, to avoid including editor backup files. List files we want explicitly. * gtk/gtkmain.c (_gtk_get_lc_ctype): New function. On Unix, just calls setlocale (LC_CTYPE, NULL). On Windows, looks for the LC_ALL, LC_CTYPE and LANG environment variables, than calls g_win32_getlocale(). (gtk_get_default_language): Code snippet moved to above function, call it. * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave) * gtk/gtkrc.c (gtk_rc_context_parse_file): Call _gtk_get_lc_ctype() instead of setlocale().
* Replace client_window field with 'priv' pointer, retaining binaryOwen Taylor2003-08-191-5/+42
| | | | | | | | | | | | Tue Aug 19 14:37:46 2003 Owen Taylor <otaylor@redhat.com> * gtk/gtkimmulticontext.[ch] (struct _GtkIMMulticontext): Replace client_window field with 'priv' pointer, retaining binary compatibility. * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave): save use_preedit/cursor_location/focus status and set up the new slave appropriately. (#118651, Botond Botyanszki)
* Improve Cedilla handling - based on a patch from Gustavo De Nardin,Owen Taylor2003-08-151-4/+1
| | | | | | | | | | | | | | | | | | | | | Fri Aug 15 16:54:39 2003 Owen Taylor <otaylor@redhat.com> Improve Cedilla handling - based on a patch from Gustavo De Nardin, #111334 * modules/input/imcedilla.c po/POTFILES.in: Input method that produces C_WITH_CEDILLA rather than C_WITH_ACUTE for dead_acute+c combinations. Make this the default for fr and pt. * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave): Use LC_CTYPE instead of LC_MESSAGES to pick the default input method. Fri Aug 15 17:00:19 2003 Owen Taylor <otaylor@redhat.com> * gtk/gtkimcontextsimple.c: Fix missing compose sequence for Multi_key+c+apostrophe.