diff options
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/local.mk | 1 | ||||
| -rw-r--r-- | gnu/packages/calendar.scm | 3 | ||||
| -rw-r--r-- | gnu/packages/patches/tkremind-fix-fontchooser.patch | 31 |
3 files changed, 34 insertions, 1 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index aa51ca503e2..fd063ec5f18 100644 --- a/gnu/local.mk +++ b/gnu/local.mk | |||
| @@ -2469,6 +2469,7 @@ dist_patch_DATA = \ | |||
| 2469 | %D%/packages/patches/tbb-other-arches.patch \ | 2469 | %D%/packages/patches/tbb-other-arches.patch \ |
| 2470 | %D%/packages/patches/tclxml-3.2-install.patch \ | 2470 | %D%/packages/patches/tclxml-3.2-install.patch \ |
| 2471 | %D%/packages/patches/tcsh-fix-autotest.patch \ | 2471 | %D%/packages/patches/tcsh-fix-autotest.patch \ |
| 2472 | %D%/packages/patches/tkremind-fix-fontchooser.patch \ | ||
| 2472 | %D%/packages/patches/teensy-loader-cli-help.patch \ | 2473 | %D%/packages/patches/teensy-loader-cli-help.patch \ |
| 2473 | %D%/packages/patches/tensorflow-c-api-fix.patch \ | 2474 | %D%/packages/patches/tensorflow-c-api-fix.patch \ |
| 2474 | %D%/packages/patches/texinfo-headings-single.patch \ | 2475 | %D%/packages/patches/texinfo-headings-single.patch \ |
diff --git a/gnu/packages/calendar.scm b/gnu/packages/calendar.scm index 40ffdcb945c..cc27a4bb5d4 100644 --- a/gnu/packages/calendar.scm +++ b/gnu/packages/calendar.scm | |||
| @@ -341,7 +341,8 @@ command-line interface} and a @acronym{TUI, textual user interface} named | |||
| 341 | ".") | 341 | ".") |
| 342 | ".tar.gz")) | 342 | ".tar.gz")) |
| 343 | (sha256 | 343 | (sha256 |
| 344 | (base32 "1hp24d48nhlv6f7p6sj4qnqc9pyfgyhjah8w9426bzkqkqb31j9c")))) | 344 | (base32 "1hp24d48nhlv6f7p6sj4qnqc9pyfgyhjah8w9426bzkqkqb31j9c")) |
| 345 | (patches (search-patches "tkremind-fix-fontchooser.patch")))) | ||
| 345 | (properties | 346 | (properties |
| 346 | `((output-synopsis "tcl" "graphical front-end to Remind calendar program"))) | 347 | `((output-synopsis "tcl" "graphical front-end to Remind calendar program"))) |
| 347 | (build-system gnu-build-system) | 348 | (build-system gnu-build-system) |
diff --git a/gnu/packages/patches/tkremind-fix-fontchooser.patch b/gnu/packages/patches/tkremind-fix-fontchooser.patch new file mode 100644 index 00000000000..2ac57774979 --- /dev/null +++ b/gnu/packages/patches/tkremind-fix-fontchooser.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | Fix tkremind fontchooser issues. | ||
| 2 | |||
| 3 | 1. Pass -name to wish to set the window class explicitly. Without this, | ||
| 4 | wrap-program renames tkremind to .tkremind-real, and Tk uses the script | ||
| 5 | basename as the window class. A class starting with "." breaks the | ||
| 6 | fontchooser which interprets it as a window path. | ||
| 7 | |||
| 8 | 2. Fix bug in SetHeadingFont: it references Option(HeadingFont) before it | ||
| 9 | is set, causing "can't read Option(HeadingFont): no such variable" when | ||
| 10 | selecting a heading font. Use the just-configured HeadingFont instead. | ||
| 11 | |||
| 12 | diff --git a/scripts/tkremind.in b/scripts/tkremind.in | ||
| 13 | --- a/scripts/tkremind.in | ||
| 14 | +++ b/scripts/tkremind.in | ||
| 15 | @@ -13,7 +13,7 @@ | ||
| 16 | #-------------------------------------------------------------- | ||
| 17 | |||
| 18 | # the next line restarts using wish \ | ||
| 19 | -exec wish "$0" "$@" | ||
| 20 | +exec wish "$0" -name Tkremind "$@" | ||
| 21 | |||
| 22 | tk appname tkremind | ||
| 23 | |||
| 24 | @@ -5190,7 +5190,7 @@ proc SetHeadingFont {font} { | ||
| 25 | global tmpOpt | ||
| 26 | font configure HeadingFont {*}[font actual $font] | ||
| 27 | - font configure BoldFont {*}$Option(HeadingFont) -weight bold | ||
| 28 | + font configure BoldFont {*}[font actual HeadingFont] -weight bold | ||
| 29 | set tmpOpt(HeadingFont) [font actual $font] | ||
| 30 | raise .opt | ||
| 31 | } | ||
