summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorlukem <lukem@pkgsrc.org>2004-02-15 23:24:36 +0000
committerlukem <lukem@pkgsrc.org>2004-02-15 23:24:36 +0000
commiteeb1a388375a241ec6984ad755bac2b8fb02f3e1 (patch)
tree85d9157892b32c3c6beee2ec2aa390531547ac34 /time
parent702bcb2138958890d0827ea8123fe097c83fdad4 (diff)
downloadpkgsrc-eeb1a388375a241ec6984ad755bac2b8fb02f3e1.tar.gz
Prevent error dialog when the cursor has disappeared whilst displaying
a popup `tip', as can happen when running x11/unclutter and leave the mouse over an item with a tip; the tip is displayed, the mouse hides, and now pck-timer doesn't barf when the mouse reappears. Fix from Ben Elliston, who knows much more tcl than I do.
Diffstat (limited to 'time')
-rw-r--r--time/projclock/Makefile3
-rw-r--r--time/projclock/distinfo3
-rw-r--r--time/projclock/patches/patch-ac25
3 files changed, 29 insertions, 2 deletions
diff --git a/time/projclock/Makefile b/time/projclock/Makefile
index c0ca04d3aca..a02a8291117 100644
--- a/time/projclock/Makefile
+++ b/time/projclock/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.6 2004/01/20 12:27:16 agc Exp $
+# $NetBSD: Makefile,v 1.7 2004/02/15 23:24:36 lukem Exp $
#
DISTNAME= pclock0.7
PKGNAME= projclock-0.7
+PKGREVISION= 1
CATEGORIES= time
MASTER_SITES= http://members.optushome.com.au/starters/pclock/
EXTRACT_SUFX= .tgz
diff --git a/time/projclock/distinfo b/time/projclock/distinfo
index 2e2fb38d92b..457826a4b63 100644
--- a/time/projclock/distinfo
+++ b/time/projclock/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2003/05/02 15:10:43 agc Exp $
+$NetBSD: distinfo,v 1.3 2004/02/15 23:24:36 lukem Exp $
SHA1 (pclock0.7.tgz) = f0bd6d5c73d84805362304cc29f657def2622284
Size (pclock0.7.tgz) = 17644 bytes
SHA1 (patch-aa) = 572e374535f1c63ec571a563b5466226951fda08
SHA1 (patch-ab) = d102aa199415cdbdab8aac3f2ac41de38620e8ea
+SHA1 (patch-ac) = 15c8bf81052744574dd005e8d64a58d63bc47406
diff --git a/time/projclock/patches/patch-ac b/time/projclock/patches/patch-ac
new file mode 100644
index 00000000000..ff3cbf5137f
--- /dev/null
+++ b/time/projclock/patches/patch-ac
@@ -0,0 +1,25 @@
+$NetBSD: patch-ac,v 1.1 2004/02/15 23:24:36 lukem Exp $
+
+--- tips.tcl.~1~ 2001-01-24 14:22:46.000000000 +1100
++++ tips.tcl
+@@ -28,13 +28,18 @@ proc show_tip { win } {
+ } else {
+ set message TIP
+ }
+- toplevel .tip
++ if ![winfo exists .tip] {
++ toplevel .tip
++ }
+ wm overrideredirect .tip 1
+ set xy [winfo pointerxy $win]
+ set x [expr [lindex $xy 0] + 8]
+ set y [expr [lindex $xy 1] + 8]
+ wm geometry .tip +$x+$y
+- message .tip.msg -text $message -font {helvetica 10} -bg bisque -bd 1 -relief raised -aspect 300
++ if ![winfo exists .tip.msg] {
++ message .tip.msg
++ }
++ .tip.msg configure -text $message -font {helvetica 10} -bg bisque -bd 1 -relief raised -aspect 300
+ pack .tip.msg
+ }
+