Skip to content

Commit 1d3e229

Browse files
authored
Merge pull request #3487 from Sigma1912/Gmoccapy_Fix-gtk-warnings-on-mdi-buttons-pagination
Gmoccapy: Fix gtk warnings on mdi buttons (next/previous) pagination
2 parents e15a505 + 0a620c5 commit 1d3e229

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/emc/usr_intf/gmoccapy/gmoccapy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,8 @@ def _get_button_with_image(self, name, filepath, icon_name):
847847

848848
def _remove_button(self, dic, box):
849849
for child in dic:
850-
box.remove(dic[child])
850+
if dic[child].get_parent():
851+
box.remove(dic[child])
851852

852853
def _on_btn_next_clicked(self, widget):
853854
# remove all buttons from container

0 commit comments

Comments
 (0)