1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
From: Sergei Golovan
Subject: Patch fixes misbehavior in a tabset widget when
detaching/steeling the associated window from a tab
destroys the tab itself. The patch restores behavior
from BLT 2.
Date: Tue, 01 Jul 2025 10:36:50 +0300
Forwarded: yes
Bug: https://sourceforge.net/p/blt/patches/44/
--- a/src/bltTabset.c
+++ b/src/bltTabset.c
@@ -4486,8 +4486,9 @@
setPtr->flags |= (LAYOUT_PENDING | SCROLL_PENDING | REDRAW_ALL);
EventuallyRedraw(setPtr);
}
+ Tk_DeleteEventHandler(tabPtr->tkwin, StructureNotifyMask,
+ EmbeddedWidgetEventProc, tabPtr);
tabPtr->tkwin = NULL;
- DestroyTab(tabPtr);
}
}
|