diff options
author | Matthias Clasen <mclasen@redhat.com> | 2023-04-07 07:56:16 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2023-04-21 09:07:34 +0200 |
commit | 9f50647ddb1044454213ff686d29748283ad81fb (patch) | |
tree | fd1a0264b283939ee1fa46e71efb44e137a0a029 | |
parent | fa4af025317fde20217c9d2bc5fbfadbe06961fc (diff) | |
download | gtk+-9f50647ddb1044454213ff686d29748283ad81fb.tar.gz |
textview: Handle a return value
-rw-r--r-- | gtk/gtktextview.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 465e5cd25b..c384002f76 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -9231,7 +9231,8 @@ append_bubble_item (GtkTextView *text_view, muxer = _gtk_widget_get_action_muxer (GTK_WIDGET (text_view), FALSE); if (muxer) { - gtk_action_muxer_query_action (muxer, action_name, &enabled, ¶m_type, &state_type, NULL, NULL); + if (!gtk_action_muxer_query_action (muxer, action_name, &enabled, ¶m_type, &state_type, NULL, NULL)) + return; if (!enabled) return; |