summaryrefslogtreecommitdiff
path: root/gtk/gtkcomposetable.h
Commit message (Collapse)AuthorAgeFilesLines
* composetable: Keep multi-char valuesMatthias Clasen2021-02-021-0/+2
| | | | | | | | | Keep string values in the table, and return them from the check function. This commit temporarily disables the table caching, since the cache format does not handle string values yet. Fixes: #186
* composetable: Prepare for multi character valuesMatthias Clasen2021-02-021-1/+1
| | | | | | | Make it possible for gtk_compose_table_check to return a string instead of just a single Unicode character. Currently, we only ever return strings holding a single character, still.
* imcontext: Move code aroundMatthias Clasen2021-02-011-1/+13
| | | | | Move all the checking code to gtkcomposetable.c, and add api that we can use in tests.
* composetable: Add api to check tablesMatthias Clasen2021-02-011-7/+14
| | | | | This copies the check_table code from gtkimcontextsimple.c, in order to have an api for tests.
* Replace "gchar" with "char"Benjamin Otte2020-07-251-2/+2
|
* Replace "gint" with "int"Benjamin Otte2020-07-251-7/+7
|
* Revert "imcontext: Make size arguments be gsize and not int"Mohammed Sadiq2018-06-141-7/+7
| | | | | | This was committed accidently. This reverts commit eefd2d6f104973d1461feee0b94dff8af991e145.
* imcontext: Make size arguments be gsize and not intBenjamin Otte2018-06-141-7/+7
| | | | | | | | | | | | | | | | | | | Otherwise gcc complains when we use these as arguments to g_new() on 32bit architectures with: ../gtk/gtkcomposetable.c: In function ‘gtk_compose_table_list_add_array’: /usr/include/glib-2.0/glib/gmem.h:217:10: warning: argument 1 range [2147483648, 4294967295] exceeds maximum object size 2147483647 [-Walloc-size-larger-than=] __p = g_##func##_n (__n, __s); \ ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/glib/gmem.h:279:42: note: in expansion of macro ‘_G_NEW’ #define g_new0(struct_type, n_structs) _G_NEW (struct_type, n_structs, malloc0) ^~~~~~ ../gtk/gtkcomposetable.c:851:22: note: in expansion of macro ‘g_new0’ gtk_compose_seqs = g_new0 (guint16, length); ^~~~~~ /usr/include/glib-2.0/glib/gmem.h:96:10: note: in a call to allocation function ‘g_malloc0_n’ declared here gpointer g_malloc0_n (gsize n_blocks, ^~~~~~~~~~~
* Add gtk_compose_table_new_with_file() to create GtkComposeTableTakao Fujiwara2015-10-091-1/+10
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=721120
* GtkIMContextSimple: export _gtk_check_compact_table() and GtkComposeTableTakao Fujiwara2015-10-081-0/+46
Some functions need to be exported if X11 compose files are loaded. https://bugzilla.gnome.org/show_bug.cgi?id=721120