klippygtk: button find box with find_widget

This commit is contained in:
alfrix committed 2023-08-28 15:43:51 -03:00
1 parent 8209dbabf4
commit a2ad8e6ade
1 file changed
+3 -1
+3 -1
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)