summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authortreectrl <treectrl>2005-06-02 22:07:43 (GMT)
committertreectrl <treectrl>2005-06-02 22:07:43 (GMT)
commit36501ea2b4e57b996ac1939e274e838d913dea1c (patch)
tree392ab1db013d93015f21ea0b96197f7fe12793ce /demos
parentab6322dc3c766a0ad754cc81d398173a3ec1499f (diff)
downloadtktreectrl-36501ea2b4e57b996ac1939e274e838d913dea1c.zip
tktreectrl-36501ea2b4e57b996ac1939e274e838d913dea1c.tar.gz
tktreectrl-36501ea2b4e57b996ac1939e274e838d913dea1c.tar.bz2
Use "window" element type's new -destroy option to destroy associated window when element is deleted.
Diffstat (limited to 'demos')
-rw-r--r--demos/firefox.tcl4
1 files changed, 4 insertions, 0 deletions
diff --git a/demos/firefox.tcl b/demos/firefox.tcl
index 49c1187..aeba7ee 100644
--- a/demos/firefox.tcl
+++ b/demos/firefox.tcl
@@ -63,6 +63,10 @@ proc DemoFirefoxPrivacy {} {
$T element create eRectTop rect -outline {black open} -fill {#FFFFCC open} -outlinewidth 1 -open s
$T element create eRectBottom rect -outline black -fill #FFFFCC -outlinewidth 1 -open n
+ # Destroy the window when the element is deleted. Could also bind to the
+ # <ItemDelete> event.
+ $T element configure eWindow -destroy yes
+
#
# Create styles using the elements
#