imcontext: Add a precondition check

This commit is contained in:
Matthias Clasen 2021-02-01 00:43:44 -05:00
parent 8883243aaa
commit e39b5c99f1

View File

@ -1320,6 +1320,7 @@ 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);