anastasis-gtk

Demonstrator GUI for Anastasis
Log | Files | Refs | README | LICENSE

commit 3816b69ad5ca3fccf928c69b568b5ecc9337f58b
parent 3bf5f31848c90e7f1ef9028c945a1c253b086c8d
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue,  4 Aug 2026 19:03:26 +0200

avoid GTK warning

Diffstat:
Msrc/anastasis/anastasis-gtk_helper.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/anastasis/anastasis-gtk_helper.c b/src/anastasis/anastasis-gtk_helper.c @@ -240,6 +240,11 @@ GCG_get_main_window_object (const char *name) { if (NULL == AG_ml) return NULL; + /* AG_expand_name() returns NULL for attribute types we do not know a + widget suffix for; do not pass that on to GTK, which would only log a + critical of its own before the caller gets to report the real problem. */ + if (NULL == name) + return NULL; return ANASTASIS_GTK_main_loop_get_object (AG_ml, name); }