klippygtk: button find box with find_widget

This commit is contained in:
alfrix 2023-08-28 15:43:51 -03:00
parent 8209dbabf4
commit a2ad8e6ade

View File

@ -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)