diff options
author | Matthias Clasen <mclasen@redhat.com> | 2023-04-07 12:53:57 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2023-04-07 12:53:57 -0400 |
commit | f1a01fb9733990ad94b0a0b69693fbddeb3c206f (patch) | |
tree | 147be1b1f2c51ee9b432964134bdd7d43feffdfd /gtk/gtkactionmuxer.c | |
parent | 6c97667be1045581731dc06cc63dd711413956c6 (diff) | |
download | gtk+-f1a01fb9733990ad94b0a0b69693fbddeb3c206f.tar.gz |
actionmuxer: Add a precondition
This helps with debugging the inspectors action
handling.
Diffstat (limited to 'gtk/gtkactionmuxer.c')
-rw-r--r-- | gtk/gtkactionmuxer.c | 2 |
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) |