imcontext: Drop GTK_MAX_COMPOSE_LEN

Drop GTK_MAX_COMPOSE_LEN from docs. It is no longer
used by GTK at all.  We leave the define in place
for now, to avoid breaking 3rd party code that might
use it.
This commit is contained in:
Matthias Clasen 2021-02-01 12:28:40 -05:00
parent 61f709811c
commit edeaf9c040
3 changed files with 3 additions and 7 deletions

View File

@ -1831,7 +1831,6 @@ GtkIMContextSimple
gtk_im_context_simple_new
gtk_im_context_simple_add_table
gtk_im_context_simple_add_compose_file
GTK_MAX_COMPOSE_LEN
<SUBSECTION Standard>
GTK_IM_CONTEXT_SIMPLE
GTK_IS_IM_CONTEXT_SIMPLE

View File

@ -1319,7 +1319,6 @@ gtk_im_context_simple_get_preedit_string (GtkIMContext *context,
* @context_simple: A #GtkIMContextSimple
* @data: (array): the table
* @max_seq_len: Maximum length of a sequence in the table
* (cannot be greater than #GTK_MAX_COMPOSE_LEN)
* @n_seqs: number of sequences in the table
*
* Adds an additional table to search to the input context.
@ -1339,7 +1338,6 @@ gtk_im_context_simple_add_table (GtkIMContextSimple *context_simple,
int n_seqs)
{
g_return_if_fail (GTK_IS_IM_CONTEXT_SIMPLE (context_simple));
g_return_if_fail (max_seq_len <= GTK_MAX_COMPOSE_LEN);
G_LOCK (global_tables);

View File

@ -27,10 +27,9 @@
G_BEGIN_DECLS
/**
* GTK_MAX_COMPOSE_LEN:
*
* The maximum length of sequences in compose tables.
/*
* No longer used by GTK, just left here on the off chance that some
* 3rd party code used this define.
*/
#define GTK_MAX_COMPOSE_LEN 7