mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 16:50:11 +00:00
47aae53285
* modules/input/gtkimcontextmultipress.[ch]: Remove the namespace prefix from functions defined locally only. Clean up the code and change indentation to match the GTK+ coding style. (_GtkImContextMultipress::key_sequences): Replace array of pointers by GHashTable. Adapt the implementation accordingly. (passthrough_enabled_for_window): Remove. The passthrough hack is no longer necessary thanks to the recently introduced "im-module" property of GtkEntry and GtkTextView. (load_config): Rework to implement an improved configuration file format. Just fetch all keys of the group instead of expecting the keys to be named a certain way. This also allows interpreting the config key itself as the GDK key name to bind the character sequence to, thereby making it independent of the sequence itself. * modules/input/im-multipress.conf: New example configuration using the new syntax. The example sequences are now bound to the numeric keypad and imitate the behavior of a standard mobile phone. svn path=/trunk/; revision=22125
23 lines
890 B
Plaintext
23 lines
890 B
Plaintext
# Example configuration file for the GTK+ Multipress Input Method
|
|
# Authored by Openismus GmbH, 2009.
|
|
#
|
|
# This file follows the GKeyFile format. On the left of the equal sign goes
|
|
# the key that you press repeatedly to iterate through the text items listed
|
|
# on the right-hand side. The list items are separated by semicolons ";" and
|
|
# consist of one or more characters each. The backslash "\" is used to escape
|
|
# characters; for instance "\;" for a literal semicolon.
|
|
#
|
|
# The example configuration below imitates the behavior of a standard mobile
|
|
# phone by a major manufacturer, with German language setting.
|
|
[keys]
|
|
KP_1 = .;,;?;!;';";1;-;(;);@;/;:;_
|
|
KP_2 = a;b;c;2;ä;à;á;ã;â;å;æ;ç
|
|
KP_3 = d;e;f;3;è;é;ë;ê;ð
|
|
KP_4 = g;h;i;4;ì;í;î;ï
|
|
KP_5 = j;k;l;5;£
|
|
KP_6 = m;n;o;6;ö;ò;ó;ô;õ;ø;ñ
|
|
KP_7 = p;q;r;s;7;ß;$
|
|
KP_8 = t;u;v;8;ü;ù;ú;û
|
|
KP_9 = w;x;y;z;9;ý;þ
|
|
KP_0 = \s;0
|