From f1a01fb9733990ad94b0a0b69693fbddeb3c206f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 7 Apr 2023 12:53:57 -0400 Subject: actionmuxer: Add a precondition This helps with debugging the inspectors action handling. --- gtk/gtkactionmuxer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gtk/gtkactionmuxer.c') diff --git a/gtk/gtkactionmuxer.c b/gtk/gtkactionmuxer.c index 5fe2916dfd..33e8c0542d 100644 --- a/gtk/gtkactionmuxer.c +++ b/gtk/gtkactionmuxer.c @@ -232,6 +232,8 @@ gtk_action_muxer_list_actions (GtkActionMuxer *muxer, GHashTable *actions; char **keys; + g_return_val_if_fail (GTK_IS_ACTION_MUXER (muxer), NULL); + actions = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL); for ( ; muxer != NULL; muxer = muxer->parent) -- cgit v1.2.1