summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrej Shadura <andrewsh@debian.org>2018-05-08 17:12:11 +0200
committerAndrej Shadura <andrewsh@debian.org>2018-05-08 17:12:11 +0200
commit5cbeff92d6a988054ec2f133a125fe5ee9f39674 (patch)
tree10950ca244917c281ae9598f4a3bdf8b5a7c894f /lib
parent0fa39919d0a56d83fda4cc05431a0cfb953bde77 (diff)
Use signal package instead of tclx
Since tclx package is deprecated the tcl-signal package was used as a replacement. Gbp-Pq: Name use-signal-not-tclx.patch
Diffstat (limited to 'lib')
-rwxr-xr-xlib/main.tcl17
1 files changed, 7 insertions, 10 deletions
diff --git a/lib/main.tcl b/lib/main.tcl
index e942c00..57d2035 100755
--- a/lib/main.tcl
+++ b/lib/main.tcl
@@ -82,14 +82,11 @@ set LIBRARIES_TO_LOAD {
{Tk 8.5}
{img::png 1.3}
{tdom 0.8}
- {Tclx 8.0}
{Signal 1.4}
{Tcl 8.2}
}
set OPTIONAL_LIBRARIES {
- Signal
- Tclx
}
## Bool:
@@ -104,7 +101,7 @@ set ::GUI_AVAILABLE 1
# TclX is used here only to handle signals (e.g. SIGINT), so the IDE can run
# without it, that's the reason for this variable. If TCLX_AVAILABLE is 0 then
# we are not able to handle signals, but everything else works normally.
-set ::TCLX_AVAILABLE 1
+set ::TCLX_AVAILABLE 0
## Bool:
# 1 == library Signal is available
@@ -212,16 +209,16 @@ proc libraryLoadFailed {library} {
}
# Tclx workarond for Debian (1/2)
- } elseif {$library == {Tclx}} {
- set ::TCLX_AVAILABLE 0
- puts stderr "\nERROR: Unable to load library Tclx, MCU 805 1IDE functionality might be limited."
+ } elseif {$library == {Signal}} {
+ set ::SIGNAL_AVAILABLE 0
+ puts stderr "\nERROR: Unable to load library Signal, MCU 8051 IDE functionality might be limited."
return
# Tclx workarond for Debian (2/2)
- } elseif { $library == {Signal} } {
- set ::SIGNAL_AVAILABLE 0
+ } elseif { $library == {Tclx} } {
+ set ::TCLX_AVAILABLE 0
if {!$::TCLX_AVAILABLE} {
- puts stderr "\nERROR: Unable to load library Signal, MCU 805 1IDE functionality might be limited."
+ puts stderr "\nERROR: Unable to load library Tcl, MCU 8051 IDE functionality might be limited."
}
return
}