From a2ad8e6ade486b17592cebe77df56ade2699daac Mon Sep 17 00:00:00 2001 From: alfrix Date: Mon, 28 Aug 2023 15:43:51 -0300 Subject: [PATCH] klippygtk: button find box with find_widget --- ks_includes/KlippyGtk.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ks_includes/KlippyGtk.py b/ks_includes/KlippyGtk.py index 53a30dcb..88232d7d 100644 --- a/ks_includes/KlippyGtk.py +++ b/ks_includes/KlippyGtk.py @@ -177,7 +177,9 @@ class KlippyGtk: spinner.set_no_show_all(True) spinner.set_size_request(width, height) spinner.hide() - b.get_child().get_child().add(spinner) + box = find_widget(b, Gtk.Box) + if box: + box.add(spinner) if label is not None: format_label(b, lines)