summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-04-07 12:53:57 -0400
committerMatthias Clasen <mclasen@redhat.com>2023-04-07 12:53:57 -0400
commitf1a01fb9733990ad94b0a0b69693fbddeb3c206f (patch)
tree147be1b1f2c51ee9b432964134bdd7d43feffdfd
parent6c97667be1045581731dc06cc63dd711413956c6 (diff)
downloadgtk+-f1a01fb9733990ad94b0a0b69693fbddeb3c206f.tar.gz
actionmuxer: Add a precondition
This helps with debugging the inspectors action handling.
-rw-r--r--gtk/gtkactionmuxer.c2
1 files changed, 2 insertions, 0 deletions
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)