projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e1a4b5
)
actionmuxer: Add a precondition
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 7 Apr 2023 16:53:57 +0000
(12:53 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 21 Apr 2023 07:08:28 +0000
(09:08 +0200)
This helps with debugging the inspectors action
handling.
gtk/gtkactionmuxer.c
patch
|
blob
|
history
diff --git
a/gtk/gtkactionmuxer.c
b/gtk/gtkactionmuxer.c
index 7af7bb413b5b2ce68eef099c976397be064ed5b1..760f796354557da1292ffdd2ea6c498c11575410 100644
(file)
--- 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)