mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-17 23:50:16 +00:00
imcontext: Add a precondition check
This commit is contained in:
parent
8883243aaa
commit
e39b5c99f1
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user